Double SIM card security authentication method and device
By performing security authentication on SIM card 1 and SIM card 2, the problem of SIM card 2 and eSIM card being unable to be securely authenticated in the existing technology is solved, realizing simultaneous authentication of dual SIM cards and improving the security and adaptability of the mobile phone.
Patent Information
- Application Number
- CN202410789765.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2025-12-26
AI Technical Summary
In existing mobile phones, only SIM card 1 supports security authentication functions, while SIM card 2 and eSIM card cannot be fully utilized, resulting in a decrease in the overall security of the mobile phone.
By performing security authentication on SIM card 1 and SIM card 2, the security authentication result information of both SIM cards is obtained, enabling simultaneous authentication of both SIM cards and improving security.
It improves the reliability of SIM card security authentication and the overall security of terminal devices, and supports dual SIM card security authentication in multiple scenarios.
Smart Images

Figure CN121218166A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a dual SIM card security authentication method and device. Background Technology
[0002] In current daily use of mobile phones, security authentication is required in some scenarios.
[0003] For example, in mobile NFC payment scenarios, payment applications need to perform security authentication on the mobile phone during payment to confirm the identity of the mobile phone user and ensure payment security. Therefore, when an NFC payment application makes a payment, it initiates a security authentication request to the mobile phone's SIM (subscriber identification module) card. The mobile phone then determines the identity of the mobile phone user by reading the user's identity information on the SIM card, thereby ensuring payment security.
[0004] Current mobile phones can support dual SIM cards, and some phones also support eSIM cards in addition to dual SIM cards. However, in the current mobile phone SIM card security authentication methods, only SIM card 1 supports security authentication function. The SIM card security authentication capability of mobile phones is relatively poor, which reduces the overall security of mobile phones. Summary of the Invention
[0005] This application provides a dual SIM card security authentication method and device. By performing security authentication on SIM card 1 and SIM card 2, the method obtains the first security authentication result information corresponding to SIM card 1 and the second security authentication result information corresponding to SIM card 2, thereby realizing dual SIM card security authentication for both SIM card 1 and SIM card 2 simultaneously, improving the reliability of SIM card security authentication and enhancing the security of terminal device use.
[0006] In a first aspect, embodiments of this application provide a dual SIM card security authentication method. This method is applied to a terminal device that supports SIM card 1, SIM card 2, and eSIM card. The terminal device can enable SIM card 1 and SIM card 2, or it can enable SIM card 1 and eSIM card. The method includes: when it is determined that the dual SIM card security authentication function of the terminal device is enabled, the terminal device detects a first dual SIM card security authentication request; then, the terminal device performs security authentication on SIM card 1 according to the first dual SIM card security authentication request, obtaining first security authentication result information corresponding to SIM card 1; similarly, the terminal device performs security authentication on SIM card 2 according to the first dual SIM card security authentication request, obtaining second security authentication result information corresponding to SIM card 2; finally, the terminal device determines the dual SIM card security authentication result information based on the first and second security authentication result information.
[0007] In this possible implementation, to achieve dual SIM card security authentication, the user enables the dual SIM card security authentication function on the terminal device, allowing the terminal device to perform security authentication on both SIM cards simultaneously. Therefore, upon detecting a first dual SIM card security authentication request, the terminal device can perform security authentication on both the first and second SIM cards separately, obtaining the first security authentication result information for SIM card 1 and the second security authentication result information for SIM card 2, and then obtaining the dual SIM card security authentication result information. This achieves dual SIM card security authentication, improves the reliability of SIM card security authentication, and enhances the security of terminal device use.
[0008] In one possible implementation, the terminal uses SIM card 1 and SIM card 2. The method further includes: detecting a first SIM card switching command; detecting whether the dual SIM card security authentication function is enabled; disabling SIM card 2 and enabling eSIM card according to the first SIM card switching command; performing security authentication on SIM card 2 when the dual SIM card security authentication function is enabled to obtain third security authentication result information; and determining the dual SIM card security authentication result information based on the first security authentication result information and the third security authentication result information.
[0009] In this possible implementation, when the terminal device switches SIM cards, it can still perform security authentication on SIM card 2. Even when the terminal device disables SIM card 2 and enables the eSIM card, the security authentication of both SIM cards is not interrupted, achieving full-time security authentication for both SIM cards. Furthermore, security authentication for both SIM cards can still be performed in eSIM scenarios, enabling multi-scenario applications of this embodiment and improving the adaptability and flexibility of dual-SIM card security authentication across various scenarios.
[0010] In one possible implementation, the above-mentioned deactivation of SIM card 2 and activation of eSIM card includes: deactivating SIM card 2, maintaining a high level on the power supply pin corresponding to SIM card 2; and then activating eSIM card.
[0011] In this possible implementation, SIM card 2 is disabled but the power supply pin corresponding to SIM card 2 is still kept at a high level, ensuring that the terminal device can still perform security authentication on SIM card 2 even after SIM card 2 is disabled. Specifically, a method is provided that SIM card 2 can still be used for security authentication after it is disabled, which improves the feasibility of the embodiments of this application.
[0012] In another possible implementation, after deactivating SIM card 2 and enabling eSIM card, and before performing security authentication on SIM card 2, the method also includes: powering on the power supply pins of SIM card 2.
[0013] In this possible implementation, the power supply pin of SIM card 2 is powered on before security authentication of SIM card 2, ensuring that the terminal device can still perform security authentication of SIM card 2 even after SIM card 2 is disabled. Specifically, it provides another method to still perform security authentication of SIM card 2 after it is disabled, which improves the feasibility of the embodiments of this application.
[0014] In one possible implementation, the terminal uses SIM card 1 and eSIM card. The method further includes: detecting a second SIM card switching command; detecting whether the dual SIM card security authentication function is enabled; disabling the eSIM card and enabling SIM card 2 according to the second SIM card switching command; performing security authentication on SIM card 2 when the dual SIM card security authentication function is enabled to obtain fourth security authentication result information; and determining the dual SIM card security authentication result information based on the first security authentication result information and the fourth security authentication result information.
[0015] In this possible implementation, when the terminal device switches from eSIM card to SIM card 2, the terminal device can still perform security authentication on SIM card 2 after the switch, without interrupting the terminal device's security authentication of both SIM cards, thus achieving all-time dual SIM card security authentication. Furthermore, the ability to continue dual SIM card security authentication even in this switching scenario enables multi-scenario application of this embodiment, improving the adaptability and flexibility of dual SIM card security authentication across various scenarios.
[0016] In one possible implementation, before detecting the first dual SIM card security authentication request, the method further includes: detecting a dual SIM card security authentication function enable command; and enabling the dual SIM card security authentication function according to the dual SIM card security authentication function enable command.
[0017] In this possible implementation, the terminal can enable the dual SIM card security authentication function according to the dual SIM card security authentication function enable command; thereby realizing the selective enabling of the dual SIM card security authentication function for the terminal, improving the flexibility and implementability of the embodiments of this application. In one possible implementation, before obtaining the first dual SIM card security authentication trigger information and after obtaining the dual SIM card security authentication function enable information, the method further includes: detecting whether SIM card 1 and SIM card 2 are simultaneously present.
[0018] In this possible implementation, the terminal can detect whether SIM card 1 and SIM card 2 are both present, thereby ensuring that the terminal can enable the dual SIM card security authentication function, which improves the feasibility of the embodiments of this application.
[0019] In one possible implementation, the method further includes: determining that SIM card 1 and SIM card 2 are not simultaneously present; generating a notification that both SIM cards are not simultaneously present.
[0020] In one possible implementation, the method further includes: determining that the dual SIM card security authentication result information indicates that the dual SIM card security authentication has failed; and generating a dual SIM card security authentication failure notification.
[0021] Secondly, embodiments of this application propose a terminal device, including a memory and a processor. The memory is used to store computer programs, and the processor is used to call the computer programs to execute the above-described mode control method.
[0022] Thirdly, embodiments of this application propose a computer-readable storage medium storing a computer program or instructions, which, when executed, implements the aforementioned mode control method.
[0023] Fourthly, embodiments of this application propose a computer program product, including a computer program that, when run, causes the computer to execute the aforementioned mode control method.
[0024] The possible implementations of aspects two through four have similar effects to those of aspect one and the possible designs of aspect one, and will not be elaborated upon here. Attached Figure Description
[0025] Figure 1 This application provides a schematic diagram of the hardware system structure of a terminal device.
[0026] Figure 2A A schematic diagram illustrating the architecture of multiple SIM cards in a terminal device provided in an embodiment of this application;
[0027] Figure 2B A schematic diagram of the architecture of multiple SIM cards in another terminal device provided in an embodiment of this application;
[0028] Figure 2C A schematic diagram of the architecture of multiple SIM cards in another terminal device provided in an embodiment of this application;
[0029] Figure 3 A flowchart illustrating a dual-SIM card security authentication method provided in this application embodiment;
[0030] Figure 4A flowchart illustrating another dual-SIM card security authentication method provided in this application embodiment;
[0031] Figure 5 A flowchart illustrating another dual-SIM card security authentication method provided in this application embodiment;
[0032] Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;
[0033] Figure 7 This is a schematic diagram of another terminal device provided in an embodiment of this application. Detailed Implementation
[0034] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0035] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0036] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0037] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0038] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0039] It is understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It is understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0040] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Correspondingly, the apparatus given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.
[0041] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. Unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be mutually referenced. Different embodiments can be combined to form new embodiments based on their inherent logical relationships. The following embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0042] In current daily use of mobile phones, security authentication is required in some scenarios.
[0043] For example, in mobile NFC payment scenarios, payment applications need to perform security authentication on the mobile phone during payment to confirm the identity of the mobile phone user and ensure payment security. Therefore, when an NFC payment application makes a payment, it initiates a security authentication request to the mobile phone's SIM (subscriber identification module) card. The mobile phone then determines the identity of the mobile phone user by reading the user's identity information on the SIM card, thereby ensuring payment security.
[0044] Current mobile phones support dual SIM cards, and some phones also support eSIM cards. However, in the current mobile phone SIM card security authentication methods, only SIM card 1 supports security authentication. SIM card 2 and eSIM cards can only be used as regular SIM cards and do not support security authentication. This makes it impossible to fully utilize the security features of two SIM cards, thus reducing the overall security of the mobile phone.
[0045] Based on this, embodiments of this application provide a dual SIM card security authentication method. This method is applied to a terminal that supports SIM card 1, SIM card 2, and eSIM card. The terminal can enable SIM card 1 and SIM card 2, or it can enable SIM card 1 and eSIM card. The method includes: when it is determined that the dual SIM card security authentication function of the terminal is enabled, detecting a first dual SIM card security authentication request; performing security authentication on SIM card 1 of the terminal according to the first dual SIM card security authentication request to obtain first security authentication result information corresponding to SIM card 1; performing security authentication on SIM card 2 of the terminal according to the first dual SIM card security authentication request to obtain second security authentication result information corresponding to SIM card 2; and determining dual SIM card security authentication result information based on the first and second security authentication result information.
[0046] In this embodiment, by performing security authentication on SIM card 1 and SIM card 2, the first security authentication result information corresponding to SIM card 1 and the second security authentication result information corresponding to SIM card 2 are obtained, thereby realizing dual SIM card security authentication for SIM card 1 and SIM card 2 simultaneously, improving the reliability of SIM card security authentication and enhancing the security of terminal use.
[0047] The technical solutions provided in this application can be applied to various communication systems, such as: Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) systems, 5th Generation (5G) mobile communication systems, and New Radio (NR). The 5G mobile communication systems in this application include non-standalone (NSA) 5G mobile communication systems and standalone (SA) 5G mobile communication systems.
[0048] The technical solutions provided in this application can also be applied to future communication systems, such as the sixth-generation mobile communication system, and this application does not limit them.
[0049] The terminal in this application embodiment can also be referred to as terminal device, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal can be a mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, etc. This application embodiment does not limit the specific technology or device form used in the terminal.
[0050] To better understand the embodiments of this application, the structure of the terminal device of the embodiments of this application is described below.
[0051] Figure 1 A schematic diagram of the terminal device 100 is shown. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0052] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0053] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0054] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0055] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0056] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0057] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the terminal device 100.
[0058] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0059] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0060] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0061] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to enable the display function of the terminal device 100.
[0062] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0063] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge terminal device 100, and can also be used for data transfer between terminal device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other terminal devices, such as AR devices.
[0064] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0065] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also supply power to the terminal device via the power management module 141.
[0066] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0067] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0068] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0069] The mobile communication module 150 can provide wireless communication solutions for terminal devices 100, including 2G / 3G / 4G / 5G second-generation wireless telephone technology (2G), third-generation (3G), fourth-generation (4G), and fifth-generation (5G) mobile communication technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0070] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0071] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0072] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0073] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0074] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, terminal device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0075] Terminal device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0076] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0077] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0078] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when terminal device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0079] Video codecs are used to compress or decompress digital video. Terminal device 100 may support one or more video codecs. Thus, terminal device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0080] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0081] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0082] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of terminal device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of terminal device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0083] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0084] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0085] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or make hands-free calls through the speaker 170A.
[0086] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a phone call or voice message, the receiver 170B can be brought close to the listener's ear to hear the voice.
[0087] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Terminal device 100 may be equipped with at least one microphone 170C. In some embodiments, terminal device 100 may be equipped with two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, terminal device 100 may be equipped with three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0088] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0089] Pressure sensor 170A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 170A can be disposed on display screen 194. There are many types of pressure sensors 170A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 170A, the capacitance between the electrodes changes. Terminal device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, terminal device 100 detects the intensity of the touch operation based on pressure sensor 170A. Terminal device 100 can also calculate the touch position based on the detection signal from pressure sensor 170A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0090] The gyroscope sensor 170B can be used to determine the motion attitude of the terminal device 100. In some embodiments, the gyroscope sensor 170B can determine the angular velocity of the terminal device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 170B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 170B detects the angle of the shaking of the terminal device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the terminal device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 170B can also be used in navigation and motion-sensing game scenarios.
[0091] The barometric pressure sensor 170C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 170C to assist in positioning and navigation.
[0092] The magnetic sensor 170D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 170D to detect the opening and closing of the flip cover. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 170D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0093] The 170E accelerometer can detect the magnitude of acceleration of the terminal device 100 in various directions (typically three axes). When the terminal device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the attitude of the terminal device, and can be applied to applications such as landscape / portrait switching and pedometers.
[0094] A distance sensor 170F is used to measure distance. The terminal device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, the terminal device 100 can utilize the distance sensor 170F to measure distance for rapid focusing.
[0095] The proximity sensor 170G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The terminal device 100 emits infrared light outward through the LED. The terminal device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 may use the proximity sensor 170G to detect when a user holds the terminal device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 170G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0096] The ambient light sensor 170L is used to sense the ambient light intensity. The terminal device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light intensity. The ambient light sensor 170L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 170L can also work with the proximity sensor 170G to detect whether the terminal device 100 is in a pocket to prevent accidental touches.
[0097] The fingerprint sensor 170H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0098] Temperature sensor 170J is used to detect temperature. In some embodiments, terminal device 100 uses the temperature detected by temperature sensor 170J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 170J exceeds a threshold, terminal device 100 reduces the performance of the processor located near temperature sensor 170J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, terminal device 100 heats battery 142 to prevent abnormal shutdown of terminal device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, terminal device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0099] Touch sensor 170K, also known as a "touch device," can be located on display screen 194. The touch sensor 170K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 170K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 170K may also be located on the surface of terminal device 100, in a different position than display screen 194.
[0100] The bone conduction sensor 170M can acquire vibration signals. In some embodiments, the bone conduction sensor 170M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 170M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 170M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 170M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 170M to realize heart rate detection functionality.
[0101] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Terminal device 100 can receive button input and generate key signal inputs related to user settings and function control of terminal device 100.
[0102] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0103] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0104] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the terminal device 100. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
[0105] Figure 2A , 2B The diagram below illustrates the architecture of multiple SIM cards in the terminal device provided in the embodiments of this application (2C). Figure 2A , 2B As shown in Figure 2C, the terminal device in this embodiment can support SIM card 1 and SIM card 2. In one possible implementation, the terminal device also supports an eSIM card. Specifically, as shown... Figure 2A As shown, SIM card slot 1 is the SIM card interface for SIM1. The VCC1 pin of slot 1 supplies power to SIM1, and the VPP1 pin is a reserved communication pin. The system-on-a-chip (SOC) of the terminal device interacts with SIM1 via the Single-Wire Protocol (SWP) to read the user identity information corresponding to SIM1. Similarly, SIM card slot 2 is the SIM card interface for SIM2. The VCC2 pin of slot 2 supplies power to SIM2, and the VPP2 pin is a reserved communication pin. The SOC of the terminal device interacts with SIM2 via the SWP to read the user identity information corresponding to SIM2. This terminal device uses a contactless front-end (CLF). The (end) chip module includes an eSIM card, which can directly interact with the terminal device's SOC. Furthermore, when the eSIM card is enabled, the terminal device can independently control the power supply to SIM card 1 and SIM card 2. Therefore, whether SIM card 1 and SIM card 2 are enabled, or SIM card 1 and eSIM card are enabled, the terminal device has the hardware capability to perform security authentication on SIM card 1 and SIM card 2.
[0106] In the embodiments of this application, such as Figure 2A As shown, the eSIM card can be built into the CLF module; in addition, the eSIM card can also be used as... Figure 2B As shown, it can be directly connected to the SOC; or it can be connected as follows: Figure 2C As shown, since it is built into the SOC, the location of the eSIM card is not limited in this embodiment of the application.
[0107] In this embodiment, the terminal device can perform security authentication on SIM card 1 and SIM card 2 using a single-wire protocol (SWP) to obtain the corresponding SIM card security authentication result information. Single-wire connection is a specification for a single-wire connection between the SIM card and the near-field communication (NFC) chip of the cellular phone. SWP is an interface between the contactless front-end (CLF) and the SIM card chip. It is a protocol used for contactless communication. For example, in existing single-wire protocols, pin C6 of the SIM card chip is connected to the CLF for SWP support. It is a bit-oriented full-duplex protocol, meaning it can transmit and receive simultaneously. When communicating between the SIM card and the SOC, the terminal's CLF or PMU can provide power to the SIM card, transmitting clock, data, and signals for bus management. The transmitted data is represented by the binary states of voltage and current on the single wire.
[0108] The software system of terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of terminal device 100.
[0109] The following is combined with Figures 3 to 5 The technical solutions of this application will be described in detail with specific method embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0110] For example, Figure 3 A flowchart illustrating a dual-SIM card security authentication method provided in an embodiment of this application. (Refer to...) Figure 3 As shown, the dual SIM card security authentication method may specifically include the following steps:
[0111] 301. The terminal device detected a command to enable the dual SIM card security authentication function.
[0112] The terminal device detects a command to enable the dual SIM card security authentication function. This command instructs the terminal device to enable the dual SIM card security authentication function.
[0113] In this embodiment, the terminal device may support SIM card 1 and SIM card 2, or it may support SIM card 1, SIM card 2 and eSIM card. When the terminal device supports SIM card 1, SIM card 2 and eSIM card, the terminal device may enable SIM card 1 and SIM card 2, or it may enable SIM card 1 and eSIM card. The specifics are not limited here.
[0114] In this embodiment of the application, the terminal device has the function of simultaneously performing security authentication on dual SIM cards. That is, when SIM card authentication is required, the terminal device can perform security authentication on both SIM card 1 and SIM card 2, and use the security authentication results of SIM card 1 and SIM card 2 as the results of SIM card security authentication.
[0115] For example, a terminal device can receive a dual SIM card security authentication function activation command from a user. This command instructs the terminal device to activate the dual SIM card security authentication function. After receiving this command, the terminal device can detect the corresponding instruction, which is the dual SIM card security authentication function activation command. The terminal device can then activate the dual SIM card security authentication function according to this command.
[0116] 302. The terminal device determines whether both SIM cards are in place.
[0117] After detecting the dual SIM card security authentication function activation command, the terminal device can determine whether SIM card 1 and SIM card 2 are both in place, thereby confirming whether dual SIM card security authentication can be achieved.
[0118] In one possible implementation, the terminal device can generate a notification that the dual SIM cards are not simultaneously present when it determines that both SIM cards are not simultaneously present. This notification is used to inform the user that the terminal device does not have both SIM cards simultaneously present.
[0119] In one possible implementation, the terminal device may generate a dual SIM card simultaneous presence notification upon determining that both SIM cards are simultaneously present, to inform the user that both SIM cards are now in use. Alternatively, in this implementation, the terminal device may not generate a dual SIM card simultaneous presence notification; this is not limited here.
[0120] 303. Enable dual SIM card security authentication function on terminal devices.
[0121] When a dual SIM card security authentication function activation command is detected, and both SIM card 1 and SIM card 2 are in place, the terminal device enables the dual SIM card security authentication function.
[0122] In this embodiment of the application, after the terminal device enables the dual SIM card security authentication function, when SIM card security authentication is required, the terminal device can perform security authentication on both SIM card 1 and SIM card 2, and use the security authentication results of SIM card 1 and SIM card 2 as the results of SIM card security authentication.
[0123] In one possible implementation, the terminal device can enable the dual SIM card security authentication function if it does not detect the command to enable the dual SIM card security authentication function, but the specific implementation is not limited here.
[0124] 304. The terminal device detected the first dual SIM card security authentication request.
[0125] When the dual SIM card security authentication function of the terminal device is enabled, the terminal device can detect the first dual SIM card security authentication request, and the terminal device can perform security authentication on SIM card 1 and SIM card 2 through the first dual SIM card security authentication request.
[0126] It is understood that, in this embodiment of the application, when the dual SIM card security authentication function of the terminal device is enabled, the terminal device can activate the dual SIM card security authentication function to perform security authentication on SIM card 1 and SIM card 2 after detecting the SIM card security authentication request. Therefore, it can be understood that the SIM card security authentication request is a dual SIM card security authentication request.
[0127] For example, when a mobile phone makes an NFC payment, the NFC payment application installed on the phone needs to verify the user's identity, which can be done through SIM card security authentication. Therefore, the NFC payment application can generate a corresponding SIM card security authentication request. Since the terminal device in this embodiment supports dual SIM card security authentication, this SIM card security authentication request can be a dual SIM card security authentication request. It can be understood that this dual SIM card security authentication trigger information is used to trigger the terminal device to perform security authentication for SIM card 1 and SIM card 2.
[0128] In one possible implementation, the first dual-SIM security authentication request may simply request SIM card security authentication without specifying whether the authentication is for a single SIM card or two SIM cards; that is, it does not request dual-SIM card security authentication. Since the dual-SIM security authentication function of the terminal device is already enabled, the terminal device can request dual-SIM card security authentication based on the first SIM card security authentication request.
[0129] In another possible implementation, the first dual SIM card security authentication request can also be for the security authentication of SIM card 1 and SIM card 2, that is, the first dual SIM card security authentication request is limited to dual card security authentication.
[0130] In one possible implementation, the terminal device may detect only a single SIM card security authentication request. For example, the terminal device may detect a single SIM card security authentication request only for SIM card 1. When the dual SIM card security authentication function of the terminal device is enabled, the terminal device can also perform security authentication on SIM card 1 based on the single SIM card security authentication request and obtain the corresponding SIM card 1 security authentication result information.
[0131] 305. The terminal device performs security authentication on SIM card 1 and SIM card 2, and obtains the corresponding SIM card security authentication result information.
[0132] The terminal device performs security authentication on SIM card 1 according to the first dual SIM card security authentication request and obtains the first security authentication result information; the terminal device performs security authentication on SIM card 2 according to the first dual SIM card security authentication request and obtains the second security authentication result information.
[0133] In one possible implementation, the terminal device supports SIM card 1, SIM card 2, and eSIM card. The terminal enables SIM card 1 and SIM card 2. The terminal device can perform security authentication on SIM card 1 according to a first dual-SIM card security authentication request, obtaining a first security authentication result. The terminal device can also perform security authentication on SIM card 2 according to the same request, obtaining a second security authentication result. In this possible implementation, such as... Figure 2A , 2B As shown in Figure 2C, the terminal device performs security authentication on the SIM card by reading the user identity information in the SIM card through the reserved VPP pin.
[0134] In another possible implementation, the terminal device supports SIM card 1, SIM card 2 and eSIM card. The terminal enables SIM card 1 and eSIM card. The terminal device can perform security authentication on SIM card 1 according to the first dual SIM card security authentication request and obtain the first security authentication result information. The terminal device can also perform security authentication on SIM card 2 according to the first dual SIM card security authentication request and obtain the second security authentication result information.
[0135] Among the possible implementations, such as Figure 2A , 2BAs shown in Figure 2C, for the already activated SIM card 1, the user identity information in the SIM card is read through the reserved VPP pin in the conventional manner. For SIM card 2, although the terminal device has not activated SIM card 2, when performing security authentication on SIM card 2, the user identity information in the SIM card 2 can be read through the reserved VPP pin of SIM card 2 while the power supply pin (VCC pin) of SIM card 2 is powered on.
[0136] 306. The terminal device confirms the security authentication result information of the dual SIM cards.
[0137] The terminal device determines the dual SIM card security authentication result information based on the first security authentication result information corresponding to SIM card 1 and the second security authentication result information corresponding to SIM card 2.
[0138] Specifically, if both the first security authentication result information and the second security authentication result information indicate that the security authentication has been successfully passed, the terminal device can determine that the dual SIM card security authentication result is that the dual SIM card security authentication has been successfully passed; if at least one of the first security authentication result information and the second security authentication result information indicates that the security authentication has failed, the terminal device can determine that the dual SIM card security authentication result is that the dual SIM card security authentication has failed.
[0139] In one possible implementation, when the dual SIM card security authentication result is that the dual SIM cards have failed the security authentication, the terminal device can generate a dual SIM card security authentication failure notification. This dual SIM card security authentication failure notification is used to notify the user that the dual SIM card security authentication result has failed.
[0140] One possible implementation is, such as Figure 4 As shown, the terminal device supports SIM card 1, SIM card 2, and eSIM card. The terminal enables SIM card 1 and SIM card 2. Figure 3 The method shown also includes:
[0141] 401. The terminal device detected a first SIM card switching command.
[0142] The terminal device detects a first SIM card switching command, which instructs the terminal device to disable SIM card 2 and enable the eSIM card.
[0143] 402. Check whether the dual SIM card security authentication function is enabled on the terminal device.
[0144] After detecting the first SIM card switching command, the terminal device checks whether the dual SIM card security authentication function is enabled. Understandably, after switching SIM cards, the terminal device needs to determine whether the user still needs to enable the dual SIM card security authentication function; therefore, after detecting the SIM card switching command, the terminal device needs to check whether the dual SIM card security authentication function is enabled.
[0145] If the terminal device confirms that the dual SIM card security authentication function is enabled, then proceed with the subsequent steps as shown in Figures 403-404; if the terminal device confirms that the dual SIM card security authentication function is disabled, then the terminal device only performs step 403 to disable SIM card 2 and enable eSIM card, and does not perform steps 404 and 405.
[0146] 403. The terminal device, according to the first SIM card switching instruction, disables SIM card 2 and enables the eSIM card;
[0147] According to the first SIM card switching instruction, the terminal device disables SIM card 2 and enables eSIM card.
[0148] In one possible implementation, to achieve dual SIM card security authentication, the terminal device will not power the SIM card 2 pins when SIM card 2 is disabled. Figure 2A , 2B Instead of powering down the VCC pin in SIM 2C, the terminal device continuously supplies power to this power supply pin so that it can perform security authentication of SIM card 2.
[0149] In another possible implementation, the terminal device can power down the power supply pin of the SIM card when SIM card 2 is disabled, and power up the power supply pin again when the SIM card security authentication needs to be recorded later. The specific implementation is not limited here.
[0150] 404. When the dual SIM card security authentication function is enabled, the terminal device performs security authentication on SIM card 2 and obtains the third security authentication result information.
[0151] When the terminal device confirms that the dual SIM card security authentication function is enabled, it performs security authentication on SIM card 2 and obtains the third security authentication result information.
[0152] In one possible implementation, when the terminal device disables SIM card 2, it does not power the SIM card 2's power supply pins. Figure 2A , 2B Instead of powering down the VCC pin in SIM 2C, the terminal device continuously supplies power to this pin to enable security authentication of SIM card 2. Therefore, the terminal device can perform security authentication of SIM card 2 in the same way as when SIM card 2 is not deactivated.
[0153] In another possible implementation, when the terminal device disables SIM card 2, it can power down the power supply pin of SIM card 2. When subsequent security authentication of SIM card 2 is required, the power supply pin is then powered up again. Therefore, when the terminal device performs security authentication on SIM card 2, it needs to first power down the power supply pin of SIM card 2. Figure 2A , 2B The system powers on the VCC pin of SIM card 2 and then obtains the user identity information corresponding to SIM card 2 through the VPP pin of SIM card 2 for security authentication.
[0154] 405. The terminal device determines the dual SIM card security authentication result information based on the first security authentication result information and the third security authentication result information.
[0155] The terminal device determines the dual SIM card security authentication result information based on the first security authentication result information and the third security authentication result information.
[0156] In this embodiment of the application, it can be understood that the first security authentication result information has already been obtained in step 304, therefore in Figure 4 The method shown does not require re-authenticating the SIM card 1 to obtain the first security authentication result information.
[0157] In this embodiment, step 405, which determines the dual SIM card security authentication result information based on the first security authentication result information and the third security authentication result information, is similar to step 306 and will not be described again here.
[0158] Another possible implementation, such as Figure 5 As shown, the terminal device supports SIM card 1, SIM card 2, and eSIM card. The terminal enables SIM card 1 and eSIM card. Figure 3 The method shown also includes:
[0159] 501. The terminal device detected a second SIM card switching command.
[0160] The terminal device detects a second SIM card switching command, which instructs the terminal device to disable the eSIM card and enable SIM card 2.
[0161] 502. Check whether the dual SIM card security authentication function is enabled on the terminal device.
[0162] Upon detecting a second SIM card switching command, the terminal device can check whether the dual SIM card security authentication function is enabled. Understandably, after switching SIM cards, the terminal device needs to determine whether the user still needs to enable the dual SIM card security authentication function; therefore, upon detecting a SIM card switching command, the terminal device needs to check whether the dual SIM card security authentication function is enabled.
[0163] If the terminal device confirms that the dual SIM card security authentication function is enabled, then the subsequent steps shown in Figures 503-505 will be executed; if the terminal device determines that the dual SIM card security authentication function is disabled, then the terminal device will only execute step 503 to disable the eSIM card and enable the SIM card 2, and will not execute steps 504 and 505.
[0164] 503. The terminal device disables the eSIM card and enables the SIM card 2 according to the second SIM card switching instruction.
[0165] According to the second SIM card switching instruction, the terminal device disables the eSIM card and enables the SIM card 2.
[0166] 504. When the dual SIM card security authentication function is enabled, the terminal device performs security authentication on the SIM card 2 and obtains the fourth security authentication result information.
[0167] When the terminal device confirms that the dual SIM card security authentication function is enabled, it performs security authentication on SIM card 2 and obtains the fourth security authentication result information.
[0168] 505. The terminal device determines the dual SIM card security authentication result information based on the first security authentication result information and the fourth security authentication result information.
[0169] The terminal device determines the dual SIM card security authentication result information based on the first security authentication result information and the fourth security authentication result information.
[0170] In this embodiment of the application, it can be understood that the first security authentication result information has already been obtained in step 305, therefore in Figure 5 The method shown does not require re-authenticating the SIM card 1 to obtain the first security authentication result information.
[0171] In this embodiment, step 505, which determines the dual SIM card security authentication result information based on the first security authentication result information and the fourth security authentication result information, is similar to step 405 and will not be described again here.
[0172] The above combination Figures 3 to 5 The dual SIM card security authentication method provided in the embodiments of this application has been described. The terminal device that performs the above dual SIM card security authentication method provided in the embodiments of this application is described below.
[0173] like Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 6As shown, the terminal device 600 may include a detection unit 601 and a processing unit 602. The detection unit 601 supports the terminal device 600 in performing the aforementioned display steps; the processing unit 602 supports the terminal device 600 in performing the aforementioned security authentication and other processing steps.
[0174] Specifically, when the dual SIM card security authentication function is enabled, the detection unit 601 detects the first dual SIM card security authentication request; then the processing unit 602 performs security authentication on SIM card 1 according to the first dual SIM card security authentication request, and obtains the first security authentication result information; at the same time, the processing unit 602 performs security authentication on SIM card 2 according to the first dual SIM card security authentication request, and obtains the second security authentication result information; then the processing unit 602 determines the dual SIM card security authentication result information based on the first security authentication result information and the second security authentication result information.
[0175] In one possible implementation, the terminal device 600 further includes a storage unit 603. The storage unit 603 and the processing unit 602 are connected via a line. The storage unit 603 may include one or more memories, which can be devices in one or more devices or circuits used for storing programs or data. The storage unit 603 can exist independently and be connected to the processing unit 602 via a communication bus. Alternatively, the storage unit 603 can be integrated with the processing unit 602.
[0176] Storage unit 603 can store computer-executable instructions for the methods in the terminal device, so that processing unit 602 can execute the methods in the above embodiments. Storage unit 603 can be a register, cache, or random access memory (RAM), etc., and storage unit 603 can be integrated with processing unit 602. Storage unit 603 can be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and storage unit 603 can be independent of processing unit 602.
[0177] Figure 7 This is a schematic diagram of a chip structure provided in an embodiment of this application. Figure 7 As shown, chip 700 includes one or more processors 701, communication lines 702 and communication interfaces 703. Optionally, chip 700 also includes memory 704.
[0178] In some implementations, memory 704 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0179] The methods described in the embodiments of this application can be applied to processor 701, or implemented by processor 701. Processor 701 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of processor 701 or by instructions in software form. The processor 701 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 701 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0180] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 704, and processor 701 reads the information in memory 704 and, in conjunction with its hardware, completes the steps of the above method.
[0181] The processor 701, memory 704 and communication interface 703 can communicate with each other through communication line 702.
[0182] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.
[0183] This application also provides a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disk, hard disk, or magnetic tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid-state disk (SSD)).
[0184] This application provides a terminal device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the computer program to perform the above-described mode control method.
[0185] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the technical solutions in the above embodiments. Its implementation principle and technical effects are similar to those in the related embodiments described above, and will not be repeated here.
[0186] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0187] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, DVDs, floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0188] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0189] The above specific embodiments further illustrate the purpose, technical solution and beneficial effects of this application. It should be understood that the above are only specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.
Claims
1. A dual-SIM card security authentication method, characterized in that, The method is applied to a terminal that supports SIM card 1, SIM card 2, and eSIM card. The terminal enables SIM card 1 and SIM card 2, or enables SIM card 1 and eSIM card. The method includes: With dual SIM card security authentication enabled, the first dual SIM card security authentication request was detected; Based on the first dual SIM card security authentication request, the SIM card 1 is security authenticated to obtain the first security authentication result information; Based on the first dual SIM card security authentication request, the SIM card 2 is authenticated to obtain the second security authentication result information; The dual SIM card security authentication result information is determined based on the first security authentication result information and the second security authentication result information.
2. The method according to claim 1, characterized in that, The terminal enables SIM card 1 and SIM card 2, and the method further includes: First SIM card switching command detected; Check if the dual SIM card security authentication function is enabled; According to the first SIM card switching instruction, the SIM card 2 is deactivated and the eSIM card is activated; With the dual SIM card security authentication function enabled, the SIM card 2 is security authenticated to obtain the third security authentication result information; The dual SIM card security authentication result information is determined based on the first security authentication result information and the third security authentication result information.
3. The method according to claim 2, characterized in that, The step of deactivating the SIM card 2 and activating the eSIM card includes: Deactivate SIM card 2 and maintain the high level of the power supply pin corresponding to SIM card 2; Enable the eSIM card.
4. The method according to claim 2, characterized in that, After deactivating the SIM card 2 and enabling the eSIM card, but before performing security authentication on the SIM card 2, the method further includes: Power on the power supply pin of the SIM card 2.
5. The method according to claim 1, characterized in that, The terminal enables the SIM card 1 and the eSIM card, and the method further includes: Second SIM card switching command detected; Check if the dual SIM card security authentication function is enabled; According to the second SIM card switching command, the eSIM card is deactivated and the SIM card 2 is activated; With the dual SIM card security authentication function enabled, the SIM card 2 is security authenticated to obtain the fourth security authentication result information; The dual SIM card security authentication result information is determined based on the first security authentication result information and the fourth security authentication result information.
6. The method according to any one of claims 1-5, characterized in that, Before detecting the first dual SIM card security authentication request, the method further includes: A command to enable dual SIM card security authentication was detected. The dual SIM card security authentication function is activated according to the dual SIM card security authentication function activation command.
7. The method according to claim 6, characterized in that, Before obtaining the first dual-SIM card security authentication trigger information, and after obtaining the dual-SIM card security verification function enable information, the method further includes: Detect whether SIM card 1 and SIM card 2 are both in place at the same time.
8. The method according to claim 7, characterized in that, The method further includes: It is determined that SIM card 1 and SIM card 2 are not both present at the same time; Notification that dual SIM cards were not present at the same time.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: The dual SIM card security authentication result information indicates that the dual SIM card security authentication failed; Generate a notification of dual SIM card security authentication failure.
10. A terminal device, characterized in that, It includes a memory and a processor, the memory being used to store a computer program, and the processor being used to invoke the computer program to execute the dual SIM card security authentication method as described in any one of claims 1 to 9.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program or instructions, which, when executed, implement the dual SIM card security authentication method as described in any one of claims 1 to 9.
12. A computer program product, characterized in that, Includes a computer program that, when run, causes a computer to perform the dual SIM card security authentication method as described in any one of claims 1 to 9.