CN111124536B - Dual-system data sharing method and device based on data isolation and terminal equipment - Google Patents

Dual-system data sharing method and device based on data isolation and terminal equipment Download PDF

Info

Publication number
CN111124536B
CN111124536B CN201911288740.9A CN201911288740A CN111124536B CN 111124536 B CN111124536 B CN 111124536B CN 201911288740 A CN201911288740 A CN 201911288740A CN 111124536 B CN111124536 B CN 111124536B
Authority
CN
China
Prior art keywords
virtual machine
configuration information
mounting point
public
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911288740.9A
Other languages
Chinese (zh)
Other versions
CN111124536A (en
Inventor
尹志辉
何川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARCHERMIND TECHNOLOGY (NANJING) CO LTD
Original Assignee
ARCHERMIND TECHNOLOGY (NANJING) CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ARCHERMIND TECHNOLOGY (NANJING) CO LTD filed Critical ARCHERMIND TECHNOLOGY (NANJING) CO LTD
Priority to CN201911288740.9A priority Critical patent/CN111124536B/en
Publication of CN111124536A publication Critical patent/CN111124536A/en
Application granted granted Critical
Publication of CN111124536B publication Critical patent/CN111124536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Abstract

The invention provides a data sharing method and device of a dual system based on data isolation, and terminal equipment, comprising the following steps: setting a mounting point on a terminal device; when switching from a first virtual machine to a second virtual machine, updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine, and then exiting the first virtual machine; before the second virtual machine is started, public configuration information of the mounting point is obtained, and the configuration information of the second virtual machine is updated according to the public configuration information. The invention can make the public configuration information shared between the virtual machines, and avoid the problem that the modified configuration information on one virtual machine is not inherited on the other virtual machine along with the switching of the virtual machines on the terminal equipment.

Description

Dual-system data sharing method and device based on data isolation and terminal equipment
Technical Field
The present invention relates to the field of virtual machines, and in particular, to a data sharing method and apparatus for dual systems based on data isolation, and a terminal device.
Background
Taking an Android mobile phone as an example, the same mobile phone user may log in different user management systems by using the mobile phone, different authority limits exist in different user management systems, and the corresponding same user has different roles, for example, the same user is used as a host for daily use, can only access limited applications as a visitor, and the use functions defined by different users are different or different access authorities need to be set. Therefore, the same mobile phone needs to be adapted according to different user requirements, and executable functions, received data, requirements on security, access to public and private networks and the like in a host mode/visitor mode are all different, so that it is generally expected that the data can be isolated from each other under various user use scenes so as to increase security.
The CN110245001A data isolation method and device and the electronic equipment propose a data isolation method, wherein a virtual machine manager is carried on a terminal device, a user operating system running on a first virtual machine and a trusted execution environment running on a second virtual machine. According to the scheme, different virtual machines are adopted to adapt to different user requirements, and the two virtual machines have independent data spaces, so that the data isolation degree is high.
However, the attribute configuration (such as brightness setting, text size, etc.) of the same mobile phone is generally expected to be the same for the same user regardless of the user role, but the above scheme has a problem that the attribute configuration modified by the user cannot be inherited when the virtual machine is switched. Taking the following scenario as an example, assuming that the default font size of the system is "medium", the user prefers a large font, and when the user operates the virtual machine 1 as a host, the setting of the font size is modified to be "large"; however, when the virtual machine 2 is switched from the virtual machine 1, the virtual machine manager is re-initialized, the font size setting is restored to the default configuration of the virtual machine 2, namely, the default configuration of the system ("medium"), and the modification setting of the user when the virtual machine 1 is operated is not inherited, so that the user has to modify again, and the user experience is poor.
Disclosure of Invention
The invention aims to provide a data sharing method and device of a dual system based on data isolation and terminal equipment, which are used for solving the problem that configuration information modified on one virtual machine cannot be effectively inherited on another virtual machine along with virtual machine switching on the terminal equipment.
The technical scheme provided by the invention is as follows:
a data sharing method of a dual system based on data isolation comprises the following steps: setting a mounting point on a terminal device; when switching from a first virtual machine to a second virtual machine, updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine, and then exiting the first virtual machine; before the second virtual machine is started, public configuration information of the mounting point is obtained, and the configuration information of the second virtual machine is updated according to the public configuration information.
Further, the updating the configuration information of the second virtual machine according to the common configuration information further includes: and setting the terminal equipment according to the public configuration information and updating the configuration information of the second virtual machine.
Further, the updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine includes: acquiring public configuration information of the mounting points; when the obtained public configuration information is consistent with the corresponding item in the current configuration information of the first virtual machine, the public configuration information of the mounting point is not updated according to the current configuration information of the first virtual machine.
Further, the mounting point also records special configuration information of each virtual machine.
Further, the updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine further includes: and updating the public configuration information recorded by the mounting point and the special configuration information of the first virtual machine according to the current configuration information of the first virtual machine.
The invention also provides a data sharing device of the double system based on data isolation, comprising: the mounting point setting module is used for setting mounting points on the terminal equipment; the configuration information updating module is used for updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine when the first virtual machine is switched to the second virtual machine, and then exiting the first virtual machine; the configuration information acquisition module is used for acquiring the public configuration information of the mounting point before the second virtual machine is started; and the configuration information sharing module is used for updating the configuration information of the second virtual machine according to the public configuration information.
Further, the method further comprises the following steps: and the configuration information implementation module is used for setting the terminal equipment according to the public configuration information.
Further, the configuration information updating module is further configured to obtain common configuration information of the mounting point when switching from the first virtual machine to the second virtual machine; when the obtained public configuration information is consistent with the corresponding item in the current configuration information of the first virtual machine, the public configuration information of the mounting point is not updated according to the current configuration information of the first virtual machine.
Further, the mounting point also records special configuration information of each virtual machine; the configuration information updating module is further configured to update public configuration information recorded by the mounting point and special configuration information of the first virtual machine according to current configuration information of the first virtual machine when the first virtual machine is switched to the second virtual machine.
The invention also provides a terminal device, comprising: a memory for storing a computer program; a processor for implementing the data sharing method of the dual system based on data isolation as described in any one of the preceding claims when running the computer program.
The data sharing method and device for the dual system based on data isolation and the terminal equipment provided by the invention have the following beneficial effects:
1. according to the method and the device, the mounting point is set, and the public configuration information of each virtual machine is stored in the mounting point, so that the public configuration can be well inherited and synchronized when the virtual machines are switched, and the user experience is improved.
2. According to the invention, the public configuration information and the special configuration information of each virtual machine are recorded at the mounting point, so that the latest public configuration information is inherited and synchronized when the virtual machines are switched, and meanwhile, the special configuration information of each virtual machine can be recovered as soon as possible, so that a user cannot feel the influence of the switching of the virtual machines, and the experience is better.
Drawings
The foregoing features, technical features, advantages and implementation manners of a data sharing method and apparatus for dual systems based on data isolation, and a terminal device will be further described with reference to the accompanying drawings in a clearly understood manner.
FIG. 1 is a flow chart of one embodiment of a data sharing method of a dual system based on data isolation of the present invention;
FIG. 2 is a flow chart of another embodiment of a data sharing method of a dual system based on data isolation of the present invention;
FIG. 3 is a schematic diagram illustrating the structure of an embodiment of a dual system data sharing apparatus based on data isolation according to the present invention;
FIG. 4 is a schematic diagram of one embodiment of a terminal device of the present invention;
reference numerals illustrate:
100. the system comprises a data sharing device 110, a mounting point setting module 120, a configuration information acquisition module 130, a configuration information sharing module 140, a configuration information updating module 150, a configuration information implementation module 200, terminal equipment 210, a memory 220, a processor 230 and a computer program.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will explain the specific embodiments of the present invention with reference to the accompanying drawings. It is evident that the drawings in the following description are only examples of the invention, from which other drawings and other embodiments can be obtained by a person skilled in the art without inventive effort.
For the sake of simplicity of the drawing, the parts relevant to the present invention are shown only schematically in the figures, which do not represent the actual structure thereof as a product. Additionally, in order to facilitate a concise understanding of the drawings, components having the same structure or function in some of the drawings are only schematically depicted, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
In one embodiment of the present invention, as shown in fig. 1, a data sharing method of a dual system based on data isolation includes:
step S100, mounting points are set on terminal equipment, and public configuration information is recorded by the mounting points;
step S200, when switching from the first virtual machine to the second virtual machine, updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine, and then exiting the first virtual machine;
step S300, before starting the second virtual machine, obtaining public configuration information of mounting points;
step S400 sets the terminal device according to the common configuration information, and updates the configuration information of the second virtual machine according to the common configuration information.
Specifically, a dual-system scheme of data isolation, i.e. two virtual machines, is configured on the terminal equipment (such as an Android mobile phone). Since two virtual machines have independent data spaces, they have independent configuration files.
The configuration content of both configuration files may be the same, for example, both are initial configuration of the system. But each user has its own preferences and the user modifies the configuration on the virtual machine running in the foreground (or on the virtual machine currently running), such as on the first virtual machine, which configuration, when saved, is saved in the configuration file of the first virtual machine. When switching from the first virtual machine to the second virtual machine, since the configuration modified on the first virtual machine is not shared to the second virtual machine, with the exit of the first virtual machine, the setting of the terminal device is switched to the configuration set by the configuration file of the second virtual machine, i.e. is restored to the system initial configuration again. In order to enable the modified configuration on the first virtual machine to be shared to the second virtual machine, a mounting point is set on the terminal device, setting information which all virtual machines must inherit and keep consistent is taken as common configuration information, and the common configuration information is stored at the mounting point.
The mount point is independent of all virtual machines, and does not belong to any virtual machine, and can be regarded as an independent storage file system. The mounting point belongs to a shared data area, and each virtual machine can be accessed. If the mount point is set in the virtual machine, the problem of data sharing between the virtual machines still cannot be solved, and the mount point on the virtual machine is recovered along with the exit of the virtual machine.
When the virtual machine is switched, for example, the first virtual machine is switched to the second virtual machine, and when the virtual machine manager controls the first virtual machine to exit, the public configuration information of the mounting point is updated according to the current configuration information of the first virtual machine, and then the first virtual machine is exited; when the second virtual machine is controlled to be started, public configuration information of the mounting point is obtained first, then the configuration information of the second virtual machine is updated according to the public configuration information, and then the second virtual machine is started. The reverse virtual machine switch, the process is similar. In this way, the latest common configuration information is shared among the virtual machines. The latest common configuration information can be inherited no matter which virtual machine is cut to. The user only needs to modify once, and the modified configuration information is inherited, so that the user experience is improved.
Optionally, when switching from the first virtual machine to the second virtual machine and controlling the first virtual machine to exit, firstly acquiring public configuration information from a file system of the mounting point; and comparing the obtained public configuration information with corresponding items in the current configuration information of the first virtual machine, and if the two types of public configuration information are completely consistent, updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine is not needed, so that the write operation of the system can be reduced, the load of the mounting point is lightened, and the performance of the Android system is improved.
The common configuration information may be general property settings under the mobile phone settings, such as display and brightness, font size, wallpaper, sound, etc., which affect the user's experience of use, including but not limited to these. Preferably, the setting information related to the mobile phone hardware device is used as public configuration information, so that the hardware device on the mobile phone can be always in a stable state, unnecessary fluctuation of the hardware device is avoided when the virtual machine is switched, and the reliability of the hardware device is improved. Optionally, the public configuration information of the mounting points is customized according to the needs of the user. The public configuration information of the mounting point can be only configuration data concerned by a user, possibly part of the content in the configuration information of the virtual machine, so that the memory occupied by the mounting point can be further reduced.
In the prior art, when the first virtual machine is exited and the second virtual machine is not started yet, the virtual machine manager has an initialization process to return the setting of the terminal device to the initial state of the system, and then, along with the start of the second virtual machine, the setting of the terminal device is cut to the configuration of the second virtual machine, so that the problem of unsmooth configuration exists in the virtual machine switching process.
In this embodiment, when the second virtual machine is controlled to be started and the public configuration information of the mounting point is obtained, the virtual machine manager updates the configuration information of the second virtual machine according to the public configuration information, sets the terminal device according to the public configuration information, and then starts the second virtual machine. Through the operation, when the first virtual machine is withdrawn and the second virtual machine is not started, the setting of the terminal equipment corresponding to the public configuration information is consistent with the setting of the first virtual machine and the setting of the second virtual machine, the setting is smooth in the switching of the virtual machines, the seamless switching is realized, and the user experience is improved.
According to the embodiment, the sharing and inheritance of the latest public configuration information among the virtual machines are realized through the latest public configuration information of the mounting point; by setting the terminal equipment according to the latest public configuration information in the virtual machine switching process, seamless switching between virtual machines is realized, and user experience is better.
In another embodiment of the present invention, as shown in fig. 2, a data sharing method of a dual system based on data isolation includes:
step S110, mounting points are arranged on terminal equipment, and the mounting points record public configuration information and special configuration information of each virtual machine;
step S210, when switching from the first virtual machine to the second virtual machine, updating public configuration information recorded by the mounting point and special configuration information of the first virtual machine according to the current configuration information of the first virtual machine, and then exiting the first virtual machine;
step S310, before starting the second virtual machine, obtaining public configuration information of the mounting point and special configuration information of the second virtual machine;
step S410 sets the terminal device according to the common configuration information and the special configuration information of the second virtual machine, and updates the configuration information of the second virtual machine according to the common configuration information.
Specifically, the mounting point records special configuration information of each virtual machine in addition to common configuration information. The common configuration information is to configure the same attribute for each virtual machine, and the special configuration information configures different attributes for each virtual machine. The network connection configuration of each virtual machine to the mobile phone may be different, for example, the network channel of the first virtual machine is adapted to the public network, and a wireless local area network WIFI can be opened; the network channel of the second virtual machine is adapted to a private network, such as a army, a government enterprise, etc., and requires opening a VPN.
The special configuration information may be stored in the form of separate files for each virtual machine.
In the prior art, the problem that the special configuration information is not smooth in recovery when the virtual machine is switched exists. For example, the setting of the wireless local area network, the setting of the first virtual machine is assumed to close the WLAN function of the wireless local area network, the setting of the second virtual machine is assumed to open the WLAN function of the wireless local area network, and the initial state of the system is assumed to close the WLAN function; switching from the first virtual machine to the second virtual machine, wherein the virtual machine manager has an initialization process in the switching process, so that the setting of the terminal equipment is returned to the initial state of the system, and the WLAN function is closed; then, along with the starting of the second virtual machine, the WLAN function is restored to be started when the terminal equipment is set according to the configuration information of the second virtual machine; the user can feel that the network connection configuration is not smooth during the virtual machine switching process.
In order to solve the problems, the special configuration information is restored more smoothly, and before the virtual machine exits, the public configuration information of the mounting point is updated according to the current setting condition of the virtual machine to be exited, and the special configuration information of the corresponding virtual machine recorded by the mounting point is updated; before restarting the virtual machine, not only acquiring public configuration information from the mounting point, but also acquiring special configuration information of the virtual machine; the terminal equipment is set according to the public configuration information and the special configuration information of the virtual machine, so that the latest public configuration information can be continued, the special configuration information of the second virtual machine can be recovered as soon as possible, and a user can feel faster switching time delay between the virtual machines than the prior art.
For example, if the backlight levels of the virtual machine 1 and the virtual machine 2 are expected to be consistent by the user and the WIFI settings of the virtual machine 1 and the virtual machine 2 are different, the backlight level is set as the common configuration information of the mounting point, and the WIFI is set as the special configuration information of the mounting point; through the scheme, the user's expectations can be better met.
Compared with the virtual machine, the mounting point only stores the configuration data concerned by the user, so that the memory occupied by the mounting point is smaller. If the mounting point is realized by adopting the third virtual machine, the occupied memory is larger, and the third virtual machine needs to reside in the memory, so that the system performance of the mobile phone is reduced. In addition, the mounting point is interacted with only at the moment of switching the virtual machine, so that the mounting point does not need to reside in a system memory generally, and larger system overhead and the usability of the Android mobile phone cannot be influenced by the addition of the mounting point.
According to the embodiment, the public configuration information and the special configuration information of each virtual machine are recorded at the mounting point, so that the latest public configuration information can be well inherited and synchronized when the virtual machines are switched, meanwhile, the special configuration information of each virtual machine can be recovered, a user cannot feel the influence of the switching of the virtual machines, and the experience is better.
In one embodiment of the present invention, as shown in fig. 3, a dual system data sharing apparatus 100 based on data isolation includes:
a mounting point setting module 110, configured to set a mounting point on the terminal device, where the mounting point records public configuration information;
a configuration information updating module 140, configured to update common configuration information of the mounting point according to current configuration information of the first virtual machine when switching from the first virtual machine to the second virtual machine, and then exit the first virtual machine;
a configuration information obtaining module 120, configured to obtain common configuration information of the mounting point before the second virtual machine is started;
a configuration information sharing module 130, configured to update configuration information of the second virtual machine according to the common configuration information;
and the configuration information implementation module 150 is configured to set the terminal device according to the common configuration information.
Specifically, a dual-system scheme of data isolation, i.e. two virtual machines, is configured on the terminal equipment (such as an Android mobile phone). Since two virtual machines have independent data spaces, they have independent configuration files.
The configuration content of both configuration files may be the same, for example, both are initial configuration of the system. But each user has its own preferences and the user modifies the configuration on the virtual machine running in the foreground (or on the virtual machine currently running), such as on the first virtual machine, which configuration, when saved, is saved in the configuration file of the first virtual machine. When switching from the first virtual machine to the second virtual machine, since the configuration modified on the first virtual machine is not shared to the second virtual machine, with the exit of the first virtual machine, the setting of the terminal device is switched to the configuration set by the configuration file of the second virtual machine, i.e. is restored to the system initial configuration again. In order to enable the modified configuration on the first virtual machine to be shared to the second virtual machine, a mounting point is set on the terminal device, setting information which all virtual machines must inherit and keep consistent is taken as common configuration information, and the common configuration information is stored at the mounting point.
The mount point is independent of all virtual machines, and does not belong to any virtual machine, and can be regarded as an independent storage file system. The mounting point belongs to a shared data area, and each virtual machine can be accessed. If the mount point is set in the virtual machine, the problem of data sharing between the virtual machines still cannot be solved, and the mount point on the virtual machine is recovered along with the exit of the virtual machine.
When the virtual machine is switched, for example, the first virtual machine is switched to the second virtual machine, and when the virtual machine manager controls the first virtual machine to exit, the public configuration information of the mounting point is updated according to the current configuration information of the first virtual machine, and then the first virtual machine is exited; when the second virtual machine is controlled to be started, public configuration information of the mounting point is obtained first, then the configuration information of the second virtual machine is updated according to the public configuration information, and then the second virtual machine is started. The reverse virtual machine switch, the process is similar. In this way, the latest common configuration information is shared among the virtual machines. The latest common configuration information can be inherited no matter which virtual machine is cut to. The user only needs to modify once, and the modified configuration information is inherited, so that the user experience is improved.
Optionally, when switching from the first virtual machine to the second virtual machine and controlling the first virtual machine to exit, firstly acquiring public configuration information from a file system of the mounting point; and comparing the obtained public configuration information with corresponding items in the current configuration information of the first virtual machine, and if the two types of public configuration information are completely consistent, updating the public configuration information of the mounting point according to the current configuration information of the first virtual machine is not needed, so that the write operation of the system can be reduced, the load of the mounting point is lightened, and the performance of the Android system is improved.
The common configuration information may be general property settings under the mobile phone settings, such as display and brightness, font size, wallpaper, sound, etc., which affect the user's experience of use, including but not limited to these. Preferably, the setting information related to the mobile phone hardware device is used as public configuration information, so that the hardware device on the mobile phone can be always in a stable state, unnecessary fluctuation of the hardware device is avoided when the virtual machine is switched, and the reliability of the hardware device is improved. Optionally, the public configuration information of the mounting points is customized according to the needs of the user. The public configuration information of the mounting point can be only configuration data concerned by a user, possibly part of the content in the configuration information of the virtual machine, so that the memory occupied by the mounting point can be further reduced.
In the prior art, when the first virtual machine is exited and the second virtual machine is not started yet, the virtual machine manager has an initialization process to return the setting of the terminal device to the initial state of the system, and then, along with the start of the second virtual machine, the setting of the terminal device is cut to the configuration of the second virtual machine, so that the problem of unsmooth configuration exists in the virtual machine switching process.
In this embodiment, when the second virtual machine is controlled to be started and the public configuration information of the mounting point is obtained, the virtual machine manager updates the configuration information of the second virtual machine according to the public configuration information, sets the terminal device according to the public configuration information, and then starts the second virtual machine. Through the operation, when the first virtual machine is withdrawn and the second virtual machine is not started, the setting of the terminal equipment corresponding to the public configuration information is consistent with the setting of the first virtual machine and the setting of the second virtual machine, the setting is smooth in the switching of the virtual machines, the seamless switching is realized, and the user experience is improved.
According to the embodiment, the sharing and inheritance of the latest public configuration information among the virtual machines are realized through the latest public configuration information of the mounting point; by setting the terminal equipment according to the latest public configuration information in the virtual machine switching process, seamless switching between virtual machines is realized, and user experience is better.
In another embodiment of the present invention, as shown in fig. 3, a data sharing apparatus 100 of a dual system based on data isolation includes:
a mounting point setting module 110, configured to set a mounting point on a terminal device, where the mounting point records public configuration information and special configuration information of each virtual machine;
the configuration information updating module 140 is configured to update public configuration information recorded by the mounting point and special configuration information of the first virtual machine according to current configuration information of the first virtual machine when switching from the first virtual machine to the second virtual machine, and then exit the first virtual machine;
the configuration information obtaining module 120 is configured to obtain public configuration information of the mounting point and special configuration information of the second virtual machine before the second virtual machine is started;
a configuration information sharing module 130, configured to update configuration information of the second virtual machine according to the common configuration information and the special configuration information of the second virtual machine;
the configuration information implementation module 150 is configured to set the terminal device according to the common configuration information and the special configuration information of the second virtual machine.
Specifically, the mounting point records special configuration information of each virtual machine in addition to common configuration information. The common configuration information is to require each virtual machine to configure the same attribute, and the special configuration information configures different attributes for each virtual machine. The general attribute configuration of each virtual machine to the mobile phone may be the same, but the network connection configuration may be different, for example, the network channel of the first virtual machine is adapted to the public network, and may open a wireless local area network WIFI and the like; the network channel of the second virtual machine is adapted to a private network, such as a army, a government enterprise, etc., and requires opening a VPN.
The special configuration information may be stored in the form of separate files for each virtual file.
In the prior art, the problem that the special configuration information is not smooth in recovery when the virtual machine is switched exists. For example, the setting of the wireless local area network, the setting of the first virtual machine is assumed to close the WLAN function of the wireless local area network, the setting of the second virtual machine is assumed to open the WLAN function of the wireless local area network, and the initial state of the system is assumed to close the WLAN function; switching from the first virtual machine to the second virtual machine, wherein the virtual machine manager has an initialization process in the switching process, so that the setting of the terminal equipment is returned to the initial state of the system, and the WLAN function is closed; then, along with the starting of the second virtual machine, the WLAN function is restored to be started when the terminal equipment is set according to the configuration information of the second virtual machine; the user can feel that the network connection configuration is not smooth during the virtual machine switching process.
In order to solve the problems, the special configuration information is restored more smoothly, and before the virtual machine exits, the public configuration information of the mounting point is updated according to the current setting condition of the virtual machine to be exited, and the special configuration information of the corresponding virtual machine recorded by the mounting point is updated; before restarting the virtual machine, not only acquiring public configuration information from the mounting point, but also acquiring special configuration information of the virtual machine; the terminal equipment is set according to the public configuration information and the special configuration information of the virtual machine, so that the latest public configuration information can be continued, the special configuration information of the second virtual machine can be recovered as soon as possible, and a user can feel faster switching time delay between the virtual machines than the prior art.
For example, if the backlight levels of the virtual machine 1 and the virtual machine 2 are expected to be consistent by the user and the WIFI settings of the virtual machine 1 and the virtual machine 2 are different, the backlight level is set as the common configuration information of the mounting point, and the WIFI is set as the special configuration information of the mounting point; through the scheme, the user's expectations can be better met.
Compared with the virtual machine, the mounting point only stores the configuration data concerned by the user, so that the memory occupied by the mounting point is smaller. If the mounting point is realized by adopting the third virtual machine, the occupied memory is larger, and the third virtual machine needs to reside in the memory, so that the system performance of the mobile phone is reduced. In addition, the mounting point is interacted with only at the moment of switching the virtual machine, so that the mounting point does not need to reside in a system memory generally, and larger system overhead and the usability of the Android mobile phone cannot be influenced by the addition of the mounting point.
According to the embodiment, the public configuration information and the special configuration information of each virtual machine are recorded at the mounting point, so that the latest public configuration information can be well inherited and synchronized when the virtual machines are switched, meanwhile, the special configuration information of each virtual machine can be recovered, a user cannot feel the influence of the switching of the virtual machines, and the experience is better.
In another embodiment of the present invention, as shown in fig. 4, a terminal device 200 includes:
including a memory 210 and a processor 220. The memory 210 is used to store a computer program 230. The processor 220, when executing the computer program 230, implements the data sharing method of the dual system based on data isolation as described above.
As an example, the processor 220 implements steps S100 to S400 according to the foregoing description when executing a computer program. Additionally, the processor 220, when executing the computer program, performs the functions of the modules and units in the data sharing of the dual system based on data isolation described above. As yet another example, the processor 220, when executing computer programs, implements the functions of the mounting point setting module 110, the configuration information acquisition module 120, the configuration information sharing module 130, the configuration information updating module 140, and the configuration information implementation module 150.
Alternatively, the computer program may be divided into one or more modules/units according to specific needs for accomplishing the present invention. Each module/unit may be a series of computer program instruction segments capable of accomplishing specific functions. The computer program instruction segments are used to describe the execution of the computer program in data sharing of a data isolation based dual system. As an example, the computer program may be divided into individual modules/units in the virtual device, such as a mounting point setting module, a configuration information acquisition module, a configuration information sharing module, a configuration information updating module, and a configuration information implementation module.
The processor is used for realizing a data sharing method of the dual system based on data isolation by executing the computer program. The processor may be a central processing unit, a graphics processing unit, a digital signal processor, an application specific integrated circuit, a field programmable gate array, a general purpose processor or other logic device, etc., as desired.
The memory may be any internal storage unit and/or external storage device capable of storing data, programs. For example, the memory may be a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card, or the like.
The terminal device 200 may further include an input/output device, a display device, a network access device, a bus, and the like, as needed.
It will be appreciated by those skilled in the art that the foregoing division of the units and modules for implementing the respective functions is for convenience of description and description, and the units and modules are further divided or combined according to application requirements, that is, the internal structures of the apparatus/device are rearranged to be divided and combined to implement the above-described functions. Each unit and module in the above embodiments may be a separate physical unit, or two or more units and modules may be integrated into one physical unit. The respective units and modules in the above embodiments may adopt hardware and/or software functional units to realize corresponding functions. The direct coupling, indirect coupling or communication connection between the plurality of units, components and modules in the above embodiments may be realized through buses or interfaces; the coupling, connection, and the like between the plurality of units or devices may be electrical, mechanical, or the like. Accordingly, the specific names of the units and modules in the above embodiments are also only for convenience of description and distinction, and do not limit the protection scope of the present application.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (5)

1. A data sharing method of a dual system based on data isolation, comprising:
setting a mounting point on a terminal device; the terminal equipment is provided with a first virtual machine and a second virtual machine, and the mounting point is independent of all virtual machines; the mounting point is used for recording public configuration information and special configuration information of each virtual machine;
when the first virtual machine is switched to the second virtual machine, the public configuration information recorded by the mounting point and the special configuration information of the first virtual machine are updated according to the current configuration information of the first virtual machine, and the first virtual machine is exited;
before the second virtual machine is started, public configuration information of the mounting point and special configuration information of the second virtual machine are obtained, the terminal equipment is set according to the public configuration information and the special configuration information of the second virtual machine, the configuration information of the second virtual machine is updated according to the public configuration information, and then the second virtual machine is started.
2. The method for sharing data of the dual system based on data isolation according to claim 1, wherein said updating the common configuration information of the mount point according to the current configuration information of the first virtual machine comprises:
acquiring public configuration information of the mounting points;
when the obtained public configuration information is consistent with the corresponding item in the current configuration information of the first virtual machine, the public configuration information of the mounting point is not updated according to the current configuration information of the first virtual machine.
3. A dual system data sharing apparatus based on data isolation, comprising:
the mounting point setting module is used for setting mounting points on the terminal equipment; the terminal equipment is provided with a first virtual machine and a second virtual machine, and the mounting point is independent of all virtual machines; the mounting point is used for recording public configuration information and special configuration information of each virtual machine;
the configuration information updating module is used for updating public configuration information recorded by the mounting point and special configuration information of the first virtual machine according to the current configuration information of the first virtual machine when the first virtual machine is switched to the second virtual machine, and then exiting the first virtual machine;
the configuration information acquisition module is used for acquiring public configuration information of the mounting point and special configuration information of the first virtual machine before the second virtual machine is started;
the configuration information sharing module is used for setting the terminal equipment according to the public configuration information and the special configuration information of the first virtual machine, updating the configuration information of the second virtual machine according to the public configuration information, and then restarting the second virtual machine.
4. A dual system data sharing apparatus based on data isolation according to claim 3, wherein:
the configuration information updating module is further used for acquiring the public configuration information of the mounting point when the first virtual machine is switched to the second virtual machine; when the obtained public configuration information is consistent with the corresponding item in the current configuration information of the first virtual machine, the public configuration information of the mounting point is not updated according to the current configuration information of the first virtual machine.
5. A terminal device, comprising:
a memory for storing a computer program;
a processor for implementing a data sharing method of a dual system based on data isolation according to any of claims 1 to 2 when running the computer program.
CN201911288740.9A 2019-12-12 2019-12-12 Dual-system data sharing method and device based on data isolation and terminal equipment Active CN111124536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911288740.9A CN111124536B (en) 2019-12-12 2019-12-12 Dual-system data sharing method and device based on data isolation and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911288740.9A CN111124536B (en) 2019-12-12 2019-12-12 Dual-system data sharing method and device based on data isolation and terminal equipment

Publications (2)

Publication Number Publication Date
CN111124536A CN111124536A (en) 2020-05-08
CN111124536B true CN111124536B (en) 2024-03-22

Family

ID=70498848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911288740.9A Active CN111124536B (en) 2019-12-12 2019-12-12 Dual-system data sharing method and device based on data isolation and terminal equipment

Country Status (1)

Country Link
CN (1) CN111124536B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799790B (en) * 2021-04-15 2022-03-11 北京首都在线科技股份有限公司 Scheduling method, scheduling device, electronic equipment and computer storage medium
CN113282323A (en) * 2021-05-31 2021-08-20 惠州华阳通用电子有限公司 Upgrading method based on dual-system upgrading package sharing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053857A (en) * 2009-11-09 2011-05-11 财团法人资讯工业策进会 Apparatus for managing a running virtual machine and switching method thereof
CN104516779A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and chip
CN104778084A (en) * 2015-04-28 2015-07-15 宇龙计算机通信科技(深圳)有限公司 System switching method and device
CN107229452A (en) * 2016-03-23 2017-10-03 单正建 A kind of mobile intelligent terminal operating system
EP3244311A1 (en) * 2016-05-10 2017-11-15 Huawei Technologies Co., Ltd. Multiprocessor system and method for operating a multiprocessor system
CN109284153A (en) * 2017-07-21 2019-01-29 中兴通讯股份有限公司 Method, relevant device and the computer media of single machine experience multiple operating system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053857A (en) * 2009-11-09 2011-05-11 财团法人资讯工业策进会 Apparatus for managing a running virtual machine and switching method thereof
CN104516779A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and chip
CN104778084A (en) * 2015-04-28 2015-07-15 宇龙计算机通信科技(深圳)有限公司 System switching method and device
CN107229452A (en) * 2016-03-23 2017-10-03 单正建 A kind of mobile intelligent terminal operating system
EP3244311A1 (en) * 2016-05-10 2017-11-15 Huawei Technologies Co., Ltd. Multiprocessor system and method for operating a multiprocessor system
CN109284153A (en) * 2017-07-21 2019-01-29 中兴通讯股份有限公司 Method, relevant device and the computer media of single machine experience multiple operating system

Also Published As

Publication number Publication date
CN111124536A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US9563413B2 (en) Configurable application state synchronization
US20080119178A1 (en) Allocating Compression-Based Firmware Over the Air
US8819403B2 (en) Method and device for performing data synchronization of a snapshot image by selectively reloading data from nonvolatile to volatile memory after wakeup from hibernation
EP2749988B1 (en) Method and device for application program operation, mobile terminal
US9361309B2 (en) File synchronization method, electronic device and synchronization system
US20080117991A1 (en) Partitioning Compression-Based Firmware Over the Air
CN111124536B (en) Dual-system data sharing method and device based on data isolation and terminal equipment
CN105453036A (en) Application install and layout syncing
EP2822250A1 (en) Multi-application cloud storage platform and cloud storage terminal
CN111984557A (en) Data processing method, device and system
CN101986662B (en) Widget instance operation method and system
US20190129743A1 (en) Method and apparatus for managing virtual machine
EP3005654B1 (en) Metered network synchronization
US11494117B2 (en) Method and system for data processing
CN112579048B (en) Applet integration method, device, electronic equipment and storage medium
CN105607901A (en) System memory optimization method and apparatus as well as terminal device
CN112732426B (en) Method, system, equipment and medium for dynamically adjusting task priority
WO2020113421A1 (en) Method for mounting file system, terminal device, and storage medium
US20160072887A1 (en) Server control method and chassis controller
CN116028267A (en) Dual-system secure mobile phone resetting method and device, server and storage medium
CN105338077A (en) Smart home management method and terminal
CN113660123B (en) Virtual switch upgrading method, device, electronic equipment and storage medium
CN104317727A (en) Mobile terminal and processing method of data partition
CN113711570B (en) Method and system for enabling a computing device to communicate with a cloud network
CN113542022A (en) Networking management method and device of networking system, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant