Network communication method and device of mobile terminal, mobile terminal and storage medium
By modifying the MTK RIL source code and grafting the non-native interface, the dual SIM card function division of the mobile terminal is realized, solving the problem that the communication needs of the private network in the existing technology is not met, and improving the communication flexibility and user experience.
Patent Information
- Application Number
- CN202411184683.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The dual SIM cards of existing mobile terminals can only be used to realize public network communication and cannot meet the needs of private network communication.
By obtaining and modifying the MTK RIL source code, blocking the native interface of the second SIM card, and grafting the non-native interface of the second SIM card that provides private network communication functions, adding identification and call logical codes to realize the public network of the first SIM card Communication and the dedicated network communication function of the second SIM card are divided.
It realizes the functional division of dual SIM cards, meets the network communication needs of mobile terminals, improves the flexibility, convenience and stability of communication, and enhances user experience and convenience of use.
Smart Images

Figure CN119172871A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of mobile terminals, and in particular to a network communication method and device for a mobile terminal, a mobile terminal, and a storage medium. Background Art
[0002] Private network and public network are two different types of networks. Private network, also known as dedicated network, is a local area network that provides network signal coverage in a specific area and provides communication services to specific users. Public network, also known as the Internet, is an open network that can provide communication services to any user.
[0003] Although existing mobile terminals, such as smart phones, support dual SIM cards, both SIM cards are used to implement public network communication functions and cannot meet the private network communication needs of mobile terminals. Summary of the invention
[0004] In order to enable dual SIM cards to realize the functional division of public network communication and private network communication to better meet the network communication needs of mobile terminals, the present application provides a network communication method, device, mobile terminal and storage medium for a mobile terminal.
[0005] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A network communication method for a mobile terminal, the method comprising: Obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code; Shielding the native interface of the second SIM card of MTK based on the first target code; A non-native interface of a second SIM card providing a private network communication function is grafted onto the MTK; Adding logic code for identifying and calling the non-native interface of the second SIM card to the first target code to obtain a second target code; According to the second target code, the first SIM card of the MTK is controlled to execute the public network communication service and the second SIM card is controlled to execute the private network communication service.
[0006] By adopting the above technical solution, dual SIM cards can realize the functional division of public network communication and private network communication, thereby better meeting the network communication needs of mobile terminals.
[0007] In one example, the present application may be further configured as follows: modifying the source code to obtain the first target code includes: Adjusting the source code to obtain an adjusted source code; Testing the adjusted source code to obtain a first test result; When the first test result indicates that the adjusted source code can only be used to identify and call the native interface of the first SIM card, the adjusted source code is used as the first target code.
[0008] By adopting the above technical solution, the purpose of shielding the native interface of the second SIM card can be effectively achieved, and it can be ensured that the adjusted source code can only be used to identify and call the native interface of the first SIM card.
[0009] In one example, the present application may be further configured as follows: before the grafting of the non-native interface of the second SIM card providing the private network communication function, the present application may further include: Obtain a pre-compiled non-native interface of the second SIM card.
[0010] By adopting the above technical solution, the stability and reliability of the non-native interface of the second SIM card can be ensured.
[0011] In one example, the present application may be further configured as follows: before controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the configuration further includes: Testing the second target code to obtain a second test result; When the second test result indicates that the second target code can be used to identify and call the native interface of the first SIM card, and can be used to identify and call the non-native interface of the second SIM card, the step of controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code is performed.
[0012] By adopting the above technical solution, it can be ensured that the native interface of the first SIM card realizes the public network communication function and the non-native interface of the second SIM card realizes the private network communication function.
[0013] In an example, the present application may be further configured as follows: after controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the present application may further include: The logic code for switching the SIM card is configured, and the public network communication service and the private network communication service are automatically switched according to the logic code for switching the SIM card.
[0014] By adopting the above technical solution, it is possible to automatically switch between public network communication services and private network communication services, and to improve the flexibility, convenience and stability of mobile terminal communications.
[0015] In an example, the present application may be further configured as follows: after controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the present application may further include: A switching interaction page is generated so that the user can manually switch between the public network communication service and the private network communication service based on the switching interaction page.
[0016] By adopting the above technical solution, manual switching between public network communication services and private network communication services can be achieved, which can improve user experience, increase user participation and convenience of use.
[0017] In an example, the present application may be further configured as follows: after controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the present application may further include: Generate a SIM card switching shortcut key, so that the user can operate the shortcut key to manually switch between the public network communication service and the private network communication service.
[0018] By adopting the above technical solution, manual switching between public network communication services and private network communication services can be achieved, which can improve user experience, increase user participation and convenience of use.
[0019] The second object of the invention is achieved by the following technical solutions: A network communication device for a mobile terminal, the network communication device for the mobile terminal comprising: A modification module, used for obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code; A shielding module, used for shielding the native interface of the second SIM card of MTK based on the first target code; A grafting module, used for grafting a non-native interface of a second SIM card providing a private network communication function onto the MTK; An adding module, configured to add logic code for identifying and calling the non-native interface of the second SIM card in the first target code to obtain a second target code; The control module is used to control the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code.
[0020] The third objective of the present application is achieved through the following technical solutions: A mobile terminal comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network communication method of the mobile terminal when executing the computer program.
[0021] The fourth objective of the present application is achieved through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network communication method of the mobile terminal are implemented.
[0022] In summary, this application includes the following beneficial technical effects: By modifying the MTK RIL source code, the purpose of shielding the native interface of the second SIM card can be effectively achieved. Then, by grafting the non-native interface of the second SIM card that provides the private network communication function and adding the logic code for identifying and calling the non-native interface of the second SIM card, the non-native interface of the second SIM card can realize the private network communication function, thereby making the first SIM card realize the public network communication and the second SIM card realize the functional division of the private network communication, thereby better meeting the network communication needs of the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a flow chart of a network communication method for a mobile terminal provided in an embodiment of the present application; Figure 2 Another schematic diagram of a flow chart of a network communication method for a mobile terminal provided in an embodiment of the present application; Figure 3 A schematic block diagram of a network communication device of a mobile terminal provided in an embodiment of the present application; Figure 4 The present invention is a block diagram showing the structure of a mobile terminal according to an embodiment of the present application.
[0024] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0027] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0028] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0029] The embodiment of the present application provides a network communication method, device, mobile terminal and storage medium for a mobile terminal. The network communication method of the mobile terminal can effectively shield the native interface of the second SIM card by modifying the MTK RIL source code, and then by grafting the non-native interface of the second SIM card that provides a private network communication function and adding logic code for identifying and calling the non-native interface of the second SIM card, the non-native interface of the second SIM card can realize the private network communication function, thereby achieving the functional division of the first SIM card realizing public network communication and the second SIM card realizing private network communication, thereby better meeting the network communication needs of the mobile terminal.
[0030] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0031] Please refer to Figure 1 , Figure 1 A flow chart of a network communication method for a mobile terminal provided in an embodiment of the present application is provided. The network communication method for a mobile terminal is mainly applied to mobile terminals, such as smart phones, PADs (Personal Digital Assistants), etc.
[0032] like Figure 1 As shown, the network communication method of the mobile terminal includes steps S101 to S105.
[0033] Step S101, obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code.
[0034] MTK is the abbreviation of MediaTek platform, and MTK supports dual SIM card function. MTK has two native interfaces for SIM cards, including the native interface for the first SIM card (SIM1) and the native interface for the second SIM card (SIM2).
[0035] It should be noted that in the prior art, the native interfaces of the two SIM cards are both used to provide public network communication functions. Unlike the prior art, the present application uses the native interface of the first SIM card to provide public network communication functions, shields the native interface of the second SIM card, and then grafts the non-native interface of the second SIM card to provide private network communication functions, so that the first SIM card now has the function of public network communication, and the second SIM card realizes the function of private network communication.
[0036] RIL (Radio Interface Layer) is the wireless communication interface layer that communicates with the baseband chip and is used to handle communication with the mobile network.
[0037] MTK RIL source code refers to the source code of RIL applicable to MTK chips, which is used to control the communication function of SIM cards.
[0038] Firstly, the MTK RIL source code for controlling the SIM card function is obtained, and the source code is modified to obtain the first target code.
[0039] In one embodiment, if Figure 2 As shown, modifying the source code to obtain the first target code may include sub-steps S1011 to S1013.
[0040] Sub-step S1011, adjusting the source code to obtain adjusted source code.
[0041] The source code is adjusted to obtain an adjusted source code, so that the adjusted source code cannot identify and call the native interface of the second SIM card.
[0042] Sub-step S1012, testing the adjusted source code to obtain a first test result.
[0043] Then the adjusted source code is tested to obtain a first test result.
[0044] Sub-step S1013, when the first test result indicates that the adjusted source code can only be used to identify and call the native interface of the first SIM card, use the adjusted source code as the first target code.
[0045] The adjusted source code is then tested to obtain a first test result. When the first test result indicates that the adjusted source code can only be used to identify and call the native interface of the first SIM card, the adjusted source code is used as the first target code.
[0046] In this way, by adjusting the source code, the purpose of shielding the native interface of the second SIM card can be effectively achieved. Through testing, it is confirmed that the adjusted source code can only be used to identify and call the native interface of the first SIM card, which can improve stability.
[0047] Step S102: shielding the native interface of the second SIM card of MTK based on the first target code.
[0048] After obtaining the first code, the native interface of the second SIM card can be shielded through the first target code.
[0049] Step S103: grafting a non-native interface of a second SIM card providing a private network communication function onto the MTK.
[0050] After shielding the native interface of the second SIM card, the non-native interface of the second SIM card providing the private network communication function is grafted onto the MTK to ensure that the non-native interface of the second SIM card can realize the private network communication function.
[0051] In one embodiment, before step S103, a pre-compiled non-native interface of the second SIM card may be obtained.
[0052] That is, a non-native interface of the second SIM card that is pre-compiled by a professional manufacturer or developer and can provide a private network communication function is obtained. The interface pre-compiled by a professional manufacturer or developer has undergone rigorous testing and optimization and has high stability and reliability.
[0053] Step S104: adding logic code for identifying and calling the non-native interface of the second SIM card to the first target code to obtain a second target code.
[0054] Since the first target code can only be used to identify and call the native interface of the first SIM card, a logic code for identifying and calling the non-native interface of the second SIM card is added to the first target code to obtain the second target code, so that the second target code can be used to identify and call the native interface of the first SIM card and the non-native interface of the second SIM card. Therefore, the network communication requirements of the mobile terminal can be better met and the functional division of public network and private network communications can be realized.
[0055] Step S105: According to the second target code, the first SIM card of MTK is controlled to execute the public network communication service and the second SIM card is controlled to execute the private network communication service.
[0056] After obtaining the second target code, the second target code can be used to control MTK's first SIM card to execute public network communication services and the second SIM card to execute private network communication services, so that the first SIM card and the second SIM card can realize the functional division of public network communication and private network communication, thereby better meeting the network communication needs of the mobile terminal.
[0057] In one embodiment, before step S104, the second target code may also be tested to obtain a second test result; when the second test result indicates that the second target code can be used to identify and call the native interface of the first SIM card, and can be used to identify and call the non-native interface of the second SIM card, step S104 is executed.
[0058] In order to ensure that the native interface of the first SIM card can realize the public network communication function and the non-native interface of the second SIM card can realize the private network communication function, it is necessary to test the second target code to obtain a second test result. Only when the second test result indicates that the second target code can be used to identify and call the native interface of the first SIM card and the non-native interface of the second SIM card, the second target code is used to control the private network communication service and the public network communication service of the mobile terminal.
[0059] In one embodiment, after step S104, a logic code for switching the SIM card may be configured, and the public network communication service and the private network communication service may be automatically switched according to the logic code for switching the SIM card.
[0060] That is, the logic code for switching SIM cards can be configured, so that according to the logic code for switching SIM cards, based on the different requirements of private network communication and public network communication, the SIM cards can be automatically switched to automatically switch between public network communication services and private network communication services.
[0061] In this way, by configuring the logic code for switching SIM cards, automatic switching between public network communication services and private network communication services can be achieved, which can improve the flexibility, convenience and stability of mobile terminal communications.
[0062] In one embodiment, after step S104, a switching interaction page may be generated so that the user can manually switch between the public network communication service and the private network communication service based on the switching interaction page.
[0063] That is, a switching interaction page can also be generated, and the user can manually switch SIM cards on the switching interaction page to realize manual switching between public network communication services and private network communication services.
[0064] In this way, by switching the interactive page, users can switch SIM cards conveniently and quickly according to actual needs, and manually switch between public network communication services and private network communication services, which can improve user experience, increase user participation and convenience of use.
[0065] In one embodiment, after step S104, a SIM card switching shortcut key may be generated so that the user can operate the shortcut key to manually switch between the public network communication service and the private network communication service.
[0066] That is, a SIM card switching shortcut key can also be generated. The user only needs to directly operate the SIM card switching shortcut key to switch the SIM card, thereby manually switching between the public network communication service and the private network communication service.
[0067] In this way, generating a SIM card switching shortcut key can improve the convenience and efficiency of operation, enhance user experience, and allow users to switch SIM cards more conveniently, thereby improving communication flexibility.
[0068] The network communication method of the mobile terminal provided in the above embodiment obtains the MTK RIL source code for controlling the SIM card function, and modifies the source code to obtain the first target code; based on the first target code, the native interface of the second SIM card of MTK is shielded; the non-native interface of the second SIM card providing the private network communication function is grafted on MTK; the logic code for identifying and calling the non-native interface of the second SIM card is added in the first target code to obtain the second target code; according to the second target code, the first SIM card of MTK is controlled to execute the public network communication service and the second SIM card to execute the private network communication service. In this way, by modifying the MTK RIL source code, the purpose of shielding the native interface of the second SIM card can be effectively achieved, and then by grafting the non-native interface of the second SIM card providing the private network communication function and adding the logic code for identifying and calling the non-native interface of the second SIM card, the non-native interface of the second SIM card can realize the private network communication function, so that the first SIM card realizes the public network communication and the second SIM card realizes the private network communication. Functional division, thereby better meeting the network communication needs of the mobile terminal.
[0069] Please refer to Figure 3 , Figure 3 A schematic block diagram of a network communication device of a mobile terminal provided in an embodiment of the present application.
[0070] like Figure 3 As shown, the network communication device 300 of the mobile terminal includes: a modification module 301, a shielding module 302, a grafting module 303, an adding module 304 and a control module 305.
[0071] A modification module 301 is used to obtain an MTK RIL source code for controlling a SIM card function, and to modify the source code to obtain a first target code; A shielding module 302, configured to shield the native interface of the second SIM card of MTK based on the first target code; A grafting module 303, used for grafting a non-native interface of a second SIM card providing a private network communication function onto the MTK; An adding module 304 is used to add logic code for identifying and calling the non-native interface of the second SIM card in the first target code to obtain a second target code; The control module 305 is used to control the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code.
[0072] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 4 The mobile terminal shown is run.
[0073] See also Figure 4 , Figure 4 A schematic block diagram of the structure of a mobile terminal provided in an embodiment of the present application.
[0074] like Figure 4 As shown, the mobile terminal 400 includes a processor 402, a memory 403 and a communication interface 404 connected via a system bus 401, wherein the memory may include a non-volatile storage medium and an internal memory.
[0075] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any network communication method of the mobile terminal.
[0076] The processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal.
[0077] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any network communication method of the mobile terminal.
[0078] The communication interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the mobile terminal to which the scheme of the present application is applied. The specific mobile terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0079] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a processor or the processor may also be any conventional processor, etc.
[0080] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps: Obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code; Shielding the native interface of the second SIM card of MTK based on the first target code; A non-native interface of a second SIM card providing a private network communication function is grafted onto the MTK; Adding logic code for identifying and calling the non-native interface of the second SIM card to the first target code to obtain a second target code; According to the second target code, the first SIM card of the MTK is controlled to execute the public network communication service and the second SIM card is controlled to execute the private network communication service.
[0081] In one embodiment, when the processor implements the modification of the source code to obtain the first target code, it is used to implement: Adjusting the source code to obtain an adjusted source code; Testing the adjusted source code to obtain a first test result; When the first test result indicates that the adjusted source code can only be used to identify and call the native interface of the first SIM card, the adjusted source code is used as the first target code.
[0082] In one embodiment, before the processor implements the non-native interface of the second SIM card that provides the private network communication function, the processor is further configured to implement: Obtain a pre-compiled non-native interface of the second SIM card.
[0083] In one embodiment, before the processor implements the control of the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, it is also used to implement: Testing the second target code to obtain a second test result; When the second test result indicates that the second target code can be used to identify and call the native interface of the first SIM card, and can be used to identify and call the non-native interface of the second SIM card, the step of controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code is performed.
[0084] In one embodiment, after the processor implements the control of the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, it is further used to implement: The logic code for switching the SIM card is configured, and the public network communication service and the private network communication service are automatically switched according to the logic code for switching the SIM card.
[0085] In one embodiment, after the processor implements the control of the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, it is further used to implement: A switching interaction page is generated so that the user can manually switch between the public network communication service and the private network communication service based on the switching interaction page.
[0086] In one embodiment, after the processor implements the control of the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, it is further used to implement: Generate a SIM card switching shortcut key, so that the user can operate the shortcut key to manually switch between the public network communication service and the private network communication service.
[0087] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the network communication method of the mobile terminal of the present application.
[0088] The computer-readable storage medium may be an internal storage unit of the mobile terminal described in the foregoing embodiment, such as a hard disk or memory of the mobile terminal. The computer-readable storage medium may also be an external storage device of the mobile terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the mobile terminal.
[0089] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0090] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0091] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a" does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0092] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A network communication method for a mobile terminal, characterized in that: The method comprises: Obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code; Shielding the native interface of the second SIM card of MTK based on the first target code; A non-native interface of a second SIM card providing a private network communication function is grafted onto the MTK; Adding logic code for identifying and calling the non-native interface of the second SIM card to the first target code to obtain a second target code; According to the second target code, the first SIM card of the MTK is controlled to execute the public network communication service and the second SIM card is controlled to execute the private network communication service.
2. The network communication method of a mobile terminal according to claim 1, characterized in that: The step of modifying the source code to obtain the first target code includes: Adjusting the source code to obtain an adjusted source code; Testing the adjusted source code to obtain a first test result; When the first test result indicates that the adjusted source code can only be used to identify and call the native interface of the first SIM card, the adjusted source code is used as the first target code.
3. The network communication method of a mobile terminal according to claim 1, characterized in that: Before the non-native interface of the second SIM card providing the private network communication function is grafted, the method further includes: Obtain a pre-compiled non-native interface of the second SIM card.
4. The network communication method of a mobile terminal according to claim 1, characterized in that: Before controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the method further includes: Testing the second target code to obtain a second test result; When the second test result indicates that the second target code can be used to identify and call the native interface of the first SIM card, and can be used to identify and call the non-native interface of the second SIM card, the step of controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code is performed.
5. The network communication method of a mobile terminal according to claim 1, characterized in that: After controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the method further includes: The logic code for switching the SIM card is configured, and the public network communication service and the private network communication service are automatically switched according to the logic code for switching the SIM card.
6. The network communication method of a mobile terminal according to claim 1, characterized in that: After controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the method further includes: A switching interaction page is generated so that the user can manually switch between the public network communication service and the private network communication service based on the switching interaction page.
7. The network communication method of a mobile terminal according to claim 5, characterized in that: After controlling the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code, the method further includes: Generate a SIM card switching shortcut key, so that the user can operate the shortcut key to manually switch between the public network communication service and the private network communication service.
8. A network communication device for a mobile terminal, characterized in that: The network communication device of the mobile terminal comprises: A modification module, used for obtaining MTK RIL source code for controlling SIM card functions, and modifying the source code to obtain a first target code; A shielding module, used for shielding the native interface of the second SIM card of MTK based on the first target code; A grafting module, used for grafting a non-native interface of a second SIM card providing a private network communication function onto the MTK; An adding module, configured to add logic code for identifying and calling the non-native interface of the second SIM card in the first target code to obtain a second target code; The control module is used to control the first SIM card of the MTK to execute the public network communication service and the second SIM card to execute the private network communication service according to the second target code.
9. A mobile terminal, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network communication method of the mobile terminal as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network communication method of the mobile terminal according to any one of claims 1 to 7 are implemented.
