Network switching method and device of dual-system terminal and medium

By monitoring the switching domain instructions in the dual-system terminal and switching the network card to the second operating system, accessing the preset industry WLAN, the security problem during the access of the working system is solved and the security and applicability of the terminal is improved.

CN120238987APending Publication Date: 2025-07-01CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311873004.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

When existing dual-system terminals are connected to wireless LANs, the operating system used for working poses a risk of industry secret leakage, especially in industries with high confidentiality, the existing technology cannot effectively guarantee security.

Method used

By monitoring the switching domain instructions, when determining that the current system is the first operating system, network switching instructions and industry WLAN configuration instructions are sent to switch the network card to the second operating system, and after the switching is completed, the second operating system is connected to the preset industry WLAN, and the preset data is used for a secure access process.

Benefits of technology

It improves the security of dual-system terminals when the working system is connected to the industry WLAN, reduces the risk of industry secret leakage, and expands its applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238987A_ABST
    Figure CN120238987A_ABST
Patent Text Reader

Abstract

The invention provides a network switching method and device for a dual-system terminal and a medium, and the method is applied to the dual-system terminal. Comprising the steps that when a domain switching instruction is monitored, whether a current system is a first operating system or not is determined; if yes, a network switching instruction and an industry WLAN configuration instruction are sent to a daemon process in the Root domain through the foreground proxy service; the daemon process responds to the network switching instruction to switch the network card to the second operating system, and sends the industry WLAN configuration instruction to the second operating system through the background proxy service when the network card switching is completed; and when the switching between the second operating system and the first operating system is completed, the second operating system responds to the industry WLAN configuration instruction to access a preset industry WLAN, and the preset industry WLAN is customized through preset data. The method provided by the invention is used for improving the use security of the dual-system terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technologies, and in particular, to a network switching method, apparatus, and medium for a dual-system terminal. Background Art

[0002] Currently, in order to meet the usage requirements of users, dual systems are usually adopted in a terminal, where one system is for daily life and the other system is for work, and the two systems are highly isolated. When the terminal is powered on, one system is in the foreground and the other system is in the background. The user can switch the currently needed system to the foreground for use according to needs through switching between systems.

[0003] Specifically, the above two systems share a set of kernel resources, that is, share a network card. When switching systems, the network card needs to be switched from the current system to the target system so that the target system can access the wireless local area network.

[0004] In practical applications, for some industry users with high confidentiality requirements, sometimes they need to access the industry internal system through the system for work. If accessing the industry internal system through the above wireless local area network, there will be a risk of industry secrets leakage. Summary of the Invention

[0005] The present application provides a network switching method, apparatus, and medium for a dual-system terminal to improve the security of the dual-system terminal and reduce the risk of industry secrets leakage.

[0006] On the one hand, the present application provides a network switching method for a dual-system terminal, which is applied to a dual-system terminal; the method includes:

[0007] When a switching domain instruction is detected, determine whether the current system is the first operating system;

[0008] If so, send a network switching instruction and an industry WLAN configuration instruction to a daemon process in the Root domain through a foreground proxy service; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and when the network card switching is completed, send the industry WLAN configuration instruction to the second operating system through a background proxy service;

[0009] When the switching between the second operating system and the first operating system is completed, make the second operating system respond to the industry WLAN configuration instruction to access a preset industry WLAN, where the preset industry WLAN is customized through preset data, and the preset data includes management frames, data frames, and key negotiation of the industry WLAN.

[0010] In another possible implementation, before sending the network switching instruction and the industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service, the method further includes:

[0011] Record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the first operating system to enable the kernel to release the network card; the first operating system, the second operating system, and the Root domain share the hardware resources of the kernel, and the network card is the hardware resource.

[0012] In another possible implementation, before enabling the second operating system to access the preset industry WLAN in response to the industry WLAN configuration instruction, the method further includes:

[0013] Turn on the WiFi module of the second operating system;

[0014] Enabling the second operating system to access the preset industry WLAN in response to the industry WLAN configuration instruction includes:

[0015] Perform WiFi initialization and determine whether the WiFi is operating on the second operating system;

[0016] If so, customize the preset industry WLAN in response to the industry WLAN configuration instruction and execute a preset process to enable the second operating system to access the preset industry WLAN; the preset process is an access process that complies with industry security standards and includes: authentication, association, authorization, and key installation.

[0017] In another possible implementation, the dual-system terminal includes an NM card, and the preset data is included in the NM card; customizing the preset industry WLAN in response to the industry WLAN configuration instruction includes:

[0018] Enable the second operating system to access the NM card when receiving the industry WLAN configuration instruction to obtain the preset data;

[0019] Customize the preset industry WLAN according to the preset data.

[0020] In another possible implementation, the method further includes:

[0021] If the current system is the second operating system, record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the second operating system to enable the kernel to release the network card;

[0022] Send the network switching instruction to the daemon process through the foreground proxy service, and the daemon process responds to the network switching instruction to switch the network card from the second operating system to the first operating system;

[0023] When the switching between the first operating system and the second operating system is completed, turn on the WiFi module of the first operating system to enable the first operating system to access WiFi.

[0024] In another possible implementation, after sending the network switching instruction and the industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service, the method further includes:

[0025] If the switching between the second operating system and the first operating system fails, clear the industry WLAN configuration instruction.

[0026] In a second aspect, the present application provides a network switching device for a dual-system terminal, and the device includes:

[0027] A determination module, configured to determine whether the current system is the first operating system when a switching domain instruction is detected;

[0028] A sending module, configured to send a network switching instruction and an industry WLAN configuration instruction to a daemon process in the Root domain through a foreground proxy service when the current system is the first operating system; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and sends the industry WLAN configuration instruction to the second operating system through a background proxy service when the network card switching is completed;

[0029] A switching module, configured to enable the second operating system to access a preset industry WLAN in response to the industry WLAN configuration instruction when the switching between the second operating system and the first operating system is completed, and the preset industry WLAN is customized through preset data, and the preset data includes management frames, data frames, and key negotiation of the industry WLAN.

[0030] In another possible implementation, the sending module is further configured to:

[0031] Record the WiFi status through an inter-domain communication service, and turn off the WiFi module of the first operating system to enable the kernel to release the network card; the first operating system, the second operating system, and the Root domain share the hardware resources of the kernel, and the network card is the hardware resource.

[0032] In another possible implementation, the switching module is further configured to:

[0033] Turn on the WiFi module of the second operating system;

[0034] The switching module is specifically configured to:

[0035] Perform WiFi initialization and determine whether the WiFi is operating in the second operating system;

[0036] If so, customize the preset industrial WLAN in response to the industrial WLAN configuration instruction and execute a preset process to enable the second operating system to access the preset industrial WLAN; the preset process is an access process that complies with industrial security standards and includes: authentication, association, authorization, and key installation.

[0037] In another possible implementation, the switching module is specifically configured to:

[0038] The dual-system terminal includes an NM card, and the preset data is included in the NM card; when the second operating system receives the industrial WLAN configuration instruction, it accesses the NM card to obtain the preset data;

[0039] Customize the preset industrial WLAN according to the preset data.

[0040] In another possible implementation, the sending module is further configured to:

[0041] When the current system is the second operating system, record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the second operating system to enable the kernel to release the network card;

[0042] Send the network switching instruction to the daemon process through the foreground proxy service, and the daemon process responds to the network switching instruction to switch the network card from the second operating system to the first operating system;

[0043] When the switching between the first operating system and the second operating system is completed, turn on the WiFi module of the first operating system to enable the first operating system to access the WiFi.

[0044] In another possible implementation, the sending module is further configured to:

[0045] If the switching between the second operating system and the first operating system fails, clear the industrial WLAN configuration instruction.

[0046] In a third aspect, the present application provides an electronic device, including: at least one processor and a memory;

[0047] The memory stores computer execution instructions;

[0048] The at least one processor executes the computer-executable instructions stored in the memory, such that the at least one processor executes the method according to any one of the above first aspects.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method according to any one of the above first aspects is implemented.

[0050] The present application provides a network switching method, device and medium for a dual-system terminal. The method of the present application is applied to any dual-system terminal. Specifically, when a switching domain instruction is detected, it is first determined whether the current system is the first operating system for daily use. If so, a network switching instruction and an industrial WLAN configuration instruction are sent to a daemon process through a foreground proxy service, so that the daemon process switches the network card from the first operating system to the second operating system for work. Further, when the switching between the second operating system and the first operating system is completed, the second operating system accesses a preset industrial WLAN in response to the industrial WLAN configuration instruction sent by the daemon process. Through the method of the present application, when the second operating system is working, it accesses the preset industrial WLAN instead of the same WiFi as the first operating system, effectively improving the security when the second operating system is used. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0052] Figure 1 It is a schematic diagram of an application scenario of a network switching method for a dual-system terminal provided by an embodiment of the present application;

[0053] Figure 2 It is a schematic flow chart of a network switching method for a dual-system terminal provided by an embodiment of the present application Figure 1 ;

[0054] Figure 3A It is a schematic flow chart of a network switching method for a dual-system terminal provided by an embodiment of the present application Figure 2 ;

[0055] Figure 3B It is a schematic diagram of the architecture of a dual-system terminal provided by an embodiment of the present application;

[0056] Figure 4 It is a schematic diagram of the structure of a network switching device for a dual-system terminal provided by an embodiment of the present application;

[0057] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.

[0058] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and will be described in more detail hereinafter. These drawings and the textual description are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0059] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0060] Driven by the demand for mobile office, various types of industry mobile terminals have been launched. The mobile terminal can achieve "dual use in one device", well balancing the needs of work and life. Moreover, due to advantages such as convenient carrying, simple operation, and rich applications, it has gradually been recognized by users, resulting in the continuous expansion of the market scale.

[0061] Since users sometimes need to handle relevant matters in both life and work on the mobile terminal, and office work has its special properties, especially in industries such as government affairs, policing, justice, and energy, safety and confidentiality regulations must be strictly followed. Therefore, security isolation is required to achieve convenience on the basis of security.

[0062] Currently, in order to meet the user's security requirements while providing convenience, a dual-system solution is adopted in the known technology to achieve dual use in one device. Specifically, the mobile terminal has two operating systems, one for life and one for work, and the two operating systems are highly isolated. After the mobile terminal is powered on, one operating system is in the foreground and the other is in the background. The user switches the operating system that meets the requirements to the foreground for use according to the needs.

[0063] For the above-mentioned mobile terminal, the two operating systems share the same kernel resources, and the kernel resources include the network card, that is, the two operating systems share the same network card. When switching systems, the connection between the current foreground system and the network card is cut off, and when the system switching is completed, the connection between the current foreground system and the network card is established, so that the current foreground system accesses the wireless local area network through the network card.

[0064] With the development of network information technology, for some industries with high confidentiality requirements, if a user uses the operating system for work in a dual-system terminal and accesses the internal industry system after connecting to a wireless local area network through the aforementioned network card, due to the low network security, it may lead to the leakage of industry secrets, making the dual-system terminal inapplicable to some industries with high confidentiality requirements.

[0065] The present application provides a network switching method, device, and medium for a dual-system terminal to improve the usage security of the dual-system terminal, thereby enhancing the applicability of the dual-system terminal. Specifically, in the method of the present application, when it is detected that the second operating system for work needs to be switched to the foreground, a network switching instruction and an industry WLAN configuration instruction are sent to the daemon process in the Root domain through the foreground proxy service. The daemon process responds to the network switching instruction to switch the network card to the second operating system and sends the industry WLAN configuration instruction to the second operating system. After the second operating system is switched to the foreground, it responds to the WLAN configuration instruction to access the secure preset industry WLAN and accesses the internal industry system based on the preset industry WLAN.

[0066] Figure 1 FIG. is a schematic diagram of an application scenario of network switching for a dual-system terminal provided by an embodiment of the present application, as Figure 1 shown, the method of the present application can be applied to any dual-system terminal. The dual-system terminal includes a virtual first operating system and a second operating system. Among them, the first operating system is used for daily life and accesses external systems through a wireless local area network. The second operating system is used for work and accesses internal industry systems through a wireless local area network.

[0067] Through the method of the present application, the second operating system can access the internal system through the industry WLAN, thereby improving the usage security of the dual-system terminal. It can be understood that the method of the present application can be executed by the dual-system terminal or by any electronic device communicatively connected to the dual-system terminal. It can be understood that the electronic device is specifically a server for providing an auxiliary system switching function to the dual-system terminal.

[0068] The following will describe in detail some embodiments of the present application with reference to the accompanying drawings. In the case where the embodiments do not conflict with each other, the following embodiments and the features in the embodiments can be combined with each other.

[0069] Figure 2 FIG. is a schematic flowchart of a network switching method for a dual-system terminal provided by an embodiment of the present application Figure 1 As Figure 2 shown, the method provided in this embodiment includes:

[0070] S201, when a switching domain instruction is detected, determine whether the current system is the first operating system.

[0071] In this embodiment, the first operating system is for daily life, and the second operating system is for work.

[0072] It can be understood that the domain switching instruction is triggered by the user. The domain switching instruction can be generated when the first operating system is in the working state, or when the second operating system is in the working state. When the first operating system is in the working state, the user triggers the domain switching instruction by interacting with the first operating system. Similarly, when the second operating system is in the working state, the user triggers the domain switching instruction by interacting with the second operating system. Therefore, when the domain switching instruction is detected, it is necessary to determine whether the current system is the first operating system.

[0073] In this embodiment, the dual-system terminal is divided into three parts: the first operating system, the second operating system, and the Root domain. The dual-system terminal differentiates these three parts by setting different namespaces for the first operating system, the second operating system, and the Root domain. Further, in this embodiment, the domain switching instruction includes the namespace of the current system and the namespace of the target system. Based on this, when the dual-system terminal detects the domain switching instruction, it determines whether the current system is the first operating system through the namespace of the current system included in the domain switching instruction.

[0074] It can be understood that the first operating system and the second operating system share the same kernel resources, and the dual-system terminal can use the corresponding namespaces to manage peripherals and the like included in the kernel resources.

[0075] Optionally, the dual-system terminal can also determine whether the current system is the first operating system based on the connection status of the network card. This embodiment does not limit this, as long as the first operating system and the second operating system can be distinguished.

[0076] S202, when the current system is the first operating system, send a network switching instruction and an industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and when the network card switching is completed, send the industry WLAN configuration instruction to the second operating system through the background proxy service.

[0077] In this embodiment, the Root domain of the dual-system terminal realizes the communication between the foreground proxy service and the background proxy service through the daemon process to implement the operation of switching the network card.

[0078] Specifically, the foreground proxy service of the dual-system terminal sends a network switching instruction and an industry WLAN configuration instruction to the daemon process. When receiving the network switching instruction and the industry WLAN configuration instruction, the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system. When the switching is completed, the daemon process sends the information of the completed switching to the first operating system through the foreground proxy service and to the second operating system through the background proxy service. At the same time, the daemon process sends the industry WLAN configuration instruction to the second operating system through the background proxy service.

[0079] It can be understood that if the network card switching fails, the daemon process sends the information of the switching failure to the first operating system through the foreground proxy service to inform the first operating system that the network switching fails, so that the first operating system is in the foreground. At the same time, the daemon process sends the information of the switching failure to the second operating system through the background proxy service to inform the second operating system that the network switching fails. Optionally, when the network switching fails, the dual-system terminal clears the industry WLAN configuration instruction received by the daemon process to release resources.

[0080] S203, when the switching between the second operating system and the first operating system is completed, make the second operating system respond to the industry WLAN configuration instruction to access the preset industry WLAN.

[0081] Among them, the preset industry WLAN is customized through preset data, and the preset data includes the management frame, data frame and key negotiation of the industry WLAN.

[0082] In this embodiment, when the switching between the second operating system and the first operating system is completed, the industry WLAN configuration instruction takes effect, and the second operating system responds to the industry WLAN configuration instruction to access the preset industry WLAN customized through the preset data.

[0083] In the method provided in this embodiment, when the dual-system terminal detects a switching domain instruction, it first determines whether the current system in the working state is the first operating system. When it is determined that the current system is the first operating system, the dual-system terminal sends a network switching instruction to the daemon process through the foreground proxy service, so that the daemon process responds to the network switching instruction and switches the network card from the first operating system to the second operating system. At the same time, the dual-system terminal sends an industrial WLAN configuration instruction to the daemon process through the foreground proxy service, so that when the daemon process completes the network card switching, it sends the industrial WLAN configuration instruction to the second operating system through the background proxy service. Finally, when the second operating system and the first operating system complete the switching, the second operating system responds to the industrial WLAN configuration instruction to access the preset industrial WLAN. Through the method of this embodiment, when the second operating system for work switches to the foreground working state, it can access the industrial internal system through the preset industrial WLAN, thereby effectively improving the security when using the dual-system terminal, and further facilitating the improvement of the applicability of the dual-system terminal.

[0084] Figure 3A Schematic flow of a network switching method for a dual-system terminal provided by an embodiment of the present application Figure 2 Based on the foregoing embodiment, the method of this embodiment further describes the network switching method of the dual-system terminal. As Figure 3A shown, the method provided by this embodiment includes:

[0085] S301. When a switching domain instruction is detected, determine whether the current system is the first operating system. If so, execute S302; otherwise, execute S307.

[0086] In this embodiment, the switching domain instruction is triggered by the user. The switching domain instruction includes the namespaces of the current system and the target system. The dual-system terminal determines whether the current system is the first operating system through the namespaces.

[0087] S302. Record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the first operating system to release the network card by the kernel.

[0088] S303. Send a network switching instruction and an industrial WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and sends the industrial WLAN configuration instruction to the second operating system through the background proxy service when the network card switching is completed.

[0089] S304. When the second operating system and the first operating system complete the switching, turn on the WiFi module of the second operating system.

[0090] S305 performs WiFi initialization. When it is determined that the WiFi is operating in the second operating system, it responds to the industry WLAN configuration instruction to customize the preset industry WLAN and executes the preset process to enable the second operating system to access the preset industry WLAN.

[0091] Among them, the preset process is an access process that complies with industry security standards, including: authentication, association, authorization, and key installation.

[0092] In this embodiment, the first operating system is used for life, and the second operating system is used for work. In addition, the dual-system terminal also includes a Root domain and kernel resources.

[0093] Specifically, Figure 3B is a schematic diagram of the architecture of a dual-system terminal provided by an embodiment of the present application. As Figure 3B shown, in this embodiment, the first operating system, the second operating system, and the Root domain share a set of kernel resources. Among them, the Root domain realizes communication with the foreground system and the background system through a daemon process, and the Root domain includes a WiFi control module for moving the network card in response to a network card switching instruction. The first operating system and the second operating system respectively realize inter-domain communication through corresponding proxy services, and both the first operating system and the second operating system include a tool Wpa_supplicant for configuring the wireless network, which is used to close the corresponding WiFi module when receiving an instruction to close the WiFi module. In addition, the second operating system also includes a so file for accessing the NM card in response to the industry WLAN configuration instruction. The kernel resources include network cards, terminal peripherals, etc.

[0094] In this embodiment, the dual-system terminal specifically realizes the inter-domain communication service through the socket method. When the dual-system terminal detects a domain switching instruction, it first closes the WiFi module of the first operating system through the corresponding tool for configuring the wireless network, so that the kernel releases the network card and makes the network card available. Then, the dual-system terminal sends a network switching instruction and an industry WLAN configuration instruction to the daemon process through the foreground proxy service to switch the network card from the first operating system to the second operating system and send the industry WLAN configuration instruction to the second operating system.

[0095] It can be understood that after the second operating system connects to the network card, it is necessary to further configure network protocols, etc. to achieve the goal of enabling the second operating system to access the preset industry WLAN. Therefore, in this embodiment, after the second operating system and the first operating system are switched, first open the WiFi module of the second operating system through the corresponding tool for configuring the wireless network, then perform WiFi initialization, and determine again whether the WiFi is operating in the second operating system. If so, respond to the WLAN configuration instruction to customize the preset industry WLAN and execute the preset process to enable the second operating system to access the preset industry WLAN.

[0096] Specifically, in this embodiment, the dual-system terminal further includes an NM card, and preset data is configured in the NM card. The second operating system can access the NM card through the so file to obtain the preset data, thereby completing the customization of the preset industry WLAN.

[0097] It can be understood that if it is determined that the WiFi is not working in the second operating system, it is necessary to check whether the WiFi module of the first operating system is turned off and whether the WiFi module of the second operating system is turned on, so as to troubleshoot and solve the problem, and achieve making the WiFi work in the second operating system, so that the second operating system can access the internal system through the preset industry WLAN.

[0098] It can be understood that the dual-system terminal can determine whether the switching between the first operating system and the second operating system is completed by viewing the namespace for managing device peripherals.

[0099] S306, when the switching between the second operating system and the first operating system fails, clear the industry WLAN configuration instruction.

[0100] S307, record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the second operating system to make the kernel release the network card.

[0101] S308, send a network switching instruction to the daemon process through the foreground proxy service, and the daemon process responds to the network switching instruction to switch the network card from the second operating system to the first operating system.

[0102] S309, when the switching between the first operating system and the second operating system is completed, turn on the WiFi module of the first operating system to make the first operating system access the WiFi.

[0103] In this embodiment, when the dual-system terminal determines that the current system is the second operating system, it means that it is necessary to switch the first operating system to the foreground at this time. It can be understood that the first operating system for daily use has low requirements for security and can access the external system through the wireless local area network. Therefore, in this embodiment, to reduce resource utilization, after the first operating system connects to the network card, the WiFi module of the first operating system is turned on so that the first operating system can directly access the wireless local area network.

[0104] In the method provided in this embodiment, when the dual-system terminal detects a switching domain instruction, if the current system is the first operating system, after switching the network card from the first operating system to the second operating system through the daemon process, the WiFi module of the second operating system is turned on, and the second operating system responds to the industry WLAN configuration instruction to customize the preset industry WLAN, so as to access the preset industry WLAN through the preset process, and the second operating system accesses the industry internal system through the preset industry WLAN to ensure the use security. If the current system is the second operating system, after switching the network card from the second operating system to the first operating system through the daemon process, the WiFi module of the first operating system is turned on, and the first operating system accesses the wireless local area network, so as to access the external system through the wireless local area network, meet the user's needs, and at the same time reduce the resource utilization.

[0105] The above embodiment introduces a network switching method for a dual-system terminal from the perspective of the method flow. The following embodiment introduces a network switching device for a dual-system terminal from the perspective of virtual modules or virtual units. For details, see the following embodiment.

[0106] An embodiment of the present application provides a network switching device for a dual-system terminal, Figure 4 which is a schematic structural diagram of network switching for a dual-system terminal provided by an embodiment of the present application. As Figure 4 shown, the device includes a determination module 41, a sending module 42, and a switching module 43, where,

[0107] The determination module 41 is configured to determine whether the current system is the first operating system when detecting a switching domain instruction. The first operating system is used for daily life;

[0108] The sending module 42 is configured to send a network switching instruction and an industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service when the current system is the first operating system; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and sends the industry WLAN configuration instruction to the second operating system through the background proxy service when the network card switching is completed. The second operating system is used for work;

[0109] The switching module 43 is configured to enable the second operating system to access the preset industry WLAN in response to the industry WLAN configuration instruction when the second operating system and the first operating system complete the switching. The preset industry WLAN is customized through preset data, and the preset data includes the management frame, data frame, and key negotiation of the industry WLAN.

[0110] Another possible implementation manner of the embodiment of the present application is that the sending module is further configured to:

[0111] Record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the first operating system to enable the kernel to release the network card; the first operating system, the second operating system, and the Root domain share the hardware resources of the kernel, and the network card is a hardware resource.

[0112] Another possible implementation manner of the embodiment of the present application is that the switching module 43 is further configured to:

[0113] Turn on the WiFi module of the second operating system;

[0114] Specifically, the switching module 43 is configured to:

[0115] Perform WiFi initialization and determine whether the WiFi is operating in the second operating system;

[0116] If so, customize the preset industrial WLAN in response to the industrial WLAN configuration instruction and execute the preset process to enable the second operating system to access the preset industrial WLAN; the preset process is an access process that complies with industrial security standards and includes: authentication, association, authorization, and key installation.

[0117] Another possible implementation manner of the embodiment of the present application is that the switching module 43 is specifically configured to:

[0118] The dual-system terminal includes an NM card, and the NM card contains preset data; when the second operating system receives the industrial WLAN configuration instruction, it accesses the NM card to obtain the preset data;

[0119] Customize the preset industrial WLAN according to the preset data.

[0120] Another possible implementation manner of the embodiment of the present application is that the sending module 42 is further configured to:

[0121] When the current system is the second operating system, record the WiFi status through the inter-domain communication service, and turn off the WiFi module of the second operating system to enable the kernel to release the network card;

[0122] Send a network switching instruction to the daemon process through the foreground proxy service, and the daemon process responds to the network switching instruction to switch the network card from the second operating system to the first operating system;

[0123] When the switching between the first operating system and the second operating system is completed, turn on the WiFi module of the first operating system to enable the first operating system to access the WiFi.

[0124] Another possible implementation manner of the embodiment of the present application is that the sending module 42 is further configured to:

[0125] If the switching between the second operating system and the first operating system fails, clear the industrial WLAN configuration instruction.

[0126] A network switching device for a dual-system terminal provided by an embodiment of the present application is applicable to the above method embodiment and will not be elaborated herein.

[0127] An embodiment of the present application provides an electronic device, such as Figure 5 shown. Figure 5 The electronic device shown includes: a processor 51 and a memory 52. Among them, the processor 51 and the memory 52 are connected, such as connected through a bus 53. Optionally, the electronic device may further include a transceiver 54. It should be noted that in practical applications, the transceiver 54 is not limited to one, and the structure of the electronic device does not constitute a limitation to the embodiment of the present application.

[0128] The processor 51 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor 51 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0129] The bus 53 may include a path for transmitting information between the above components. The bus 53 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 53 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus 53 or one type of bus 53.

[0130] The memory 52 can be a read only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or can also be an electrically erasable programmable read only memory (EEPROM), a compact disc read only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0131] The memory 52 is used to store the application program code for implementing the solution of this application and is controlled by the processor 51 for execution. The processor 51 is used to execute the application program code stored in the memory 52 to implement the content shown in the foregoing method embodiments.

[0132] This application also provides a computer-readable storage medium, which may include: various media that can store program code, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks or optical discs, etc. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used to implement the methods in the foregoing embodiments.

[0133] This application embodiment also provides a computer program product, including a computer program, which implements the technical solutions of the foregoing method embodiments when executed by a processor. The implementation principle and technical effects are similar and will not be elaborated here.

[0134] Those skilled in the art will readily think of other implementation schemes of this application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptive changes of this application, and these variations, uses or adaptive changes follow the general principles of this application and include the common general knowledge or conventional technical means in the technical field not disclosed in this application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of this application are pointed out by the claims.

[0135] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A network switching method for a dual-system terminal, characterized in that, Applied to a dual - system terminal; the method includes: When a domain - switching instruction is detected, determine whether the current system is the first operating system; If so, send a network - switching instruction and an industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service; the daemon process responds to the network - switching instruction to switch the network card from the first operating system to the second operating system, and when the network - card switching is completed, send the industry WLAN configuration instruction to the second operating system through the background proxy service; When the second operating system and the first operating system complete the switch, make the second operating system respond to the industry WLAN configuration instruction to access a preset industry WLAN, where the preset industry WLAN is customized through preset data, and the preset data includes management frames, data frames, and key negotiation of the industry WLAN.

2. The method according to claim 1, wherein Before sending the network - switching instruction and the industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service, the method further includes: Record the WiFi status through the inter - domain communication service, and turn off the WiFi module of the first operating system to make the kernel release the network card; the first operating system, the second operating system, and the Root domain share the hardware resources of the kernel, and the network card is one of the hardware resources.

3. The method according to claim 1 or 2, characterized in that, Before making the second operating system respond to the industry WLAN configuration instruction to access the preset industry WLAN, the method further includes: Turn on the WiFi module of the second operating system; Making the second operating system respond to the industry WLAN configuration instruction to access the preset industry WLAN includes: Perform WiFi initialization and determine whether the WiFi is operating in the second operating system; If so, respond to the industry WLAN configuration instruction to customize the preset industry WLAN and execute a preset process to make the second operating system access the preset industry WLAN; the preset process is an access process that complies with industry security standards and includes: authentication, association, authorization, and key installation.

4. The method according to claim 3, wherein The dual - system terminal includes an NM card, and the preset data is included in the NM card; responding to the industry WLAN configuration instruction to customize the preset industry WLAN includes: Making the second operating system access the NM card to obtain the preset data when receiving the industry WLAN configuration instruction; Customize the preset industry WLAN according to the preset data.

5. The method according to claim 2, wherein The method further includes: If the current system is the second operating system, record the WiFi status through the inter - domain communication service, and turn off the WiFi module of the second operating system to make the kernel release the network card; Send the network - switching instruction to the daemon process through the foreground proxy service, and the daemon process responds to the network - switching instruction to switch the network card from the second operating system to the first operating system; When the first operating system and the second operating system complete the switch, turn on the WiFi module of the first operating system to make the first operating system access WiFi.

6. The method according to claim 1 or 2, characterized in that, After sending the network switching instruction and the industry WLAN configuration instruction to the daemon process in the Root domain through the foreground proxy service, the method further includes: If the switching between the second operating system and the first operating system fails, clear the industry WLAN configuration instruction.

7. A network switching device for a dual-system terminal, characterized in that The apparatus includes: A determination module, configured to determine whether the current system is the first operating system when a domain switching instruction is detected; A sending module, configured to, when the current system is the first operating system, send a network switching instruction and an industry WLAN configuration instruction to a daemon process in the Root domain through a foreground proxy service; the daemon process responds to the network switching instruction to switch the network card from the first operating system to the second operating system, and when the network card switching is completed, send the industry WLAN configuration instruction to the second operating system through a background proxy service; A switching module, configured to, when the switching between the second operating system and the first operating system is completed, enable the second operating system to access a preset industry WLAN in response to the industry WLAN configuration instruction, where the preset industry WLAN is customized through preset data, and the preset data includes management frames, data frames, and key negotiation of the industry WLAN.

8. The device according to claim 7, characterized in that, The sending module is further configured to: Record the WiFi status through an inter-domain communication service, and turn off the WiFi module of the first operating system to enable the kernel to release the network card; the first operating system, the second operating system, and the Root domain share the hardware resources of the kernel, and the network card is the hardware resource.

9. An electronic device, characterized in that, Includes: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the computer execution instructions are executed by a processor, they are used to implement the method according to any one of claims 1 to 6.