A method, system and storage medium for dynamically switching SIM card lock on Qualcomm platform

By integrating the unlocking solutions of the two operators in the mobile phone software version and using the flag mark, combined with the PC-side tool to write the card lock parameters, the dynamic switching of the card lock function is realized, which solves the problem that the existing technology can only target one operator. The problem of the SIM card solution satisfies the customer's demand for the card lock solution of the two operators.

CN114040044BActive Publication Date: 2024-10-18SHENZHEN XTHINK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111149423.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-18
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

Existing mobile phone software versions can usually only support the SIM card solution of one operator, and cannot meet customer needs and adapt to the card locking solutions of two operators at the same time.

Method used

Integrate the unlocking solutions of the two operators in the mobile phone software version, and mark the currently activated operator through the flag bit. Develop a PC-side tool to write the card lock parameters to achieve dynamic switching of the card lock function, including card lock settings and parameter writing. , boot up and other steps, configure the public key, mode settings, whitelist addition, etc.

Benefits of technology

A software version has been implemented that can adapt to two SIM cards and dynamically switch the card lock function to ensure that users can only use the default operator's network and cannot unlock their phones through SIM cards of other operators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114040044B_ABST
    Figure CN114040044B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system and storage medium for dynamically switching the lock SIM card of a Qualcomm platform, the method comprising sequentially performing the following steps: a lock card setting step: enabling the lock card function, and integrating the unlocking schemes of the operator in the mobile phone software version, and setting a flag in the software version of the mobile phone to mark which operator's lock card scheme is currently activated; a parameter writing step: developing a PC-side tool specifically for writing mobile phone NV parameters, and writing the lock card parameters and the parameters provided by the operator into the mobile phone; a power-on startup step: after the mobile phone is turned on, the mobile phone starts the relevant operations of the lock card, and then the software checks whether the lock card flag has been set up at present, and if the flag is checked, it means that the version has been determined, and the normal startup process is entered. The beneficial effect of the present invention is that the method of the present invention can realize that one software version can adapt to two SIM cards and dynamically switch the lock card function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, system and storage medium for dynamically switching a SIM card on a Qualcomm platform. Background Art

[0002] A certain model of our mobile phone needs to meet the needs of customers to lock two types of operator SIM cards on one software version. When the phone is turned on for the first time, if the SIM card of operator A is inserted, then this model can only use the SIM card of operator A in the future. If the SIM card of operator B is inserted when the phone is turned on for the first time, then this model can only use the SIM card of operator B in the future. If no SIM card is inserted when the phone is turned on for the first time, it is assumed that the phone is locked to the network of operator A by default. If the user of the phone wants to use other types of SIM cards, he needs to initiate an unlocking request to the operator corresponding to the currently locked network and obtain the consent of the operator service before using other types of SIM cards.

[0003] Currently, the software version of the mobile phone with the card lock solution is usually only for one operator, and the mobile phone also only has one unlocking solution. When the network of a certain operator is locked at the factory, the mobile phone can only be unlocked by the unlocking solution of this operator. However, our current customers require that we use one mobile phone software version to adapt to the card lock solutions of two operators, and the default solution cannot meet the customer's requirements. Summary of the invention

[0004] The present invention provides a method for dynamically switching a SIM card lock on a Qualcomm platform, comprising sequentially performing the following steps:

[0005] Card lock setting steps: Enable the card lock function and integrate the operator's unlocking solutions into the mobile phone software version. At the same time, set a flag in the mobile phone software version to mark which operator's card lock solution is currently activated.

[0006] Parameter writing steps: Develop a PC-side tool specifically for writing mobile phone NV parameters, and write the card lock parameters and parameters provided by the operator into the mobile phone.

[0007] Boot-up steps: After the phone is turned on, the phone starts the card lock related operations, and then the software checks whether the card lock flag has been set. If the flag is checked, it means that the version has been determined, and the system will detect whether the inserted SIM card matches the flag to determine whether to put the phone into restricted mode; if the flag is not set, it means that this is the first time to start the phone, and the software enters the SIM card detection and flag setting steps, and then starts different measures according to the flag.

[0008] As a further improvement of the present invention, the card lock setting step further includes configuring the card lock function of the mobile phone, that is, opening the configuration parameters corresponding to the card lock function in the software version development stage, and setting the relevant mode. The specific steps are as follows:

[0009] Step 1: Open the configuration item of the card lock function.

[0010] Step 2: Configure the public key.

[0011] Step 3: Set the phone to the corresponding mode, which is set according to different chips.

[0012] As a further improvement of the present invention, the parameter writing step also includes the configuration of the mobile phone lock card function, which is to develop a PC-side tool specifically for writing mobile phone NV parameters during the factory production stage, and write the specific card lock parameters and parameters provided by the operator into the mobile phone. The specific steps are as follows:

[0013] Step 4: Write DEVICE_KEY to the phone.

[0014] Step 5: Specify the card lock policy.

[0015] Step 6: Add to the whitelist, that is, lock the phone to the specified network according to the operator's requirements.

[0016] As a further improvement of the present invention, the SIM card detection and flag bit setting steps specifically include:

[0017] Step 1: Turn on the computer.

[0018] Step 2: Get the current status of the SIM card; determine whether the SIM card is inserted. If the SIM card is not detected, directly set the flag to operator A. If the SIM card is detected, read the SIM data through the interface.

[0019] Step 3: Get the MCC and MNC of the current SIM card from the acquired SIM card data.

[0020] Step 4: Get the operator to which the current SIM card belongs according to MCC and MNC, and set the corresponding flag bit according to the operator.

[0021] As a further improvement of the present invention, in the fourth step, if the SIM card belongs to operator A, the flag bit is set to operator A; if the SIM card belongs to operator B, the flag bit is set to operator B; for SIM cards that are neither operator A nor operator B, the flag bits are all set to operator A.

[0022] As a further improvement of the present invention, different measures are initiated according to different flag bits, specifically including: if the flag bit is A, the card lock solution of operator A is retained, and the mobile phone AP side will resend a card lock instruction to the modem side, and the instruction only includes the card lock parameters of operator A, which is equivalent to the card lock parameters of operator B having been removed. If the SIM card of operator B is inserted later, it cannot be used normally, and the only option is to enter the emergency service mode. At the same time, the unlocking solution corresponding to operator B is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator B; if the flag bit is B, the card lock solution of operator B is retained, and the mobile phone AP side will resend a card lock instruction to the modem side, and the instruction only includes the card lock parameters of operator B, which is equivalent to the card lock parameters of operator A having been removed. If the SIM card of operator A is inserted later, it cannot be used normally, and the only option is to enter the emergency service mode. At the same time, the unlocking solution corresponding to operator A is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator A.

[0023] As a further improvement of the present invention, in the booting step, the specific steps of the card locking operation are as follows:

[0024] Step Y1: The modem initializes relevant parameters, enters an infinite loop, and waits for messages.

[0025] Step Y2: After receiving the message, select a matching 3GPP algorithm according to the configuration file.

[0026] Step Y3: Parse the IMSI of the SIM card.

[0027] Step Y4: Check whether the MCC / MNC of the current SIM card is in the blacklist or whitelist.

[0028] Step Y5: Determine the card lock strategy based on the parameters.

[0029] Step Y6: Select the algorithm that matches the lock.

[0030] Step Y7: Select the lock type.

[0031] Step Y8: Run the lock algorithm and obtain the result.

[0032] Step Y9: The 3GPP card locking algorithm ends.

[0033] Step Y10: Pass the card lock result to the upper layer. The upper layer executes the corresponding strategy according to the received value and displays the corresponding interface.

[0034] The present invention also discloses a system for dynamically switching and locking SIM cards on a Qualcomm platform, comprising: a memory, a processor, and a computer program stored on the memory, wherein the computer program is configured to implement the steps of the method of the present invention when called by the processor.

[0035] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the method of the present invention when called by a processor.

[0036] The beneficial effect of the present invention is that the method of the present invention can realize that one software version can adapt to two SIM cards and perform dynamic switching of the card lock function. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is the overall flow chart after the mobile phone of the present invention is turned on;

[0038] Figure 2 It is a flow chart of the card lock function configuration of the present invention;

[0039] Figure 3 It is a card locking operation flow chart of the present invention;

[0040] Figure 4 This is a flow chart of detecting a SIM card and setting a flag bit in the present invention;

[0041] Figure 5 It is a flow chart of the operator card locking solution of the present invention. DETAILED DESCRIPTION

[0042] Technical terms:

[0043] AP: The application processor CPU in the mobile phone. The operating system, user interface and applications are all executed on the AP.

[0044] Modem: commonly known as "cat", is a kind of hardware. It mainly runs mobile phone radio frequency communication control software on the mobile phone and is responsible for sending and receiving data.

[0045] APK: Android application package, Android application package, is an application package file format used by the Android operating system for distributing and installing mobile applications and middleware.

[0046] MCC: Mobile Country Code. The MCC resources are uniformly allocated and managed by the International Telecommunication Union (ITU). It uniquely identifies the country to which a mobile user belongs. It has a total of 3 digits.

[0047] MNC: Mobile Network Code, mobile network number, used to identify the mobile communication network to which a mobile user belongs, consists of 2 to 3 digits.

[0048] IMSI: International Mobile Subscriber Identity, an identification code used to distinguish different users in a cellular network and is unique in all cellular networks.

[0049] ICCID: Integrated Circuit Card Identification Code 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 digits.

[0050] DEVICE_KEY: Symmetric key, used for creating data request and response messages from the phone to the unlock server, stored on both the phone and the unlock server. The value on the phone is written into the phone at the factory.

[0051] Control Key: Usually a random number provided by the operator, used to lock and unlock the phone in various card lock schemes.

[0052] Public Key and Private Key: Public Key and Private Key are a key pair (i.e., a public key and a private key) obtained through an algorithm. The public key is the public part of the key pair, and the private key is the non-public part. The public key is usually used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with the corresponding private key. The key pair obtained through this algorithm is guaranteed to be unique worldwide. When using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it.

[0053] The present invention discloses a method for dynamically switching a SIM card lock on a Qualcomm platform, comprising sequentially performing the following steps:

[0054] Card lock setting steps (mobile phone software version development stage): Enable the card lock function and integrate the operator's unlocking solutions into the mobile phone software version. Each operator's unlocking solution has an APK and a corresponding runtime library. APK is mainly used to communicate with the operator's server. If the user wants to unlock the phone later, he needs to use APK to operate. At the same time, a flag is set in the mobile phone software version to mark which operator's card lock solution is currently activated; if it is the flag of customer A, we use Flag A to indicate it, and if it is customer B, we use Flag B to indicate it.

[0055] Parameter writing steps (factory production stage): Develop a PC-side tool specifically for writing mobile phone NV parameters, and write the card lock parameters and parameters provided by the operator into the mobile phone;

[0056] Boot-up steps (boot-up phase): Figure 1 As shown, after the phone is turned on, the phone starts the card lock related operations, and then the software checks whether the card lock flag has been set. If the flag is checked, it means that the version has been determined, and the system will detect whether the inserted SIM card matches the flag to determine whether to let the phone enter the restricted mode; if the flag is not set, it means that this is the first time to start the phone, and the software enters the SIM card detection and flag setting steps, and then starts different measures according to the flag.

[0057] If it is the first time to start the phone, the software will first check whether the SIM card is currently inserted. There are four situations according to the detection results:

[0058] 1. No SIM card is inserted;

[0059] 2. The inserted SIM card is not a card of the two operators specified by the customer;

[0060] 3. The inserted SIM card is from operator A;

[0061] 4. The inserted SIM card is from operator B.

[0062] Depending on the test results, the following flag settings are performed:

[0063] Case 1: According to the customer's requirements, the software version is specified as the version of operator A, that is, the flag bit is set to Flag A.

[0064] Case 2: Because the current phone is locked to use only SIM cards from carrier A and carrier B, if you insert a SIM card from another carrier, you will not be able to use all the functions of the phone normally and can only enter emergency mode. According to customer requirements, in this case, we also specify the software version as the version of carrier A and set the flag to Flag A.

[0065] Cases 3 and 4: Because the card lock parameters of the SIM cards of operator A and operator B are written into the phone at the factory stage, both SIM cards are legal when the phone is turned on for the first time. We perform different operations according to the inserted cards:

[0066] 1) The SIM card inserted is from operator A, and the flag is set to A.

[0067] 2) The SIM card inserted is from operator B, and the flag is set to B.

[0068] Then different processes are started according to different flags:

[0069] If the flag is A, the card lock solution of operator A will be retained and the phone will be locked to the network of operator A. Subsequent insertion of a SIM card other than that of operator A will only allow the phone to enter emergency service mode, and the unlocking solution of operator B will become invalid. Users cannot unlock the phone using the unlocking solution of operator B.

[0070] If the flag is B, the card lock solution of operator B is retained, and the phone is locked to the network of operator B. Subsequent insertion of a SIM card other than operator B will only allow the phone to enter emergency service mode. The unlock solution of operator A is also invalidated, and the user cannot unlock the phone through the unlock solution of operator A.

[0071] Card lock function configuration:

[0072] The configuration of the card lock function occurs both in the mobile phone software version development stage and the factory production stage. In the mobile phone software version development stage, it is necessary to turn on the configuration parameters corresponding to the card lock function and set the relevant modes. The factory stage mainly involves writing specific card lock parameters and some parameters provided by operators into the mobile phone.

[0073] like Figure 2 As shown, in the card lock setting step (mobile phone software version development stage), the configuration of the mobile phone card lock function is also included, that is, the configuration parameters corresponding to the card lock function are turned on in the software version development stage, and the related modes are set. The specific steps are as follows:

[0074] Step 1: Open the configuration item of the card lock function.

[0075] Step 2: Configure the public key.

[0076] Step 3: Set the phone to the corresponding mode, which is set according to different chips.

[0077] like Figure 2 As shown, in the parameter writing step (factory production stage), the configuration of the mobile phone card lock function is also included. The configuration is to develop a PC-side tool specifically for writing mobile phone NV parameters in the factory production stage, and write the specific card lock parameters and parameters provided by the operator into the mobile phone. The specific steps are as follows:

[0078] Step 4: Write DEVICE_KEY to the phone.

[0079] Step 5: Specify the card lock policy.

[0080] Step 6: Add to the whitelist, that is, lock the phone to the specified network according to the operator's requirements.

[0081] The specific steps to lock the card are as follows: Figure 3 As shown:

[0082] In the boot-up step, the specific steps of the card lock operation are as follows:

[0083] Step Y1: The modem initializes relevant parameters, enters an infinite loop, and waits for messages.

[0084] Step Y2: After receiving the message, select a matching 3GPP algorithm according to the configuration file.

[0085] Step Y3: Parse the IMSI of the SIM card.

[0086] Step Y4: Check whether the MCC / MNC of the current SIM card is in the blacklist or whitelist.

[0087] Step Y5: Determine the card lock strategy based on the parameters.

[0088] Step Y6: Select the algorithm that matches the lock.

[0089] Step Y7: Select the lock type.

[0090] Step Y8: Run the lock algorithm and obtain the result.

[0091] Step Y9: The 3GPP card locking algorithm ends.

[0092] Step Y10: Pass the card lock result to the upper layer. The upper layer executes the corresponding strategy according to the received value and displays the corresponding interface.

[0093] The specific steps for SIM card detection and flag setting are as follows:

[0094] Step 1: Turn on the computer.

[0095] Step 2: Get the current status of the SIM card; determine whether the SIM card is inserted. If the SIM card is not detected, directly set the flag to operator A. If the SIM card is detected, read the SIM data through the interface.

[0096] Step 3: Get the MCC and MNC of the current SIM card from the acquired SIM card data.

[0097] Step 4: Get the operator to which the current SIM card belongs according to MCC and MNC, and set the corresponding flag bit according to the operator.

[0098] In the fourth step, if the SIM card belongs to operator A, the flag is set to operator A; if the SIM card belongs to operator B, the flag is set to operator B; for SIM cards that are neither operator A nor operator B, the flag is set to operator A.

[0099] The measures to determine the final operator card locking solution are as follows: Figure 4 As shown:

[0100] If the flag is A, the card lock solution of operator A is retained, and the mobile phone AP side will resend a card lock instruction to the modem side. The instruction only contains the card lock parameters of operator A, which is equivalent to the card lock parameters of operator B have been removed. If the SIM card of operator B is inserted later, it cannot be used normally and can only enter the emergency service mode. At the same time, the unlocking solution corresponding to operator B is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator B; if the flag is B, the card lock solution of operator B is retained, and the mobile phone AP side will resend a card lock instruction to the modem side. The instruction only contains the card lock parameters of operator B, which is equivalent to the card lock parameters of operator A have been removed. If the SIM card of operator A is inserted later, it cannot be used normally and can only enter the emergency service mode. At the same time, the unlocking solution corresponding to operator A is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator A.

[0101] Unlocking process: The unlocking process of different operators is different and is related to the business logic of the operator.

[0102] The present invention also discloses a system for dynamically switching and locking SIM cards on a Qualcomm platform, comprising: a memory, a processor, and a computer program stored on the memory, wherein the computer program is configured to implement the steps of the method of the present invention when called by the processor.

[0103] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the method of the present invention when called by a processor.

[0104] Beneficial effects of the present invention: The method of the present invention can realize that one software version can be adapted to two SIM cards and dynamically switch the card lock function.

[0105] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A method for dynamically switching and locking a SIM card on a Qualcomm platform, characterized in that: It includes executing the following steps in sequence: Card lock setting steps: Enable the card lock function and integrate the operator's unlocking solutions into the mobile phone software version. At the same time, set a flag in the mobile phone software version to mark which operator's card lock solution is currently activated; Parameter writing steps: Develop a PC tool specifically for writing mobile phone NV parameters, and write the card lock parameters and parameters provided by the operator into the mobile phone; Boot-up steps: After the phone is turned on, the phone starts the card lock related operations, and then the software checks whether the card lock flag has been set. If the flag is checked, it means that the version has been determined. The system will check whether the inserted SIM card matches the flag to determine whether to put the phone into restricted mode; If the flag is not set, it means that this is the first time the phone is turned on. The software enters the SIM card detection and flag setting steps, and then initiates different measures based on the flag.

2. The method according to claim 1, characterized in that The card lock setting step also includes the configuration of the mobile phone card lock function, that is, opening the configuration parameters corresponding to the card lock function in the software version development stage, and setting the relevant mode. The specific steps are as follows: Step 1: Open the configuration item of the card lock function; Step 2: Configure the public key; Step 3: Set the phone to the corresponding mode, which is set according to different chips.

3. The method according to claim 2, characterized in that The parameter writing step also includes the configuration of the mobile phone card lock function. The configuration is to develop a PC-side tool specifically for writing mobile phone NV parameters during the factory production stage, and write the specific card lock parameters and parameters provided by the operator into the mobile phone. The specific steps are as follows: Step 4: Write DEVICE_KEY to the phone; Step 5: Specify the card lock policy; Step 6: Add to the whitelist, that is, lock the phone to the specified network according to the operator's requirements.

4. The method according to claim 1, characterized in that: The SIM card detection and flag bit setting steps specifically include: Step 1: Turn on the machine; Step 2: Get the current status of the SIM card; determine whether the SIM card is inserted. If the SIM card is not detected, directly set the flag bit to operator A. If the SIM card is detected, read the SIM data through the interface. Step 3: Get the MCC and MNC of the current SIM card from the acquired SIM card data; Step 4: Get the operator to which the current SIM card belongs according to MCC and MNC, and set the corresponding flag bit according to the operator.

5. The method according to claim 4, characterized in that In the fourth step, if the SIM card belongs to operator A, the flag is set to operator A; if the SIM card belongs to operator B, the flag is set to operator B; for SIM cards that are not operator A or operator B, the flag is set to operator A.

6. The method according to claim 5, characterized in that Different measures are initiated according to different flag bits, including: if the flag bit is A, the card lock solution of operator A is retained, and the mobile phone AP side will resend a card lock instruction to the modem side. The instruction only contains the card lock parameters of operator A, which is equivalent to the card lock parameters of operator B have been removed. If the SIM card of operator B is inserted again in the future, it will not be able to be used normally, and the only option is to enter the emergency service mode. At the same time, the unlocking solution corresponding to operator B is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator B; if the flag bit is B, the card lock solution of operator B is retained, and the mobile phone AP side will resend a card lock instruction to the modem side. The instruction only contains the card lock parameters of operator B, which is equivalent to the card lock parameters of operator A have been removed. If the SIM card of operator A is inserted again in the future, it will not be able to be used normally, and the only option is to enter the emergency service mode. At the same time, the unlocking solution corresponding to operator A is also disabled to ensure that the user cannot unlock the phone by inserting the SIM card of operator A.

7. The method according to claim 1, characterized in that In the boot-up step, the specific steps of the card lock operation are as follows: Step Y1: The modem initializes relevant parameters, enters an infinite loop, and waits for messages; Step Y2: After receiving the message, select a matching 3GPP algorithm according to the configuration file; Step Y3: parse the IMSI of the SIM card; Step Y4: Check whether the MCC / MNC of the current SIM card is in the blacklist or whitelist; Step Y5: Determine the card lock strategy based on the parameters; Step Y6: Select the matching lock algorithm; Step Y7: Select the type of lock; Step Y8: Run the lock algorithm and obtain the result; Step Y9: 3GPP card locking algorithm ends; Step Y10: Pass the card lock result to the upper layer. The upper layer executes the corresponding strategy according to the received value and displays the corresponding interface.

8. A system for dynamically switching and locking SIM cards on a Qualcomm platform, characterized in that: include: A memory, a processor and a computer program stored in the memory, wherein the computer program is configured to implement the steps of the method according to any one of claims 1 to 7 when called by the processor.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of any one of claims 1 to 7 when called by a processor.

Citation Information

Patent Citations

  • method and apparatus for implementing terminal network locking

    CN101141731A

  • Method, system and equipment for preventing SIM LOCK from being unlocked illegally

    CN101494854A