Method for realizing coexistence of multiple mobile data networks for Android system of intelligent terminal

By modifying the Telephony module and network mechanism in the Android system, we ensure that both the main card and the non-main card can establish data networks at the same time, solving the problem of only allowing one network in the existing technology, realizing the coexistence of multiple mobile data networks and the optimization utilization of network resources.

CN119996996APending Publication Date: 2025-05-13DONGFENG ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510146333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing Android system only allows one network to exist in smart terminal devices by default, and the coexistence of multiple mobile data networks cannot be achieved, which limits the full utilization of network resources.

Method used

By modifying the Telephony module and network mechanism in the Android system, we ensure that both the main card and the non-main card can establish a data network at the same time, and make corresponding adjustments in the settings application and SystemUI to achieve the coexistence of multiple data networks.

Benefits of technology

The coexistence of multiple mobile data networks in smart terminal devices is realized, the utilization of network resources is optimized, and the user experience is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996996A_ABST
    Figure CN119996996A_ABST
Patent Text Reader

Abstract

The invention relates to a method for realizing coexistence of multiple mobile data networks for an Android system of an intelligent terminal, which comprises the following steps of: (1) initializing data network configuration by the system, and determining configuration supporting multiple cards in a terminal equipment system; (2) on the basis of the confirmation result of the step (1), confirming that the current terminal equipment can be used for activating the SIM card; (3) modifying an initialization parameter of a Telephony module in the Android system, and establishing a data network; (4) modifying a network mechanism in the Android system to ensure that both the master card and the non-master card can establish a data network at the same time; (5) detecting whether the current routing strategy is perfect or not so as to avoid the situation that the system routing strategy is missing; (6) modifying the setting application in the Android system, and ensuring that the state of the multi-card mobile data network in the setting is correct; and (7) modifying a SystemUI application in the Android system, and ensuring that the multi-card mobile data network icon in the status bar of the equipment is correctly displayed. By adopting the method provided by the invention, the network can be optimized, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the application field of mobile data network communication technology of Android system, and specifically refers to a method, device, processor and computer-readable storage medium thereof for realizing coexistence of multiple mobile data networks in Android system of smart terminal. Background Art

[0002] With the development of communication technology, there are multiple types of networks in smart terminal devices using the Android system, and dual-SIM dual-standby has become the standard configuration of smart terminal devices such as mobile phones and tablets. Some smart terminal devices also use triple-SIM and other multi-SIM functions. These smart terminals using multiple SIM cards tend to use 4G and 5G mobile data networks, especially some smart terminals used outdoors.

[0003] For such smart terminal devices that support dual or even multiple SIM cards, if 4G, 5G and other mobile network resources are fully utilized, a better network experience can be obtained in a specific environment. However, in the Android system, although multiple types of networks are supported, the Android system network mechanism only allows one network to exist by default, and there is also a mechanism that only activates one data network among multiple mobile data networks. Therefore, it is necessary to propose a method that can achieve the coexistence of multiple data networks to solve the defects of the current existing technology. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, device, processor and computer-readable storage medium for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal.

[0005] In order to achieve the above-mentioned object, the method, device, processor and computer-readable storage medium for realizing coexistence of multiple mobile data networks for the Android system of a smart terminal of the present invention are as follows:

[0006] The method for realizing coexistence of multiple mobile data networks in an Android system of a smart terminal mainly comprises the following steps:

[0007] (1) The system initializes the data network configuration and determines the configuration that supports multiple cards in the terminal device system;

[0008] (2) Based on the confirmation result of step (1), confirm that the terminal device can currently be used to activate the SIM card;

[0009] (3) Modify the initialization parameters of the Telephony module in the Android system and establish a data network;

[0010] (4) Modify the network mechanism in the Android system to ensure that both the primary card and the non-primary card can establish a data network at the same time;

[0011] (5) Check whether the current routing strategy is complete to avoid the situation where the system routing strategy is missing;

[0012] (6) Modify the settings application in the Android system to ensure that the status of the multi-SIM mobile data network in the settings is correct;

[0013] (7) Modify the SystemUI application in the Android system to ensure that the multi-SIM mobile data network icons in the device status bar are displayed correctly.

[0014] Preferably, the step (1) is specifically as follows:

[0015] The type of built-in SIM card in the current Android system can be determined by the value of the property persist.radio.multisim.config, including single SIM card (SSSS), dual SIM card (DSDS), and triple SIM card (TSTS).

[0016] Preferably, the step (3) specifically comprises the following steps:

[0017] (3.1) Modify the initialization parameters of the PhoneCapability class to ensure that the current Android system has parameters for multiple SIM cards;

[0018] (3.2) After the Android system network component sends a network request, the TelephonyNetworkFactory class in the Telephony module is responsible for related services to ensure that the data network of each SIM complies with the request rules.

[0019] Preferably, the step (4) is specifically as follows:

[0020] In the process of establishing the data network through the radio interface layer RIL, the telephony module will judge the primary and secondary cards and modify the process of not being able to establish the data network for non-primary cards.

[0021] Preferably, the step (4) further comprises:

[0022] Modify the Android system's network service ConnectivityService, where the teardownUnneededNetwork() method is used to retain the currently used data network and close other data networks.

[0023] Preferably, the step (5) is specifically as follows:

[0024] Check the routing policy in the terminal device. If the relevant routing policy is missing, add the relevant routing policy through the iptable tool in the Android network component Netd.

[0025] Preferably, the step (6) is specifically as follows:

[0026] In the Android system settings application, the relevant interface of the Telephony module is called to perform the switch operation of the mobile data network, and by modifying the specific service, the mobile data network of the non-primary card will not be forcibly closed, and the relevant status display is ensured to be correct.

[0027] Preferably, the step (7) is specifically as follows:

[0028] By calling the interface of the Telephony module, the SystemUI of the Android system displays the data network icon for the mobile data, and adjusts the judgment of multiple mobile data networks to ensure that the icon status is displayed correctly.

[0029] The device for realizing coexistence of multiple mobile data networks for the Android system of a smart terminal has the following main features: the device comprises:

[0030] a processor configured to execute computer executable instructions;

[0031] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing coexistence of multiple mobile data networks for the Android system of the smart terminal are implemented.

[0032] The processor for realizing the coexistence of multiple mobile data networks for the Android system of smart terminals has the main feature that the processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method for realizing the coexistence of multiple mobile data networks for the Android system of smart terminals are implemented.

[0033] The main feature of the computer-readable storage medium is that a computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the above-mentioned method for realizing coexistence of multiple mobile data networks for the Android system of a smart terminal.

[0034] The method, device, processor and computer-readable storage medium for realizing coexistence of multiple mobile data networks in the Android system for smart terminals of the present invention can be used in smart terminals using the Android operating system. When the terminal device has a multi-card setting, the network requirements can be optimized through multiple data networks, and the coexistence of multiple data networks can be effectively realized while greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The present invention is a schematic diagram of the coexistence principle of multiple mobile data networks for the Android system of a smart terminal. DETAILED DESCRIPTION

[0036] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.

[0037] Before describing in detail embodiments according to the present invention, it should be noted that, hereinafter, the terms "comprises", "includes" or any other variations are intended to cover non-exclusive inclusion, whereby a process, method, article or apparatus comprising a series of elements includes not only these elements, but also other elements not explicitly listed or inherent to such process, method, article or apparatus.

[0038] See also Figure 1 As shown, the method for realizing coexistence of multiple mobile data networks in the Android system for smart terminals, wherein the method comprises the following steps:

[0039] (1) The system initializes the data network configuration and determines the configuration that supports multiple cards in the terminal device system;

[0040] (2) Based on the confirmation result of step (1), confirm that the terminal device can currently be used to activate the SIM card;

[0041] (3) Modify the initialization parameters of the Telephony module in the Android system and establish a data network;

[0042] (4) Modify the network mechanism in the Android system to ensure that both the primary card and the non-primary card can establish a data network at the same time;

[0043] (5) Check whether the current routing strategy is complete to avoid the situation where the system routing strategy is missing;

[0044] (6) Modify the settings application in the Android system to ensure that the status of the multi-SIM mobile data network in the settings is correct;

[0045] (7) Modify the SystemUI application in the Android system to ensure that the multi-SIM mobile data network icons in the device status bar are displayed correctly.

[0046] As a preferred embodiment of the present invention, the step (1) is specifically:

[0047] The type of built-in SIM card in the current Android system can be determined by the value of the property persist.radio.multisim.config, including single SIM card (SSSS), dual SIM card (DSDS), and triple SIM card (TSTS).

[0048] As a preferred embodiment of the present invention, the step (3) specifically comprises the following steps:

[0049] (3.1) Modify the initialization parameters of the PhoneCapability class to ensure that the current Android system has parameters for multiple SIM cards;

[0050] (3.2) After the Android system network component sends a network request, the TelephonyNetworkFactory class in the Telephony module is responsible for related services to ensure that the data network of each SIM complies with the request rules.

[0051] As a preferred embodiment of the present invention, the step (4) is specifically as follows:

[0052] In the process of establishing the data network through the radio interface layer RIL, the telephony module will judge the primary and secondary cards and modify the process of not being able to establish the data network for non-primary cards.

[0053] As a preferred embodiment of the present invention, the step (4) further comprises:

[0054] Modify the Android system's network service ConnectivityService, where the teardownUnneededNetwork() method is used to retain the currently used data network and close other data networks.

[0055] As a preferred embodiment of the present invention, the step (5) is specifically as follows:

[0056] Check the routing policy in the terminal device. If the relevant routing policy is missing, add the relevant routing policy through the iptable tool in the Android network component Netd.

[0057] As a preferred embodiment of the present invention, the step (6) is specifically as follows:

[0058] In the Android system settings application, the relevant interface of the Telephony module is called to perform the switch operation of the mobile data network, and by modifying the specific service, the mobile data network of the non-primary card will not be forcibly closed, and the relevant status display is ensured to be correct.

[0059] As a preferred embodiment of the present invention, the step (7) is specifically as follows:

[0060] By calling the interface of the Telephony module, the SystemUI of the Android system displays the data network icon for the mobile data, and adjusts the judgment of multiple mobile data networks to ensure that the icon status is displayed correctly.

[0061] In practical application, the method for realizing coexistence of multiple mobile data networks for the Android system of the smart terminal of the technical solution specifically includes the following steps:

[0062] 1. Determine whether the device supports multi-SIM configuration. The Android system supports single SIM (SSSS), dual SIM (DSDS), and triple SIM (TSTS).

[0063] 2. Based on the result in step 1, confirm that the device can access the Internet by activating any Sim card network. At this time, only one card can access the Internet;

[0064] 3. Modify the Telephony module in the Android system and change the process of activating the mobile data network of one Sim card while closing the mobile data network establishment of other cards.

[0065] 4. Modify the network mechanism in the Android system to remove the process of shutting down other networks while enabling one network;

[0066] 5. Check the routing policy in the device. If the relevant routing policy is missing, add it through the Android system network component Netd using iptable;

[0067] 6. Modify the settings application in the Android system to ensure that the status of the multi-SIM mobile data network in the settings is correct;

[0068] 7. Modify the SystemUI application in the Android system to ensure that the multi-card mobile data network icon in the device status bar is displayed correctly.

[0069] In a specific embodiment, the above steps are implemented in the following manner:

[0070] 1. Determine the multi-sim configuration in the system. The Android system has built-in single-sim (SSSS), dual-sim (DSDS / DSDA), and triple-sim (TSTS). This can be determined by the value of the property persist.radio.multisim.config.

[0071] 2. Modify the Telephony module in the Android system. First, modify the PhoneCapability class initialization parameters to ensure that they are parameters for multiple SIM cards.

[0072] 3. After the Android system network component sends a network request, it will be responsible for related services through the TelephonyNetworkFactory class in the Telephony module to ensure that the data network of each SIM complies with the request rules;

[0073] 4. In the process of establishing a data network through RIL (Radio Interface Layer), the Telephony module has the judgment of primary and secondary cards, and the process of not being able to establish a data network for non-primary cards is modified.

[0074] 5. In addition, the Telephony module has settings for multiple SIM cards, primary and secondary cards, to adjust their specific services and ensure that after selecting the primary card, the data network of other cards will not be forcibly closed;

[0075] 6. Modify the Android system network service ConnectivityService, its teardownUnneededNetwork() method will close the remaining networks and only keep the currently applied network;

[0076] 7. Check whether the routing strategy is complete. If it is missing, add relevant routing strategies through the iptable tool in the Android network component Netd.

[0077] 8. In the Android system settings application, the relevant interfaces of Telephony will be called to implement functions such as switching on and off the mobile data network. Its specific services need to be modified so that the mobile data network of non-primary cards will not be forcibly closed, and ensure that the relevant status is displayed correctly.

[0078] 9. In the Android system's SystemUI, there is an icon display for mobile data networks, which is also implemented by calling the interface of the Telephony module to adjust its judgment on multiple mobile data networks to ensure that the icon status is displayed correctly.

[0079] Combination Figure 1 As shown, the main ideas of this technical solution are as follows:

[0080] 1. Determine the multi-sim configuration in the system. The Android system has built-in single-sim (SSSS), dual-sim (DSDS / DSDA), and triple-sim (TSTS). Determine it through the value of the property persist.radio.multisim.config. The judgment interface is: getActiveModemCount() method in the TelephonyManager class.

[0081] 2. The above steps describe the number of modems that can be activated in the system, which represents the number of SIM cards. For data networks, there is another parameter: Data Connection (which describes the modem data connection capability). The default value of the activatable Data Connect in the Android system is 1, which can be configured in the PhoneCapability class. During initialization, modify the value of its parameter mMaxActiveDataSubscriptions.

[0082] 3. The establishment of a data network requires many conditions. When there are multiple SIM cards in the Android system, the switching of SIM cards and the establishment of their data networks are managed through PhoneSwitcher, MultiSimSettingController, Dctracker and other classes. There are primary and secondary card settings in the system, and the primary card is usually marked with Default. The system data network mechanism only allows one data network to be opened, and it is also bound to the Default card. When the data network of a SIM card is turned on, the data networks of other SIM cards will be automatically closed, and this card will be set as the Default card. To this end, in order to achieve the coexistence of multiple data networks, it is necessary to crack the original mechanism in the system that only allows one data network. It can be completed in several steps.

[0083] 4. First, after the Android system network component sends a Network Request, it will send a request to PhoneSwitcher to establish a network through the data network's TelephonyNetworkFactory. The shouldApplyNetworkRequest() method determines whether to accept the request. The core judgment factor is the phoneID, which is the number set by the SIM card in the system. For which data network to use, the method needs to be changed to ensure that the data network of each SIM card meets the request.

[0084] 5. When the data network establishes a data network to the Modem through the RIL (Radio Interface Layer), the trySetupData() method will be called to try to establish a Data Connect. During this process, it will determine whether the data network currently trying to establish a Data Connect meets the conditions. The main focus is on the judgment of DEFAULT_DATA_UNSELECTED in the isDataAllowed() method. Because non-Default cards do not have this configuration, this condition needs to be removed.

[0085] 6. In the MultiSimSettingController class, the service for setting the Default card will turn off the data network of other cards when the Default card changes. To this end, you can control this behavior in the disableDataForNonDefaultNonOpportunisticSubscriptions() method of this class. In addition, this class will call onUserDataEnabled() to update the settings of the Default card after the data network is enabled. If this logical service is not modified, the Default card may be switched repeatedly. At the same time, since the data network status of each SIM card is saved in the data, it is also necessary to ensure that the status is saved correctly.

[0086] 7. Secondly, data networks are usually turned on and off in the settings and status bar in the Android system. In the system settings, turning on the data network of a SIM card will turn off the data network of the remaining cards. The setMobileDataEnabled() method in the MobileNetworkUtils class is needed to control the behavior of turning off the data network of other SIM cards. In SystemUI (status bar), the setMobileDataEnabled() method in the DataUsageController class is called to turn on and off the data network. It mainly focuses on the data network of the Default card, so it also needs to be modified to focus on the data network of all SIM cards. Of course, third-party images with different settings and status bars may have different levels of customization, which need to be adjusted according to the actual development situation.

[0087] 8. After completing the configuration and process change of the data network in the Telephony component, the data network will eventually be handed over to the ConnectivityService in the system to unify the network request. As mentioned earlier, the Android system network only allows one network connection by default, so this behavior needs to be changed in the teardownUnneededNetwork() method in the ConnectivityService class.

[0088] 9. After the above transformation, multiple data networks can exist in the Android system, and the data network icons in the status bar also display data uplink and downlink icons, and the network status of the corresponding network card of the data network can be checked through the ifconfig command. This expands the operating space for system optimization of data networks.

[0089] The device for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal, wherein the device comprises:

[0090] a processor configured to execute computer executable instructions;

[0091] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing coexistence of multiple mobile data networks for the Android system of the smart terminal are implemented.

[0092] The processor for implementing the coexistence of multiple mobile data networks for the Android system of a smart terminal, wherein the processor is configured to execute computer-executable instructions, and when the computer-executable instructions are executed by the processor, the steps of the method for implementing the coexistence of multiple mobile data networks for the Android system of a smart terminal are implemented.

[0093] The computer-readable storage medium stores a computer program thereon, and the computer program can be executed by a processor to implement the steps of the method for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal as described above.

[0094] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0095] It should be understood that each part of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device.

[0096] A person of ordinary skill in the art may understand that all or part of the steps of the method for implementing the above-mentioned embodiment may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.

[0097] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0098] In the description of this specification, the description with reference to the terms "an embodiment", "some embodiments", "example", "specific example", or "embodiment" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0099] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

[0100] The method, device, processor and computer-readable storage medium for realizing coexistence of multiple mobile data networks in the Android system for smart terminals of the present invention can be used in smart terminals using the Android operating system. When the terminal device has a multi-card setting, the network requirements can be optimized through multiple data networks, and the coexistence of multiple data networks can be effectively realized while greatly improving the user experience.

[0101] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.

Claims

1. A method for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal, characterized in that: The method comprises the following steps: (1) The system initializes the data network configuration and determines the configuration that supports multiple cards in the terminal device system; (2) Based on the confirmation result of step (1), confirm that the terminal device can currently be used to activate the SIM card; (3) Modify the initialization parameters of the Telephony module in the Android system and establish a data network; (4) Modify the network mechanism in the Android system to ensure that both the primary card and the non-primary card can establish a data network at the same time; (5) Check whether the current routing strategy is complete to avoid the situation where the system routing strategy is missing; (6) Modify the settings application in the Android system to ensure that the status of the multi-SIM mobile data network in the settings is correct; (7) Modify the SystemUI application in the Android system to ensure that the multi-SIM mobile data network icons in the device status bar are displayed correctly.

2. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 1, characterized in that: The step (1) is specifically as follows: The type of built-in SIM card in the current Android system can be determined by the value of the property persist.radio.multisim.config, including single SIM card (SSSS), dual SIM card (DSDS), and triple SIM card (TSTS).

3. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 2, characterized in that: The step (3) specifically comprises the following steps: (3.1) Modify the initialization parameters of the PhoneCapability class to ensure that the current Android system has parameters for multiple SIM cards; (3.2) After the Android system network component sends a network request, the TelephonyNetworkFactory class in the Telephony module is responsible for related services to ensure that the data network of each SIM complies with the request rules.

4. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 3, characterized in that: The step (4) is specifically as follows: In the process of establishing the data network through the radio interface layer RIL, the telephony module will judge the primary and secondary cards and modify the process of not being able to establish the data network for non-primary cards.

5. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 4, characterized in that: The step (4) further comprises: Modify the Android system's network service ConnectivityService, where the teardownUnneededNetwork() method is used to retain the currently used data network and close other data networks.

6. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 1, characterized in that: The step (5) is specifically as follows: Check the routing policy in the terminal device. If the relevant routing policy is missing, add the relevant routing policy through the iptable tool in the Android network component Netd.

7. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 1, characterized in that: The step (6) is specifically as follows: In the Android system settings application, the relevant interface of the Telephony module is called to perform the switch operation of the mobile data network, and by modifying the specific service, the mobile data network of the non-primary card will not be forcibly closed, and the relevant status display is ensured to be correct.

8. The method for realizing coexistence of multiple mobile data networks in an Android system for a smart terminal according to claim 1, characterized in that: The step (7) is specifically as follows: By calling the interface of the Telephony module, the SystemUI of the Android system displays the data network icon for the mobile data, and adjusts the judgment of multiple mobile data networks to ensure that the icon status is displayed correctly.

9. A device for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal, characterized in that: The device comprises: a processor configured to execute computer executable instructions; A memory stores one or more computer executable instructions, which, when executed by the processor, implement the steps of the method for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal as described in any one of claims 1 to 8.

10. A processor for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal, characterized in that: The processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal described in any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the method for realizing coexistence of multiple mobile data networks for an Android system of a smart terminal as described in any one of claims 1 to 8.