WO2020024687A1 - 一种显示方法、终端及存储介质 - Google Patents

一种显示方法、终端及存储介质 Download PDF

Info

Publication number
WO2020024687A1
WO2020024687A1 PCT/CN2019/088980 CN2019088980W WO2020024687A1 WO 2020024687 A1 WO2020024687 A1 WO 2020024687A1 CN 2019088980 W CN2019088980 W CN 2019088980W WO 2020024687 A1 WO2020024687 A1 WO 2020024687A1
Authority
WO
WIPO (PCT)
Prior art keywords
spn
network
network identifier
test
terminal
Prior art date
Application number
PCT/CN2019/088980
Other languages
English (en)
French (fr)
Inventor
王旭康
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020024687A1 publication Critical patent/WO2020024687A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks

Definitions

  • the present application relates to the field of communications, and in particular, to a display method, a terminal, and a storage medium.
  • the operator name (SPN, Service Name) is the name of the operator that currently issues a subscriber identity card (SIM, Subscriber Identification Module).
  • SIM Subscriber Identification Module
  • the SPN must meet the requirements of the Global System for Mobile Communications (GSMA, Global Communications System Alliance) agreement. Name, when the terminal roams to other countries and registers with the Public Land Mobile Network (PLMN, Public Land Mobile Network), the limited network operators stored in the SPN.xml file maintained by the terminal will cause the SPN to not comply with the GSMA agreement. At this time, the display of the SPN is incorrect.
  • the maintenance staff needs to modify the SPN.xml file according to the operator's name stipulated in the GSMA agreement. After the modification is completed, the version is compiled and the Over-the-Air Technology (OTA) software upgrade is performed.
  • OTA Over-the-Air Technology
  • the embodiments of the present application provide a display method, a terminal, and a storage medium, which can simplify the steps for the terminal to display the correct SPN, and shorten the time required for the terminal to display the correct SPN.
  • An embodiment of the present application provides a display method, which is applied to a terminal, where the terminal is connected to an update server, and the method includes:
  • the method further includes:
  • the correspondence relationship between the at least one test SPN and the network identifier is added to the storage container to form the correspondence table between the test SPN and the network identifier.
  • the step of searching the first SPN corresponding to the first network identifier from the test SPN and network identifier correspondence table includes:
  • invoking the storage container and parsing the test SPN and network identifier correspondence table from the storage container includes:
  • the network identification is a public land mobile network PLMN number.
  • An embodiment of the present application provides a terminal that is connected to an update server.
  • the terminal includes a processor, a receiver, a display memory, and a communication bus.
  • the receiver is configured to receive services from the update server.
  • Provider name SPN file the SPN file stores a correspondence table between the test SPN and the network identifier;
  • the processor is configured to execute a running program stored in the memory to implement the following steps:
  • the display is configured to display the first SPN in a status bar of a current display interface.
  • the processor is further configured to update the SPN file to an update database; parse the SPN file to obtain at least one test SPN corresponding to a network identifier; and to communicate the at least one test SPN to a network
  • the identification correspondence is added to the storage container to form the test SPN and network identification correspondence table.
  • the processor is further configured to obtain the first network identifier corresponding to the first network; call the storage container, and parse the correspondence relationship between the test SPN and the network identifier from the storage container Table; from the correspondence between the at least one test SPN and the network identifier, find the first SPN corresponding to the first network identifier.
  • the processor is further configured to find an initial SPN and network identifier correspondence table from a configuration file; when the first SPN is not found from the initial SPN and network label correspondence table, Calling the storage container; parsing the correspondence table between the test SPN and the network identifier from the storage container.
  • the network identifier is a public land mobile network PLMN number.
  • An embodiment of the present application provides a storage medium on which a computer program is stored and is applied to a terminal.
  • the computer program is executed by a processor, the display method according to any one of the foregoing is implemented.
  • An embodiment of the present application provides a display method, a terminal, and a storage medium, which are applied to a terminal.
  • the terminal is connected to an update server and receives a service provider name SPN file from the update server.
  • the SPN file stores a test SPN and a network identifier.
  • Correspondence table when detecting registration to the first network, look up the first SPN corresponding to the first network identifier from the test SPN and network identifier correspondence table, where the first network identifier is the network identifier corresponding to the first network;
  • An SPN is displayed in the status bar of the current display interface.
  • an update server maintains a test SPN and network identifier correspondence table, and the test SPN and network correspondence table stores the correspondence between the tested SPN and the network.
  • the terminal detects that the registration is registered with the During a network, the terminal searches for the first SPN corresponding to the first network identifier according to the SPN file obtained from the update server, and displays the first SPN in the status bar of the current display interface.
  • the terminal updates the Obtain the correspondence between the tested SPN and the network from the server without modifying the SPN.xml file in the terminal configuration file, and perform the variant version and OTA software upgrade process, thereby simplifying the steps of displaying the correct SPN on the terminal and shortening It takes time for the terminal to display the correct SPN.
  • FIG. 1 is a first flowchart of a display method according to an embodiment of the present application
  • FIG. 2 is an exemplary terminal display SPN interface display diagram provided by an embodiment of the present application.
  • FIG. 3 is a second flowchart of a display method provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of an exemplary display method according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal 1 according to an embodiment of the present application.
  • an embodiment of the present application provides a display method. As shown in FIG. 1, the display method is applied to a terminal, and the terminal connects with an update server.
  • the method may include:
  • S101 Receive a service provider name SPN file from an update server.
  • the SPN file stores a correspondence table between a test SPN and a network identifier.
  • a display method provided in the embodiment of the present application is applicable to a scenario in which an SPN is displayed on a terminal status bar.
  • the update server is a Root Update System (RUS) server.
  • RUS Root Update System
  • a connection is automatically established with the RUS server.
  • a tester tests different SPNs corresponding to different PLMN numbers, and forms a SPN file by combining the PLMN number obtained from the test with the SPN correspondence, and stores the SPN file in the RUS server.
  • the SPN file format is an SPN.xml file.
  • the RUS server after the RUS server updates the SPN file, the RUS server sends the RUS file to the AP side of the terminal, and the application processor (AP, Application Processor) side of the terminal saves the SPN.xml file to the update database, and Parse the XML file to obtain at least one correspondence between the test SPN and the network identity, and add at least one correspondence between the test SPN and the network identity to the storage container to form a table of the correspondence between the test SPN and the network identity.
  • AP Application Processor
  • the storage container is a HashMap container.
  • the first SPN corresponding to the first network identifier is searched from the test SPN and network identifier correspondence table, and the first network identifier is the network identifier corresponding to the first network.
  • the terminal After the terminal receives the SPN file from the update server, when the terminal detects registration with the first network, it searches for the first SPN corresponding to the first network identifier from the test SPN and network identifier correspondence table.
  • the terminal when the terminal resides on the first network, the terminal searches for a first network identifier corresponding to the first network.
  • the network identifier is a PLMN number.
  • the terminal invokes the HashMap container and parses out the correspondence table between the test SPN and the network identifier from the HashMap container. After that, the terminal searches the correspondence table between the test SPN and the network identifier for the first SPN corresponding to the first network identifier .
  • numeric is the number corresponding to the PLMN.
  • the terminal After the terminal finds the first SPN corresponding to the first network identifier from the test SPN and network identifier correspondence table, the terminal will display the first SPN in the status bar of the current display interface.
  • the terminal displays the first SPN in the status bar of the current display interface according to the display form of the first SPN.
  • the display form of the “CHINA MOBILE” string is searched for “China Mobile”. At this time, on the current display interface of the mobile phone "China Mobile" is displayed in the upper left corner.
  • the update server maintains a test SPN and network identifier correspondence table, and the test SPN and network correspondence table stores the correspondence between the tested SPN and the network.
  • the terminal detects that it is registered to the first
  • the terminal searches for the first SPN corresponding to the first network identifier from the SPN file obtained from the update server, and displays the first SPN in the status bar of the current display interface.
  • the terminal retrieves the first SPN from the update server.
  • an embodiment of the present application provides a display method. As shown in FIG. 3, a terminal connects with an update server, and the method may include:
  • the update server sends a service provider name SPN file to the terminal, and the SPN file stores a correspondence table between the test SPN and the network identifier.
  • a display method provided in the embodiment of the present application is applicable to a scenario in which an SPN is displayed on a terminal status bar.
  • a connection is automatically established with the RUS server.
  • a tester tests different SPNs corresponding to different PLMN numbers, and forms a SPN file by combining the PLMN number obtained from the test with the SPN correspondence, and stores the SPN file in the RUS server.
  • the SPN file format is an SPN.xml file.
  • the terminal updates the SPN file to the update database.
  • the terminal After the terminal receives the SPN file from the update server, the terminal will update the SPN file to the update database.
  • the RUS server after the RUS server updates the SPN file, the RUS server sends the RUS file to the terminal AP side, and the terminal AP side saves the SPN.xml file to the update database.
  • the terminal searches the SPN.xml file for the correspondence relationship between the test SPN and the network identifier that is not stored in the update database, and updates the correspondence relationship between the test SPN and the network identifier that is not stored in the update database, and updates the database at this time. Stored in the updated SPN.xml file.
  • S203 The terminal parses the SPN file and obtains at least one test SPN corresponding to a network identifier.
  • the terminal After the terminal updates the SPN file to the update database, the terminal needs to parse the SPN file to obtain at least one test SPN and network identity correspondence.
  • the terminal parses the SPN file on the AP side, and obtains at least one test SPN and network identity correspondence relationship.
  • the terminal adds at least one correspondence between the test SPN and the network identifier to the storage container to form a correspondence table between the test SPN and the network identifier.
  • the terminal After the terminal obtains the correspondence between the at least one test SPN and the network identifier, the terminal adds the correspondence between the at least one test SPN and the network identifier to the storage container to form a table of the correspondence between the test SPN and the network identifier.
  • the terminal adds at least one correspondence relationship between the test SPN and the network identifier to the storage container to form a correspondence table between the test SPN and the network identifier.
  • the storage container is a HashMap container.
  • the terminal searches the configuration file for the correspondence table between the initial SPN and the network identifier, and the first network identifier is the network identifier corresponding to the first network.
  • the terminal When the terminal adds at least one correspondence between the test SPN and the network identifier to the storage container to form a table of the correspondence between the test SPN and the network identifier, the terminal searches for the initial SPN from the configuration file when it detects that it is registered in the first network Correspondence table with network identification.
  • the terminal when the terminal resides on the first network, the terminal searches for a first network identifier corresponding to the first network.
  • the network identifier is a PLMN number.
  • the terminal searches the configuration file for the correspondence table between the initial SPN and the network identifier stored in advance by the developer in the terminal.
  • the developer stores all the initial SPNs in the spn-conf.xml file, and copies them to the system ⁇ etc ⁇ directory of out during compilation, and etc / spn-conf.xml during initialization Load the file, parse the XML, and store each item in the HashMap of mCarrierSpnMap.
  • the terminal parses and tests the correspondence table between the SPN and the network identifier from the storage container.
  • the terminal After the terminal looks up the correspondence table between the initial SPN and the network identifier from the configuration file, the terminal needs to find the first SPN from the correspondence table between the initial SPN and the network identifier. When the terminal does not look up from the correspondence table between the initial SPN and the network identifier, When the first SPN is reached, the terminal must parse and test the correspondence table between the SPN and the network identifier from the storage container.
  • the terminal searches for the first SPN corresponding to the first network identifier from the initial SPN and network label correspondence table.
  • the terminal searches for the first SPN corresponding to the first PLMN (first network identifier) registered in the system ⁇ etc ⁇ directory.
  • the terminal when the terminal does not find the first SPN from the initial SPN and network labeling correspondence table, the terminal parses and tests the correspondence table between the SPN and the network identifier from the storage container.
  • the terminal invokes the HashMap container, and parses the correspondence table between the test SPN and the network identifier from the HashMap container.
  • the terminal searches for the first SPN corresponding to the first network identifier from at least one test SPN and network identifier correspondence.
  • the terminal After the terminal parses the test SPN and network identifier correspondence table from the storage container, the terminal needs to find the first SPN corresponding to the first network identifier from at least one test SPN and network identifier correspondence.
  • the terminal searches for the first SPN corresponding to the first network identifier from at least one test SPN and network identifier correspondence in the test SPN and network identifier correspondence table.
  • numeric is the number corresponding to the PLMN.
  • the terminal displays the first SPN in the status bar of the current display interface.
  • the terminal After the terminal finds the first SPN corresponding to the first network identifier from at least one test SPN and network identifier correspondence, the terminal is about to display the first SPN in the status bar of the current display interface.
  • the terminal displays the first SPN in the status bar of the current display interface according to the display form of the first SPN.
  • the process of displaying the SPN by the terminal is:
  • PhoneAPP terminal application processor side
  • Spn.xml service provider name file
  • ROMUPDATE.db read-only memory update database
  • PhoneAPP determines whether the ROMUPDATE.db includes Spn.xml data.
  • the terminal searches for the SPn corresponding to plmn registered in Spn.xml in the / etc directory.
  • the terminal calls the HashMap data in the HashMap container and parses it.
  • the terminal searches for the SPN corresponding to plmn from the parsed SPN data.
  • the terminal displays Spn in the status bar.
  • the update server maintains a test SPN and network identifier correspondence table, and the test SPN and network correspondence table stores the correspondence between the tested SPN and the network.
  • the terminal detects that it is registered to the first
  • the terminal searches for the first SPN corresponding to the first network identifier from the SPN file obtained from the update server, and displays the first SPN in the status bar of the current display interface.
  • the terminal retrieves the first SPN from the update server.
  • FIG. 5 is a schematic structural diagram 1 of the terminal 1 according to the embodiment of the present application.
  • the terminal 1 in the embodiment of the present application includes a processor 10, a memory 11, a receiver 12, a display 13, and a communication bus 14.
  • the processor 10 may be an application-specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processor (DSP, Digital Signal Processor), or a digital signal processing terminal (DSPD, Digital Signal Processing).
  • ASIC Application-specific integrated circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing terminal
  • the terminal 1 may further include a memory 11, which may be connected to the processor 10.
  • the memory 11 is configured to store executable program code, and the program code includes computer operation instructions.
  • the memory 11 may include a high-speed RAM memory, and may also include a high-speed RAM memory. Non-volatile memory, for example, at least two disk memories.
  • the communication bus 14 is configured to implement connection and communication between the processor 10, the memory 11, the receiver 12, and the display 13.
  • the receiver 12 is configured to receive a service provider in the update server. Name the SPN file.
  • the SPN file stores a correspondence table between the test SPN and the network identifier.
  • the processor 10 is configured to execute the running program stored in the memory 11 to implement the following steps:
  • the display 13 is configured to display the first SPN in a status bar of a current display interface.
  • the processor 10 is further configured to update the SPN file into an update database; parse the SPN file to obtain at least one test SPN corresponding to a network identifier; The correspondence between the test SPN and the network identifier is added to the storage container to form the correspondence table between the test SPN and the network identifier.
  • the processor 10 is further configured to obtain the first network identifier corresponding to the first network; call the storage container, and parse the test SPN from the storage container. Correspondence table with network identifiers; from the at least one test SPN correspondence with network identifiers, find the first SPN corresponding to the first network identifier.
  • the processor 10 is further configured to find an initial SPN and network identifier correspondence table from a configuration file; when the corresponding table is not found from the initial SPN and network annotation correspondence table, At the first SPN, the storage container is called; the correspondence table between the test SPN and the network identifier is parsed from the storage container.
  • the network identifier is a public land mobile network PLMN number.
  • the foregoing memory 11 may be a volatile first memory (volatile memory), such as a random access first memory (Random-Access Memory, RAM); or a non-volatile first memory (non-volatile memory) ), Such as read-only memory (Read-Only Memory, ROM), flash first memory (flash memory), hard disk (Hard Disk Drive, HDD) or solid state drive (Solid-State Drive, SSD); or the above types
  • volatile first memory such as a random access first memory (Random-Access Memory, RAM); or a non-volatile first memory (non-volatile memory)
  • ROM read-only memory
  • flash memory flash memory
  • HDD Hard Disk Drive
  • SSD solid state drive
  • the functional modules in this embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional modules.
  • the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially Part of the prior art contribution or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes several instructions to make a computer device (which can be a personal A computer, a server, or a network device) or a processor executes all or part of the steps of the method in this embodiment.
  • the foregoing storage media include: U disks, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, which can store program codes.
  • the terminal proposed in the embodiment of the present application receives the service provider name SPN file from the update server, and the SPN file stores a correspondence table between the test SPN and the network identifier; when the registration with the first network is detected, the test SPN and the network identifier are detected.
  • the first SPN corresponding to the first network identifier is searched in the correspondence relationship table, and the first network identifier is a network identifier corresponding to the first network; and the first SPN is displayed in a status bar of a current display interface. It can be seen that the terminal proposed in the embodiment of the present application maintains a test SPN and network identifier correspondence table in the update server, and the test SPN and network correspondence table stores the correspondence between the tested SPN and the network.
  • the terminal When the terminal detects registration to the first network, the terminal searches for the first SPN corresponding to the first network identifier according to the SPN file obtained from the update server, and displays the first SPN in the status bar of the current display interface. During the process, the terminal obtains the correspondence between the tested SPN and the network from the update server without modifying the SPN.xml file in the terminal configuration file, and carries out the variant version and OTA software upgrade process, thereby simplifying the correct display of the terminal.
  • the SPN steps shorten the time taken for the terminal to display the correct SPN.
  • An embodiment of the present application provides a storage medium.
  • the storage medium stores one or more programs.
  • the one or more programs can be executed by one or more processors and applied to a terminal.
  • the programs are implemented when the programs are executed by the processors. The method as described in the above embodiment.
  • the method includes the following steps:
  • the correspondence relationship between the at least one test SPN and the network identifier is added to the storage container to form the correspondence table between the test SPN and the network identifier.
  • the first SPN corresponding to the first network identifier is searched from the test SPN and network identifier correspondence table, and the one or more programs are processed by the one or more processors. Execute to achieve the following steps:
  • the storage container is called, and the correspondence table between the test SPN and the network identifier is parsed from the storage container, and the one or more programs are processed by the one or more.
  • the network identifier is a public land mobile network PLMN number.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) containing computer-usable program code.
  • a computer-usable storage media including, but not limited to, disk storage, optical storage, and the like
  • These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions Means for realizing the functions specified in a process flow diagram or a plurality of flow diagrams and / or a block diagram or a block or flow diagrams of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in the implementation flow diagram, one flow or multiple flows, and / or the block diagram, one block or multiple blocks.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in implementing one or more of the flowcharts and / or one or more of the block diagrams of the block diagrams.
  • An embodiment of the present application provides a display method, a terminal, and a storage medium, which are applied to a terminal.
  • the terminal is connected to an update server and receives a service provider name SPN file from the update server.
  • the SPN file stores a test SPN and a network identifier.
  • Correspondence table when detecting registration to the first network, look up the first SPN corresponding to the first network identifier from the test SPN and network identifier correspondence table, where the first network identifier is the network identifier corresponding to the first network;
  • An SPN is displayed in the status bar of the current display interface.
  • a correspondence table between a test SPN and a network identifier is maintained in the update server, and the correspondence table between the tested SPN and the network stores the correspondence between the tested SPN and the network.
  • the terminal detects registration to the first network, the terminal searches for the first SPN corresponding to the first network identifier according to the SPN file obtained from the update server, and displays the first SPN in the status bar of the current display interface.
  • the terminal obtains the correspondence between the tested SPN and the network from the update server without modifying the SPN.xml file in the terminal configuration file, and carries out the variant version and OTA software upgrade process, thereby simplifying the correct display of the terminal.
  • the SPN steps shorten the time taken for the terminal to display the correct SPN.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例公开了一种显示方法、终端及存储介质,应用于终端,终端与更新服务器进行通信连接,该方法可以包括:从更新服务器中接收服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表;当检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,第一网络标识为第一网络对应的网络标识;将第一SPN显示在当前显示界面的状态栏中。

Description

一种显示方法、终端及存储介质
相关申请的交叉引用
本申请基于申请号为201810859046.7、申请日为2018年07月31日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请涉及通信领域,尤其涉及一种显示方法、终端及存储介质。
背景技术
运营商名称(SPN,Service Provide Name)就是当前发行用户身份识别卡(SIM,Subscriber Identification Module)的运营商的名称,SPN需满足全球移动通信系统联盟(GSMA,Global System for Mobile Communications Alliance)协议规定名字,当终端漫游到其他国家并注册到公共陆地移动网络(PLMN,Public Land Mobile Network)时,由于终端维护的SPN.xml文件中存储的网络运营商有限,会导致SPN不符合GSMA协议规定,此时,SPN的显示错误,维护人员需要按照GSMA协议规定的运营商名字修改SPN.xml文件,在修改完成后编译版本,并进行空中下载技术(OTA,Over–the–Air Technology)软件升级,以在终端的状态栏正确显示SPN,如此,会导致终端显示正确的SPN的步骤繁琐,耗时长。
发明内容
本申请实施例提供一种显示方法、终端及存储介质,能够简化终端显示正确的SPN的步骤,缩短终端显示正确的SPN的耗时。
本申请的技术方案是这样实现的:
本申请实施例提供一种显示方法,应用于终端,所述终端与更新服务器进行连接,所述方法包括:
从所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;
当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
将所述第一SPN显示在当前显示界面的状态栏中。
在上述方法中,所述从所述更新服务器中接收服务提供商名称SPN文件之后,所述从所述SPN列表中查找第一网络标识对应的第一SPN之前,所述方法还包括:
将所述SPN文件更新至更新数据库中;
解析SPN文件,得到至少一项测试SPN与网络标识对应关系;
将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
在上述方法中,所述从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,包括:
获取所述第一网络对应的所述第一网络标识;
调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;
从所述至少一项测试SPN与网络标识对应关系中,查找与所述第一网络标识对应的所述第一SPN。
在上述方法中,所述调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表,包括:
从配置文件中查找初始SPN与网络标识对应关系表;
当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;
从所述存储容器中解析所述测试SPN与网络标识对应关系表。
在上述方法中,所述网络标识为公共陆地移动网络PLMN号码。
本申请实施例提供一种终端,所述终端与更新服务器进行连接,所述终端包括:处理器、接收器、显示器存储器及通信总线,所述接收器,配置于从所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;所述处理器配置于执行所述存储器中存储的运行程序,以实现以下步骤:
当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
所述显示器,配置于将所述第一SPN显示在当前显示界面的状态栏中。
在上述终端中,所述处理器,还配置于将所述SPN文件更新至更新数据库中;解析SPN文件,得到至少一项测试SPN与网络标识对应关系;将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
在上述终端中,所述处理器,还配置于获取所述第一网络对应的所述第一网络标识;调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;从所述至少一项测试SPN与网络标识对应关系中, 查找与所述第一网络标识对应的所述第一SPN。
在上述终端中,所述处理器,还配置于从配置文件中查找初始SPN与网络标识对应关系表;当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;从所述存储容器中解析所述测试SPN与网络标识对应关系表。
在上述终端中,所述网络标识为公共陆地移动网络PLMN号码。
本申请实施例提供一种存储介质,其上存储有计算机程序,应用于终端,该计算机程序被处理器执行时实现如上述任一项显示方法。
本申请实施例提供了一种显示方法、终端及存储介质,应用于终端,该终端与更新服务器进行连接,从更新服务器中接收服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表;当检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,第一网络标识为第一网络对应的网络标识;将第一SPN显示在当前显示界面的状态栏中。采用上述方法实现方案,更新服务器中维护了一张测试SPN与网络标识对应关系表,该测试SPN与网络对应关系表中存储了测试到的SPN与网络的对应关系,当终端检测出注册到第一网络时,终端根据从更新服务器中获取到的SPN文件中查找第一网络标识对应的第一SPN,并将第一SPN显示在当前显示界面的状态栏中,在此过程中,终端从更新服务器中获取测试到的SPN与网络的对应关系,而无需修改终端配置文件中的SPN.xml文件,并进行变异版本和OTA软件升级的过程,从而简化了终端显示正确的SPN的步骤,缩短了终端显示正确的SPN的耗时。
附图说明
图1为本申请实施例提供的一种显示方法的流程图一;
图2为本申请实施例提供的一种示例性的终端显示SPN的界面显示图;
图3为本申请实施例提供的一种显示方法的流程图二;
图4为本申请实施例提供的一种示例性的显示方法的流程图;
图5为本申请实施例提供的一种终端1的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
在一实施例中,本申请实施例提供一种显示方法,如图1所示,应用于终端,终端与更新服务器进行连接,该方法可以包括:
S101、从更新服务器中接收服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表。
本申请实施例提供的一种显示方法适用于在终端状态栏上显示SPN的场景下。
本申请实施例中,更新服务器为根更新系统(RUS,Root Update System)服务器。
本申请实施例中,当终端在数据网络或者无线网络下,自动与RUS服务器建立连接。
本申请实施例中,测试人员测试不同PLMN号码对应的不同SPN,将测试得到的PLMN号码和SPN对应关系组成一个SPN文件,存储在RUS服务器。
本申请实施例中,SPN文件格式为SPN.xml文件。
本申请实施例中,在RUS服务器更新了SPN文件之后,RUS服务器将RUS文件发送至终端AP侧,终端的应用处理器(AP,Application Processor)侧将SPN.xml文件保存至更新数据库中,并解析XML文件,得到至少一项测试SPN与网络标识对应关系,将至少一项测试SPN与网络标识对应关系添加至存储容器中,以组成测试SPN与网络标识对应关系表。
本申请实施例中,存储容器为HashMap容器。
S102、当检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,第一网络标识为第一网络对应的网络标识。
当终端从更新服务器中接收到SPN文件之后,终端就要在检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN了。
本申请实施例中,当终端驻留在第一网络时,终端查找第一网络对应的第一网络标识。
本申请实施例中,网络标识为PLMN号码。
本申请实施例中,终端调用HashMap容器,并从HashMap容器中解析出测试SPN与网络标识对应关系表,之后,终端从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN。
示例性的,测试SPN与网络标识对应关系表如表1所示:
表1 PLMN与SPN对应关系表
numeric= spn=
46000 CHIAN MOBILE
46001 CHN-UNICOM
46002 CHINA MOBILE
46003 CHINA TELECOM
46007 CHINA MOBILE
46008 CHINA MOBILE
46009 CHN-UNICOM
其中,numeric为PLMN对应的号码,表1中存储的这些项是针对中国区的SPN,每一项都包含两个元素,PLMN和SPN;当终端确定出当前驻留的网络的PLMN为46001时,终端从表1中确定出SPN为CHINA-UNICOM。
S103、将第一SPN显示在当前显示界面的状态栏中。
当终端从测试SPN与网络标识对应关系表中查找到第一网络标识对应的第一SPN之后,终端就要将第一SPN显示在当前显示界面的状态栏中了。
本申请实施例中,终端按照第一SPN的显示形式,当前显示界面的状态栏中显示第一SPN。
示例性的,如图2所示,当确定出第一SPN为“CHINA MOBILE”字串时,查找“CHINA MOBILE”字串的显示形式为“中国移动”,此时,在手机的当前显示界面的左上角显示“中国移动”。
可以理解的是,更新服务器中维护了一张测试SPN与网络标识对应关系表,该测试SPN与网络对应关系表中存储了测试到的SPN与网络的对应关系,当终端检测出注册到第一网络时,终端根据从更新服务器中获取到的SPN文件中查找第一网络标识对应的第一SPN,并将第一SPN显示在当前显示界面的状态栏中,在此过程中,终端从更新服务器中获取测试到的SPN与网络的对应关系,而无需修改终端配置文件中的SPN.xml文件,并进行变异版本和OTA软件升级的过程,从而简化了终端显示正确的SPN的步骤,缩短了终端显示正确的SPN的耗时。
基于上述实施例,在本申请的又一实施例中,本申请实施例提供一种显示方法,如图3所示,终端与更新服务器进行连接,该方法可以包括:
S201、更新服务器向终端发送服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表。
本申请实施例提供的一种显示方法适用于在终端状态栏上显示SPN的场景下。
本申请实施例中,当终端在数据网络或者无线网络下,自动与RUS服务器建立连接。
本申请实施例中,测试人员测试不同PLMN号码对应的不同SPN,将测试得到的PLMN号码和SPN对应关系组成一个SPN文件,存储在RUS服务器。
本申请实施例中,SPN文件格式为SPN.xml文件。
S202、终端将SPN文件更新至更新数据库中。
当终端从更新服务器接收到SPN文件之后,终端就要将SPN文件更新至更新数据库中了。
本申请实施例中,在RUS服务器更新了SPN文件之后,RUS服务器将RUS文件发送至终端AP侧,终端AP侧将SPN.xml文件保存至更新数据库中。
本申请实施例中,终端从SPN.xml文件中查找更新数据库中未存储的测试SPN与网络标识对应关系,并将未存储的测试SPN与网络标识对应关系更新至更新数据库中,此时更新数据库中存储的时更新后的SPN.xml文件。
S203、终端解析SPN文件,得到至少一项测试SPN与网络标识对应关系。
当终端将SPN文件更新至更新数据库中之后,终端就要解析SPN文件,得到至少一项测试SPN与网络标识对应关系了。
本申请实施例中,终端在将SPN文件更新至更新数据库中之后,终端在AP侧解析SPN文件,得到至少一项测试SPN与网络标识对应关系。
S204、终端将至少一项测试SPN与网络标识对应关系添加至存储容器中,组成测试SPN与网络标识对应关系表。
当终端得到至少一项测试SPN与网络标识对应关系之后,终端就要将至少一项测试SPN与网络标识对应关系添加至存储容器中,组成测试SPN与网络标识对应关系表了。
本申请实施例中,终端将至少一项测试SPN与网络标识对应关系添加至存储容器中,以组成测试SPN与网络标识对应关系表。
本申请实施例中,存储容器为HashMap容器。
S205、当终端检测出注册到第一网络时,终端从配置文件中查找初始SPN与网络标识对应关系表,第一网络标识为第一网络对应的网络标识。
当终端将至少一项测试SPN与网络标识对应关系添加至存储容器中,组成测试SPN与网络标识对应关系表之后,终端就要在检测出注册到第一网络时,从配置文件中查找初始SPN与网络标识对应关系表了。
本申请实施例中,当终端驻留在第一网络时,终端查找第一网络对应的第一网络标识。
本申请实施例中,网络标识为PLMN号码。
本申请实施例中,终端从配置文件中查找开发人员预先存储在终端中的初始SPN与网络标识对应关系表。
本申请实施例中,开发人员将所有初始SPN存入spn-conf.xml文件中,在编译时会将其拷贝到out的system\etc\目录中,在初始化时将etc/spn-conf.xml文件加载进来,进行XML解析,把每一项存入 mCarrierSpnMap的HashMap中。
S206、当终端未从初始SPN与网络标注对应关系表中查找到第一SPN时,终端从存储容器中解析测试SPN与网络标识对应关系表。
当终端从配置文件中查找初始SPN与网络标识对应关系表之后,终端就要从初始SPN与网络标注对应关系表中查找第一SPN了,当终端未从初始SPN与网络标注对应关系表中查找到第一SPN时,终端就要从存储容器中解析测试SPN与网络标识对应关系表了。
本申请实施例中,终端从初始SPN与网络标注对应关系表中查找第一网络标识对应的第一SPN。
具体的,终端在system\etc\目录下查找注册到第一PLMN(第一网络标识)对应的第一SPN。
本申请实施例中,当终端未从初始SPN与网络标注对应关系表中查找到第一SPN时,终端从存储容器中解析测试SPN与网络标识对应关系表。
本申请实施例中,终端调用HashMap容器,并从HashMap容器中解析出测试SPN与网络标识对应关系表。
S207、终端从至少一项测试SPN与网络标识对应关系中,查找与第一网络标识对应的第一SPN。
当终端从存储容器中解析测试SPN与网络标识对应关系表之后,终端就要从至少一项测试SPN与网络标识对应关系中,查找与第一网络标识对应的第一SPN了。
本申请实施例中,终端从测试SPN与网络标识对应关系表中的至少一项测试SPN与网络标识对应关系中,查找与第一网络标识对应的第一SPN。
示例性的,测试SPN与网络标识对应关系表如表1所示:
表1 PLMN与SPN对应关系表
numeric= spn=
46000 CHIAN MOBILE
46001 CHN-UNICOM
46002 CHINA MOBILE
46003 CHINA TELECOM
46007 CHINA MOBILE
46008 CHINA MOBILE
46009 CHN-UNICOM
其中,numeric为PLMN对应的号码,表1中存储的这些项是针对中国区的SPN,每一项都包含两个元素,PLMN和SPN;当终端确定出当前驻留的网络的PLMN为46001时,终端从表1中确定出SPN为CHINA-UNICOM。
S208、终端将第一SPN显示在当前显示界面的状态栏中。
当终端从至少一项测试SPN与网络标识对应关系中,查找与第一网络标识对应的第一SPN之后,终端即将要将第一SPN显示在当前显示界面的 状态栏中了。
本申请实施例中,终端按照第一SPN的显示形式,当前显示界面的状态栏中显示第一SPN。
示例性的,如图2所示,当确定出第一SPN为“CHINA MOBILE”时,在当前显示界面的左上角显示“中国移动”。
示例性的,如图4所示,终端显示SPN的流程为:
1、PhoneAPP(终端应用处理器侧)从服务器获取Spn.xml(服务提供商名称文件)数据,并将Spn.xml数据保存到ROMUPDATE.db(只读内存更新数据库)中。
2、PhoneAPP判断ROMUPDATE.db中是否包括Spn.xml数据。
3、当ROMUPDATE.db中不包括Spn.xml数据时,返回1。
4、当ROMUPDATE.db中包括Spn.xml数据时,PhoneAPP保存Spn.xml数据到手机,并解析XML文件,组成HashMap(哈希映射)容器,并转到7执行。
5、当SIM(用户身份识别卡)卡注册到plmn(公共陆地移动网络)时,终端在/etc目录下的Spn.xml查找注册到plmn对应的Spn。
6、当终端在/etc目录下的Spn.xml查找到注册到plmn对应的Spn时,执行9。
7、终端调用HashMap容器中的HashMap数据,并进行解析。
8、终端从解析出的Spn数据中查找注册到plmn对应的Spn。
9、终端在状态栏显示显示Spn。
可以理解的是,更新服务器中维护了一张测试SPN与网络标识对应关系表,该测试SPN与网络对应关系表中存储了测试到的SPN与网络的对应关系,当终端检测出注册到第一网络时,终端根据从更新服务器中获取到的SPN文件中查找第一网络标识对应的第一SPN,并将第一SPN显示在当前显示界面的状态栏中,在此过程中,终端从更新服务器中获取测试到的SPN与网络的对应关系,而无需修改终端配置文件中的SPN.xml文件,并进行变异版本和OTA软件升级的过程,从而简化了终端显示正确的SPN的步骤,缩短了终端显示正确的SPN的耗时。
基于上述实施例,在本申请的又一实施例中,图5为本申请实施例提出的终端1的组成结构示意图一,在实际应用中,基于上述实施例的同一发明构思下,如图5所示,本申请实施例的终端1包括:处理器10、存储器11、接收器12、显示器13及通信总线14。在具体的实施例的过程中,上述处理器10可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理器(DSP,Digital Signal Processor)、数字信号处理终端(DSPD,Digital Signal Processing Device)、可编程逻辑终端(PLD,Programmable Logic Device)、现场可编程门阵列(FPGA,Field Programmable Gate Array)、CPU、控制器、微控制器、微处理器中的至少 一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。终端1还可以包括存储器11,该存储器11可以与处理器10连接,其中,存储器11配置于存储可执行程序代码,该程序代码包括计算机操作指令,存储器11可能包含高速RAM存储器,也可能还包括非易失性存储器,例如,至少两个磁盘存储器。
在本申请的实施例中,上述通信总线14配置于实现处理器10、存储器11、接收器12和显示器13之间的连接通信;上述接收器12,配置于所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;上述处理器10配置于执行存储器11中存储的运行程序,以实现以下步骤:
当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
上述显示器13,配置于将所述第一SPN显示在当前显示界面的状态栏中。
在本申请实施例中,进一步地,上述处理器10,还配置于将所述SPN文件更新至更新数据库中;解析SPN文件,得到至少一项测试SPN与网络标识对应关系;将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
在本申请实施例中,进一步地,上述处理器10,还配置于获取所述第一网络对应的所述第一网络标识;调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;从所述至少一项测试SPN与网络标识对应关系中,查找与所述第一网络标识对应的所述第一SPN。
在本申请实施例中,进一步地,上述处理器10,还配置于从配置文件中查找初始SPN与网络标识对应关系表;当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;从所述存储容器中解析所述测试SPN与网络标识对应关系表。
在本申请实施例中,进一步地,所述网络标识为公共陆地移动网络PLMN号码。
在实际应用中,上述存储器11可以是易失性第一存储器(volatile memory),例如随机存取第一存储器(Random-Access Memory,RAM);或者非易失性第一存储器(non-volatile memory),例如只读第一存储器(Read-Only Memory,ROM),快闪第一存储器(flash memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的第一存储器的组合,并向处理器110提供指令和数据。
另外,在本实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模 块的形式实现。
集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本申请实施例提出的终端,从更新服务器中接收服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表;当检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,第一网络标识为第一网络对应的网络标识;将第一SPN显示在当前显示界面的状态栏中。由此可见,本申请实施例提出的终端,更新服务器中维护了一张测试SPN与网络标识对应关系表,该测试SPN与网络对应关系表中存储了测试到的SPN与网络的对应关系,当终端检测出注册到第一网络时,终端根据从更新服务器中获取到的SPN文件中查找第一网络标识对应的第一SPN,并将第一SPN显示在当前显示界面的状态栏中,在此过程中,终端从更新服务器中获取测试到的SPN与网络的对应关系,而无需修改终端配置文件中的SPN.xml文件,并进行变异版本和OTA软件升级的过程,从而简化了终端显示正确的SPN的步骤,缩短了终端显示正确的SPN的耗时。
本申请实施例提供一种存储介质,上述存储介质存储有一个或者多个程序,上述一个或者多个程序可被一个或者多个处理器执行,应用于终端中,该程序被处理器执行时实现如上述实施例所述的方法。
具体来讲,本实施例中的一种显示方法对应的程序指令被一电子设备读取或被执行时,包括如下步骤:
从所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;
当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
将所述第一SPN显示在当前显示界面的状态栏中。
在本申请的实施例中,进一步地,从所述更新服务器中接收服务提供商名称SPN文件之后,从所述SPN列表中查找第一网络标识对应的第一SPN之前,上述一个或者多个程序被上述一个或者多个处理器执行,还实现以下步骤:
将所述SPN文件更新至更新数据库中;
解析SPN文件,得到至少一项测试SPN与网络标识对应关系;
将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
在本申请的实施例中,进一步地,所述从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,上述一个或者多个程序被上述一个或者多个处理器执行,具体实现以下步骤:
获取所述第一网络对应的所述第一网络标识;
调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;
从所述至少一项测试SPN与网络标识对应关系中,查找与所述第一网络标识对应的所述第一SPN。
在本申请的实施例中,进一步地,所述调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表,上述一个或者多个程序被上述一个或者多个处理器执行,具体实现以下步骤:
从配置文件中查找初始SPN与网络标识对应关系表;
当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;
从所述存储容器中解析所述测试SPN与网络标识对应关系表。
在本申请的实施例中,进一步地,所述网络标识为公共陆地移动网络PLMN号码。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器 执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。
工业实用性
本申请实施例提供了一种显示方法、终端及存储介质,应用于终端,该终端与更新服务器进行连接,从更新服务器中接收服务提供商名称SPN文件,SPN文件中储存有测试SPN与网络标识对应关系表;当检测出注册到第一网络时,从测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,第一网络标识为第一网络对应的网络标识;将第一SPN显示在当前显示界面的状态栏中。由此可见,在本申请的实施例中,更新服务器中维护了一张测试SPN与网络标识对应关系表,该测试SPN与网络对应关系表中存储了测试到的SPN与网络的对应关系,当终端检测出注册到第一网络时,终端根据从更新服务器中获取到的SPN文件中查找第一网络标识对应的第一SPN,并将第一SPN显示在当前显示界面的状态栏中,在此过程中,终端从更新服务器中获取测试到的SPN与网络的对应关系,而无需修改终端配置文件中的SPN.xml文件,并进行变异版本和OTA软件升级的过程,从而简化了终端显示正确的SPN的步骤,缩短了终端显示正确的SPN的耗时。

Claims (11)

  1. 一种显示方法,应用于终端,所述终端与更新服务器进行连接,所述方法包括:
    从所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;
    当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
    将所述第一SPN显示在当前显示界面的状态栏中。
  2. 根据权利要求1所述的方法,其中,所述从所述更新服务器中接收服务提供商名称SPN文件之后,所述从所述SPN列表中查找第一网络标识对应的第一SPN之前,所述方法还包括:
    将所述SPN文件更新至更新数据库中;
    解析SPN文件,得到至少一项测试SPN与网络标识对应关系;
    将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
  3. 根据权利要求2所述的方法,其中,所述从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,包括:
    获取所述第一网络对应的所述第一网络标识;
    调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;
    从所述至少一项测试SPN与网络标识对应关系中,查找与所述第一网络标识对应的所述第一SPN。
  4. 根据权利要求3所述的方法,其中,所述调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表,包括:
    从配置文件中查找初始SPN与网络标识对应关系表;
    当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;
    从所述存储容器中解析所述测试SPN与网络标识对应关系表。
  5. 根据权利要求1-4任一项所述的方法,其中,所述网络标识为公共陆地移动网络PLMN号码。
  6. 一种终端,所述终端与更新服务器进行连接,所述终端包括:处理器、接收器、显示器存储器及通信总线,所述接收器,配置于从所述更新服务器中接收服务提供商名称SPN文件,所述SPN文件中储存有测试SPN与网络标识对应关系表;所述处理器配置于执行所述存储器中存储的运行程序,以实现以下步骤:
    当检测出注册到第一网络时,从所述测试SPN与网络标识对应关系表中查找第一网络标识对应的第一SPN,所述第一网络标识为所述第一网络对应的网络标识;
    所述显示器,配置于将所述第一SPN显示在当前显示界面的状态栏中。
  7. 根据权利要求6所述的终端,其中,
    所述处理器,还配置于将所述SPN文件更新至更新数据库中;解析SPN文件,得到至少一项测试SPN与网络标识对应关系;将所述至少一项测试SPN与网络标识对应关系添加至存储容器中,组成所述测试SPN与网络标识对应关系表。
  8. 根据权利要求7所述的终端,其中,
    所述处理器,还配置于获取所述第一网络对应的所述第一网络标识;调用所述存储容器,从所述存储容器中解析所述测试SPN与网络标识对应关系表;从所述至少一项测试SPN与网络标识对应关系中,查找与所述第一网络标识对应的所述第一SPN。
  9. 根据权利要求8所述的终端,其中,
    所述处理器,还配置于从配置文件中查找初始SPN与网络标识对应关系表;当未从所述初始SPN与网络标注对应关系表中查找到所述第一SPN时,调用所述存储容器;从所述存储容器中解析所述测试SPN与网络标识对应关系表。
  10. 根据权利要求6-9任一项所述的终端,其中,所述网络标识为公共陆地移动网络PLMN号码。
  11. 一种存储介质,其上存储有计算机程序,应用于终端,该计算机程序被处理器执行时实现如权利要求1-5任一项所述的方法。
PCT/CN2019/088980 2018-07-31 2019-05-29 一种显示方法、终端及存储介质 WO2020024687A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810859046.7 2018-07-31
CN201810859046.7A CN109068311A (zh) 2018-07-31 2018-07-31 一种显示方法、终端及存储介质

Publications (1)

Publication Number Publication Date
WO2020024687A1 true WO2020024687A1 (zh) 2020-02-06

Family

ID=64832101

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/088980 WO2020024687A1 (zh) 2018-07-31 2019-05-29 一种显示方法、终端及存储介质

Country Status (2)

Country Link
CN (1) CN109068311A (zh)
WO (1) WO2020024687A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068311A (zh) * 2018-07-31 2018-12-21 Oppo广东移动通信有限公司 一种显示方法、终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602317A (zh) * 2014-12-31 2015-05-06 小米科技有限责任公司 服务提供商的显示方法、装置及移动终端
CN105592443A (zh) * 2014-10-22 2016-05-18 中国移动通信集团公司 基于空中下载技术的终端名称显示更新方法、设备及系统
US20170347220A1 (en) * 2016-05-24 2017-11-30 Blackberry Limited Customization of device configuration settings
CN107634845A (zh) * 2017-07-18 2018-01-26 深圳市有方科技股份有限公司 运营商网络的适配方法及设备
CN109068311A (zh) * 2018-07-31 2018-12-21 Oppo广东移动通信有限公司 一种显示方法、终端及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370877C (zh) * 2004-09-28 2008-02-20 华为技术有限公司 一种显示当前网络运营商信息的方法
CN107391544B (zh) * 2017-05-24 2020-06-30 阿里巴巴集团控股有限公司 列式存储数据的处理方法、装置、设备及计算机储存介质
CN109408132A (zh) * 2017-08-15 2019-03-01 腾讯科技(深圳)有限公司 一种配置文件处理方法及服务器、用户终端、存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592443A (zh) * 2014-10-22 2016-05-18 中国移动通信集团公司 基于空中下载技术的终端名称显示更新方法、设备及系统
CN104602317A (zh) * 2014-12-31 2015-05-06 小米科技有限责任公司 服务提供商的显示方法、装置及移动终端
US20170347220A1 (en) * 2016-05-24 2017-11-30 Blackberry Limited Customization of device configuration settings
CN107634845A (zh) * 2017-07-18 2018-01-26 深圳市有方科技股份有限公司 运营商网络的适配方法及设备
CN109068311A (zh) * 2018-07-31 2018-12-21 Oppo广东移动通信有限公司 一种显示方法、终端及存储介质

Also Published As

Publication number Publication date
CN109068311A (zh) 2018-12-21

Similar Documents

Publication Publication Date Title
US10187798B2 (en) Terminal device having subscriber identity device and method for selecting profile thereof
US9391836B2 (en) Method and terminal for loading operator configuration information
US10216925B2 (en) Virus protection method and device
US20200267534A1 (en) Methods and systems for configuring radio frequency module
CN105188048A (zh) 一种移动终端加载定制应用的方法、装置及终端设备
CN109117172B (zh) 一种目标终端的终端版本号识别的方法及装置
US20200322473A1 (en) Call Processing Method and Mobile Terminal
CN108460271B (zh) 终端识别方法及装置
JP2012514439A (ja) マルチプル無線インターフェースデバイスのための信号スキャニングおよび信号捕捉のための方法および装置
WO2017193459A1 (zh) 注册方法、装置及终端
WO2021121271A1 (zh) 运营商配置文件加载方法及装置、移动终端及存储介质
WO2017181623A1 (zh) 虚拟sim卡的网络注册方法及终端
AU2022291604B2 (en) Terminal configuration method and apparatus
US20170180910A1 (en) Loop Avoidance in Middle-Node-to-Middle-Node Registration in M2M Networks
WO2016095371A1 (zh) 更新移动网络信息的方法和装置、实现选网的方法和装置
WO2020024687A1 (zh) 一种显示方法、终端及存储介质
CN105682217B (zh) 网络注册方法、网络注册装置和终端
WO2024130943A1 (zh) 一种通讯设备入网方法和系统
CN112784318A (zh) 一种生成设备唯一识别码的方法、装置和存储介质
CN110764809A (zh) Ota升级apn方法、装置、设备和介质
WO2023273289A1 (zh) Sim卡的防盗方法和装置
CN112423288B (zh) 拨号分析方法、装置、计算机设备和存储介质
CN105511851B (zh) 一种扩展安卓系统资源加载的方法
CN108595292A (zh) 一种系统的优化方法、移动终端及计算机存储介质
KR102371839B1 (ko) 통신 프로파일들의 라이프 사이클들을 관리하는 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19843414

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19843414

Country of ref document: EP

Kind code of ref document: A1