SIM card processing method, device, equipment and storage medium based on dual system
By automatically binding the SIM card and the operating system using a preset attribute file in a dual-system terminal, the problems of poor user experience and data security are solved, and automatic binding of the SIM card and the operating system and data security are achieved.
Patent Information
- Application Number
- CN202111545077.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2041-12-16
AI Technical Summary
In a dual-system terminal, the existing technology requires manual switching of different SIM cards used by different systems as Internet access cards, resulting in a poor user experience and inability to guarantee data security.
After the terminal device is turned on or restarted, a data dialing request is initiated, and the preset attribute file is used to determine whether the data card slot bound to the operating system is the card slot where the target SIM card is located. If they are consistent, the network attachment process is executed to achieve automatic binding of the SIM card and the operating system.
This improves user experience, ensures data security, and avoids data security risks caused by manual SIM card switching.
Smart Images

Figure CN116266941B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a dual-system-based SIM card processing method, apparatus, device, and storage medium. Background Art
[0002] With the continuous development of computer and electronic technologies, terminals such as smartphones and tablets are becoming increasingly powerful, meeting many of people's needs for work, study, and entertainment. For example, current smartphones can run dual-operation systems. For example, in the current Android system, terminal applications can run not only in the phone's default Android system, but also in a virtual system under the Android system, thus achieving the purpose of dual opening.
[0003] Conventional technology requires that dual-system terminals running two systems use the same subscriber identity module (SIM) for both systems. However, to ensure data security across different systems, manual selection and switching are required if different SIM cards are to be used for each system.
[0004] However, manually switching different SIM cards used by different systems as Internet cards not only results in a poor user experience, but also may cause data security to be unguaranteed due to the user not switching the SIM cards. Summary of the Invention
[0005] The present application provides a dual-system-based SIM card processing method, apparatus, device, and storage medium to overcome the problem that data security cannot be guaranteed in existing dual-system terminals.
[0006] In a first aspect, the present application provides a dual-system-based SIM card processing method, which is applied to a terminal device with dual systems, and the method includes:
[0007] After the terminal device is powered on or restarted, a data dialing request is initiated, where the data dialing request includes: an identifier of a target subscriber identity module (SIM) card and an identifier of a first operating system, where the first operating system is any one of two operating systems installed on the terminal device;
[0008] determining, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, wherein the preset attribute file includes a correspondence between each operating system and a data card slot;
[0009] When the data card slot bound to the first operating system is the data card slot where the target SIM card is located, a network attachment process is performed based on the target SIM card.
[0010] In a possible design of the first aspect, the preset attribute file is configured with a correspondence between each operating system and a data card slot, including:
[0011] The preset attribute file is configured with a first attribute parameter and a second attribute parameter, wherein the value of the first attribute parameter represents the data card slot bound to the first operating system, and the value of the second attribute parameter represents the data card slot bound to the second operating system.
[0012] Optionally, the values of the first attribute parameter and the second attribute parameter are both 0 or 1;
[0013] Wherein, the value of the first attribute parameter is 0, indicating that the first operating system is bound to the first card slot; the value of the first attribute parameter is 1, indicating that the first operating system is bound to the second card slot;
[0014] A value of 0 for the second attribute parameter indicates that the second operating system is bound to the first card slot, and a value of 1 for the second attribute parameter indicates that the second operating system is bound to the second card slot.
[0015] Optionally, the value of the first attribute parameter is different from the value of the second attribute parameter.
[0016] Optionally, the determining, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located includes:
[0017] According to the identifier of the first operating system, query the preset attribute file to obtain the value of the first attribute parameter;
[0018] determining, according to a value of the first attribute parameter, a data card slot bound to the first operating system;
[0019] It is determined whether the data card slot where the target SIM card is located is consistent with the data card slot bound to the first operating system.
[0020] In another possible design of the first aspect, performing a network attachment process based on the target SIM card includes:
[0021] Obtain the access point name APN information corresponding to the target SIM card;
[0022] Based on the APN information, a default bearer is established between the target SIM card and the network by interacting with the network side.
[0023] In another possible design of the first aspect, the method further includes:
[0024] When the data card slot bound to the first operating system is not the data card slot where the target SIM card is located, the network attachment process is terminated.
[0025] In another possible design of the first aspect, the method further includes:
[0026] When the terminal device enters the first operating system, a card slot binding prompt is output through the user interaction interface of the first operating system, where the card slot binding prompt is used to prompt the data card slot bound to the first operating system.
[0027] In another possible design of the first aspect, the method further includes:
[0028] Get the system version information of each operating system;
[0029] The preset attribute file is determined and saved according to the system version information of each operating system.
[0030] In a second aspect, an embodiment of the present application provides a dual-system-based SIM card processing device, which is applied to a terminal device with a dual-system, and the device includes:
[0031] an initiating module, configured to initiate a data dialing request after the terminal device is powered on or restarted, the data dialing request including: an identifier of a target subscriber identity module (SIM) card and an identifier of a first operating system, the first operating system being any one of two operating systems installed on the terminal device;
[0032] a determination module, configured to determine, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, wherein the preset attribute file is configured with a correspondence between each operating system and a data card slot;
[0033] The processing module is configured to execute a network attachment process based on the target SIM card when the data card slot bound to the first operating system is the data card slot where the target SIM card is located.
[0034] In a possible design of the second aspect, the preset attribute file is configured with a correspondence between each operating system and a data card slot, including:
[0035] The preset attribute file is configured with a first attribute parameter and a second attribute parameter, wherein the value of the first attribute parameter represents the data card slot bound to the first operating system, and the value of the second attribute parameter represents the data card slot bound to the second operating system.
[0036] Optionally, the values of the first attribute parameter and the second attribute parameter are both 0 or 1;
[0037] Wherein, the value of the first attribute parameter is 0, indicating that the first operating system is bound to the first card slot; the value of the first attribute parameter is 1, indicating that the first operating system is bound to the second card slot;
[0038] A value of 0 for the second attribute parameter indicates that the second operating system is bound to the first card slot, and a value of 1 for the second attribute parameter indicates that the second operating system is bound to the second card slot.
[0039] Optionally, the value of the first attribute parameter is different from the value of the second attribute parameter.
[0040] Optionally, the determination module is specifically configured to:
[0041] According to the identifier of the first operating system, query the preset attribute file to obtain the value of the first attribute parameter;
[0042] determining, according to a value of the first attribute parameter, a data card slot bound to the first operating system;
[0043] It is determined whether the data card slot where the target SIM card is located is consistent with the data card slot bound to the first operating system.
[0044] In another possible design of the second aspect, the processing module is specifically configured to:
[0045] Obtain the access point name APN information corresponding to the target SIM card;
[0046] Based on the APN information, a default bearer is established between the target SIM card and the network by interacting with the network side.
[0047] In another possible design of the second aspect, the processing module is further used to end the network attachment process when the data card slot bound to the first operating system is not the data card slot where the target SIM card is located.
[0048] In another possible design of the second aspect, the apparatus further includes:
[0049] The output module is used to output a binding card slot prompt through the user interaction interface of the first operating system when the terminal device enters the first operating system, wherein the binding card slot prompt is used to prompt the data card slot bound to the first operating system.
[0050] In yet another possible design of the second aspect, the processing module is further configured to:
[0051] Get the system version information of each operating system;
[0052] The preset attribute file is determined and saved according to the system version information of each operating system.
[0053] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a processor, a memory, a communication interface, and a system bus;
[0054] The memory is used to store computer-executable instructions that can be executed on the processor;
[0055] When the processor executes the computer-executable instructions, the method described in the first aspect and various possible designs is implemented.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the method described in the first aspect and various possible designs.
[0057] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the methods described in the first aspect and each possible design.
[0058] The dual-system SIM card processing method, apparatus, device, and storage medium provided in the embodiments of the present application initiate a data dialing request after a terminal device is powered on or restarted. The data dialing request includes: an identifier of a target SIM card and an identifier of a first operating system, where the first operating system is either of two operating systems installed on the terminal device. Because a correspondence between each operating system and a data card slot is configured in a preset attribute file in the terminal device, it is possible to determine, based on the preset attribute file, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located. Therefore, when the data card slot bound to the first operating system is the data card slot where the target SIM card is located, a network attachment process is executed based on the target SIM card, thereby achieving automatic binding of the SIM card and the operating system, improving the user experience, and ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A schematic diagram of a communication system applicable to the dual-system SIM card processing method provided in an embodiment of the present application;
[0060] Figure 2 A flowchart of a first embodiment of a dual-system SIM card processing method according to an embodiment of the present application;
[0061] Figure 3This is a schematic diagram of the internal processing flow of the terminal device executing the dual-system-based SIM card processing method in an embodiment of the present application;
[0062] Figure 4 A flowchart of a second embodiment of a dual-system SIM card processing method according to an embodiment of the present application;
[0063] Figure 5 A schematic structural diagram of an embodiment of a dual-system SIM card processing device provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0066] Currently, operating systems such as Android, commonly known as Android in Chinese, are open source mobile operating systems based on the Linux kernel, which are primarily designed for touch screen mobile devices such as smartphones and tablets and other portable devices.
[0067] Generally, Android terminals, such as Android phones, only have one Android system installed, and each Android system can only select one SIM card as a data card. However, with the rapid development of computer technology, dual-system terminals have emerged, for example, some dual-Android phones have appeared.
[0068] Currently, switching between two operating systems on Android phones is accomplished through a third-party app. Since only one operating system can be started at a time, this is not true dual-boot mode. For dual-boot devices to run two operating systems simultaneously, the data cards used by both operating systems must be the same.
[0069] It can be understood that in this embodiment, the data card can be understood as a SIM card installed in a card slot of a terminal device and used for Internet access.
[0070] However, when the data card used by two operating systems running at the same time in a dual-system terminal is the same, data from different systems may be mixed, posing a risk of data insecurity. Therefore, from a security perspective, different SIM cards need to be used as Internet cards in different operating systems.
[0071] Currently, if you want to use different SIM cards as data cards on different operating systems, you can only manually switch the data card. That is, existing terminals have two card slots, each with a SIM card. When one operating system uses one SIM card as the data card, you need to manually switch the SIM card used as the data card to another SIM card on the other operating system. At this time, the SIM card cannot be bound to the operating system.
[0072] To address the above issues, the technical concept of the technical solution of this application is as follows: Since a data card (as a SIM card for Internet access) must be set in the Android data framework, its matching access point name (APN) information is obtained for network-side dialing, and the data card is bound to the modem for data exchange. Moreover, after the SIM card is bound to the operating system, it cannot affect the data Internet access of another operating system. It is necessary to prevent the current operating system from using data traffic if the data card set is not the bound SIM card slot. If the current data card is the same as the bound SIM card slot, data traffic is allowed.
[0073] Based on the above technical conception process, an embodiment of the present application provides a dual-system-based SIM card processing method. After a terminal device is powered on or restarted, a data dialing request is initiated. The data dialing request includes: an identifier of a target SIM card and an identifier of a first operating system. The first operating system is any one of two operating systems installed on the terminal device. Since a correspondence between each operating system and a data card slot is configured in a preset attribute file in the terminal device, it is possible to determine, based on the preset attribute file, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located. Therefore, when the data card slot bound to the first operating system is the data card slot where the target SIM card is located, a network attachment process is executed based on the target SIM card, thereby achieving automatic binding of the SIM card and the operating system, improving the user experience, and ensuring data security.
[0074] For example, Figure 1 A schematic diagram of a communication system to which the dual-system SIM card processing method provided in the embodiment of the present application is applicable. Figure 1As shown, the communication system may include terminal devices and network devices. It is understandable that in an actual communication system, the number of terminal devices and network devices may be one or more. Figure 1 A network device 10 and two terminal devices (terminal device 11 and terminal device 12 ) are shown as an example.
[0075] Optionally, the communication system may include multiple network devices, and the coverage area of each network device may include other number of terminal devices. The embodiment of the present application does not limit the number of network devices and terminal devices included in the communication system.
[0076] It is understandable that the terminal device in the embodiment of the present application can be a dual-system terminal device or a single-system terminal device. This embodiment is described by taking the terminal device 11 as a dual-system terminal device and the terminal device 12 as a single-system terminal device as an example.
[0077] Accordingly, since the terminal device 11 is a dual-system terminal device, it can be installed with two different operating systems, and different operating systems can be bound to different SIM cards as network cards. Optionally, in an embodiment of the present application, when a certain operating system version is installed in the terminal device 11, a preset attribute file corresponding to the system version will be pre-installed in the terminal device. Then, when requesting a network using a certain operating system, the preset attribute file can be used to determine whether to allow the network attachment process to continue.
[0078] It can be understood that the terminal devices involved in the embodiments of the present application can be smart terminals such as smartphones, tablet computers, smart wearable devices, etc. These terminal devices are installed with two operating systems, and can provide various services to users based on each operating system. The operating system in the embodiments of the present application includes but is not limited to the Android system, which can be determined according to the actual scenario.
[0079] It is understandable that Figure 1 This is just a schematic diagram. The communication system may also include other network devices, such as core network devices, wireless relay devices and wireless backhaul devices, or may include other network entities such as network controllers and mobile management entities. The embodiments of the present application are not limited to this.
[0080] The system architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0081] The following description will be made using the terminal device 11 in the communication system, i.e., the dual-system terminal device, as the execution subject of the technical solution of this application.
[0082] The following will be combined with the accompanying drawings to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems through specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0083] Figure 2 This is a flow chart of a first embodiment of a dual-system SIM card processing method provided in an embodiment of the present application. This method is applied to a terminal device with a dual system. Figure 2 As shown, the dual-system based SIM card processing method may include the following steps:
[0084] S201. After the terminal device is powered on or restarted, a data dialing request is initiated.
[0085] The data dialing request includes: an identifier of a target SIM card and an identifier of a first operating system, and the first operating system is any one of two operating systems installed on the terminal device.
[0086] In actual applications, when a terminal device with dual operating systems is powered on or restarted, the terminal device is disconnected from the network-side device. For example, assuming that the operating system entered by the terminal device after powering on or restarting is the first operating system, when the mobile data switch is turned on, the first operating system of the terminal device will initiate a data dial-up request to establish a connection with the network-side device through the SIM card installed in the data card slot bound to the first operating system, thereby using the data traffic corresponding to the SIM card to access the Internet.
[0087] Optionally, if the terminal device wants to use network services in the first operating system, it needs to obtain the identifier of the target SIM card installed on the data card slot bound to the first operating system, as well as the identifier of the first operating system, and carry the identifier of the target SIM card and the identifier of the first operating system in the data dialing request to execute the dialing process.
[0088] It can be understood that the embodiment of the present application uses the processing of the first operating system installed on the terminal device and the target SIM card as an example. In actual applications, it can also be the processing process of the second operating system installed on the terminal device and the target SIM card, which is not limited here.
[0089] S202. Determine, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located; if so, execute S203; if not, execute S204.
[0090] The preset attribute file is configured with a corresponding relationship between each operating system and a data card slot.
[0091] Optionally, in an embodiment of the present application, each system version of the terminal device corresponds to a preset attribute file, that is, the system versions installed in the terminal device are different, and the corresponding preset attribute files can be different or the same, which is not limited here.
[0092] In an embodiment of the present application, a property file is pre-set in the terminal device to determine whether the data card slot where the requested target SIM card is located is the data card slot bound to the first operating system during system data dialing.
[0093] Normally, when a terminal device with a dual operating system is turned on and the data switch is turned on, the data dialing process will be automatically initiated. The data card is usually set in the settings. Generally, the default dialing is sent to the SIM card installed on the data card slot one. It can be understood that the SIM card can also be switched as the data card. For example, the SIM card installed on the data card slot two can be used as the data card. It can be set according to actual needs and will not be elaborated here.
[0094] In the embodiments of the present application, although the SIM cards on both sides of the dual operating system must be identical, the two operating systems are independent within the data framework. Therefore, when the dialing process reaches the framework, the pre-configured attribute file in the terminal device can be used to determine whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, and then subsequent operations are performed based on the judgment result. For example, if the data card slot bound to the first operating system is the data card slot where the target SIM card is located, the dialing process continues. If the data card slot bound to the first operating system is not the data card slot where the target SIM card is located, the dialing process is stopped.
[0095] Optionally, in an embodiment of the present application, a pre-set attribute file in the terminal device is configured with a correspondence between each operating system and a data card slot, which can be specifically explained as follows:
[0096] The preset attribute file is configured with a first attribute parameter and a second attribute parameter, wherein the value of the first attribute parameter represents the data card slot bound to the first operating system, and the value of the second attribute parameter represents the data card slot bound to the second operating system.
[0097] For example, in actual applications, it is assumed that the values of the first attribute parameter and the second attribute parameter are both 0 or 1.
[0098] A value of 0 for the first attribute parameter indicates that the first operating system is bound to the first card slot, and a value of 1 indicates that the first operating system is bound to the second card slot. That is, a value of 0 for the first attribute parameter indicates that the first operating system is bound to the SIM card installed in the first card slot, and a value of 1 indicates that the first operating system is bound to the SIM card installed in the second card slot.
[0099] Correspondingly, a value of 0 for the second attribute parameter indicates that the second operating system is bound to the first card slot, and a value of 1 indicates that the second operating system is bound to the second card slot. Similarly, a value of 0 for the second attribute parameter indicates that the second operating system is bound to the SIM card installed in the first card slot, and a value of 1 indicates that the second operating system is bound to the SIM card installed in the second card slot.
[0100] It is understood that the embodiments of this application do not limit the specific values and meanings of the first attribute parameter and the second attribute parameter. For example, in another implementation, the meanings of 0 and 1 can be swapped, and this application does not limit this. In another implementation, 0 and 1 can also be represented by other numerical values, such as +1 and -1, and this application does not limit this.
[0101] In actual applications, in order to ensure the data security of each operating system in a dual-system terminal device, the first operating system and the second operating system usually need to be bound to different SIM cards. Therefore, in an embodiment of the present application, the value of the first attribute parameter is different from the value of the second attribute parameter.
[0102] As an example, when the value of the first attribute parameter is 0 and the value of the second attribute parameter is 1, the first operating system is bound to the first card slot (specifically, the SIM card installed in the first card slot), and the second operating system is bound to the second card slot (specifically, the SIM card installed in the second card slot).
[0103] As another example, when the value of the first attribute parameter is 1, the value of the second attribute parameter is 0. At this time, the first operating system is bound to the second card slot (specifically, the SIM card installed in the second card slot), and the second operating system is bound to the first card slot (specifically, the SIM card installed in the first card slot).
[0104] Optionally, in an embodiment of the present application, based on the first attribute parameter and the second attribute parameter configured in the preset attribute file, step S202 (determining whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located according to the preset attribute file in the terminal device) can be implemented as follows:
[0105] First, according to the identifier of the first operating system, the preset attribute file is queried to obtain the value of the first attribute parameter; then, according to the value of the first attribute parameter, the data card slot bound to the first operating system is determined; finally, it is determined whether the data card slot where the target SIM card is located is consistent with the data card slot bound to the first operating system.
[0106] Specifically, in this step, when the terminal device is restarted or powered on, the terminal device will enter a different operating system. For example, the terminal device enters the first operating system, and when the data traffic switch is turned on, it will directly enter the network attachment process, thereby first initiating a data dialing request, and carrying the identifier of the target SIM card used and the identifier of the first operating system in the dialing request. At this time, the terminal device can query the preset attribute file according to the identifier of the first operating system, obtain the value of the first attribute parameter therefrom, and then determine the data card slot bound to the first operating system, and then determine whether the data card slot where the target SIM card is located is the data card slot bound to the first operating system, and then perform subsequent operations based on the judgment result.
[0107] S203: Execute a network attachment process based on the target SIM card.
[0108] As an example, when the data card slot bound to the first operating system is the data card slot where the target SIM card is located, the network attachment process is performed based on the target SIM card.
[0109] Specifically, in an embodiment of the present application, when the terminal device executes the network attachment process based on the target SIM card, it first obtains the APN information corresponding to the target SIM card, and then establishes a default bearer between the target SIM card and the network based on the APN information by interacting with the network side, so that the application in the terminal device can use data traffic, that is, realize the Internet access function.
[0110] S204: End the network attachment process.
[0111] As another example, when the data card slot bound to the first operating system is not the data card slot where the target SIM card is located, the network attachment process is terminated, that is, the network connection process of the terminal device is terminated, thereby preventing the first operating system from using the data traffic of the target SIM card.
[0112] The dual-system-based SIM card processing method provided in an embodiment of the present application initiates a data dialing request after a terminal device is powered on or restarted. The data dialing request includes: an identifier of a target SIM card and an identifier of a first operating system, where the first operating system is either of two operating systems installed on the terminal device. Because a correspondence between each operating system and a data card slot is configured in a preset attribute file in the terminal device, it is possible to determine, based on the preset attribute file, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located. Therefore, when the data card slot bound to the first operating system is the data card slot where the target SIM card is located, a network attachment process is executed based on the target SIM card, thereby achieving automatic binding of the SIM card and the operating system, improving the user experience, and ensuring data security.
[0113] For example, Figure 3 This is a schematic diagram of the internal processing flow of the terminal device executing the dual-system SIM card processing method in the embodiment of the present application. Figure 3 As shown, the terminal device is a terminal device with dual systems. Specifically, the terminal device may include: a first operating system and a second operating system. The communication module of each operating system includes a data framework and a radio interface layer java layer (Radio Interface Layer Java, RILJ), wherein the data framework can be used to control the data service of the operating system. Therefore, the terminal device can obtain the target SIM card carried by the current data dialing request from the data framework, thereby obtaining the APN information corresponding to the target SIM card.
[0114] Optional, such as Figure 3 As shown, the terminal device also stores a preset attribute file, which is configured with a first attribute parameter (Bind1) and a second attribute parameter (Bind2). The first attribute parameter is associated with the data card slot of the first operating system, and the second attribute parameter is associated with the data card slot of the second operating system.
[0115] Specifically, when the terminal device enters different operating systems, when executing the data dialing process for each operating system, the preset attribute file will be queried in the framework to obtain the attribute parameters associated with each operating system.
[0116] For example, when the terminal device enters the first operating system, the value of the first attribute parameter is obtained from the preset attribute file in the data framework of the first operating system, and the data card slot bound to the first operating system is determined, and then it is determined whether the card slot where the target SIM card requested for dialing is located is the data card slot bound to the first operating system. If so, the dialing process (i.e., the network attachment process) continues to be executed; otherwise, the current dialing process is blocked, that is, the dialing process (i.e., the network attachment process) is ended.
[0117] Similarly, when the terminal device enters the second operating system, it will obtain the value of the second attribute parameter from the preset attribute file in the data framework of the second operating system, determine the data card slot bound to the second operating system, and then determine whether the card slot where the target SIM card requested for dialing is located is the data card slot bound to the second operating system. If so, the dialing process (i.e., the network attachment process) will continue to be executed; otherwise, the dialing process (i.e., the network attachment process) will be ended.
[0118] In this way, the network attachment process of each operating system can be controlled separately, and the binding of each operating system and the data card can be independently controlled. The data card is the SIM card used as the network card.
[0119] Further, such as Figure 3 As shown, the terminal device also has a pre-installed radio interface layer daemon (RILD) and a modem. Therefore, in each operating system, when the terminal device executes the network attachment process based on the target SIM card, it first obtains the APN information corresponding to the target SIM card, then passes it to RILD via RILJ. Finally, the modem attaches the APN information when attaching to the network to establish a default bearer. Once the default bearer is established between the terminal device and the network, applications (APPs) in the terminal device can use data traffic to access the Internet.
[0120] In an embodiment of the present application, after the first attribute parameter and the second attribute parameter are set in the preset attribute file, in a certain operating system, it can be ensured that only when the SIM card installed in the bound data card slot is used to dial, the traffic data corresponding to the SIM card can be used in the operating system. Otherwise, the corresponding dialing process is blocked. This can ensure the binding of the operating system and the SIM card as a data card, thereby ensuring data security.
[0121] Optionally, in a possible design of the embodiment of the present application, the dual-system-based SIM card processing method may further include the following steps:
[0122] When the terminal device enters the first operating system, a card slot binding prompt is output through the user interaction interface of the first operating system, where the card slot binding prompt is used to prompt the data card slot bound to the first operating system.
[0123] Correspondingly, by outputting a card slot binding prompt on the user interaction interface of the first operating system, the user can be informed of the data card slot bound to the first operating system, thereby ensuring that the user installs a SIM card in the corresponding data card slot, thereby ensuring that the network attachment process of the terminal device proceeds smoothly, so that the APP of the terminal device can use data traffic, thereby improving the user experience.
[0124] Furthermore, based on the above embodiments, Figure 4 This is a flow chart of the second embodiment of the SIM card processing method based on the dual system provided in the embodiment of the present application. Figure 4 As shown, the dual-system based SIM card processing method may include the following steps:
[0125] S401: Obtain system version information of each operating system.
[0126] In an embodiment of the present application, after the terminal device is flashed, the operating system installed thereon will have a version. The preset attribute files corresponding to each version of the operating system may be the same or different. Therefore, in order to achieve binding between the system and the SIM card in different system versions, the terminal device can first obtain the system version information of each operating system before initiating a data dialing request, and then update or determine the preset attribute file corresponding to the current system version information.
[0127] S402: Determine and save a preset attribute file according to the system version information of each operating system.
[0128] Optionally, each system version information is developed by the developer based on user needs. The developer can set data card slots bound to different operating systems, so that when the terminal device is upgraded, updated, or rolled back to a different system version, each system version will correspond to a preset attribute file. Therefore, the terminal device can determine and save the preset attribute file corresponding to the current system version based on the system version information of each operating system.
[0129] The dual-operating system SIM card processing method provided in this embodiment obtains the system version information of each operating system and determines and saves a preset attribute file based on the system version information of each operating system. This technical solution can determine the preset attribute file corresponding to the current system version before the terminal operating system executes a dial request, laying the foundation for binding the operating system and SIM card during the subsequent network attachment process.
[0130] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0131] Figure 5 This is a schematic diagram of the structure of the embodiment of the SIM card processing device based on the dual system provided in the embodiment of the present application. The device can be applied to terminal devices with dual systems, such as Figure 5 As shown, the dual-system-based SIM card processing device may include:
[0132] An initiating module 501 is configured to initiate a data dialing request after the terminal device is powered on or restarted, wherein the data dialing request includes an identifier of a target subscriber identity module (SIM) card and an identifier of a first operating system, where the first operating system is any one of two operating systems installed on the terminal device.
[0133] a determination module 502 configured to determine, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, wherein the preset attribute file includes a correspondence between each operating system and a data card slot;
[0134] The processing module 503 is configured to execute a network attachment process based on the target SIM card when the data card slot bound to the first operating system is the data card slot where the target SIM card is located.
[0135] In a possible design of an embodiment of the present application, the preset attribute file is configured with a correspondence between each operating system and a data card slot, including:
[0136] The preset attribute file is configured with a first attribute parameter and a second attribute parameter, wherein the value of the first attribute parameter represents the data card slot bound to the first operating system, and the value of the second attribute parameter represents the data card slot bound to the second operating system.
[0137] Optionally, the values of the first attribute parameter and the second attribute parameter are both 0 or 1;
[0138] Wherein, the value of the first attribute parameter is 0, indicating that the first operating system is bound to the first card slot; the value of the first attribute parameter is 1, indicating that the first operating system is bound to the second card slot;
[0139] A value of 0 for the second attribute parameter indicates that the second operating system is bound to the first card slot, and a value of 1 for the second attribute parameter indicates that the second operating system is bound to the second card slot.
[0140] Optionally, the value of the first attribute parameter is different from the value of the second attribute parameter.
[0141] Optionally, the determination module 502 is specifically configured to:
[0142] According to the identifier of the first operating system, query the preset attribute file to obtain the value of the first attribute parameter;
[0143] determining, according to a value of the first attribute parameter, a data card slot bound to the first operating system;
[0144] It is determined whether the data card slot where the target SIM card is located is consistent with the data card slot bound to the first operating system.
[0145] In another possible design of the embodiment of the present application, the processing module 503 is specifically configured to:
[0146] Obtain the access point name APN information corresponding to the target SIM card;
[0147] Based on the APN information, a default bearer is established between the target SIM card and the network by interacting with the network side.
[0148] In another possible design of the embodiment of the present application, the processing module 503 is further configured to terminate the network attachment process when the data card slot bound to the first operating system is not the data card slot where the target SIM card is located.
[0149] In another possible design of the embodiment of the present application, the apparatus further includes:
[0150] The output module 504 is configured to output a card slot binding prompt through a user interface of the first operating system when the terminal device enters the first operating system, wherein the card slot binding prompt is used to prompt the data card slot bound to the first operating system.
[0151] In another possible design of the embodiment of the present application, the processing module 503 is further configured to:
[0152] Get the system version information of each operating system;
[0153] The preset attribute file is determined and saved according to the system version information of each operating system.
[0154] The device provided in the embodiment of the present application can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0155] It should be noted that it should be understood that the division of the various modules of the above device is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, these modules can all be implemented in the form of software called by a processing element; they can also all be implemented in the form of hardware; or some modules can be implemented in the form of software called by a processing element, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated into a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called by a processing element of the above device to perform the functions of the above processing module. The implementation of other modules is similar. In addition, these modules can all or partly be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0156] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code on a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)).
[0158] Figure 6 This is a schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 6 As shown, the electronic device may include: a processor 601, a memory 602, a communication interface 603, and a system bus 604. The memory 602 and the communication interface 603 are connected to the processor 601 via the system bus 604 and communicate with each other. The memory 602 is used to store computer-executable instructions, and the communication interface 603 is used to communicate with other devices. When the processor 601 executes the computer-executable instructions, the technical solution of the above-mentioned method embodiment is implemented.
[0159] Should Figure 6The system bus mentioned in the figure may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0161] Optionally, an embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the technical solution of the above-mentioned method embodiment.
[0162] Optionally, an embodiment of the present application further provides a chip for executing instructions, which is used to execute the technical solution of the above method embodiment.
[0163] An embodiment of the present application further provides a computer program product, which includes a computer program stored in a computer-readable storage medium. When the computer program is executed by a processor, the technical solution of the above method embodiment is implemented.
[0164] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items.
[0165] It is understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not intended to limit the scope of the embodiments of the present application. In the embodiments of the present application, the order of the sequence numbers of the above-mentioned processes does not mean 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 the present application.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A SIM card processing method based on dual systems, characterized in that: Applied to a terminal device with dual systems, the method includes: After the terminal device is powered on or restarted, a data dialing request is initiated, where the data dialing request includes: an identifier of a target subscriber identity module (SIM) card and an identifier of a first operating system, where the first operating system is any one of two operating systems installed on the terminal device; Determining, according to a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, wherein the preset attribute file is configured with a correspondence between each operating system and the data card slot, including: configuring the preset attribute file with a first attribute parameter and a second attribute parameter, wherein a value of the first attribute parameter represents the data card slot bound to the first operating system, and a value of the second attribute parameter represents the data card slot bound to the second operating system; When the data card slot bound to the first operating system is the data card slot where the target SIM card is located, executing a network attachment process based on the target SIM card; The values of the first attribute parameter and the second attribute parameter are both 0 or 1; Wherein, the value of the first attribute parameter is 0, indicating that the first operating system is bound to the first card slot; the value of the first attribute parameter is 1, indicating that the first operating system is bound to the second card slot; The value of the second attribute parameter is 0, indicating that the second operating system is bound to the first card slot; the value of the second attribute parameter is 1, indicating that the second operating system is bound to the second card slot; The value of the first attribute parameter is different from the value of the second attribute parameter.
2. The method according to claim 1, characterized in that The determining, based on the preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located includes: According to the identifier of the first operating system, query the preset attribute file to obtain the value of the first attribute parameter; determining, according to a value of the first attribute parameter, a data card slot bound to the first operating system; It is determined whether the data card slot where the target SIM card is located is consistent with the data card slot bound to the first operating system.
3. The method according to claim 1 or 2, characterized in that The executing of the network attachment process based on the target SIM card includes: Obtain the access point name APN information corresponding to the target SIM card; Based on the APN information, a default bearer is established between the target SIM card and the network by interacting with the network side.
4. The method according to claim 1 or 2, characterized in that The method further comprises: When the data card slot bound to the first operating system is not the data card slot where the target SIM card is located, the network attachment process is terminated.
5. The method according to claim 1 or 2, characterized in that The method further comprises: When the terminal device enters the first operating system, a card slot binding prompt is output through the user interaction interface of the first operating system, where the card slot binding prompt is used to prompt the data card slot bound to the first operating system.
6. The method according to claim 1 or 2, characterized in that The method further comprises: Get the system version information of each operating system; The preset attribute file is determined and saved according to the system version information of each operating system.
7. A SIM card processing device based on dual systems, characterized in that: Applicable to terminal equipment with dual systems, the device includes: an initiating module, configured to initiate a data dialing request after the terminal device is powered on or restarted, the data dialing request including: an identifier of a target subscriber identity module (SIM) card and an identifier of a first operating system, the first operating system being any one of two operating systems installed on the terminal device; a determination module, configured to determine, based on a preset attribute file in the terminal device, whether the data card slot bound to the first operating system is the data card slot where the target SIM card is located, wherein the preset attribute file is configured with a correspondence between each operating system and a data card slot, including: the preset attribute file is configured with a first attribute parameter and a second attribute parameter, wherein the value of the first attribute parameter represents the data card slot bound to the first operating system, and the value of the second attribute parameter represents the data card slot bound to the second operating system; A processing module, configured to execute a network attachment process based on the target SIM card when the data card slot bound to the first operating system is the data card slot where the target SIM card is located; the values of the first attribute parameter and the second attribute parameter are both 0 or 1; wherein, the value of the first attribute parameter is 0, indicating that the first operating system is bound to the first card slot, and the value of the first attribute parameter is 1, indicating that the first operating system is bound to the second card slot; the value of the second attribute parameter is 0, indicating that the second operating system is bound to the first card slot, and the value of the second attribute parameter is 1, indicating that the second operating system is bound to the second card slot; the value of the first attribute parameter is different from the value of the second attribute parameter.
8. A terminal device, characterized in that: include: processor, memory, communication interface, and system bus; The memory is used to store computer-executable instructions that can be executed on the processor; When the processor executes the computer-executable instructions, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Double-system terminal double-SIM-card data service management method
CN110139265A