SIM card switching method and device, terminal equipment and storage medium
By displaying candidate SIM card information and modifying modem configuration in the terminal device, dynamic switching of SIM cards is achieved, which solves the flexibility limitations of eSIM cards in dual SIM dual standby phones, reduces hardware costs and energy consumption, and improves user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TCL COMM TECH (CHENGDU) LTD
- Filing Date
- 2026-01-26
- Publication Date
- 2026-05-01
AI Technical Summary
In the existing technology, the hardware design of dual SIM dual standby mobile phones limits the flexibility of eSIM cards, making it impossible for users to dynamically adjust SIM card binding, increasing hardware costs and energy consumption, and the multi-eSIM card storage function is not fully utilized.
By displaying multiple candidate SIM card information on the terminal device and responding to user operations to modify the modem configuration parameters, the SIM card switching of the target card slot can be realized, and the physical SIM card and eSIM card can be dynamically bound, avoiding hardware insertion and removal operations.
It achieves a similar multi-SIM standby function with fewer card slots, reducing costs and energy consumption, and improving user experience and flexibility.
Smart Images

Figure CN121968153A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a SIM card switching method, apparatus, terminal device, and storage medium. Background Technology
[0002] In the field of SIM card management for mobile communication terminals, the currently widely used dual-SIM dual-standby technology enables mobile phones to actively maintain the connection of two SIM cards simultaneously, but its card slot configuration mode has obvious limitations. Currently, the mainstream solutions mainly adopt two fixed combinations: one is equipped with two physical SIM card slots, requiring users to insert physical SIM cards to achieve dual-SIM standby; the other is a combination of one physical card slot and an eSIM, where the eSIM acts as a virtual SIM card to provide additional communication capabilities.
[0003] Taking eSIM-enabled devices as an example, although eSIM technology has advantages such as rewritability and flexible carrier switching, the existing technical framework still binds it to the physical SIM card slot in a fixed combination. For example, in dual-SIM phones, even if a user has stored information for multiple eSIM cards, they can only switch between the bound physical SIM card and a single eSIM card.
[0004] In this situation, users need to expand communication capabilities by increasing the number of physical card slots, which directly increases hardware costs and terminal size. The flexibility of eSIM technology is not fully utilized, and the multi-eSIM card storage function is rendered useless. Summary of the Invention
[0005] This application provides a SIM card switching method, apparatus, terminal device, and storage medium, which allows users to freely switch the SIM cards bound to the card slots in the terminal. It can achieve a function similar to multi-SIM card standby with fewer card slots, significantly reducing costs and energy consumption, and improving user experience.
[0006] The technical solution adopted by this invention to solve the problem is as follows: On the one hand, this application provides a SIM card switching method, including: Displays information about multiple candidate SIM cards corresponding to the target card slot, including physical SIM cards and eSIM cards supported by the terminal; In response to the operation of selecting the first SIM card among multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0007] In some embodiments of this application, in response to the operation of selecting a first SIM card among multiple candidate SIM cards, the configuration parameters of the modem are modified, including: In response to the operation of selecting a first SIM card among multiple candidate SIM cards, handover information is generated, wherein the handover information includes the identifier of the first SIM card; The switching information is sent to the application framework layer through the application framework interface. The application framework layer generates parameter modification instructions based on the switching information and calls the modem's interface to send the parameter modification instructions to the modem, so that the modem can modify the configuration parameters based on the parameter modification instructions.
[0008] In some embodiments of this application, the handover information is sent to the application framework layer via the application framework interface. The application framework layer generates parameter modification instructions based on the handover information and calls the modem's interface to send the parameter modification instructions to the modem, including: The switching information is sent to the application framework layer via the application framework interface; The application framework layer performs permission verification and obtains the verification result. If the verification result shows that the permission verification is successful, the application framework layer generates a parameter modification instruction based on the switching information and calls the modem's interface to send the parameter modification instruction to the modem.
[0009] In some embodiments of this application, after modifying the modem configuration parameters in response to the operation of selecting a first SIM card from a plurality of candidate SIM cards, the following steps are included: Reboot the terminal to power on the first SIM card via the modem based on the modified configuration parameters.
[0010] In some embodiments of this application, multiple candidate SIM cards corresponding to the target card slot are shown, including: Displays SIM card switching settings options; In response to selecting the SIM card switching settings option, the target card slot settings options are displayed; In response to the selection of the target SIM slot settings option, information on multiple candidate SIM cards is displayed in a drop-down menu.
[0011] In some embodiments of this application, the method further includes: In response to the operation of selecting a first SIM card from multiple candidate SIM cards, the association between the target card slot and the first SIM card is displayed, and / or the carrier information of the first SIM card is displayed.
[0012] In some embodiments of this application, the method further includes: In response to the operation of selecting the first SIM card among multiple candidate SIM cards, a prompt message is displayed to guide you to set up call forwarding; In response to the prompt message's selection action, the user is redirected to the call forwarding settings interface to configure call forwarding functionality for the second SIM card.
[0013] Secondly, embodiments of the present invention also provide a SIM card switching device, comprising: The display module is used to display multiple candidate SIM cards corresponding to the target card slot. The multiple candidate SIM cards include the physical SIM card inserted into the terminal and the eSIM card supported by the terminal. The switching module is used to modify the modem's configuration parameters in response to the operation of selecting the first SIM card among multiple candidate SIM cards, so as to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0014] Thirdly, this application also provides a terminal device, which includes: One or more processors; Memory; and One or more applications, wherein the applications are stored in memory and configured to be executed by a processor to implement the SIM card switching method of any of the first aspects.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the SIM card switching method of any of the first aspects.
[0016] The beneficial effects of this invention are as follows: By displaying information about multiple candidate SIM cards corresponding to the target SIM card slot to the user, and after the user selects the first SIM card from the multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card currently bound to the target SIM card slot from the second SIM card to the first SIM card. This allows the user to freely switch the SIM card bound to the SIM card slot in the terminal, achieving a function similar to multi-SIM card standby with fewer SIM card slots, significantly reducing costs and energy consumption, and improving the user experience. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of a SIM card switching system provided in an embodiment of the present invention; Figure 2This is a flowchart illustrating one embodiment of the SIM card switching method provided in this invention. Figure 3 This is a flowchart illustrating a specific embodiment of SIM card switching provided in this invention. Figure 4 This is a schematic block diagram of the SIM card switching device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of an embodiment of the terminal device provided in this invention. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0020] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of the stated features.
[0021] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0022] It should be noted that since the method in this application embodiment is executed in a terminal device, the processing objects of each terminal device exist in the form of data or information, such as time, which is essentially time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data that exist so that the terminal device can process them. Specific details will not be elaborated here.
[0023] This application provides a SIM card switching method, apparatus, terminal device, and storage medium, which will be described in detail below.
[0024] Please see Figure 1 , Figure 1 This is a schematic diagram of a SIM card switching system provided in an embodiment of this application. The SIM card switching system may include a terminal device 100, which integrates a SIM card switching device, such as... Figure 1 Terminal devices in the process.
[0025] In this embodiment, the terminal device 100 is mainly used to display information of multiple candidate SIM cards corresponding to the target card slot. The multiple candidate SIM cards include physical SIM cards and eSIM cards supported by the terminal. In response to the operation of selecting the first SIM card among the multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card. This allows the user to freely switch the SIM card bound to the card slot in the terminal, achieving a function similar to multi-SIM card standby with fewer card slots, significantly reducing costs and energy consumption, and improving the user experience.
[0026] In this embodiment, the terminal device 100 can be an independent server, a server network, or a server cluster. For example, the terminal device 100 described in this embodiment includes, but is not limited to, a computer, a network host, a single network server, a set of multiple network servers, or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0027] It is understood that the terminal device 100 used in the embodiments of this application can be a device that includes both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. Such a device may include: cellular or other communication devices having a single-line display, a multi-line display, or a cellular or other communication device without a multi-line display. Specifically, the terminal device 100 may be a desktop terminal or a mobile terminal, and the terminal device 100 may also be one of a mobile phone, tablet computer, laptop computer, etc.
[0028] Those skilled in the art will understand that Figure 1 The application environment shown is merely one application scenario of the solution in this application and does not constitute a limitation on the application scenario of the solution in this application. Other application environments may include those that are more specific to this application. Figure 1 The number of more or fewer terminal devices shown, for example Figure 1 Only one terminal device is shown in the diagram. It is understood that the SIM card switching system may also include one or more other services, which are not specified here.
[0029] In addition, such as Figure 1 As shown, the SIM card switching system may also include a memory 200 for storing data, such as information on multiple candidate SIM cards, configuration parameters, etc.
[0030] It should be noted that, Figure 1 The schematic diagram of the SIM card switching system shown is merely an example. The SIM card switching system and scenario described in this application are for the purpose of more clearly illustrating the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of SIM card switching systems and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
[0031] First, this application provides a SIM card switching method. The execution subject of the SIM card switching method is a SIM card switching device, which is applied to a terminal device. The SIM card switching method includes: displaying information of multiple candidate SIM cards corresponding to a target SIM card slot, wherein the multiple candidate SIM cards include physical SIM cards and eSIM cards supported by the terminal; in response to the operation of selecting a first SIM card among the multiple candidate SIM cards, modifying the configuration parameters of the modem to switch the SIM card currently bound to the target SIM card slot from a second SIM card to the first SIM card.
[0032] In related technologies, although the chips in mobile phones and other terminal devices (using mobile phones as an example below) have the ability to support writing information for multiple eSIM cards, allowing the terminal device to store configuration data for multiple eSIM cards, in practical applications, mobile phone manufacturers are limited by multiple factors such as hardware design, cost control, and user experience, and generally adopt a dual-SIM dual-standby architecture as the mainstream solution. Under this architecture, mobile phones are usually equipped with only two physical card slots, or a combination of one physical card slot and one eSIM card slot, resulting in the terminal device being able to realize the standby function of a maximum of two SIM cards at any given time.
[0033] Specifically, when a user needs to switch communication cards, the system only allows switching between the SIM cards corresponding to the two bound card slots. For example, between the physical SIM card (PSIM card) in physical card slot 1 and the physical SIM card in physical card slot 2, or between the physical SIM card and the eSIM card in the physical card slot, the user can only choose the activation target. The system cannot break through the limitation of the number of card slots.
[0034] For example, in phones that support eSIM functionality, although the chip level supports the storage and management of multiple eSIM cards, in actual use, users still need to pre-bind a certain eSIM card to the physical card slot or the built-in eSIM card slot to form a fixed dual-SIM combination. This leads to the following problems: First, if a user needs to use a third SIM card, they must switch by turning off the phone and inserting / removing the physical card, which is cumbersome and inefficient. Second, the multi-eSIM card storage function is rendered useless, as users cannot dynamically adjust the active SIM card according to actual needs (such as cross-regional roaming or tariff optimization), resulting in wasted resources. Third, there is hardware design redundancy; if phone manufacturers need to add card slots or independent eSIM modules to support multi-SIM functionality, it will increase the cost and size of the terminal, which contradicts the trend of thinner and lighter mobile devices.
[0035] In other words, although current hardware technology supports multiple eSIM cards, it is limited by the hardware framework of dual SIM dual standby and static binding logic, which fails to unleash the full value of eSIM technology, resulting in significant problems for users in terms of multi-card management, cost optimization and energy efficiency control.
[0036] To solve the above problems, such as Figure 2 The diagram shown is a flowchart of an embodiment of the SIM card switching method in this application. The SIM card switching method may include the following steps S201 to S202, as detailed below: Step S201: Display information on multiple candidate SIM cards corresponding to the target card slot, including physical SIM cards and eSIM cards supported by the terminal.
[0037] In one specific embodiment, this application can be applied to terminal devices, specifically mobile devices based on SIM card communication such as mobile phones, tablets, and smartwatches, or communication devices in the Internet of Things (IoT) field that have SIM cards installed. It should be noted that the SIM card in this application includes both physical SIM cards (PSIM cards) and eSIM cards. The execution entity of this step can be the control system in the terminal device, which can switch SIM cards based on user operations on the terminal device. User operations on the terminal device can take various forms, such as button operations, click operations, gesture operations, etc., and this embodiment does not limit the specific methods.
[0038] The target SIM card slot can be a pre-set physical SIM card slot in the terminal device, capable of inserting a physical SIM card, or it can be an embedded SIM card chip that can be bound to an eSIM card via over-the-air (OTA) writing. To some extent, the target SIM card slot can be understood as an empty slot for a SIM card waiting to be powered on; the powered-on SIM card can be a physical SIM card or an eSIM card. Multiple candidate SIM cards include all available SIM cards stored in the phone's chip, including physical SIM cards and written eSIM cards, such as physical SIM card A, eSIM card B, and eSIM card C inserted into the user's phone. The information for the multiple candidate SIM cards can be information indicating the identity of the corresponding SIM card, such as the SIM card identifier, the corresponding operator, or the corresponding phone number; this embodiment does not impose such limitations.
[0039] In this embodiment, the terminal system can provide the user with all SIM card options that can be bound to the current target card slot through a display interface, allowing the user to intuitively understand the available resources. Specifically, a list of candidate SIM cards can be displayed through the user interface (UI), including information on multiple candidate SIM cards, so that the user can distinguish between multiple candidate SIM cards and avoid operational errors due to missing information. For example, it can display "eSIM-operator A-155xxxxxxxx" or "PSIM-operator B-188xxxxxxxx", but this embodiment is not limited to this.
[0040] Step S202: In response to the operation of selecting the first SIM card among multiple candidate SIM cards, modify the configuration parameters of the modem to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0041] The first SIM card can be the SIM card selected by the user through the UI interface and bound to the target SIM card slot. The modem is the core component of the baseband chip, responsible for handling mobile communication signal protocols and data. Configuration parameters include SIM card type (PSIM / eSIM), the identifier of the SIM card to be powered on, network protocol, communication bandwidth, etc., which can be dynamically modified through the software interface. The second SIM card refers to the original SIM card bound to the target SIM card slot before the switch; it can be a PSIM or eSIM.
[0042] In one specific embodiment, the user selects the SIM card to be bound from a candidate list via a UI interface. Specific operations may include user input behaviors such as clicking and swiping. The system can capture the user's intention to actively select the card, converting the user's request into an executable command, triggering the SIM card switching process to switch the currently bound SIM card in the target slot from the previous second SIM card to the user-selected first SIM card. Through intuitive interactive design, the system lowers the user's operational threshold, improves switching efficiency, and allows users to flexibly adjust SIM card binding according to actual needs (such as roaming or tariff changes), enhancing adaptability to various usage scenarios. In this embodiment, by responding to user operations, the modem parameters are dynamically modified, enabling the target card slot to switch from a SIM card at the software level. This is equivalent to supporting a function similar to switching between multiple SIM cards under the current dual-SIM architecture, without the need for additional hardware modules, significantly reducing costs and energy consumption, and improving the user experience.
[0043] In one specific implementation, in response to the operation of selecting a first SIM card from multiple candidate SIM cards, the configuration parameters of the modem are modified, including: in response to the operation of selecting a first SIM card from multiple candidate SIM cards, generating switching information, wherein the switching information includes the identifier of the first SIM card; sending the switching information to the application framework layer through the application framework interface, wherein the application framework layer generates a parameter modification instruction based on the switching information, and calls the modem's interface to send the parameter modification instruction to the modem, so that the modem modifies the configuration parameters based on the parameter modification instruction.
[0044] In this embodiment, the switching information can be a data packet containing the unique identifier of the first SIM card, used to instruct the system to perform a switching operation. After the user makes a selection, the system captures the user's intent and generates switching information to drive various modules in the terminal device to perform relevant operations, thereby realizing the SIM card switching. The application framework layer is the middle layer in the Android system architecture, responsible for parsing user commands and calling the underlying hardware interfaces. The application framework interface refers to the Android Framework API, used for interaction between upper-layer applications (such as the settings interface) and the underlying system (application framework layer).
[0045] When a user selects a SIM card from multiple candidate SIM cards in the phone's UI as the primary SIM card—for example, switching the binding of SIM slot 2 from a physical SIM card to an eSIM card—Carrier A—the system generates a switching message containing the unique identifier of the primary SIM card. This message serves as the basis for subsequent operations. This switching message is passed to the application framework layer through the phone's operating system's application framework interface, where the user's intent is parsed and converted into executable system commands. Based on the primary SIM card identifier in the switching message, the application framework layer generates specific parameter modification commands, such as "change the binding of SIM slot 2 to an eSIM card—Carrier A," and sends these commands to the modem by calling the modem's underlying interface. Upon receiving the commands, the modem modifies its internal configuration parameters, such as SIM slot power control and communication protocol stack configuration, to power on the primary SIM card and complete network registration, thus achieving dynamic switching between the SIM slot and SIM card type.
[0046] In one specific implementation, the switching information is sent to the application framework layer through the application framework interface. The application framework layer generates a parameter modification instruction based on the switching information and calls the modem's interface to send the parameter modification instruction to the modem. This includes: sending the switching information to the application framework layer through the application framework interface; the application framework layer performing permission verification and obtaining the verification result; if the verification result indicates that the permission verification is successful, the application framework layer generates a parameter modification instruction based on the switching information and calls the modem's interface to send the parameter modification instruction to the modem.
[0047] In this embodiment, the application framework layer can also perform user permission verification before sending instructions to ensure security. Permission verification can specifically be user authentication (such as password or fingerprint) or operation permission checks (such as administrator privileges) to prevent network configuration chaos or security risks caused by unauthorized switching.
[0048] When a user initiates a SIM card switching operation on the phone interface, the system first generates switching information containing the identifier of the first SIM card. This information is passed to the application framework layer through the application framework interface of the phone's operating system. In the application framework layer, the system executes a permission verification process, checking whether the current operation meets preset security conditions, such as allowing only administrator accounts or the phone owner to switch, and returns a verification result (pass / reject). If the verification passes, the application framework layer generates specific parameter modification instructions based on the first SIM card identifier in the switching information, and then calls the modem's underlying driver interface to send the instructions to the modem. After receiving the instructions, the modem modifies its internal configuration parameters, powering on the first SIM card and completing network registration, ultimately achieving dynamic switching between the card slot and the SIM card type.
[0049] If the verification fails, the system can immediately terminate the generation and issuance of parameter modification commands to prevent Modom from receiving illegal configuration requests. Additionally, a pop-up message can be displayed in the user interface, clearly informing the user that "You do not have permission to perform this operation. Please log in using an administrator account." The illegal operation can also be recorded in the system security log (including time, user ID, and first SIM card identifier) for administrator auditing or tracing.
[0050] This embodiment ensures that the SIM card dynamic switching function only takes effect in legal scenarios, which meets the core requirements for improving system security and provides mobile phone manufacturers with a feasible security control solution.
[0051] In one specific implementation, in response to the operation of selecting a first SIM card among multiple candidate SIM cards, after modifying the configuration parameters of the modem, the process includes: restarting the terminal to power on the first SIM card via the modem based on the modified configuration parameters.
[0052] In this embodiment, since the modification of the modem parameters usually requires a restart and re-initialization of the hardware module (such as the card slot controller) to ensure that the new configuration is loaded correctly; in addition, after the SIM card is switched, the modem needs to re-establish a connection with the operator's network (such as attaching to the LTE core network). A restart can trigger a complete network registration process and avoid communication abnormalities caused by parameters not being refreshed.
[0053] Therefore, after modifying the modem's configuration parameters, the system needs to restart the terminal so that the modem reloads the configuration parameters during the restart process and performs a power-on operation on the first SIM card according to the modified new configuration parameters. That is, the power-on program of the start card chip is controlled by the chip parameters to finally complete network registration and realize the switching of SIM cards without the need for hardware insertion and removal.
[0054] In one specific implementation, displaying multiple candidate SIM cards corresponding to the target SIM card slot includes: displaying SIM card switching settings options; displaying target SIM card slot settings options in response to selecting the SIM card switching settings option; and displaying information about multiple candidate SIM cards in a drop-down menu in response to selecting the target SIM card slot settings option.
[0055] In this embodiment, a "SIM card switching settings" option can be added to the phone's settings interface as an entry point for SIM card switching. If the user clicks this option, a new SIM card management interface will display the "target card slot settings" option, such as "card slot 1 settings" and "card slot 2 settings." These two options allow control over the SIM cards bound to the two card slots in a dual-SIM phone. The user can select the desired card slot and perform targeted operations. After the user selects a card slot (e.g., card slot 2), the system can read the written eSIM card information (e.g., IMSI, carrier identifier) and physical SIM card status (e.g., whether it is inserted) from the modem, dynamically generating a list containing information on all candidate SIM cards. Specifically, the UI interface can display all SIM cards that can be bound to the card slot in the form of a drop-down menu, from which the user can select the first SIM card. It should be noted that, besides the drop-down menu, there can be other ways to display information on multiple candidate SIM cards; this embodiment does not impose any limitations.
[0056] In one specific implementation, the method further includes: in response to the operation of selecting a first SIM card from a plurality of candidate SIM cards, displaying the association between the target card slot and the first SIM card, and / or, displaying the operator information of the first SIM card.
[0057] In this embodiment, when a user selects one of multiple candidate SIM cards as the first SIM card in the mobile phone SIM card management interface, for example, selecting eSIM card - operator A, the system will obtain the detailed information of the first SIM card and bind it to the target card slot. Then, the binding result can be rendered to the screen through the UI interface, immediately displaying the association between the target card slot and the first SIM card (e.g., "Card Slot 2: eSIM - operator - A"). At the same time, the operator information of the first SIM card can be selectively displayed, such as operator name, communication number (mobile phone number), network standard, or tariff plan.
[0058] In one specific implementation, the method further includes: in response to the operation of selecting a first SIM card among multiple candidate SIM cards, displaying a prompt message for prompting the setting of call forwarding; and in response to the selection operation of the prompt message, jumping to the call forwarding setting interface to set the call forwarding function for the second SIM card through the call forwarding setting interface.
[0059] In this embodiment, the user wants to switch to the first SIM card. After the switch, the first SIM card will replace the second SIM card in the original card slot to perform the communication function. In order to facilitate the user, the system can provide a call forwarding setting entry for the card to avoid the second SIM card being unable to answer calls after the switch, which would cause service interruption.
[0060] When a user selects the first SIM card in the phone's SIM card management interface, the system can display a prompt message to help set up call forwarding, such as a pop-up window asking, "Switching SIM cards may cause the original number to be unable to receive calls. Do you want to set up call forwarding?"
[0061] If the user chooses to trigger this prompt, such as clicking "Yes", the system will redirect to the call forwarding settings interface. In this interface, the user can configure call forwarding rules for the second SIM card, such as forwarding all incoming calls to the newly switched eSIM card - Operator A or other designated numbers.
[0062] As one specific implementation method, such as Figure 3 As shown, taking SIM slot 2 in a dual-SIM phone as an example, after the user starts the phone, the system reads the current configuration parameters of the modem and binds SIM slot 2 to the corresponding default SIM card (i.e., the second SIM card mentioned earlier). The user can reset the SIM card by entering the settings interface and selecting the physical SIM card or eSIM card (i.e., the first SIM card mentioned earlier) to be bound to SIM slot 2. The system can then modify the modem's configuration parameters by calling the Modem API through the application framework layer, and then restart the phone. A prompt message can also appear asking the user whether to set call forwarding for the original default SIM card. If the user selects "yes," the system will jump to the call forwarding module for settings; otherwise, it will directly restart the phone. After restarting, the phone will reload the configuration parameters, power on the selected SIM card according to the new configuration parameters, and complete the initialization, realizing the dual-SIM dual-standby function. In addition, the system can periodically shut down unused eSIM cards in the background to avoid energy waste.
[0063] To better implement the SIM card switching method in the embodiments of this application, based on the SIM card switching method, the embodiments of this application also provide a SIM card switching device, such as... Figure 4 As shown, the SIM card switching device 400 includes: Display module 410 is used to display multiple candidate SIM cards corresponding to the target card slot, wherein the multiple candidate SIM cards include the physical SIM card inserted into the terminal and the eSIM card supported by the terminal; The switching module 420 is used to modify the configuration parameters of the modem in response to the operation of selecting a first SIM card among multiple candidate SIM cards, so as to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0064] In this embodiment, by displaying information about multiple candidate SIM cards corresponding to the target SIM card slot to the user, and after the user selects the first SIM card from the multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card bound to the target SIM card slot from the second SIM card to the first SIM card. This allows the user to freely switch the SIM card bound to the SIM card slot in the terminal, achieving a function similar to multi-SIM card standby with fewer SIM card slots, significantly reducing costs and energy consumption, and improving the user experience.
[0065] In some embodiments of this application, the switching module 420, in response to the operation of selecting a first SIM card among a plurality of candidate SIM cards, modifies the configuration parameters of the modem, including: In response to the operation of selecting a first SIM card among multiple candidate SIM cards, handover information is generated, wherein the handover information includes the identifier of the first SIM card; The switching information is sent to the application framework layer through the application framework interface. The application framework layer generates parameter modification instructions based on the switching information and calls the modem's interface to send the parameter modification instructions to the modem, so that the modem can modify the configuration parameters based on the parameter modification instructions.
[0066] In some embodiments of this application, the switching module 420 sends switching information to the application framework layer through the application framework interface. The application framework layer generates parameter modification instructions based on the switching information and calls the modem's interface to send the parameter modification instructions to the modem, including: The switching information is sent to the application framework layer via the application framework interface; The application framework layer performs permission verification and obtains the verification result. If the verification result shows that the permission verification is successful, the application framework layer generates a parameter modification instruction based on the switching information and calls the modem's interface to send the parameter modification instruction to the modem.
[0067] In some embodiments of this application, after the SIM card switching device 400 modifies the configuration parameters of the modem in response to the operation of selecting a first SIM card from a plurality of candidate SIM cards, it includes: Reboot the terminal to power on the first SIM card via the modem based on the modified configuration parameters.
[0068] In some embodiments of this application, the display module 410 displays multiple candidate SIM cards corresponding to the target card slot, including: Displays SIM card switching settings options; In response to selecting the SIM card switching settings option, the target card slot settings options are displayed; In response to the selection of the target SIM slot settings option, information on multiple candidate SIM cards is displayed in a drop-down menu.
[0069] In some embodiments of this application, the SIM card switching device 400 is further configured to, in response to the operation of selecting a first SIM card among a plurality of candidate SIM cards, display the association between the target card slot and the first SIM card, and / or display the operator information of the first SIM card.
[0070] In some embodiments of this application, the SIM card switching device 400 is further configured to display a prompt message for prompting call forwarding settings in response to the operation of selecting a first SIM card among a plurality of candidate SIM cards; In response to the prompt message's selection action, the user is redirected to the call forwarding settings interface to configure call forwarding functionality for the second SIM card.
[0071] This application embodiment also provides a terminal device that integrates any of the SIM card switching devices provided in this application embodiment. The terminal device includes: One or more processors; Memory; and One or more applications, wherein the applications are stored in memory and configured to be executed by a processor in the steps of the SIM card switching method in any of the embodiments described above.
[0072] This application also provides a terminal device that integrates any of the SIM card switching devices provided in this application. For example... Figure 5 As shown, it illustrates a structural schematic diagram of the terminal device involved in the embodiments of this application. Specifically: The terminal device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The terminal device structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 501 is the control center of the terminal device. It connects various parts of the terminal device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, thereby providing overall monitoring of the terminal device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.
[0073] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 502 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, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0074] The terminal device also includes a power supply 503 that supplies power to the various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0075] The terminal device may also include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0076] Although not shown, the terminal device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the terminal device loads the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 runs the applications stored in the memory 502 to realize various functions, as follows: Displays information about multiple candidate SIM cards corresponding to the target card slot, including physical SIM cards and eSIM cards supported by the terminal; In response to the operation of selecting the first SIM card among multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0077] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0078] Therefore, embodiments of this application provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the SIM card switching methods provided in embodiments of this application. For example, the computer program loaded by the processor can execute the following steps: Displays information about multiple candidate SIM cards corresponding to the target card slot, including physical SIM cards and eSIM cards supported by the terminal; In response to the operation of selecting the first SIM card among multiple candidate SIM cards, the configuration parameters of the modem are modified to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
[0079] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0080] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.
[0081] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0082] The SIM card switching method, apparatus, terminal device, and storage medium provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A SIM card switching method, characterized in that, include: Displays information about multiple candidate SIM cards corresponding to the target card slot, wherein the multiple candidate SIM cards include physical SIM cards and eSIM cards supported by the terminal; In response to the operation of selecting a first SIM card among the plurality of candidate SIM cards, the configuration parameters of the modem are modified to switch the second SIM card currently bound to the target card slot to the first SIM card.
2. The SIM card switching method according to claim 1, characterized in that, The operation of selecting a first SIM card from the plurality of candidate SIM cards, modifying the modem configuration parameters, includes: In response to the operation of selecting the first SIM card from the plurality of candidate SIM cards, switching information is generated, wherein the switching information includes the identifier of the first SIM card; The switching information is sent to the application framework layer through the application framework interface. The application framework layer generates a parameter modification instruction based on the switching information and calls the interface of the modem to send the parameter modification instruction to the modem, so that the modem modifies the configuration parameters based on the parameter modification instruction.
3. The SIM card switching method according to claim 2, characterized in that, The step of sending the switching information to the application framework layer through the application framework interface, whereby the application framework layer generates a parameter modification instruction based on the switching information, and calls the modem's interface to send the parameter modification instruction to the modem, includes: The switching information is sent to the application framework layer through the application framework interface; The application framework layer performs permission verification to obtain the verification result; If the verification result indicates that the permission verification is successful, the application framework layer generates the parameter modification instruction based on the switching information, and calls the interface of the modem to send the parameter modification instruction to the modem.
4. The SIM card switching method according to claim 1, characterized in that, In response to the operation of selecting a first SIM card among the plurality of candidate SIM cards, after modifying the modem configuration parameters, the following is included: Reboot the terminal to power on the first SIM card via the modem based on the modified configuration parameters.
5. The SIM card switching method according to claim 1, characterized in that, The multiple candidate SIM cards corresponding to the target SIM card slot are as follows: Displays SIM card switching settings options; In response to selecting the SIM card switching settings option, the target card slot settings options are displayed; In response to the selection of the target card slot setting option, information of the multiple candidate SIM cards is displayed in a drop-down menu.
6. The SIM card switching method according to claim 1, characterized in that, Also includes: In response to the operation of selecting the first SIM card from the plurality of candidate SIM cards, the association between the target card slot and the first SIM card is displayed, and / or the carrier information of the first SIM card is displayed.
7. The SIM card switching method according to claim 1, characterized in that, Also includes: In response to the operation of selecting the first SIM card from the plurality of candidate SIM cards, a prompt message for setting up call forwarding is displayed; In response to the selection operation of the prompt message, the user is redirected to the call forwarding settings interface to configure the call forwarding function for the second SIM card.
8. A SIM card switching device, characterized in that, include: The display module is used to display information about multiple candidate SIM cards corresponding to the target card slot, including physical SIM cards and eSIM cards supported by the terminal. The switching module is used to modify the modem's configuration parameters in response to the operation of selecting the first SIM card among multiple candidate SIM cards, so as to switch the SIM card currently bound to the target card slot from the second SIM card to the first SIM card.
9. A terminal device, characterized in that, The terminal device includes: one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the SIM card switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps of the SIM card switching method according to any one of claims 1 to 7.