Embedded card locking method, device, storage medium and terminal
By receiving and parsing the card lock policy information sent by the server, and comparing the operator set to determine whether to lock the embedded SIM card, the problem of complexity of SIM card locking in the existing technology is solved, and a simple and effective SIM card on the terminal side is realized. Lockdown and network service control.
Patent Information
- Application Number
- CN202010956378.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-09-11
AI Technical Summary
Existing technology cannot effectively lock the embedded SIM card, resulting in the terminal being unable to simply switch or lock network services.
By receiving the card lock policy information sent by the server, it parses and compares the operator set to determine whether to lock the embedded SIM card, thereby realizing SIM card locking on the terminal side.
The locking process of the embedded SIM card is simplified, ensuring that the terminal can lock or unlock the SIM card based on the comparison results to achieve control of network services.
Smart Images

Figure CN114189581B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a card locking method, device, storage medium and terminal for an embedded card. Background Art
[0002] At present, mobile terminals usually need to rely on SIM (Subscriber Identity Module) cards to achieve cellular network communication. SIM cards can be physical SIM cards, and one physical SIM card corresponds to a communication number of an operator; SIM cards can also be embedded SIM cards, which are usually set inside the terminal. Embedded SIM cards can support the storage of multiple configuration files (profiles), and one configuration file corresponds to a communication number. In related technologies, the terminal is usually unable to obtain network services by deleting the configuration file corresponding to the operator currently available for communication. This implementation process is relatively complicated and cannot truly lock the embedded SIM card. Summary of the invention
[0003] The embodiments of the present application provide an embedded card locking method, device, storage medium and terminal, which can solve the problem that the embedded SIM card in the terminal cannot be locked in the related art. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for locking an embedded card, the method comprising:
[0005] Receive card lock policy information sent by the server;
[0006] Parsing the card lock policy information to obtain a first operator set, and parsing one or more profile configuration files stored in the embedded subscriber identity SIM card to obtain a second operator set;
[0007] Comparing and analyzing the first operator set with the second operator set to obtain a comparison result;
[0008] Determine whether to lock the embedded SIM card based on the comparison result.
[0009] In a second aspect, an embodiment of the present application provides a card locking device for an embedded card, the device further comprising:
[0010] A receiving module, used for receiving the card lock policy information sent by the server;
[0011] A parsing module, configured to parse the card lock policy information to obtain a first operator set, and parse one or more profile configuration files stored in an embedded subscriber identity SIM card to obtain a second operator set;
[0012] an analysis module, configured to compare and analyze the first operator set with the second operator set to obtain a comparison result;
[0013] A judgment module is used to determine whether to lock the embedded SIM card based on the comparison result.
[0014] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0015] In a fourth aspect, an embodiment of the present application provides a terminal, comprising: a processor, a memory and a display screen; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0016] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0017] When the solution of the embodiment of the present application is executed, the terminal receives the card lock policy information sent by the server, parses the card lock policy information to obtain a first operator set, and parses one or more profile configuration files stored in the embedded user identity SIM card to obtain a second operator set, compares and analyzes the first operator set with the second operator set to obtain a comparison result, and determines whether to lock the embedded SIM card based on the comparison result, thereby achieving locking of the embedded SIM card in the terminal on the terminal side, and the process of locking the embedded SIM card is relatively simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0020] Figure 2 It is a schematic diagram of the structure of the operating system and user space provided in the embodiment of the present application;
[0021] Figure 3 yes Figure 1 The architecture diagram of the Android operating system;
[0022] Figure 4 yes Figure 1The architecture diagram of the IOS operating system;
[0023] Figure 5 It is a flowchart of a method for locking an embedded card provided in an embodiment of the present application;
[0024] Figure 6 This is another flowchart of a method for locking an embedded card provided in an embodiment of the present application;
[0025] Figure 7 is a schematic diagram of interaction between a server and a terminal provided in an embodiment of the present application;
[0026] Figure 8 It is a structural schematic diagram of a card locking device for an embedded card provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0028] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0029] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
[0030] See also Figure 1 , which shows a block diagram of a terminal provided by an exemplary embodiment of the present application. The terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via a bus 150.
[0031] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0032] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The operating system may be an Android system (including a system deeply developed based on the Android system), an IOS system developed by Apple (including a system deeply developed based on the IOS system) or other systems. The data storage area may also store data created by the terminal during use (such as a phone book, audio and video data, chat record data), etc.
[0033] See also Figure 2As shown, the memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, different application scenarios in the same third-party application also have different requirements for system resources. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0034] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0035] Taking the Android operating system as an example, the programs and data stored in the memory 120 are as follows: Figure 3As shown, the memory 120 may store a Linux kernel layer 320, a system runtime library layer 340, an application framework layer 360, and an application layer 380, wherein the Linux kernel layer 320, the system runtime library layer 340, and the application framework layer 360 belong to the operating system space, and the application layer 380 belongs to the user space. The Linux kernel layer 320 provides underlying drivers for various hardware of the terminal, such as display drivers, audio drivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, power management, etc. The system runtime library layer 340 provides the main feature support for the Android system through some C / C++ libraries. For example, the SQLite library provides database support, the OpenGL / ES library provides 3D drawing support, and the Webkit library provides browser kernel support, etc. The Android runtime library (Android runtime) is also provided in the system runtime library layer 340, which mainly provides some core libraries that allow developers to use the Java language to write Android applications. The application framework layer 360 provides various APIs that may be used when building applications. Developers can also use these APIs to build their own applications, such as activity management, window management, view management, notification management, content provider, package management, call management, resource management, and location management. At least one application runs in the application layer 380. These applications can be native applications that come with the operating system, such as contact applications, text messaging applications, clock applications, camera applications, etc.; they can also be third-party applications developed by third-party developers, such as game applications, instant messaging applications, photo beautification applications, shopping applications, etc.
[0036] Taking the operating system as an IOS system as an example, the programs and data stored in the memory 120 are as follows: Figure 4As shown, the IOS system includes: a core operating system layer 420 (Core OS layer), a core service layer 440 (Core Services layer), a media layer 460 (Media layer), and a touchable layer 480 (Cocoa Touch Layer). The core operating system layer 420 includes the operating system kernel, drivers, and underlying program frameworks. These underlying program frameworks provide functions closer to the hardware for use by the program frameworks located in the core service layer 440. The core service layer 440 provides system services and / or program frameworks required by the application, such as the foundation framework, account framework, advertising framework, data storage framework, network connection framework, geographic location framework, motion framework, etc. The media layer 460 provides audio-visual interfaces for the application, such as graphics and image related interfaces, audio technology related interfaces, video technology related interfaces, and wireless playback (AirPlay) interfaces for audio and video transmission technologies. The touchable layer 480 provides various commonly used interface-related frameworks for application development, and the touchable layer 480 is responsible for the user's touch interaction operations on the terminal. For example, local notification service, remote push service, advertising framework, game tool framework, message user interface (UI) framework, user interface UIKit framework, map framework, etc.
[0037] exist Figure 4 Among the frameworks shown, the frameworks related to most applications include but are not limited to: the basic framework in the core service layer 440 and the UIKit framework in the touchable layer 480. The basic framework provides many basic object classes and data types, provides the most basic system services for all applications, and has nothing to do with UI. The classes provided by the UIKit framework are basic UI class libraries for creating touch-based user interfaces. iOS applications can provide UIs based on the UIKit framework, so it provides the basic architecture of applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, etc.
[0038] Among them, the method and principle of implementing data communication between third-party applications and the operating system in the IOS system can be referred to the Android system, and this application will not go into details here.
[0039] Among them, the input device 130 is used to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are a touch display screen, which is used to receive touch operations on or near it by a user using any suitable object such as a finger or a touch pen, and to display the user interface of each application. The touch display screen is usually set on the front panel of the terminal. The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of the present application.
[0040] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.
[0041] In the embodiment of the present application, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is the operating system of the terminal. The operating system may be an Android system, an IOS system, or other operating systems, which is not limited in the embodiment of the present application.
[0042] exist Figure 1 In the terminal shown, the processor 110 can be used to call the application stored in the memory 120 and specifically execute the embedded card locking method of the embodiment of the present application.
[0043] In the technical solution provided in the embodiment of the present application, the terminal receives the card lock policy information sent by the server, parses the card lock policy information to obtain a first operator set, and parses one or more profile configuration files stored in the embedded user identity SIM card to obtain a second operator set, compares and analyzes the first operator set with the second operator set to obtain a comparison result, and determines whether to lock the embedded SIM card based on the comparison result, thereby realizing locking the embedded SIM card in the terminal on the terminal side, and the process of locking the embedded SIM card is relatively simple.
[0044] The following will be combined with the attached Figures 5 to 7 , the embedded card locking method provided in the embodiment of the present application is introduced in detail.
[0045] See also Figure 5 , a flowchart of a method for locking a card of an embedded card is provided in an embodiment of the present application. This embodiment is illustrated by applying the method for locking a card of an embedded card in a terminal. The method for locking a card of an embedded card may include the following steps:
[0046] S501, receiving card lock policy information sent by a server.
[0047] Among them, the server can be the operator's server or a third-party server, and the server can transmit data with the terminal through the Open Mobile Alliance (OMA) Device Management (DM) protocol; the card lock policy information is policy information used to indicate whether the terminal needs to lock the card, and the card lock policy information includes an unlock code, such as: the card lock policy may include three unlock codes that can be represented as 0, 1, and 2 respectively; the card lock policy information with a parameter value of 0 for the unlock code indicates that the terminal is allowed to use a SIM card of an operator of Sprint; the card lock policy information with a parameter value of 1 for the unlock code indicates that the terminal is allowed to use a SIM card of an operator other than North America; the card lock policy information with a parameter value of 2 for the unlock code indicates that the terminal is allowed to use a SIM card of any operator.
[0048] Generally, data can be transmitted between the server and the terminal based on the OMA DM protocol. OMA standardizes the interface between the service application layer and the network function layer, and defines an open standard framework to provide users with seamless end-to-end services. The OMA DM protocol is a protocol for managing terminals in the network through a remote server. Through the OMA DM protocol, the server can perform various management functions such as firmware update, parameter configuration, and data collection on the terminal device. There are two main modes for parameter management in the OMA DM protocol, including CIDC mode and NIDC mode. The CIDC mode refers to parameter configuration and management initiated by the device side to the server, and the NIDC mode refers to parameter configuration and management initiated by the server side to the device side. When the terminal is produced and shipped, its corresponding International Mobile Equipment Identity (IMEI) will be sent to the server, and the server can generate an unlock code corresponding to the terminal based on the IMEI. When the user needs to switch the current SIM card or input the card number of the SIM card, the user can perform a corresponding touch operation on the display interface of the terminal, that is, when the user performs the unlock code application operation on the terminal, the terminal will be triggered to respond to the unlock code application operation performed by the user and send a card lock policy application request to the server. The card lock policy application request is used to request the server to send the card lock policy information corresponding to the IMSI of the terminal. When the server receives the card lock policy application request sent by the terminal, it will send the card lock policy information corresponding to the IMSI of the terminal based on the OMA DM protocol, and the card lock policy information includes the unlock code.
[0049] S502: parsing the card lock policy information to obtain a first operator set, and parsing one or more profile configuration files stored in the embedded subscriber identity SIM card to obtain a second operator set.
[0050] Among them, the first operator set refers to the operator set obtained by parsing the card lock policy information, that is, the set of operator information in the card lock policy information. The card lock policy information corresponding to different terminals is also different, that is, the first operator set corresponding to the card lock policy information available to different terminals is also different. The second operator set refers to the set of operator information stored in the embedded SIM card in the terminal. The operator information in the embedded SIM cards in different terminals is different, that is, the second operator set corresponding to different terminals is different. The profile configuration file refers to the configuration file stored in the embedded SIM card in the terminal. The embedded SIM card can store multiple profile configuration files. The profile configuration file stores the SIM card's integrated circuit card identity (ICCID), international mobile subscriber identity (IMSI), mobile directory number (MDN) and other related communication information.
[0051] ICCID is the SIM card number, which is equivalent to the ID card of the mobile phone number. ICCID is the unique identification number of the IC card, which consists of 20 characters and its encoding format is: XXXXXX 0MFSS YYGXX XXXX. IMSI is an identification code used to distinguish different users in the cellular network and is not repeated in all cellular networks. The terminal stores the IMSI in a 64-bit field and sends it to the network. The IMSI can be used to query the user's information in the Home Location Register (HLR) or the Visitor Location Register (VLR). MDN is the personal mobile phone number of a Code Division Multiple Access (CDMA) network user, and is also the public telephone number of a mobile user, similar to a number like 8613313565789. MDN is usually used for routing, number analysis, call management, contract information binding, billing, etc.
[0052] Generally, after receiving the card lock policy information sent by the server, the terminal will parse the card lock policy information to obtain the unlock code of the card lock policy information. The unlock code may correspond to one or more operator information. Based on the unlock code, the operator information corresponding to the card lock policy information can be analyzed, that is, the first operator set. The first operator set includes all operator information corresponding to the unlock code. One or more profile configuration files will be stored in the embedded SIM card in the terminal. Different profile configuration files represent different operators' "components" for activating Internet access. Usually, the terminal can read the relevant information (such as IMSI) in the profile configuration file through the LPA component, and then obtain the operator identification (operator information) corresponding to the profile configuration file. The operator information corresponding to each profile configuration file can be obtained by parsing one or more profile configuration files stored in the embedded SIM card, and the second operator set can be obtained. The second operator set includes the operator information corresponding to one or more profile configuration files stored in the embedded SIM card.
[0053] S503: Compare and analyze the first operator set and the second operator set to obtain a comparison result.
[0054] The comparison result refers to whether there is an intersection between the first operator set and the second operator set. Based on the comparison result, it can be determined whether the embedded SIM card needs to be locked.
[0055] Generally, both the first operator set and the second operator set may include one or more operator information. The first operator set is the operator set corresponding to the card lock policy information obtained by the terminal, and the second operator set is the operator set corresponding to the embedded SIM card in the terminal. Each operator information (operator identification) in the second operator set can be compared and analyzed with each operator information (operator identification) in the first operator set to obtain a comparison result. When the comparison result shows that there is no intersection between the first operator set and the second operator set, the embedded SIM card is locked, that is, the embedded SIM is powered off; or when the comparison result shows that there is an intersection between the first operator set and the second operator set, the profile configuration file corresponding to the operator information in the intersection is obtained, and the profile configuration file corresponding to the operator information in the intersection is set to an enabled state, that is, the profile configuration file is allowed to start the network, and the profile configuration file corresponding to the operator information in the second operator set except the operator information in the intersection is set to a disabled state.
[0056] S504: Determine whether to lock the embedded SIM card based on the comparison result.
[0057] Among them, the embedded SIM card is also called the Embedded-SIM card (eSim card), which can support different operators through remote editing, and can switch between different operator networks, and select the operator network like selecting a WiFi network. The embedded SIM card is a traditional SIM card embedded directly into the chip of the terminal device, rather than being added to the terminal device as an independent removable component, and the user does not need to insert a physical SIM card. This allows users to choose operator packages more flexibly, or change operators at any time without unlocking the terminal device or purchasing a new terminal device. Embedded SIM cards can be divided into two types: M2M eSim cards and consumer eSim cards. The M2M eSim card is activated by the operator actively pushing the profile configuration file, and the consumer eSim card is manually triggered by the user. This application mainly introduces the consumer eSim card.
[0058] Generally, the comparison result is used as a basis for determining whether the embedded SIM card needs to be locked. The comparison result may include two results: the first operator set and the second operator set do not have an intersection, and the first operator set and the second operator set do have an intersection. When the comparison result is that the first operator set and the second operator set do not have an intersection, it means that the embedded SIM card in the terminal does not contain the operator information corresponding to the card locking policy information received by the terminal, and the terminal can only obtain the network startup permission when the operator information corresponding to the card locking policy information exists in the terminal. Therefore, the embedded SIM card can be directly locked at this time, so that the embedded SIM card is powered off, that is, one or more profile configuration files in the embedded SIM card are set to a disabled state. When the comparison result is that the first operator set and the second operator set have an intersection, it means that the embedded SIM card in the terminal contains the operator information corresponding to the card locking policy information received by the terminal, so the operator information in the intersection is obtained, and the profile configuration file corresponding to at least one operator in the intersection is set to an enabled state (obtaining the network startup permission), and the profile configuration file corresponding to at least one operator in the second operator set that is not in the intersection is set to a disabled state (not obtaining the network startup permission).
[0059] From the above content, it can be seen that in the embedded card locking method provided by the present solution, the terminal receives the card locking policy information sent by the server, parses the card locking policy information to obtain a first operator set, and parses one or more profile configuration files stored in the embedded user identity SIM card to obtain a second operator set, compares and analyzes the first operator set with the second operator set to obtain a comparison result, and determines whether to lock the embedded SIM card based on the comparison result, thereby realizing locking of the embedded SIM card in the terminal on the terminal side, and the process of locking the embedded SIM card is relatively simple.
[0060] See also Figure 6 , another flow chart of a method for locking a card of an embedded card is provided in an embodiment of the present application. This embodiment is illustrated by applying the method for locking a card of an embedded card in a terminal. The method for locking a card of an embedded card may include the following steps:
[0061] S601, in response to an unlock code application operation performed by a user, a card lock policy application request is sent to a server.
[0062] Among them, the server can be the operator's server or a third-party server, and the server can transmit data with the terminal through the Open Mobile Alliance (OMA) Device Management (DM) protocol. The card lock policy application request is a request information used to instruct the server to send card lock policy information to the terminal. The card lock policy information is policy information used to indicate whether the terminal needs to lock the card. The card lock policy information includes an unlock code, such as: the card lock policy may include three unlock codes that can be represented as 0, 1, and 2 respectively; the card lock policy information with a parameter value of 0 for the unlock code indicates that the terminal is allowed to use a SIM card of an operator of Sprint; the card lock policy information with a parameter value of 1 for the unlock code indicates that the terminal is allowed to use a SIM card of an operator outside North America; the card lock policy information with a parameter value of 2 for the unlock code indicates that the terminal is allowed to use a SIM card of any operator.
[0063] Generally, when a user needs to switch the current SIM card or input the card number of the SIM card, the user can perform a corresponding touch operation on the display interface of the terminal, that is, when the user performs the unlock code application operation on the terminal, the terminal will be triggered to respond to the unlock code application operation performed by the user, and send a card lock policy application request to the server, and the card lock policy application request is used to request the server to send the card lock policy information corresponding to the IMSI of the terminal. When the server receives the card lock policy application request sent by the terminal, it will send the card lock policy information corresponding to the IMSI of the terminal based on the OMA DM protocol, and the card lock policy information includes the unlock code.
[0064] S602: Receive card lock policy information sent by the server.
[0065] For details, please refer to the above step S501, which will not be repeated here.
[0066] S603: Determine a parameter value of the unlock code, and obtain a first operator set associated with the parameter value.
[0067] Among them, the unlock code is the indication information used to instruct the terminal to determine the operator that can start the network. The unlock code can be a pre-set specific numerical code, such as: 0, 1, 2 can represent different unlock codes respectively, and the unlock code needs to be used together with the card lock policy information. The parameter value refers to the numerical value that can represent the unlock code when the unlock code is a numerical code. The first operator set refers to the operator set obtained by parsing the card lock policy information, that is, the set of operator information contained in the card lock policy information. The card lock policy information corresponding to different terminals is also different, that is, the first operator information corresponding to the card lock policy information that can be obtained by different terminals is also different.
[0068] Generally, the card lock policy information is the card lock policy information corresponding to the IMEI of the terminal. Different terminals have different corresponding card lock policy information. Based on the card lock policy information received by the terminal, the corresponding unlocking code can be determined. The unlocking code can be an indication information expressed in the form of a parameter value. Based on the parameter value of the unlocking code, the operator information associated with the unlocking code can be determined. The operator corresponding to the operator information is the operator for which the terminal can obtain network startup authority.
[0069] For example: each operator can lock the embedded SIM card based on a set of card lock policies. The card lock policy may include unlock codes with parameter values of 0, 1, and 2 respectively. There are also three corresponding card lock policy information: the first card lock policy information - when the parameter value of the unlock code is 0, it means that the terminal is allowed to use the SIM card of the operator Sprint; the second card lock policy information - when the parameter value of the unlock code is 1, it means that the terminal is allowed to use the SIM card of the operator outside North America; the third card lock policy information - when the parameter value of the unlock code is 2, it means that the terminal is allowed to use the SIM card of any operator.
[0070] S604: Read the IMSI corresponding to each of the one or more profile configuration files stored in the embedded SIM card.
[0071] Among them, the embedded SIM card is also called the Embedded-SIM card (eSim card), which can support different operators through remote editing, and can switch between different operator networks, and select the operator network like selecting a WiFi network. The embedded SIM card is to embed the traditional SIM card directly into the chip of the terminal device, rather than adding it to the terminal device as an independent removable component, and the user does not need to insert a physical SIM card. It allows users to choose operator packages more flexibly, or change operators at any time without unlocking the terminal device or purchasing a new terminal device. Embedded SIM cards can be divided into two types: M2M eSim cards and consumer eSim cards. M2M eSim cards are activated by the operator actively pushing profile configuration files, and consumer eSim cards are activated by manual triggering by users. This application mainly introduces consumer eSim cards. The profile configuration file refers to the configuration file stored in the embedded SIM card in the terminal. The embedded SIM card can store multiple profile configuration files, and the profile configuration file stores the ICCID, IMSI, MDN and other related communication information of the SIM card. IMSI is an identification code used to distinguish different users in a cellular network and is not repeated in all cellular networks. The terminal stores the IMSI in a 64-bit field and sends it to the network. The IMSI can be used to query the user's information in the HLR or VLR.
[0072] Generally, one or more profile configuration files are stored in the embedded SIM card in the terminal. Different profile configuration files represent "components" for activating Internet access of different operators. Usually, the terminal can read the relevant information (such as IMSI) in the profile configuration file through the LPA component, and then obtain the operator identification (operator information) corresponding to the profile configuration file. By parsing one or more profile configuration files stored in the embedded SIM card, the operator information corresponding to each profile configuration file can be obtained, and the second operator set can be obtained. The second operator set includes the operator information corresponding to one or more profile configuration files stored in the embedded SIM card.
[0073] S605: Determine an operator according to the value of a field at a designated position in the IMSI, and generate a second operator set according to the determined operator.
[0074] The second operator set refers to a set of operator information stored in an embedded SIM card in a terminal. The operator information in the embedded SIM cards in different terminals is different, that is, different terminals correspond to different second operator sets.
[0075] Generally, IMSI adopts E.212 format, with a total length of 15 digits, consisting of Mobile Country Code (MCC) + Mobile Network Code (MNC) + Mobile Subscriber Identification Number (MSIN). MCC resources are uniformly allocated and managed by the International Telecommunication Union (ITU), and uniquely identify the country to which the mobile user belongs, with a total of 3 digits, such as 460 for China. MNC is used to identify the mobile network to which the mobile user belongs, and consists of 2 to 3 digits, such as 00 for China Mobile, 01 for China Unicom, and 02 for China Mobile's new 159 number segment. MSIN is the unique identification code of a mobile station in a certain PLMN, MSIN = H0H1H2H3(S)XXXXXX (10 to 11 digits).
[0076] It can be seen that the field at the designated position in the IMSI, that is, the first five digits of the IMSI, is the number corresponding to the operator, and the corresponding operator can be determined based on the first five digits of the IMSI. Different profile configuration files correspond to different IMSIs, so the respective operators can be determined by the IMSI corresponding to each profile configuration file, thereby obtaining a second operator set, which includes the operator information corresponding to one or more profile configuration files stored in the embedded SIM card in the terminal.
[0077] S606: Compare and analyze the first operator set and the second operator set to obtain a comparison result.
[0078] For details, please refer to the above step S503, which will not be described again here.
[0079] S607: Determine whether to lock the embedded SIM card based on the comparison result.
[0080] Generally, the comparison result is used as a basis for determining whether the embedded SIM card needs to be locked. The comparison result may include two results: the first operator set and the second operator set do not have an intersection, and the first operator set and the second operator set do have an intersection.
[0081] S608: When the comparison result indicates that there is no intersection between the first operator set and the second operator set, one or more profile configuration files in the embedded SIM card are set to a disabled state.
[0082] The intersection refers to a set containing the same operator information of the first operator set and the second operator set, that is, a set belonging to the first operator set and the second operator set. The disabled state refers to a disabled state, and a profile configuration file in the disabled state cannot obtain network startup authority.
[0083] Generally, when there is no intersection between the first operator set and the second operator set, it indicates that based on the card lock policy information received by the terminal, one or more profile configuration files in the embedded SIM card in the terminal cannot obtain network startup permission, then the embedded SIM card can be locked, and the terminal will not be able to obtain network services.
[0084] S609: When the comparison result indicates that the first operator set and the second operator set have an intersection, set the profile configuration file corresponding to at least one operator in the intersection to an enabled state, and set the profile configuration file corresponding to at least one operator not in the intersection to a disabled state.
[0085] The enabling state refers to the enable state. A profile configuration file in the enabling state can obtain network startup permission.
[0086] Generally, when there is an intersection between the first operator set and the second operator set, it indicates that based on the card lock policy information received by the terminal, there is a profile configuration file that can obtain network startup authority among one or more profile configuration files in the embedded SIM card in the terminal, and the profile configuration file in the intersection is set to an enabled state, and the profile configuration files corresponding to the operator information in the second operator set other than the operator information in the intersection are set to a disabled state, so that the profile configuration files in the intersection obtain network startup authority, and the terminal can obtain network services based on the profile configuration files in the enabled state, and at the same time, the profile configuration files corresponding to the operator information in the second operator set other than the operator information in the intersection cannot obtain network startup authority, and the terminal cannot obtain network services based on the profile configuration files in the disabled state.
[0087] For example: See Figure 7In the schematic diagram of the interaction between the server and the terminal shown, operator A (701) and operator B (702) can build a unified server card lock strategy, which may include three unlock codes that can be represented as 0, 1, and 2 respectively; the card lock policy information with the unlock code parameter value of 0 indicates that the terminal is allowed to use the SIM card of operator A; the card lock policy information with the unlock code parameter value of 1 indicates that the terminal is allowed to use the SIM card of operator B; the card lock policy information with the unlock code parameter value of 2 indicates that the terminal is allowed to use the SIM card of any operator. The card lock policy may be stored in the OMA DM server. When the user needs to switch the current SIM card or input the card number of the SIM card, the user may perform a corresponding touch operation on the display interface of the terminal device 704. That is, when the user performs the unlock code application operation on the terminal device 704, the terminal device 704 will be triggered to respond to the unlock code application operation performed by the user, and send a card lock policy application request to the server 703 based on the OMA client component in the terminal device 704. The card lock policy application request is used to request the server 703 to send the card lock policy information corresponding to the IMSI of the terminal device 704. When the server 703 receives the card lock policy application request sent by the terminal device 704, it will send the card lock policy information corresponding to the IMSI of the terminal device 704 based on the OMA DM protocol. The card lock policy information includes the unlock code, and the parameter value of the unlock code is 1. After receiving the card lock policy information, the terminal device 704 can analyze the card lock policy information based on the OMA client component to determine the first operator set corresponding to the card lock policy information, the first operator set including operator B, and the card lock policy file is the representation of the first operator set. At the same time, the second operator set can be determined based on one or more profile configuration files in the embedded SIM card 705, and the second operator set includes operator B. By comparing and analyzing the first operator set with the second operator set, it can be determined that there is no intersection between the first operator set and the second operator set, and it may be necessary to lock the embedded SIM card in the terminal.
[0088] As can be seen from the above content, the embedded card locking method provided by the present solution includes: in response to the user's application for unlock code operation, the terminal sends a card lock policy application request to the server; receives the card lock policy information sent by the server; determines the parameter value of the unlock code, and obtains the first operator set associated with the parameter value; reads the IMSI corresponding to each of the one or more profile configuration files stored in the embedded SIM card; determines the operator according to the value of the field at the specified position in the IMSI, and generates the second operator set according to the determined operator; compares and analyzes the first operator set with the second operator set to obtain a comparison result; determines whether to lock the embedded SIM card based on the comparison result; when the comparison result indicates that there is no intersection between the first operator set and the second operator set, sets one or more profile configuration files in the embedded SIM card to a disabled state; when the comparison result indicates that there is an intersection between the first operator set and the second operator set, sets the profile configuration file corresponding to at least one operator in the intersection to an enabled state, and sets the profile configuration file corresponding to at least one operator not in the intersection to a disabled state, thereby realizing locking of the embedded SIM card in the terminal on the terminal side, and the process of locking the embedded SIM card is relatively simple.
[0089] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0090] See also Figure 8 , which shows a schematic diagram of the structure of an embedded card lock device 8 provided by an exemplary embodiment of the present application. The embedded card lock device 8 can be implemented as all or part of the terminal through software, hardware or a combination of both. The embedded card lock device 8 includes:
[0091] The receiving module 801 is used to receive the card lock policy information sent by the server;
[0092] A parsing module 802 is configured to parse the card lock policy information to obtain a first operator set, and parse one or more profile configuration files stored in an embedded subscriber identity SIM card to obtain a second operator set;
[0093] An analysis module 803, configured to compare and analyze the first operator set with the second operator set to obtain a comparison result;
[0094] The determination module 804 is configured to determine whether to lock the embedded SIM card based on the comparison result.
[0095] Optionally, the device 8 further comprises:
[0096] The sending unit is used to send a card lock policy application request to the server in response to an unlock code application operation performed by the user; wherein the card lock policy application request is used to request the server to send card lock policy information corresponding to the international mobile equipment identity code IMSI of the terminal.
[0097] Optionally, the parsing module 802 includes:
[0098] The first processing unit is configured to determine a parameter value of the unlock code, and obtain the first operator set associated with the parameter value.
[0099] Optionally, the parsing module 802 includes:
[0100] A reading unit, configured to read the IMSI corresponding to each of the one or more profile configuration files stored in the embedded SIM card;
[0101] A generating unit is configured to determine an operator according to a value of a field at a specified position in the IMSI, and generate the second operator set according to the determined operator.
[0102] Optionally, the judging module 804 includes:
[0103] A second processing unit is configured to lock the embedded SIM card when the comparison result indicates that there is no intersection between the first operator set and the second operator set; or
[0104] The third processing unit is configured to set the enabling status of the one or more profile configuration files based on the intersection when the comparison result indicates that the first operator set and the second operator set have an intersection.
[0105] Optionally, the judging module 804 includes:
[0106] The first setting unit is used to set a profile configuration file corresponding to at least one operator in the intersection to an enabled state, and set a profile configuration file corresponding to at least one operator not in the intersection to a disabled state.
[0107] Optionally, the judging module 804 includes:
[0108] The second setting unit is configured to set one or more profile configuration files in the embedded SIM card to a disabled state.
[0109] It should be noted that the embedded card locking device provided in the above embodiment only uses the division of the above functional modules as an example when executing the embedded card locking method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the embedded card locking device provided in the above embodiment and the embedded card locking method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0110] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0111] When the solution of the embodiment of the present application is executed, the terminal receives the card lock policy information sent by the server, parses the card lock policy information to obtain a first operator set, and parses one or more profile configuration files stored in the embedded user identity SIM card to obtain a second operator set, compares and analyzes the first operator set with the second operator set to obtain a comparison result, and determines whether to lock the embedded SIM card based on the comparison result, thereby achieving locking of the embedded SIM card in the terminal on the terminal side, and the process of locking the embedded SIM card is relatively simple.
[0112] The embodiment of the present application further provides a computer storage medium, which can store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps as described above.
[0113] The present application also provides a terminal, comprising a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above method steps.
[0114] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0115] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for locking an embedded card, characterized in that: The method comprises: Receive card lock policy information sent by the server; Parsing the card lock policy information to obtain a first operator set, and parsing one or more profile configuration files stored in the embedded subscriber identity SIM card to obtain a second operator set; Comparing and analyzing the first operator set with the second operator set to obtain a comparison result; wherein the comparison result is that the first operator set and the second operator set do not have an intersection or the first operator set and the second operator set have an intersection; Determining whether to lock the embedded SIM card based on the comparison result; The determining whether to lock the embedded SIM card based on the comparison result includes: when the comparison result indicates that there is no intersection between the first operator set and the second operator set, locking the embedded SIM card; or when the comparison result indicates that there is an intersection between the first operator set and the second operator set, setting the enablement status of the one or more profile configuration files based on the intersection.
2. The method according to claim 1, characterized in that Before receiving the card lock policy information sent by the server, the method further includes: In response to the user's application for an unlock code, a card lock policy application request is sent to the server; wherein the card lock policy application request is used to request the server to send card lock policy information corresponding to the international mobile equipment identity IMSI of the terminal.
3. The method according to claim 1, characterized in that The card lock policy information includes an unlock code; The step of parsing the card lock policy information to obtain a first operator set includes: Determine a parameter value of the unlock code, and obtain the first operator set associated with the parameter value.
4. The method according to claim 1, characterized in that: The step of parsing one or more profile configuration files stored in the embedded subscriber identity SIM card to obtain a second operator set includes: Reading the IMSI corresponding to each of the one or more profile configuration files stored in the embedded SIM card; An operator is determined according to a value of a field at a specified position in the IMSI, and the second operator set is generated according to the determined operator.
5. The method according to claim 1, characterized in that The enabling state of the one or more profile configuration files is set based on the intersection, including: The profile configuration file corresponding to at least one operator in the intersection is set to an enabled state, and the profile configuration file corresponding to at least one operator not in the intersection is set to a disabled state.
6. The method according to claim 1, characterized in that The step of locking the embedded SIM card comprises: One or more profile configuration files in the embedded SIM card are set to a disabled state.
7. A card locking device for an embedded card, characterized in that: The device comprises: A receiving module, used for receiving the card lock policy information sent by the server; A parsing module, configured to parse the card lock policy information to obtain a first operator set, and parse one or more profile configuration files stored in an embedded subscriber identity SIM card to obtain a second operator set; an analysis module, configured to compare and analyze the first operator set with the second operator set to obtain a comparison result; wherein the comparison result is that there is no intersection between the first operator set and the second operator set or there is an intersection between the first operator set and the second operator set; A judgment module, used for determining whether to lock the embedded SIM card based on the comparison result; The judgment module includes: a second processing unit, used to lock the embedded SIM card when the comparison result indicates that there is no intersection between the first operator set and the second operator set; or a third processing unit, used to set the enable status of the one or more profile configuration files based on the intersection when the comparison result indicates that there is an intersection between the first operator set and the second operator set.
8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 6.
9. A terminal, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Configuration switching method, device and system for embedded smart card
CN109788468A
Network-based Device Locking Management
US20180309868A1
Method for supporting subscriber's service provider change restriction policy in mobile communications and apparatus therefor
WO2014171711A1
