CN107395760B - Method and device for loading configuration file - Google Patents

Method and device for loading configuration file Download PDF

Info

Publication number
CN107395760B
CN107395760B CN201710752733.4A CN201710752733A CN107395760B CN 107395760 B CN107395760 B CN 107395760B CN 201710752733 A CN201710752733 A CN 201710752733A CN 107395760 B CN107395760 B CN 107395760B
Authority
CN
China
Prior art keywords
configuration file
iccid
identifier
configuration
network
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710752733.4A
Other languages
Chinese (zh)
Other versions
CN107395760A (en
Inventor
崔恒彬
代琳
孙龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710752733.4A priority Critical patent/CN107395760B/en
Publication of CN107395760A publication Critical patent/CN107395760A/en
Application granted granted Critical
Publication of CN107395760B publication Critical patent/CN107395760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The disclosure relates to a method and a device for loading a configuration file, and belongs to the technical field of communication. The method comprises the following steps: the method comprises the steps of obtaining an ICCID of an SIM card assembled by a terminal, obtaining a first configuration file corresponding to the ICCID from a configuration file set, loading the first configuration file, obtaining network attribution information recorded in the SIM card, wherein the network attribution information comprises MCC and MNC, obtaining a second configuration file corresponding to the network attribution information from the configuration file set, and loading the second configuration file if the first configuration file is different from the second configuration file. According to the method and the device, after the corresponding configuration file is loaded according to the ICCID of the SIM card, whether the loaded configuration file is accurate or not is verified according to the MCC and the MNC recorded in the SIM card, so that the correct configuration file can be loaded.

Description

Method and device for loading configuration file
Technical Field
The embodiment of the disclosure relates to the technical field of communication, in particular to a method and a device for loading a configuration file.
Background
With the popularization of mobile phones, more and more mobile phones can support multiple operators compatibly, and different configuration files, such as dialing files, network files and the like, need to be used when the mobile phones access different operator networks.
In the related art, a Subscriber Identity Module (SIM) card is a chip that stores information of a mobile phone Subscriber, an encrypted key, and contents of a user's phone book. The mobile phone obtains a configuration file of an operator corresponding to the SIM Card by detecting an Integrated Circuit Card Identity (ICCID) of the SIM Card.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for loading a configuration file. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for loading a configuration file, the method including:
obtaining an ICCID of an SIM card assembled by a terminal;
acquiring a first configuration file corresponding to the ICCID from a configuration file set, wherein the configuration file set comprises configuration files corresponding to a plurality of operators, and the configuration files are used for supporting the terminal to access to networks provided by the operators corresponding to the configuration files;
loading the first configuration file;
acquiring Network attribution information recorded in the SIM card, wherein the Network attribution information comprises a Mobile Country Code (MCC) and a Mobile Network Code (MNC);
acquiring a second configuration file corresponding to the network attribution information from the configuration file set;
and if the first configuration file is different from the second configuration file, loading the second configuration file.
Optionally, the obtaining the first configuration file corresponding to the ICCID from the configuration file set includes:
acquiring an operator code in the ICCID, wherein the operator code is used for indicating an operator corresponding to the ICCID;
searching and acquiring a first identifier corresponding to an operator code in the ICCID from a first preset corresponding relation, wherein the first preset corresponding relation comprises the corresponding relation between the operator code and the identifier of the configuration file;
and acquiring the first configuration file corresponding to the first identifier from the configuration file set.
Optionally, the obtaining a second configuration file corresponding to the network attribution information from the configuration file set includes:
searching and acquiring a second identifier corresponding to the network attribution information from a second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the network attribution information and the identifier of the configuration file;
and acquiring the second configuration file corresponding to the second identifier from the configuration file set.
Optionally, the method further comprises:
and if the first configuration file corresponding to the ICCID is not acquired from the configuration file set, loading a general configuration file, wherein the general configuration file refers to a configuration file which can support the network accessing any operator and use the basic service function.
Optionally, the method further comprises:
and storing the corresponding relation between the ICCID and the identifier of the second configuration file under the condition that the first configuration file and the second configuration file are different.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for loading a configuration file, the apparatus including:
a first acquisition module configured to acquire an ICCID of a SIM card mounted on a terminal;
a second obtaining module, configured to obtain a first configuration file corresponding to the ICCID from a configuration file set, where the configuration file set includes configuration files corresponding to multiple operators, and the configuration files are used to support the terminal to access to a network provided by the operator corresponding to the configuration files;
a loading module configured to load the first configuration file;
a third obtaining module, configured to obtain network attribution information recorded in the SIM card, where the network attribution information includes MCC and MNC;
a fourth obtaining module configured to obtain a second configuration file corresponding to the network attribution information from the configuration file set;
the loading module is further configured to load the second configuration file when the first configuration file and the second configuration file are different.
Optionally, the second obtaining module includes:
a first obtaining sub-module configured to obtain an operator code in the ICCID, where the operator code is used to indicate an operator corresponding to the ICCID;
a second obtaining sub-module, configured to search and obtain a first identifier corresponding to an operator code in the ICCID from a first preset corresponding relationship, where the first preset corresponding relationship includes a corresponding relationship between the operator code and an identifier of the configuration file;
a third obtaining sub-module configured to obtain the first configuration file corresponding to the first identifier from the configuration file set.
Optionally, the fourth obtaining module includes:
a fourth obtaining sub-module, configured to search for and obtain a second identifier corresponding to the network attribution information from a second preset corresponding relationship, where the second preset corresponding relationship includes a corresponding relationship between the network attribution information and an identifier of the configuration file;
a fifth obtaining sub-module configured to obtain the second configuration file corresponding to the second identifier from the configuration file set.
Optionally, the loading module is further configured to, in a case that the first configuration file corresponding to the ICCID is not acquired from the configuration file set, load a general configuration file, where the general configuration file refers to a configuration file that can support accessing to a network of an arbitrary operator and use a basic service function.
Optionally, the apparatus further comprises:
a recording module configured to store a correspondence between the ICCID and an identifier of the second configuration file when the first configuration file and the second configuration file are different.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for loading a configuration file, the apparatus including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
obtaining an ICCID of an SIM card assembled by a terminal;
acquiring a first configuration file corresponding to the ICCID from a configuration file set, wherein the configuration file set comprises configuration files corresponding to a plurality of operators, and the configuration files are used for supporting the terminal to access to networks provided by the operators corresponding to the configuration files;
loading the first configuration file;
acquiring network attribution information recorded in the SIM card, wherein the network attribution information comprises MCC (China center code) and MNC (China Mobile network center);
acquiring a second configuration file corresponding to the network attribution information from the configuration file set;
and loading the second configuration file under the condition that the first configuration file and the second configuration file are different.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
after loading the corresponding configuration file according to the ICCID of the SIM card, verifying whether the previously loaded configuration file is accurate according to the MCC and MNC recorded in the SIM card, so as to ensure that the terminal can load the correct configuration file. And, compared with acquiring MCC and MNC, ICCID can be acquired more quickly, so by loading the configuration file determined according to ICCID first, it is ensured that the service function of the operator can be provided to the user quickly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of loading a configuration file in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating an apparatus for loading configuration files in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating an apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, the mobile phone uses the wrong configuration file to access the network of the operator, so that the service functions provided by the operator are limited for the user. In the embodiment of the disclosure, a technical scheme for accurately acquiring a correct configuration file is provided.
In the method provided by the embodiment of the present disclosure, the execution subject of each step may be a terminal equipped with a SIM card, for example, the terminal may be a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a wearable device, and the like. For convenience of explanation, in the following method embodiments, only the execution subject of each step is described as a terminal, but the present invention is not limited thereto.
FIG. 1 is a flow diagram illustrating a method of loading a configuration file according to an exemplary embodiment, which may include the steps of:
in step 101, the ICCID of the SIM card assembled by the terminal is acquired.
And the terminal acquires the ICCID of the SIM card assembled at the terminal. The terminal detects whether the SIM card is assembled or not after being powered on and started up, and acquires the ICCID of the SIM card after detecting that the SIM card is assembled. The ICCID is a unique identification number of the SIM card, and is composed of 20 digits, where the first six digits are operator codes, for example, the operator code of the chinese mobile is: 898600 and 898602, the carrier codes of china unicom are: 898601 and 898609, carrier codes of chinese telecommunications are: 898603, and 898606.
In step 102, a first profile corresponding to the ICCID is obtained from a set of profiles.
The configuration file of the terminal stores the configuration files of a plurality of operators in a centralized way, and the configuration files are used for supporting the terminal to access the network provided by the operator corresponding to the configuration file, wherein the plurality of operators at least comprises two operators. The configuration file set comprises configuration files corresponding to a plurality of operators. And the terminal acquires a corresponding first configuration file according to the ICCID, wherein the first configuration file is one configuration file in a configuration file set.
Optionally, the terminal obtains an operator code in the ICCID, where the operator code is used to indicate an operator corresponding to the ICCID. One operator may correspond to one or more operator codes. When one operator corresponds to multiple operator codes, the multiple operator codes correspond to the same configuration file, that is, there is a one-to-one correspondence between the operators and the configuration files. After the terminal acquires the operator code, searching and acquiring a first identifier corresponding to the operator code in the ICCID from a first preset corresponding relation, wherein the first preset corresponding relation comprises the corresponding relation between the operator code and the identifier of the configuration file. And the terminal acquires a first configuration file corresponding to the first identifier from the configuration file set.
Illustratively, the first predetermined correspondence is shown in Table-1 below
Operator code Identification of configuration files
898600 001
898601 002
898603 003
TABLE-1
Let the operator code of ICCID be 898600, and the identifier of the corresponding profile in the first predetermined correspondence is 001, i.e. the first identifier. After the terminal acquires the first identifier 001, the terminal acquires a corresponding first configuration file from the configuration file set according to the first identifier. The first preset correspondence shown in the above table-1 is only exemplary and explanatory and is not intended to limit the present disclosure.
In step 103, a first configuration file is loaded.
And after the terminal acquires the first configuration file, loading the first configuration file, and accessing the network of the operator corresponding to the ICCID of the assembled SIM card according to the configuration information in the first configuration file. Illustratively, the configuration information includes frequency band information of an operator, carrier aggregation information, protocol version information, and Long Term Evolution (LTE) capability information, and the like.
Optionally, if the terminal does not obtain the first configuration file corresponding to the ICCID from the configuration file set, loading a general configuration file, where the general configuration file refers to a configuration file that can support accessing to a network of any operator and use basic service functions. Although the terminal can access any operator network through the common profile, it can only use the basic service functions provided by the one operator network it accesses. By the above way, it is ensured that the terminal can use the basic service functions provided by the operator, such as: a second Generation mobile phone communication specification (2-Generation wireless telephone Technology, 2G) network can be used.
It should be noted that the general profile can support access to a network of any one of a plurality of different operators, but the number of operator networks that the terminal accesses at a certain time through the general profile is one, that is, only one of any operator networks can be accessed at a time.
In step 104, the network attribution information recorded in the SIM card is acquired.
And the terminal acquires network attribution information in the assembled SIM card, wherein the network attribution information comprises MCC and MNC.
Because the terminal may load an incorrect configuration file only according to the target ICCID, the MCC and MNC are acquired to perform the detection steps described later, ensuring that the terminal loads a correct configuration file. MCC is uniformly assigned and managed by the international telecommunications union for indicating the country to which a mobile subscriber belongs, and consists of 3 digits. For example, MCC 460 in China. The MNC is used for indicating a mobile communication network to which a mobile user belongs, and is composed of 2-3 digits, and if multiple operators exist in one country, the operators of the SIM card are distinguished through the MNC, for example, China Mobile uses 00, 02, 04 and 07. Thus, the country and operator to which the SIM card belongs can be determined by the MCC and MNC.
In step 105, a second profile corresponding to the network attribution information is obtained from the set of profiles.
And the terminal acquires a corresponding second configuration file according to the network attribution information, wherein the second configuration file is one configuration file in the configuration file set.
Optionally, after obtaining the network attribution information, the terminal searches for a second identifier corresponding to the network attribution information from a second preset corresponding relationship, where the second preset corresponding relationship includes a corresponding relationship between the network attribution information and an identifier of the configuration file. And the terminal acquires a second configuration file corresponding to the second identifier from the configuration file set.
Illustratively, the second predetermined correspondence is shown in Table-2 below
MCC MNC Identification of configuration files
460 00 001
460 02 003
460 03 002
TABLE-2
Assuming that the network attribution information is 460 and 02, and the identifier of the configuration file corresponding to the network attribution information in the second preset corresponding relationship is 002, i.e. the second identifier, the terminal obtains the identifier 002, and the configuration file corresponding to the identifier 002 is the second configuration file. The second predetermined correspondence shown in the above table-2 is only exemplary and explanatory and is not intended to limit the present disclosure.
Optionally, if the terminal does not acquire the second configuration file corresponding to the network attribution information from the configuration file set, the process is ended.
In step 106, detecting whether the loaded configuration file and the second configuration file are the same; if yes, ending the process; if not, go to step 107.
Because the operator cannot strictly control the allocation of the ICCID of the SIM card, part of the SIMs cannot be allocated to the ICCID containing the operator code corresponding to the operator to which the SIM card belongs. For example, the operator code in the ICCID of a SIM card belonging to china mobile is the operator code of china unicom. Therefore, the terminal loads the wrong configuration file according to the ICCID.
The terminal detects whether the loaded configuration file is correct or not by detecting whether the loaded configuration file is the same as the second configuration file or not; if the configuration files are the same, the configuration files corresponding to the operators to which the SIM cards belong are loaded, namely the correct configuration files are loaded; if the configuration files are different, the configuration files with errors are loaded.
The loaded configuration file may be the first configuration file or the general configuration file.
Optionally, the terminal determines whether the loaded configuration file and the second configuration file are the same by detecting whether the identifier of the loaded configuration file and the identifier of the second configuration file are the same; if the identifications are the same. The loaded configuration file is the same as the second configuration file; and if the identifiers are not the same, the loaded configuration file is not the same as the second configuration file.
In step 107, a second configuration file is loaded.
And after the terminal acquires the second configuration file, loading the second configuration file, and accessing to the network of the operator corresponding to the network attribution information.
Optionally, in a case where the first configuration file and the second configuration file are different, the correspondence between the ICCID and the identifier of the second configuration file is stored. And the terminal records the corresponding relation between the ICCID and the identifier of the second configuration file into a third preset corresponding relation. After the terminal is started and detects the assembled SIM card, the terminal firstly searches whether the identifier of the configuration file corresponding to the ICCID exists in the third preset corresponding relation; if the identifier of the configuration file is obtained through searching, obtaining and loading the corresponding configuration file according to the identifier of the configuration file; if the identifier of the configuration file is not found and obtained, the step 102 is started to execute.
Illustratively, the identifier of the profile corresponding to the ICCID in the first preset correspondence is 001, while the first profile corresponding to the identifier 001 is different from the second profile obtained by the terminal according to the network attribution information, and the identifier of the second profile is 002, then the terminal stores the correspondence between the ICCID and the identifier 002 of the second profile in the third preset correspondence.
In the embodiment of the present disclosure, after loading the corresponding configuration file according to the ICCID of the SIM card, it is further verified whether the previously loaded configuration file is accurate according to the MCC and MNC recorded in the SIM card, so as to ensure that the terminal can load the correct configuration file. And, compared with acquiring MCC and MNC, ICCID can be acquired more quickly, so by loading the configuration file determined according to ICCID first, it is ensured that the service function of the operator can be provided to the user quickly.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 2 is a block diagram illustrating a device for loading a configuration file according to an exemplary embodiment, where the device has a function of implementing the above method example, and the function may be implemented by hardware or by hardware executing corresponding software. The apparatus may include: a first obtaining module 201, a second obtaining module 202, a third obtaining module 203, a fourth obtaining module 204 and a loading module 205.
A first obtaining module 201 configured to obtain an ICCID of a SIM card mounted by a terminal.
A second obtaining module 202, configured to obtain a first configuration file corresponding to the ICCID obtained by the first obtaining module 201 from a configuration file set, where the configuration file set includes configuration files corresponding to multiple operators, and the configuration file is used to support the terminal to access a network provided by the operator corresponding to the configuration file.
A loading module 205 configured to load the first configuration file acquired by the second acquiring module 202.
A third obtaining module 203, configured to obtain the network attribution information recorded in the SIM card, where the network attribution information includes MCC and MNC.
A fourth obtaining module 204, configured to obtain, from the set of profiles, a second profile corresponding to the network attribution information obtained by the third obtaining module 203.
The loading module 205 is further configured to load the second configuration file if the first configuration file acquired by the second acquiring module 202 is different from the second configuration file acquired by the fourth acquiring module 204.
In the embodiment of the present disclosure, after loading the corresponding configuration file according to the ICCID of the SIM card, it is further verified whether the previously loaded configuration file is accurate according to the MCC and MNC recorded in the SIM card, so as to ensure that the terminal can load the correct configuration file. And, compared with acquiring MCC and MNC, ICCID can be acquired more quickly, so by loading the configuration file determined according to ICCID first, it is ensured that the service function of the operator can be provided to the user quickly.
Optionally, the second obtaining module includes: a first acquisition submodule, a second acquisition submodule and a third acquisition submodule.
A first obtaining sub-module configured to obtain an operator code in the ICCID, where the operator code is used to indicate an operator corresponding to the ICCID.
And the second obtaining sub-module is configured to search and obtain a first identifier corresponding to the operator code in the ICCID obtained by the first obtaining sub-module from a first preset corresponding relationship, where the first preset corresponding relationship includes a corresponding relationship between the operator code and the identifier of the configuration file.
A third obtaining submodule configured to obtain the first configuration file corresponding to the first identifier obtained by the second obtaining submodule from the configuration file set.
Optionally, the fourth obtaining module includes: a fourth acquisition submodule and a fifth acquisition submodule.
And the fourth obtaining sub-module is configured to search and obtain a second identifier corresponding to the network attribution information from a second preset corresponding relationship, where the second preset corresponding relationship includes a corresponding relationship between the network attribution information and the identifier of the configuration file.
A fifth obtaining sub-module configured to obtain the second configuration file corresponding to the second identifier obtained by the fourth obtaining sub-module from the configuration file set.
Optionally, the loading module 205 is further configured to load a general configuration file if the first configuration file corresponding to the ICCID is not obtained from the configuration file set, where the general configuration file refers to a configuration file that can support accessing to a network of any operator and use basic service functions.
Optionally, the apparatus further comprises: and a recording module.
A recording module configured to store a correspondence between the ICCID and an identifier of the second configuration file when the first configuration file and the second configuration file are different.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure further provides a device for loading a configuration file, which can implement the method for loading a configuration file provided by the present disclosure. The device includes: a processor, and a memory for storing executable instructions for the processor. Wherein the processor is configured to:
obtaining an ICCID of an SIM card assembled by a terminal;
acquiring a first configuration file corresponding to the ICCID from a configuration file set, wherein the configuration file set comprises configuration files corresponding to a plurality of operators, and the configuration files are used for supporting the terminal to access to networks provided by the operators corresponding to the configuration files;
loading the first configuration file;
acquiring network attribution information recorded in the SIM card, wherein the network attribution information comprises MCC (China center code) and MNC (China Mobile network center);
acquiring a second configuration file corresponding to the network attribution information from the configuration file set;
and loading the second configuration file under the condition that the first configuration file and the second configuration file are different.
Optionally, the processor is configured to:
acquiring an operator code in the ICCID, wherein the operator code is used for indicating an operator corresponding to the ICCID;
searching and acquiring a first identifier corresponding to an operator code in the ICCID from a first preset corresponding relation, wherein the first preset corresponding relation comprises the corresponding relation between the operator code and the identifier of the configuration file;
and acquiring the first configuration file corresponding to the first identifier from the configuration file set.
Optionally, the processor is configured to:
searching and acquiring a second identifier corresponding to the network attribution information from a second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the network attribution information and the identifier of the configuration file;
and acquiring the second configuration file corresponding to the second identifier from the configuration file set.
Optionally, the processor is further configured to:
and loading a general configuration file when the first configuration file corresponding to the ICCID is not acquired from the configuration file set, wherein the general configuration file refers to a configuration file which can support the network of any operator and use basic service functions.
Optionally, the processor is further configured to:
and storing the corresponding relation between the ICCID and the identifier of the second configuration file under the condition that the first configuration file and the second configuration file are different.
Fig. 3 is a schematic diagram illustrating an apparatus 300 according to an example embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a messaging device, a tablet device, and the like.
Referring to fig. 3, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the apparatus 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 includes a screen that provides an output interface between the device 300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of device 300, the change in position of device 300 or a component of device 300, the presence or absence of user contact with device 300, the orientation or acceleration/deceleration of device 300, and the change in temperature of device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The device 300 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the apparatus 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions (or a computer program) of the storage medium, when executed by a processor of an apparatus 300, enable the apparatus 300 to perform the method provided by the embodiment of fig. 1 described above.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of loading a configuration file, the method comprising:
acquiring an Integrated Circuit Card Identification (ICCID) of a Subscriber Identity Module (SIM) card assembled on a terminal;
acquiring a first configuration file corresponding to the ICCID from a configuration file set, wherein the configuration file set comprises configuration files corresponding to a plurality of operators, the operators correspond to the configuration files one to one, and the configuration files are used for supporting the terminal to access to networks provided by the operators corresponding to the configuration files;
loading the first configuration file;
acquiring network attribution information recorded in the SIM card, wherein the network attribution information comprises a mobile country code MCC and a mobile network number MNC;
acquiring a second configuration file corresponding to the network attribution information from the configuration file set;
if the first configuration file is different from the second configuration file, loading the second configuration file;
the method further comprises the following steps:
and if the first configuration file corresponding to the ICCID is not acquired from the configuration file set, loading a general configuration file, wherein the general configuration file refers to a configuration file which can support the network accessing any operator and use the basic service function.
2. The method of claim 1, wherein obtaining the first configuration file corresponding to the ICCID from the set of configuration files comprises:
acquiring an operator code in the ICCID, wherein the operator code is used for indicating an operator corresponding to the ICCID;
searching and acquiring a first identifier corresponding to an operator code in the ICCID from a first preset corresponding relation, wherein the first preset corresponding relation comprises the corresponding relation between the operator code and the identifier of the configuration file;
and acquiring the first configuration file corresponding to the first identifier from the configuration file set.
3. The method of claim 1, wherein the obtaining the second profile corresponding to the network attribution information from the set of profiles comprises:
searching and acquiring a second identifier corresponding to the network attribution information from a second preset corresponding relation, wherein the second preset corresponding relation comprises the corresponding relation between the network attribution information and the identifier of the configuration file;
and acquiring the second configuration file corresponding to the second identifier from the configuration file set.
4. The method according to any one of claims 1 to 3, further comprising:
and storing the corresponding relation between the ICCID and the identifier of the second configuration file under the condition that the first configuration file and the second configuration file are different.
5. An apparatus for loading a configuration file, the apparatus comprising:
a first acquisition module configured to acquire an integrated circuit card identification code ICCID of a subscriber identity module SIM card mounted to a terminal;
a second obtaining module, configured to obtain a first configuration file corresponding to the ICCID from a configuration file set, where the configuration file set includes configuration files corresponding to multiple operators, where the operators correspond to the configuration files one to one, and the configuration files are used to support the terminal to access a network provided by the operator corresponding to the configuration files;
a loading module configured to load the first configuration file;
a third obtaining module, configured to obtain network attribution information recorded in the SIM card, where the network attribution information includes a mobile country code MCC and a mobile network number MNC;
a fourth obtaining module configured to obtain a second configuration file corresponding to the network attribution information from the configuration file set;
the loading module is further configured to load the second configuration file when the first configuration file and the second configuration file are different; and if the first configuration file corresponding to the ICCID is not acquired from the configuration file set, loading a general configuration file, wherein the general configuration file refers to a configuration file which can support the network accessing any operator and use the basic service function.
6. The apparatus of claim 5, wherein the second obtaining module comprises:
a first obtaining sub-module configured to obtain an operator code in the ICCID, where the operator code is used to indicate an operator corresponding to the ICCID;
a second obtaining sub-module, configured to search and obtain a first identifier corresponding to an operator code in the ICCID from a first preset corresponding relationship, where the first preset corresponding relationship includes a corresponding relationship between the operator code and an identifier of the configuration file;
a third obtaining sub-module configured to obtain the first configuration file corresponding to the first identifier from the configuration file set.
7. The apparatus of claim 5, wherein the fourth obtaining module comprises:
a fourth obtaining sub-module, configured to search for and obtain a second identifier corresponding to the network attribution information from a second preset corresponding relationship, where the second preset corresponding relationship includes a corresponding relationship between the network attribution information and an identifier of the configuration file;
a fifth obtaining sub-module configured to obtain the second configuration file corresponding to the second identifier from the configuration file set.
8. The apparatus of any one of claims 5 to 7, further comprising:
a recording module configured to store a correspondence between the ICCID and an identifier of the second configuration file when the first configuration file and the second configuration file are different.
9. An apparatus for loading a configuration file, the apparatus comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring an Integrated Circuit Card Identification (ICCID) of a Subscriber Identity Module (SIM) card assembled on a terminal;
acquiring a first configuration file corresponding to the ICCID from a configuration file set, wherein the configuration file set comprises configuration files corresponding to a plurality of operators, the operators correspond to the configuration files one to one, and the configuration files are used for supporting the terminal to access to networks provided by the operators corresponding to the configuration files;
loading the first configuration file;
acquiring network attribution information recorded in the SIM card, wherein the network attribution information comprises a mobile country code MCC and a mobile network number MNC;
acquiring a second configuration file corresponding to the network attribution information from the configuration file set;
loading the second configuration file when the first configuration file and the second configuration file are different;
and if the first configuration file corresponding to the ICCID is not acquired from the configuration file set, loading a general configuration file, wherein the general configuration file refers to a configuration file which can support the network accessing any operator and use the basic service function.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201710752733.4A 2017-08-28 2017-08-28 Method and device for loading configuration file Active CN107395760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710752733.4A CN107395760B (en) 2017-08-28 2017-08-28 Method and device for loading configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710752733.4A CN107395760B (en) 2017-08-28 2017-08-28 Method and device for loading configuration file

Publications (2)

Publication Number Publication Date
CN107395760A CN107395760A (en) 2017-11-24
CN107395760B true CN107395760B (en) 2020-09-11

Family

ID=60345985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710752733.4A Active CN107395760B (en) 2017-08-28 2017-08-28 Method and device for loading configuration file

Country Status (1)

Country Link
CN (1) CN107395760B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012252A (en) * 2017-12-18 2018-05-08 深圳市万普拉斯科技有限公司 NFC implementation method, device, mobile terminal and readable storage medium storing program for executing
CN110475242B (en) * 2019-07-03 2021-11-23 深圳市广和通无线通信软件有限公司 LTE network registration method, device, storage medium and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780557A (en) * 2014-01-09 2015-07-15 中兴通讯股份有限公司 Configuration method and device
US9357378B1 (en) * 2015-03-04 2016-05-31 Sprint Communications Company L.P. Subscriber identity module (SIM) card initiation of custom application launcher installation on a mobile communication device
CN105578566A (en) * 2015-04-30 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Terminal network searching method and terminal
CN105554726B (en) * 2015-08-11 2019-05-14 宇龙计算机通信科技(深圳)有限公司 A kind of loading method and user terminal of configuration file
CN106358181A (en) * 2016-10-31 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Method and device for loading MBN document

Also Published As

Publication number Publication date
CN107395760A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US11212856B2 (en) Unmanned aerial vehicle access method and device
US20160381629A1 (en) Virtual sim card for accessing operator network
CN107370772B (en) account login method and device and computer readable storage medium
EP2975821A1 (en) Network connection method and apparatus
CN107105478B (en) Network registration method and device
CN110313201B (en) Paging method and device
CN107094094B (en) Application networking method and device and terminal
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
CN110771196B (en) MDT information notification method and device, MDT information receiving method and device
US9565554B2 (en) Method, device, and system for transmitting information and storage medium
CN110383887B (en) Cell reselection method and device
EP3972302A1 (en) Network registration method, apparatus and system, and storage medium
CN107395760B (en) Method and device for loading configuration file
CN106535166A (en) Data service processing method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN106792570B (en) Positioning method and device
CN114667750B (en) Information reporting method and device and storage medium
CN112492665B (en) Random access method and device, PLMN (public land mobile network) identifier sending method and device
CN108718450B (en) Telephone card control method, device, storage medium and mobile terminal
CN109194639B (en) Message receiving and processing method, device, terminal and readable storage medium
CN114095915A (en) Communication method, apparatus and medium
CN107295144B (en) Method and device for deleting contact number
CN110393037B (en) Random access method and device, user equipment and computer readable storage medium
CN108207019B (en) Method and device for registering network
US20220116836A1 (en) Method and apparatus for network access, terminal, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant