CN-122028027-A - ESIM identification method and related device
Abstract
The application discloses an eSIM (subscriber identity Module) identification and related device, which comprises the steps of powering up a first SIM card, powering down the first SIM card when detecting that the first SIM card is an entity SIM card and first information of the first SIM card, wherein the first information indicates that the first SIM card is an eSIM card. In this way, the eSIM card used by the electronic equipment can be effectively identified, and then the eSIM card is managed and controlled.
Inventors
- GAO HONGXING
- GENG XIAOYONG
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241202
Claims (15)
- 1. An embedded subscriber identity module eSIM identification method applied to electronic equipment, the method comprising: powering up the first Subscriber Identity Module (SIM) card; and stopping using the pluggable eSIM card when the first SIM card is identified as the pluggable eSIM card.
- 2. The method according to claim 1, wherein the method further comprises: When the first SIM card is detected to be an entity SIM card in the card slot and the interaction information of the first SIM card is detected to meet the preset condition, the first SIM card is identified to be a pluggable eSIM card, and the interaction information of the first SIM card meets the preset condition to indicate that the first SIM card is the eSIM card.
- 3. The method of claim 1, wherein the predetermined conditions include some or all of the following conditions, The first condition comprises that a preset field of a reset response ATR of the first SIM card comprises an eSIM identifier; The second condition comprises that an application which calls an open mobile interface OMAPI to interact with the first SIM card is an authorized application of the eSIM card; a third condition comprising selecting an SIM application specific to an eSIM from the first SIM card; A fourth condition comprising that an application protocol data unit APDU header interacted with the first SIM card comprises eSIM specific instructions.
- 4. A method according to claim 2 or 3, wherein the electronic device comprises a first communication module and an application processor, the first communication module comprising a Modem, the interaction information of the first SIM card comprising the ATR, detecting that the interaction information of the first SIM card satisfies the first condition comprising: after the Modem powers on the first SIM card, the first communication module acquires the ATR fed back to the Modem by the first SIM card; the first communication module sending the ATR to the application processor; the application processor detects that the preset field of the ATR includes the eSIM identification.
- 5. The method of any one of claims 2 to 4, wherein the electronic device includes a first communication module and an application processor, the first communication module includes a Modem, the interaction information of the first SIM card includes the application calling the OMAPI to interact with the first SIM card, and detecting that the interaction information of the first SIM card satisfies the second condition includes: After the Modem powers on the first SIM card, when detecting that the OMAPI is called, the first communication module informs the application processor that the OMAPI is called; the application processor detects that the application calling the OMAPI is an authorized application for the eSIM card.
- 6. The method of claim 5, wherein the authorized application of the eSIM card is characterized in part or in whole by being an application in a preset whitelist with a system signature encrypted with a preset encryption key.
- 7. The method according to any one of claims 2 to 6, wherein the electronic device comprises a first communication module and an application processor, wherein the interaction information of the first SIM card comprises an application identification AID of a SIM application selected from the first SIM card, and wherein detecting that the interaction information of the first SIM card satisfies the third condition comprises: The first communication module determines AID of a first SIM application selected from a first SIM card; The first communication module sends the AID of the first SIM application to the application processor; The application processor detects, from the AID, that the first SIM application is an SIM application specific to an eSIM.
- 8. The method of claim 7, wherein the SIM application specific to the eSIM comprises an issuer security domain file ISD-P, an issuer security domain root ISD-R, credentials ECASD required to support the eUICC security domain, a local profile assistant LPA, and so on.
- 9. The method according to any one of claims 2 to 8, wherein the electronic device includes a first communication module and an application processor, the first communication module includes a Modem, the interaction information of the first SIM card includes an APDU header that interacts with the first SIM card, and detecting that the interaction information of the first SIM card satisfies the fourth condition includes: The first communication module acquires an APDU header interacted between the first SIM card and the Modem; The first communication module sends the APDU header to the application processor; The application processor detects that the APDU header includes the eSIM specific instructions.
- 10. The method of any of claims 2 to 9, wherein the electronic device comprises a first communication module and an application processor, the method further comprising: After the first SIM card is electrified, the first communication module determines the serial number of a general purpose input/output (GPIO) pin, which is connected with the communication module, of the first SIM card; The first communication module sends the serial numbers of the GPIO pins to the application processor; the detecting that the first SIM card is an entity SIM card in the card slot includes: and the application processor determines that the first SIM card is an entity SIM card in the card slot based on the number of the GPIO pin.
- 11. The method of claim 10, wherein when the first SIM card connected GPIO pin corresponds to a SIM switch, the method further comprises: The first communication module determines the switch state of the SIM switch; The first communication module sends the switch state of the SIM switch to the application processor; the detecting that the first SIM card is an entity SIM card in the card slot includes: And the application processor determines that the first SIM card is an entity SIM card in the card slot based on the number of the GPIO pin and the switch state of the SIM switch.
- 12. The method of any one of claims 1 to 11, wherein the ceasing use of the pluggable eSIM card comprises: Closing logic channels of the pluggable eSIM card and the modem; and/or powering down the pluggable eSIM card.
- 13. An electronic device comprising a processor and a memory coupled to the processor, the memory for storing computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the eSIM identification method of claims 1-12.
- 14. A computer readable storage medium comprising computer instructions which, when run on a server, cause the electronic device to perform the eSIM identification method of claims 1 to 12.
- 15. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the eSIM identification method according to claims 1 to 12.
Description
ESIM identification method and related device Technical Field The application relates to the technical field of electronics, in particular to an eSIM identification method and a related device. Background The mobile communication device may access the mobile communication network based on a user identity authentication of a subscriber identity module (Subscriber Identity Module, SIM). Traditional SIM cards need to be opened and activated by a mobile operator in advance and then inserted into a physical card slot of an electronic device after opening and activation. Based on the SIM card, the data communication services such as dialing, answering and receiving and sending short messages can be realized. After the user uses the traditional SIM card, the key configuration files in the SIM card cannot be updated any more. With the development of mobile communication technology, an Embedded SIM (eSIM) card is proposed on the basis of a conventional SIM card. Compared with the traditional SIM card, the eSIM card is programmable, and can be remotely configured through Over-the-Air Technology (OTA), so as to realize functions of remote card opening, activation, deactivation and the like. However, there is currently a need in some areas to not allow the use of esims. How to manage esims for this need remains to be studied. Disclosure of Invention The embodiment of the application provides an eSIM identification method, which can identify a pluggable eSIM card used by electronic equipment, further manage and control the pluggable eSIM card and limit the electronic equipment to continuously use the pluggable eSIM card. In a first aspect, the application provides an eSIM identification method, which comprises the steps of powering up a first Subscriber Identity Module (SIM) card, and stopping using the pluggable eSIM card when the first SIM card is identified as the pluggable eSIM card. By implementing the embodiment of the application, the pluggable eSIM card used by the electronic equipment can be effectively identified, and further the pluggable eSIM card is managed and controlled, so that the use of the pluggable eSIM card by the electronic equipment is limited, and the requirement that the use of the pluggable eSIM is not allowed in part of areas is met. In one implementation, the method further includes identifying the first SIM card as a pluggable eSIM card when the first SIM card is detected to be an entity SIM card in the card slot and the interaction information of the first SIM card is detected to meet a preset condition, wherein the interaction information of the first SIM card meets the preset condition to indicate that the first SIM card is the eSIM card. By implementing the embodiment of the application, when the SIM card is detected to be the entity SIM card in the card slot and is identified to be the eSIM card based on the interaction information of the SIM card, the pluggable eSIM card is effectively identified, and then the use of the pluggable eSIM card is stopped, so that the use of the pluggable eSIM card by the electronic equipment is limited, and the requirement that the use of the pluggable eSIM card is not allowed in part of regions is met. In one implementation, the preset conditions include a part or all of the first condition that a preset field of a reset response ATR of the first SIM card includes an eSIM identifier, the second condition that an application calling an open mobile interface OMAPI to interact with the first SIM card is an authorized application of the eSIM card, the third condition that an SIM application specific to the eSIM is selected from the first SIM card, and the fourth condition that an application protocol data unit APDU header interacting with the first SIM card includes an eSIM specific instruction. By implementing the embodiment of the application, the pluggable eSIM card can be effectively identified based on part or all of the first condition to the fourth condition, so that the electronic equipment is limited to continuously use the pluggable eSIM card. In one implementation, the electronic device comprises a first communication module and an application processor, wherein the first communication module comprises a Modem, the interaction information of a first SIM card comprises an ATR, and the detection that the interaction information of the first SIM card meets a first condition comprises that the Modem acquires the ATR fed back to the Modem by the first communication module after powering on the first SIM card, the first communication module sends the ATR to the application processor, and the application processor detects that a preset field of the ATR comprises an eSIM identifier. By implementing the embodiment of the application, the pluggable eSIM card can be effectively identified based on the eSIM identification in the preset field of the ATR, so that the electronic equipment is limited to continuously use the pluggable eSIM card. In one implementat