CN108572884A - A kind of method and device of recovery system - Google Patents

A kind of method and device of recovery system Download PDF

Info

Publication number
CN108572884A
CN108572884A CN201710136899.3A CN201710136899A CN108572884A CN 108572884 A CN108572884 A CN 108572884A CN 201710136899 A CN201710136899 A CN 201710136899A CN 108572884 A CN108572884 A CN 108572884A
Authority
CN
China
Prior art keywords
operating system
before switching
misoperation
ram
switching
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.)
Withdrawn
Application number
CN201710136899.3A
Other languages
Chinese (zh)
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.)
Xi'an Youqing Commerce And Trade Co Ltd
Original Assignee
Xi'an Youqing Commerce And Trade 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 Xi'an Youqing Commerce And Trade Co Ltd filed Critical Xi'an Youqing Commerce And Trade Co Ltd
Priority to CN201710136899.3A priority Critical patent/CN108572884A/en
Publication of CN108572884A publication Critical patent/CN108572884A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1489Generic software techniques for error detection or fault masking through recovery blocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and device of recovery system, this method includes:After current operation system detects system exception, misoperation daily record is preserved, the operating system before switching according to misoperation journal recovery.Using the present invention, when current operation system occurs abnormal, it is switched to the second operating system, the second operating system obtains the misoperation daily record of the operating system before switching, and the operating system before switching according to misoperation journal recovery makes it restore normal operation.

Description

A kind of method and device of recovery system
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of method and devices of recovery system.
Background technology
With the fast development of intelligent mobile terminal and development of Mobile Internet technology, mobile terminal is widely available, and function is more next It is more powerful, become the indispensable communication of people and Internet access.
There has been the mobile terminal for carrying dual system, dual system refers to that a mobile terminal can install two Independent operating system can be the operating system of same type, can also be different types of operating system, comprehensive two operations The advantages of system, improves the Experience Degree of user.In addition it can classifying to two mobile terminals, such as by one of behaviour It is simple operations system to make system, and the simple functions such as can only be made a phone call, be sent short messages, and power consumption is low, and another operating system For multifunctional operating system, all kinds of third party softwares can be installed, experience diversified function, power consumption is larger.User can root According to the remaining capacity selection operation system of mobile terminal, realizes to the reasonable employment of battery, improve the cruising ability of mobile terminal. Furthermore an operating system can also be set to secure operating system, secrecy is high;Another operating system is set as normal operations System.One mobile terminal just can realize a variety of demands of user, exempt the trouble for carrying two mobile terminals, provide Greatly traversal.
But the dual system technology of current mobile terminal is not mature enough, and there are the solutions of many problems demands.When one of them Operating system RAM, which completely leads to system abnormity, to be run, and how another operating system, which assists, is restored.
Invention content
In view of this, the technical problem to be solved in the present invention is to provide a kind of method and device of recovery system, device and Mobile terminal, the technical issues of mutually recovery between the dual operating systems to solve mobile terminal.
Technical solution is as follows used by the present invention solves above-mentioned technical problem:
According to an aspect of the present invention, a kind of method and device of the recovery system provided is applied to include two behaviour Make the mobile terminal of system, this method comprises the following steps:
After current operation system detects system exception, misoperation daily record is preserved;
Current operation system is switched to the second operating system;
Obtain the misoperation daily record of the operating system before switching;
Operating system before being switched according to misoperation journal recovery.
Preferably, current operation system the second operating system is switched to further comprise:
Start resident program in current operation system, activates the second operating system in a dormant state.
Preferably, the operating system before being switched according to misoperation journal recovery further comprises:
Judge whether the RAM of the operating system before switching has expired according to misoperation daily record;
If so, the ram space of the operating system before cleaning switching.
Preferably, the ram space of the operating system before cleaning switching further comprises:
Second operating system backs up the data in the RAM of the operating system before switching;
The ram space of operating system before switching is formatted or by the operating system recovery default setting before switching.
Preferably, the ram space of the operating system before cleaning switching further comprises:
The partial data in operating system ram space before prompting user to delete switching, and/or
Classify to the data of the operating system ram space before switching, removing option is provided and is selected to user;
Remove the data that user chooses.
Basic another aspect of the present invention, a kind of recovery device of the system exception provided, which is characterized in that the device Including:
Preserving module after detecting system exception for current operation system, preserves misoperation daily record;
Handover module, for current operation system to be switched to the second operating system;
Acquisition module, the misoperation daily record for obtaining the operating system before switching;
Recovery module, for the operating system before being switched according to misoperation journal recovery.
Preferably, recovery module includes:
Judging unit, for judging whether the RAM of the operating system before switching has expired according to misoperation daily record;
Unit is cleared up, when having expired for the operating system RAM before switching, the RAM of the operating system before cleaning switching is empty Between.
Preferably, cleaning unit is specifically used for:
Second operating system backs up the data in the RAM of the operating system before switching;
The ram space of operating system before switching is formatted or by the operating system recovery default setting before switching.
Preferably, cleaning unit is specifically used for:
The partial data in operating system ram space before prompting user to delete switching, and/or
Classify to the data of the operating system ram space before switching, removing option is provided and is selected to user;
Remove the data that user chooses.
According to a further aspect of the invention, a kind of mobile terminal provided, the mobile terminal include two operating systems, It further include the recovery device of above-mentioned system exception.
Compared with prior art, the restoration methods of the system exception of the embodiment of the present invention, device and mobile terminal, including two A operating system when current operation system occurs abnormal, is switched to the second operating system, before the second operating system obtains switching The misoperation daily record of operating system according to the reason of misoperation Log Analysis System exception, and executes corresponding recovery and arranges It applies, restores the operating system before switching, the function of realizing the data interaction of two operating system and mutually restore, raising user Experience Degree.
Description of the drawings
Fig. 1 is the recovery device function structure chart of system exception provided in an embodiment of the present invention.
Specific implementation mode
Under in order to keep technical problems, technical solutions and advantages to be solved clearer, clear, below In conjunction with the accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only Only to explain the present invention, it is not intended to limit the present invention.
Embodiment one
Referring to Fig. 1, the restoration methods of system exception provided in an embodiment of the present invention, are applied to include two operating systems Mobile terminal, include the following steps:
After S101, current operation system detect system exception, misoperation daily record is preserved.
Operating system will produce running log in startup, switching and operational process.Self detection of current operation system, When detecting that the load kernel process frequency of failure reaches preset value, there is abnormal, preservation operating system exception in the system that determines In the case of running log.The preset value is the value of operating system default setting, can also be the value of user setting.
S102, current operation system is switched to the second operating system.
Specifically, being equipped with resident program in two operating systems of mobile terminal, the resident program is another for starting One operating system.When current operation system detects system exception, the activation instruction of resident program is generated, executes the instruction, Start resident program, the second operating system in a dormant state, the operating system before suspend mode switching is activated to complete operating system Switching.
S103, the misoperation daily record for obtaining the operating system before switching.
Specifically, the second operating system obtains the store path of misoperation daily record first, which can be from It is obtained in resident program.Second operating system reads the operating system before switching according to the store path of misoperation daily record Misoperation daily record.
S104, according to misoperation journal recovery switch before operating system.
According to misoperation daily record, the abnormal reason for exception occur is analyzed.System occurs there are many abnormal reasons, RAM Expired, system file damage, magnetic track damage etc., corresponding recovery measure is selected according to specific reason.If RAM has expired, lead to The RAM for crossing the operating system before the cleaning switching of the second operating system, can prompt user to delete partial data manually, can be by number According to after classification provide remove option give user selection, facilitate user to handle, can also will after important data backup format RAM or Person's factory reset etc..If system file damages, by the second operating system to the system text of the operating system before switching Part is updated and restores, can be to reset the operating system before switching after Backup Data if recovery is unsuccessful.If magnetic track damages It is bad, the magnetic track of the operating system damage before switching can be restored by the second operating system, restores unsuccessful, prompt to use The more preferable storage medium in family, can be to format hard disk subregion again after Backup Data.
The restoration methods of the system exception of the embodiment of the present invention, be applied to include two operating system mobile terminal, when When preceding operating system occurs abnormal, it is switched to the second operating system, the second operating system obtains the different of the operating system before switching Normal running log selects corresponding recovery measure according to the reason of misoperation Log Analysis System exception according to concrete reason, Restore the operating system before switching, the function of realizing the data interaction of two operating system and mutually restore improves user's Experience Degree.
Embodiment two
Equally refering to fig. 1, the present embodiment two is optimized on the basis of embodiment one:In step S104, according to different The operating system that normal running log restores before switching specifically includes:Judge the operating system before switching according to misoperation daily record Whether RAM has expired;If so, the ram space of the operating system before cleaning switching.
Specifically, the ram space of the operating system before cleaning switching specifically includes:User is prompted to delete the behaviour before switching Make the partial data in system ram space, discharges segment space.
Specifically, the ram space of the operating system before cleaning switching specifically includes:To the operating system RAM before switching The data in space are classified, and are provided removing option and are selected to user, remove option and can include but is not limited to:One key is removed, Audio file is removed, video file is removed, removes picture.It is selected according to user, removes corresponding data.Only need a step just A kind of data can be removed, segment space is released, the operating system before switching is made to be restored rapidly, it is convenient and efficient.
Specifically, the ram space of the operating system before cleaning switching also specifically includes:Second operating system is automatically to cutting Data in the RAM of operating system before changing are backed up, and then the ram space of operating system before switching is formatted or incited somebody to action Operating system recovery default setting before switching.By the data interaction between dual operating systems, abnormal operating system is original Data will not lose, thoroughly discharge ram space, be restored rapidly.
Embodiment three
Refering to fig. 1, a kind of recovery device of system exception provided in an embodiment of the present invention comprises the following modules:
Preserving module 10 after detecting system exception for current operation system, preserves misoperation daily record.
Specifically, current operation system, in startup, switching and operational process, self is detected, when the system that detects is different Chang Shi preserves the running log under abnormal conditions.
Handover module 20, for current operation system to be switched to the second operating system.
Wherein, handover module 20 is specifically used for:
Start resident program in current operation system, activates the second operating system in a dormant state.
Specifically, generating the activation instruction of resident program in current operation system, the instruction is executed, activates and is resident journey Sequence starts the second operating system in a dormant state, suspend mode current operation system.
Acquisition module 30, the misoperation daily record for obtaining the operating system before switching.
Specifically, store path of second operating system according to the misoperation daily record of the operating system before switching, reads Take misoperation daily record.
Recovery module 40, for the operating system before being switched according to misoperation journal recovery.
Recovery module 40 specifically includes:
Judging unit, for judging whether the RAM of the operating system before switching has expired according to misoperation daily record.
Specifically, obtaining keyword related with RAM in misoperation daily record, the operating system before switching is judged Whether RAM has expired.
Unit is cleared up, when having expired for the operating system RAM before switching, the RAM of the operating system before cleaning switching is empty Between.
Wherein, cleaning unit is specifically used for:
Second operating system backs up the data in the RAM of the operating system before switching;
The ram space of operating system before switching is formatted or by the operating system recovery default setting before switching.
Wherein, cleaning unit also particularly useful for:
The partial data in operating system ram space before prompting user to delete switching, and/or
Classify to the data of the operating system ram space before switching, removing option is provided and is selected to user;
Corresponding data are removed according to the user's choice.
Specifically, option is removed can include but is not limited to:One key is removed, and audio file is removed, and removes video file, clearly Except picture etc..
Correspondingly, the present invention also provides a kind of mobile device, which includes two operating systems, each to operate System, which is equipped with, starts the mobile resident program of another operation, further includes the recovery dress of the system exception of above-described embodiment three It sets.
Restoration methods, device and the mobile terminal of the system exception of above-described embodiment, including two operating systems, it is current to grasp When making system appearance exception, it is switched to the second operating system, the second operating system obtains the abnormal of the operating system before switching and transports Row daily record selects corresponding recovery measure according to concrete reason, restores according to the reason of misoperation Log Analysis System exception Operating system before switching, the function of realizing the data interaction of two operating system and mutually restore, mutual Backup Data, behaviour Make simple and safe, improves the Experience Degree of user.
One of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is controlled by program to complete, the program can in being stored in a computer read/write memory medium, The storage medium, such as ROM/RAM, disk, CD.
The preferred embodiment of the present invention is explained above, not thereby limits to the interest field of the present invention.Art technology Personnel do not depart from the scope of the present invention and essence, can there are many variant scheme realize the present invention, for example as one embodiment Feature can be used for another embodiment and obtain another embodiment.It is all any made by using within technical concept of the invention Modifications, equivalent substitutions and improvements, should all be within the interest field of the present invention.

Claims (6)

1. a kind of method and device of recovery system, applied to the mobile terminal for including two operating system, which is characterized in that institute The method of stating includes the following steps:After current operation system detects system exception, misoperation daily record is preserved;By current operation system System is switched to the second operating system;Obtain the misoperation daily record of the operating system before switching;According to the misoperation daily record Restore the operating system before switching.
2. the restoration methods of system according to claim 1 exception, which is characterized in that described to switch current operation system Further comprise to the second operating system:Start resident program in current operation system, activates second in a dormant state Operating system.
3. the restoration methods of system exception according to claim 3, which is characterized in that the operation system before the cleaning switching The ram space of system further comprises:Second operating system carries out the data in the RAM of the operating system before switching standby Part;The ram space of operating system before switching is formatted or by the operating system recovery default setting before switching.
4. a kind of recovery device of system exception, which is characterized in that described device includes:Preserving module is used for current operation system After system detects system exception, misoperation daily record is preserved;Handover module, for current operation system to be switched to the second operation System;Acquisition module, the misoperation daily record for obtaining the operating system before switching;Recovery module, for according to described different Normal running log restores the operating system before switching.
5. the recovery device of system exception according to claim 6, which is characterized in that the recovery module includes:Judge Unit, for judging whether the RAM of the operating system before switching has expired according to the misoperation daily record;Unit is cleared up, is used for When operating system RAM before switching has expired, the ram space of the operating system before cleaning switching.
6. the recovery device of system exception according to claim 7, which is characterized in that the cleaning unit is specifically used for: The partial data in operating system ram space before prompting user to delete switching, and/or it is empty to the operating system RAM before switching Between data classify, provide remove option give user selection;Remove the data that user chooses.
CN201710136899.3A 2017-03-09 2017-03-09 A kind of method and device of recovery system Withdrawn CN108572884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710136899.3A CN108572884A (en) 2017-03-09 2017-03-09 A kind of method and device of recovery system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710136899.3A CN108572884A (en) 2017-03-09 2017-03-09 A kind of method and device of recovery system

Publications (1)

Publication Number Publication Date
CN108572884A true CN108572884A (en) 2018-09-25

Family

ID=63577645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710136899.3A Withdrawn CN108572884A (en) 2017-03-09 2017-03-09 A kind of method and device of recovery system

Country Status (1)

Country Link
CN (1) CN108572884A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467841A (en) * 2021-05-17 2021-10-01 翱捷智能科技(上海)有限公司 Dual-operating-system equipment and quick sleeping and awakening method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467841A (en) * 2021-05-17 2021-10-01 翱捷智能科技(上海)有限公司 Dual-operating-system equipment and quick sleeping and awakening method thereof
CN113467841B (en) * 2021-05-17 2024-06-11 翱捷智能科技(上海)有限公司 Dual-operating-system equipment and rapid dormancy and awakening method thereof

Similar Documents

Publication Publication Date Title
CN104156273A (en) System exception repair method, system exception repair device and mobile terminal
CN102831035A (en) Information backup method and device
CN101146286B (en) A data backup method for mobile terminal
US20060148463A1 (en) Method for restoring automatically an original setting in a mobile device
CN103324500A (en) Method and device for recycling internal memory
CN101969502A (en) Mobile terminal service recovering method and mobile terminal
CN104199766A (en) Abnormal running monitoring method and device
CN105511985A (en) Data backup method and terminal
CN104142859A (en) Fast switching method and device for double systems and mobile terminal
CN104133730A (en) Method and device for repairing system abnormality and mobile terminal
CN102063447A (en) Method for presenting file when switching system states and portable terminal
CN102289396A (en) Terminal and backup and recovery method
CN105208071A (en) Mobile terminal data deletion method and mobile terminal
CN106851615A (en) A kind of method and terminal of smart card abnormality processing
CN103888608A (en) Information processing method and electronic device
CN104123208B (en) The restorative procedure of a kind of system exception, device and mobile terminal
CN108647118B (en) Storage cluster-based copy exception recovery method and device and computer equipment
CN105468370A (en) Method and system for quickly removing message in notification bar of mobile terminal and mobile terminal
CN104077250B (en) A kind of connection processing method and device of intelligent terminal and storage equipment
CN108572884A (en) A kind of method and device of recovery system
CN105721664B (en) A kind of SMS processing method and device
CN101340675A (en) Method and apparatus for implementing backup and recovery by mobile terminal
CN101404692B (en) Data processing method and system for mobile terminal, and mobile terminal
CN105630554B (en) A kind of reloading method and user terminal of third-party application
CN103870378A (en) Monitoring method for terminal device and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180925

WW01 Invention patent application withdrawn after publication