CN113032014B - Inter-domain mode synchronization method and device for dual-system terminal - Google Patents
Inter-domain mode synchronization method and device for dual-system terminal Download PDFInfo
- Publication number
- CN113032014B CN113032014B CN201911248756.7A CN201911248756A CN113032014B CN 113032014 B CN113032014 B CN 113032014B CN 201911248756 A CN201911248756 A CN 201911248756A CN 113032014 B CN113032014 B CN 113032014B
- Authority
- CN
- China
- Prior art keywords
- mode
- terminal
- domain
- changed
- identification parameter
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4405—Initialisation of multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses an inter-domain mode synchronization method and device for a dual-system terminal, wherein the method comprises the following steps: when the terminal is restarted, the root domain judges whether the terminal mode needs to be changed or not when being started, if so, the root domain stores a corresponding new terminal mode into a preset mode identification parameter, triggers a Modem to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the root domain takes the terminal mode indicated by the current mode identification parameter as the current terminal mode; and after the upper virtual partition VP domain is started, the VP domain executes corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter. By applying the technical scheme disclosed by the application, the problems that the dual-system terminal cannot access the network after being restarted and the terminal modes before and after being restarted are inconsistent can be solved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an inter-domain mode synchronization method and apparatus for dual system terminals.
Background
Currently, a dual-system terminal of EP720D is divided into three domains, i.e., a VP1 (working area), a VP2 (living area), and a super user authority (root) domain for acquiring a mobile phone, and a user can trigger the terminal to switch between different Virtual Partitions (VPs). After the terminal is started, the terminal can work in different modes according to the needs of the user, for example, in a public network mode or a private network mode. When the mode switching or the terminal reboots, the mode alignment is needed for the bottom layer root domain and the upper layer VP domain (including VP1 and VP2), otherwise, the terminal cannot successfully access the network or the service is unavailable.
The inventor discovers that in the process of implementing the invention: the existing dual-system terminal sometimes has the problems of network access incapability, inconsistent terminal modes before and after restarting and the like after restarting. The specific reason is analyzed as follows:
as shown in fig. 1, in the current EP720D dual system terminal, the method adopted when the pattern alignment is performed between the bottom layer root domain and the upper layer VP domain is as follows: the property parameter property is used to identify which mode is currently adopted by the terminal, and the property has respective storage areas in three areas of VP1, VP2 and root area, that is, each mode stores a property. When a certain domain sets a new property value, other two domains are informed to update the property value to the new property value, so as to realize the synchronization of the property values of all the domains.
Because the property attribute parameters in the method have respective storage areas in the three areas of VP1, VP2, and root, if the current mode type is updated when the dual-system terminal is powered off, and the VP area currently in the foreground fails to synchronize the new property value to the VP area in the background in time, the problem that the terminal modes before and after the terminal is restarted may occur. For example, if the VP domain in the foreground when the dual system terminal is powered off is the working domain, the user just updates the mode, and for some reason, the property value of the living domain in the background may not be updated synchronously. Thus, when the system is shut down, the property value stored in the life domain is still the old property value. When the terminal is started again, according to the existing starting process, the domain started last is a life domain, so that the domain loaded with the property value last is the life domain, after the life domain loads the property value, the life domain notifies other domains of the loaded property value, and the other domains update the property value stored in the domain according to the received property value. Because the property value of the life domain cannot be updated when the terminal is powered off, based on the above-mentioned starting process, after the terminal is powered on again, the old property value is loaded in the life domain, and accordingly, the property values notified to other domains are also old, which results in that the property values of all domains are uniformly restored to the old property values, rather than the mode updated in the working domain when the terminal is powered off, thereby causing the problem that the terminal modes before and after being restarted are inconsistent.
In addition, in practical application, the property value that the root domain needs to be loaded when the terminal is started (for example, when the terminal is in the cluster enhancement mode) can be customized according to the user requirement. When a terminal is started, a bottom layer root domain is started earlier than an upper layer VP domain, sometimes, after the bottom layer root domain is started well, the situation that a current startup scene needs to modify a property value according to a preset starting mode is monitored, meanwhile, an AT (attention) notification Modem (Modem) is issued to modify the current mode, and AT the moment, the upper layer VP domain is not started well, so that the property value modified in the root domain is not synchronized to the upper layer VP domain, after the VP domain is started well, the property value stored in the VP domain before the restart is initialized, and the property value is synchronized to the root domain again, so that the problem that the property values of the VP domain and the root domain are inconsistent with the property value of the Modem is caused, the terminal is not connected to a network, and the service cannot be normally carried out.
Disclosure of Invention
The application provides an inter-domain mode synchronization method and device for a dual-system terminal, which can solve the problems that the dual-system terminal cannot access a network after being restarted and the terminal modes before and after being restarted are inconsistent.
An inter-domain mode synchronization method for dual system terminals includes:
when the terminal is restarted, the root domain judges whether the terminal mode needs to be changed or not when being started, if so, the root domain stores a corresponding new terminal mode into a preset mode identification parameter, triggers a Modem to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the root domain takes the terminal mode indicated by the current mode identification parameter as the current terminal mode;
and after the upper layer virtual partition VP domain is started, the VP domain executes corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter.
Preferably, the method further comprises:
after the terminal is started, if the current terminal mode is changed, the VP domain in the foreground stores the changed terminal mode into the mode identification parameter and sends the changed terminal mode to the root domain;
and the root domain executes corresponding mode configuration in the local domain according to the changed terminal mode, and triggers a Modem to set the current terminal mode as the changed terminal mode.
Preferably, the method further comprises:
when the VP domain in the foreground is changed, the changed VP domain in the foreground executes corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter.
An inter-domain mode synchronization apparatus of a dual system terminal, comprising: a processor to:
when the terminal is restarted, when a root domain is started, whether the current terminal mode is changed or not is judged, if yes, the corresponding new terminal mode is stored into a preset mode identification parameter, a Modem is triggered to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the terminal mode indicated by the current mode identification parameter is taken as the current terminal mode;
and after the upper layer VP domain is started, carrying out corresponding mode configuration in the VP domain according to the terminal mode currently obtained from the mode identification parameter.
Preferably, the processor is further configured to:
after the terminal is started, if the current terminal mode is changed, the changed terminal mode is stored in the mode identification parameter in the VP domain of the foreground, and the changed terminal mode is sent to the root domain, so that the root domain informs a Modem to set the current terminal mode as the changed terminal mode according to the changed terminal mode, and executes corresponding mode configuration in the root domain.
Preferably, the processor is further configured to:
and when the VP domain in the foreground is changed, executing corresponding mode configuration in the changed VP domain in the foreground according to the terminal mode currently obtained from the mode identification parameter.
The present application also discloses a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of the inter-domain mode synchronization method of a dual system terminal as described above.
The application also discloses an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
According to the technical scheme, the method and the device for synchronizing the inter-domain modes of the dual-system terminal record the current terminal mode by using the mode identification parameter shared by all the domains, after the terminal is restarted, if the root domain judges that the terminal mode needs to be changed, the new terminal mode is written into the mode identification parameter, and the Modem is triggered to update the corresponding mode, otherwise, the corresponding terminal mode is obtained from the mode identification parameter stored before the restart to set the terminal mode after the restart, so that the consistency of the terminal modes before and after the restart can be ensured, the terminal mode set in the Modem is prevented from being different from the root domain and the VP domain, and the problem that the dual-system terminal cannot enter the network after the restart can be avoided.
Drawings
Fig. 1 is a schematic diagram illustrating inter-domain mode synchronization interaction of a conventional dual-system terminal;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of inter-domain mode synchronization interaction between dual system terminals according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below by referring to the accompanying drawings and examples.
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention. As shown in fig. 2, the inter-domain mode synchronization method for dual system terminals implemented in this embodiment mainly includes:
Here, in the process of restarting the terminal in this step, if it is determined that the terminal mode needs to be changed when the root domain is started, the new terminal mode is written into the mode identification parameter, and the Modem is triggered to update the mode to the new terminal mode, otherwise, the terminal mode after restarting is set according to the terminal mode of the mode identification parameter saved before restarting. Different from the existing scheme, the mode identification parameter is a parameter that all domains can access together, that is, all domains acquire the currently adopted terminal mode from the parameter, so that it can be ensured that the terminal modes read by all domains are the same, and further, the consistency of the terminal modes before and after restarting can be ensured, the influence of inconsistency of the terminal modes before and after restarting on user experience is effectively avoided, and: and under the condition that the root domain updates the terminal mode when the terminal is started, the terminal mode set in the Modem is inconsistent with the terminal modes set in the root domain and the VP domain after the terminal is started, so that the problem that the dual-system terminal cannot access the network after being restarted can be solved.
In this step, the specific method for determining whether the terminal mode needs to be changed when the root domain is started is the same as the existing scheme, that is, whether the current terminal mode needs to be updated is determined based on a series of conditions such as whether the current sim card is in place and the mode of the terminal before restarting, and the specific method is mastered by a person skilled in the art and is not described herein again.
In practical applications, in order to ensure that the mode identification parameter can store the terminal mode before shutdown after the terminal is shutdown, the mode identification parameter may be stored in a common area of the non-volatile memory.
In this step, after the VP domain is started, the current terminal mode needs to be obtained from the mode identification parameter, and corresponding mode configuration is executed in the VP domain.
Further, in order to ensure the accuracy of the current terminal mode stored in the mode identification parameter during the terminal operation process, after the terminal is started, if the current terminal mode is changed, the VP domain in the foreground stores the changed terminal mode into the mode identification parameter and sends the changed terminal mode to the root domain; and the root domain executes corresponding mode configuration in the local domain according to the changed terminal mode, and triggers a Modem to set the current terminal mode as the changed terminal mode.
Further, when the VP domain in the foreground is changed, the changed VP domain in the foreground performs corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter.
Here, when the VP domain in the foreground is changed, the VP domain in the foreground directly obtains the terminal mode from the current mode identification parameter. Since the latest terminal mode is always stored in the mode identification parameter, when the VP domain is changed, the VP domain in the foreground acquires the terminal mode from the mode identification parameter, and performs corresponding mode configuration in the VP domain of the foreground based on the terminal mode, thereby ensuring that the currently-used mode of the terminal is consistent with the terminal mode before the VP domain is changed.
The specific method for performing the mode configuration in the VP domain in the foreground in the above method is the same as the existing scheme, and is not described herein again.
Preferably, in order to enhance the user experience, the VP domain may display the current terminal mode in the user interface.
According to the method embodiment, the mode identification parameter shared by all the domains is introduced, the current terminal mode is stored by using the parameter, and mode alignment of different domains is effectively realized. As shown in fig. 3, all fields will read the terminal mode from the mode identification parameter (i.e., oeminfo _ nv in the figure) stored in the common area and write the current terminal mode into the mode identification parameter.
Corresponding to the above method embodiment, the present application further provides an inter-domain mode synchronization apparatus for a dual system terminal, including: a processor to:
when the terminal is restarted, when a root domain is started, whether the current terminal mode is changed or not is judged, if yes, a corresponding new terminal mode is stored into a preset mode identification parameter, a Modem is triggered to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the terminal mode indicated by the current mode identification parameter is taken as the current terminal mode; and after the upper layer VP domain is started, performing corresponding mode configuration in the VP domain according to the terminal mode currently obtained from the mode identification parameter.
Preferably, the processor is further configured to:
after the terminal is started, if the current terminal mode is changed, the changed terminal mode is stored in the mode identification parameter in the VP domain of the foreground, and the changed terminal mode is sent to the root domain, so that the root domain informs a Modem to set the current terminal mode as the changed terminal mode according to the changed terminal mode, and executes corresponding mode configuration in the root domain.
Preferably, the processor is further configured to:
and when the VP domain in the foreground is changed, executing corresponding mode configuration in the changed VP domain in the foreground according to the terminal mode currently obtained from the mode identification parameter.
Furthermore, the present application also provides a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of the inter-domain mode synchronization method of the dual system terminal as described above.
Further, the present application provides an electronic device comprising the non-volatile computer-readable storage medium as described above, and the processor having access to the non-volatile computer-readable storage medium.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (4)
1. An inter-domain mode synchronization method for dual system terminals, comprising:
when the terminal is restarted, the root domain judges whether the terminal mode needs to be changed or not when being started, if so, the root domain stores a corresponding new terminal mode into a preset mode identification parameter, triggers a Modem to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the root domain takes the terminal mode indicated by the current mode identification parameter as the current terminal mode;
after the upper virtual partition VP domain is started, the VP domain executes corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter;
after the terminal is started, if the current terminal mode is changed, the VP domain in the foreground stores the changed terminal mode into the mode identification parameter and sends the changed terminal mode to the root domain;
the root domain executes corresponding mode configuration in the local domain according to the changed terminal mode, and triggers a Modem to set the current terminal mode as the changed terminal mode;
when the VP domain in the foreground is changed, the changed VP domain in the foreground executes corresponding mode configuration in the local domain according to the terminal mode currently acquired from the mode identification parameter.
2. An inter-domain mode synchronization apparatus of a dual system terminal, comprising: a processor to:
when the terminal is restarted, when a root domain is started, whether the current terminal mode is changed or not is judged, if yes, the corresponding new terminal mode is stored into a preset mode identification parameter, a Modem is triggered to set the current terminal mode as the new terminal mode, and the mode identification parameter is used for indicating the current terminal mode; otherwise, the terminal mode indicated by the current mode identification parameter is taken as the current terminal mode;
after the upper layer VP domain is started, carrying out corresponding mode configuration in the VP domain according to the terminal mode obtained from the mode identification parameter;
after the terminal is started, if the current terminal mode is changed, the changed terminal mode is stored in the mode identification parameter in the VP domain of the foreground, and the changed terminal mode is sent to the root domain, so that the root domain informs a Modem to set the current terminal mode as the changed terminal mode according to the changed terminal mode, and executes corresponding mode configuration in the root domain;
and when the VP domain in the foreground is changed, executing corresponding mode configuration in the changed VP domain in the foreground according to the terminal mode currently obtained from the mode identification parameter.
3. A non-transitory computer readable storage medium storing instructions, which when executed by a processor, cause the processor to perform the steps of the inter-domain mode synchronization method for a dual system terminal according to claim 1.
4. An electronic device comprising the non-volatile computer-readable storage medium of claim 3, and the processor having access to the non-volatile computer-readable storage medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248756.7A CN113032014B (en) | 2019-12-09 | 2019-12-09 | Inter-domain mode synchronization method and device for dual-system terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911248756.7A CN113032014B (en) | 2019-12-09 | 2019-12-09 | Inter-domain mode synchronization method and device for dual-system terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113032014A CN113032014A (en) | 2021-06-25 |
CN113032014B true CN113032014B (en) | 2022-08-09 |
Family
ID=76450921
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911248756.7A Active CN113032014B (en) | 2019-12-09 | 2019-12-09 | Inter-domain mode synchronization method and device for dual-system terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113032014B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1260644A (en) * | 1998-11-10 | 2000-07-19 | 索尼公司 | Transmission/recording apparatus and method, and transmission/receiving apparatus and method |
CN104506639A (en) * | 2014-12-29 | 2015-04-08 | 北京奇虎科技有限公司 | Root right acquiring method and device |
CN106572267A (en) * | 2016-11-15 | 2017-04-19 | 乐视控股(北京)有限公司 | Method for automatically changing operating parameters and terminal |
CN109962964A (en) * | 2017-12-26 | 2019-07-02 | 刘芳圃 | A kind of power marketing and distribution synchronizing traffic data device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10609621B2 (en) * | 2016-06-23 | 2020-03-31 | Cisco Technology, Inc. | Directed acyclic graph optimization for future time instance requested by a child network device |
-
2019
- 2019-12-09 CN CN201911248756.7A patent/CN113032014B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1260644A (en) * | 1998-11-10 | 2000-07-19 | 索尼公司 | Transmission/recording apparatus and method, and transmission/receiving apparatus and method |
CN104506639A (en) * | 2014-12-29 | 2015-04-08 | 北京奇虎科技有限公司 | Root right acquiring method and device |
CN106572267A (en) * | 2016-11-15 | 2017-04-19 | 乐视控股(北京)有限公司 | Method for automatically changing operating parameters and terminal |
CN109962964A (en) * | 2017-12-26 | 2019-07-02 | 刘芳圃 | A kind of power marketing and distribution synchronizing traffic data device |
Also Published As
Publication number | Publication date |
---|---|
CN113032014A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108932295B (en) | Main database switching control method and device, computer equipment and storage medium | |
CN108322533A (en) | Configuration and synchronization method between distributed type assemblies node based on operation log | |
CN106453657A (en) | Status information update method and device of smart home equipment | |
CN106874328B (en) | Data processing method and equipment | |
CN110674095B (en) | CTDB cluster expansion method, device and equipment and readable storage medium | |
JP7215971B2 (en) | METHOD AND APPARATUS FOR PROCESSING DATA LOCATION IN STORAGE DEVICE, COMPUTER DEVICE AND COMPUTER-READABLE STORAGE MEDIUM | |
CN103838589A (en) | Plug-in unit deleting and recovering method and client side | |
JP2019086949A (en) | Information processing device, information processing system, and program | |
CN113032014B (en) | Inter-domain mode synchronization method and device for dual-system terminal | |
CN114866570A (en) | Information processing method and device, electronic equipment and storage medium | |
CN112698926B (en) | Data processing method, device, equipment, storage medium and system | |
CN116560802B (en) | Virtual machine load-based virtual machine self-adaptive thermal migration method and system | |
US20130091093A1 (en) | Method and device for managing information of a universal integrated circuit card | |
CN108536541B (en) | Process engine object processing method and device | |
CN109144638B (en) | Android horizontal and vertical screen data synchronization method and device, terminal and readable medium | |
CN112087506A (en) | Cluster node management method and device and computer storage medium | |
CN111769966A (en) | Clone upgrading method, system and application | |
CN111290859B (en) | Method for synchronizing initialization attribute of dual-system terminal and terminal | |
CN114598604B (en) | Monitoring method, monitoring device and terminal for virtual network function instance information | |
CN103207789B (en) | Application server constant value dynamic updating method and system | |
CN114143328A (en) | Data migration method, device, equipment and medium of cloud mobile phone | |
CN109189498B (en) | Android horizontal and vertical screen data synchronization method and device, terminal and readable medium | |
CN112181512A (en) | Business process management method and device, electronic equipment and storage medium | |
CN111399940A (en) | Data processing method of intelligent system, storage medium and intelligent terminal | |
CN112748982A (en) | Instantiation request generation method, interface virtual machine configuration method, NFVO and VIM |
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 |