CN104484241A - Terminal system file backup and recovery method and device - Google Patents
Terminal system file backup and recovery method and device Download PDFInfo
- Publication number
- CN104484241A CN104484241A CN201410747211.1A CN201410747211A CN104484241A CN 104484241 A CN104484241 A CN 104484241A CN 201410747211 A CN201410747211 A CN 201410747211A CN 104484241 A CN104484241 A CN 104484241A
- Authority
- CN
- China
- Prior art keywords
- file
- backup
- recovery operation
- format
- carried out
- 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.)
- Granted
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000000638 solvent extraction Methods 0.000 claims abstract description 19
- 238000011156 evaluation Methods 0.000 claims description 10
- 230000009897 systematic effect Effects 0.000 claims description 10
- 230000000717 retained effect Effects 0.000 abstract description 2
- 238000005192 partition Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Disclosed is a terminal system file backup and recovery method and device. The method includes establishing a directory in the partition to be formatted, establishing a script file, defining backup and recovery operation and backup system attribute files, in the directory; after the system receives the format partitioning instruction, judging whether the backup and recovery operation is performed or not according to the script file, if so, performing backup on the backup system attribute files; after the format partitioning, executing recovery operation on the backup system attribute files. The built-in files are retained by the script file defining the backup and recovery operation, especially the system attribute files; the particular backup and recovery operation of the script file is modified as required only, backup and recovery can be performed on files before format partitioning, user's operation is facilitated, and time is saved; the file reading failures caused by system attribute file loss in the system version switching process can be avoided effectively.
Description
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to and a kind ofly carry out backing up and the method recovered and device to terminal system file.
Background technology
At present, along with globalization commerce and trade and the developing rapidly of across national boundaries, the flow range of commodity between country variant region is more and more wider, and for mobile terminal, the mobile phone of the same model of a certain transnational manufacturers produce may be sold in up to a hundred countries and regions.In order to adapt to this development trend, manufacturer is when software systems are arranged, and often compatible multiple system version is to adapt to language and the operating habit in country variant area, and user can switch flexibly according to actual needs between different editions system.
For the situation of total multiple system version, in net system switching process, need to carry out format division operation.Be the mode adopting the whole subregion of format during existing format subregion, so just can not get the file needing to retain; Then adopt the mode of recurrence deleted file as certain catalogue or file will be retained, but the time expended when adopting deleted file is in this way longer.Mobile terminal is after format manipulation completes, need certain system property file (as nv parameter) of reading format place subregion, according to the mode of the whole subregion of format, now there will be the situation that file reading lost efficacy, can cause like this switching version failure, need to re-create this file after this, restarting mobile terminal could successful switch.
In order to reach the better Consumer's Experience in net system switching process, be necessary exploitation one be more convenient for user operation, more convenient timesaving system file backup and Restoration Mechanism.
Summary of the invention
In order to overcome the weak point of the prior art of above-mentioned indication, the invention provides a kind ofly be convenient to user operation, more convenient timesaving carries out backing up and the method recovered and device to terminal system file.
The present invention is achieved by the following technical solutions: a kind of method of terminal system file being carried out to back up Yu recover, and the step of described method comprises:
S1, treating to create a catalogue under format subregion, under this catalogue, set up a script file, described script file definition backup and recovery operation and the system property file that need back up;
After S2, system acceptance to format partitioning instruction, judge whether to perform backup and recovery operation according to script file, in this way, then the system property file that need back up is backed up;
After S3, format subregion complete, recovery operation is performed to the system property file backed up.
In step s 2, if judged result is no, then directly perform format subregion.
In step s 2, the format partitioning instruction received by system is based on systematic evaluation operation, comprising:
S21, systems axiol-ogy operate to systematic evaluation, data format of transfering partitioning instruction;
S22, foundation script file judge whether to perform backup and recovery operation, in this way, then back up the system property file that need back up.
Describedly also to comprise the method that terminal system file carries out backing up Yu recovering: S4, read the system property file be resumed, completion system switches.
Further, described system property file comprises nv Parameter File.
The invention also discloses a kind of device terminal system file being carried out to back up Yu recover, comprising:
Script creation module, for treating to create a catalogue under format subregion, sets up a script file under this catalogue, described script file definition backup and recovery operation and the system property file that need back up;
Judge module, after system acceptance to format partitioning instruction, judges whether to perform backup and recovery operation according to script file;
Backup module, for when judging to perform backup with recovery operation, backs up the system property file that need back up;
Recovering module, for formaing after subregion completes, recovery operation being performed to the system property file backed up.
Described judge module is used for when judged result is no, directly performs format subregion.
Described the device that terminal system file carries out backing up Yu recovering also to be comprised: module is transmitted in instruction, for systems axiol-ogy to systematic evaluation operation, data format of transfering partitioning instruction.
Describedly also to comprise the device that terminal system file carries out backing up Yu recovering: reading module, for reading the system property file be resumed, completion system switches.
Further, described system property file comprises nv Parameter File.
Compared with prior art, the invention provides a kind of backup and Restoration Mechanism, back up with recovery operation to retain built-in file by script file definition, especially system property file; Only need to revise the backup in script file and the concrete operations of recovery, just can realize before formaing subregion, backing up different file and recovering, be convenient to user operation, more conveniently save time; The file caused because of system property File lose in system version handoff procedure is effectively avoided to read unsuccessfully.
Accompanying drawing explanation
What accompanying drawing 1 was the embodiment of the present invention one carries out backing up the realization flow schematic diagram with the method recovered to terminal system file;
What accompanying drawing 2 was the embodiment of the present invention two carries out backing up the block schematic illustration with the device recovered to terminal system file.
Embodiment
For the ease of the understanding of those skilled in the art, below in conjunction with drawings and Examples, the invention will be further described.
Embodiment one
Terminal system file is carried out to the method backing up Yu recover, the step of described method comprises:
S1, treating to create a catalogue under format subregion, under this catalogue, set up a script file, described script file definition backup and recovery operation and the system property file that need back up;
After S2, system acceptance to format partitioning instruction, judge whether to perform backup and recovery operation according to script file, in this way, then the system property file that need back up is backed up;
After S3, format subregion complete, recovery operation is performed to the system property file backed up.
In step sl, treating to create a directory under format subregion reserve, under this catalogue, put into script file, and need file and the associative operation of backup in definition in script file.Backup file in the present invention is not the ordinary files such as apk, but comprises the system property files such as NV Parameter File.These files are sightless in the ordinary course of things, therefore manually can not select backup.When backup of the present invention and restoration methods are applied to the switching of different editions system, can carry out selectively backing up targetedly to system property file before format manipulation, and immediately the system property file backed up is recovered after having formatd, when making switched system, the action of calling system property file is effective.
In step s 2, the format partitioning instruction received by system can operate based on systematic evaluation, comprising:
S21, systems axiol-ogy operate to systematic evaluation, data format of transfering partitioning instruction;
S22, foundation script file judge whether to perform backup and recovery operation, in this way, then back up the system property file that need back up.
In step s 2, if judged result is no, when namely judging not perform backup with recovery operation according to script file, then directly perform format subregion.
Described method of carrying out backing up to terminal system file and recover, in the application of systematic evaluation, also can comprise after step s 3: the system property file that S4, reading are resumed, and completion system switches.
As shown in Figure 1, what provide the present embodiment carries out backing up the specific implementation schematic flow sheet with the method recovered to terminal system file, and its step comprises:
S101, treat format subregion under create a catalogue, put into script file under this catalogue;
S102, at script file definition backup and recovery operation and the system property file that need back up;
S103, system acceptance are to format partitioning instruction;
S104, system are according to script file transferring command;
S105, judge whether perform backup and recovery operation, in this way, perform step S106, otherwise perform step S109;
S106, the system property file that need back up to be backed up;
S107, execution format division operation;
S108, recovery operation is performed to the system property file that backed up;
S109, direct formatting division operation.
Embodiment two
As shown in Figure 2, present invention also offers a kind of device terminal system file being carried out to back up Yu recover, comprising:
Script creation module 21, for treating to create a catalogue under format subregion, sets up a script file under this catalogue, described script file definition backup and recovery operation and the system property file that need back up;
Judge module 22, after system acceptance to format partitioning instruction, judges whether to perform backup and recovery operation according to script file;
Backup module 23, for when judging to perform backup with recovery operation, backs up the system property file that need back up;
Recovering module 24, for formaing after subregion completes, recovery operation being performed to the system property file backed up.
When described judge module 22 is for being no when judged result, directly perform format subregion.
Described the device that terminal system file carries out backing up Yu recovering also to be comprised: module 25 is transmitted in instruction, for systems axiol-ogy to systematic evaluation operation, data format of transfering partitioning instruction.
Describedly also to comprise the device that terminal system file carries out backing up Yu recovering: reading module 26, for reading the system property file be resumed, completion system switches.
Further, described system property file comprises nv Parameter File.
Above content is in conjunction with concrete optimal way further description made for the present invention, should not assert that specific embodiment of the invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, within the protection domain that the claim that all should be considered as being submitted to by the present invention is determined.
Claims (10)
1. terminal system file is carried out to the method backing up Yu recover, the step of described method comprises:
S1, treating to create a catalogue under format subregion, under this catalogue, set up a script file, described script file definition backup and recovery operation and the system property file that need back up;
After S2, system acceptance to format partitioning instruction, judge whether to perform backup and recovery operation according to script file, in this way, then the system property file that need back up is backed up;
After S3, format subregion complete, recovery operation is performed to the system property file backed up.
2. method of terminal system file being carried out to back up Yu recover according to claim 1, is characterized in that: in step s 2, if judged result is no, then directly performs format subregion.
3. method of terminal system file being carried out to back up Yu recover according to claim 2, is characterized in that, in step s 2, the format partitioning instruction received by system is based on systematic evaluation operation, comprising:
S21, systems axiol-ogy operate to systematic evaluation, data format of transfering partitioning instruction;
S22, foundation script file judge whether to perform backup and recovery operation, in this way, then back up the system property file that need back up.
4. method of terminal system file being carried out to back up Yu recover according to claim 3, is characterized in that, also comprise: the system property file that S4, reading are resumed, and completion system switches.
5. according to any one of claim 1-4, the method that backs up Yu recover is carried out to terminal system file, it is characterized in that: described system property file comprises nv Parameter File.
6. terminal system file is carried out to the device backing up Yu recover, it is characterized in that, comprising:
Script creation module, for treating to create a catalogue under format subregion, sets up a script file under this catalogue, described script file definition backup and recovery operation and the system property file that need back up;
Judge module, after system acceptance to format partitioning instruction, judges whether to perform backup and recovery operation according to script file;
Backup module, for when judging to perform backup with recovery operation, backs up the system property file that need back up;
Recovering module, for formaing after subregion completes, recovery operation being performed to the system property file backed up.
7. device terminal system file being carried out to back up Yu recover according to claim 6, is characterized in that: described judge module is used for when judged result is no, directly performs format subregion.
8. device terminal system file being carried out to back up Yu recover according to claim 7, is characterized in that, also comprise: module is transmitted in instruction, for systems axiol-ogy to systematic evaluation operation, and data format of transfering partitioning instruction.
9. device terminal system file being carried out to back up Yu recover according to claim 8, is characterized in that, also comprise: reading module, and for reading the system property file be resumed, completion system switches.
10. according to any one of claim 6-9, the device that backs up Yu recover is carried out to terminal system file, it is characterized in that: described system property file comprises nv Parameter File.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410747211.1A CN104484241B (en) | 2014-12-10 | 2014-12-10 | The method and device that a kind of pair of terminal system file is backed up and restored |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410747211.1A CN104484241B (en) | 2014-12-10 | 2014-12-10 | The method and device that a kind of pair of terminal system file is backed up and restored |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104484241A true CN104484241A (en) | 2015-04-01 |
CN104484241B CN104484241B (en) | 2018-12-11 |
Family
ID=52758785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410747211.1A Expired - Fee Related CN104484241B (en) | 2014-12-10 | 2014-12-10 | The method and device that a kind of pair of terminal system file is backed up and restored |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104484241B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740102A (en) * | 2016-02-02 | 2016-07-06 | 北京京东尚科信息技术有限公司 | Data backup equipment and method therein |
CN105868047A (en) * | 2015-11-13 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Repairing method and device of data partition, and terminal |
CN109101279A (en) * | 2018-06-26 | 2018-12-28 | 珠海全志科技股份有限公司 | A kind of compatible starting method of multi version system |
WO2023060976A1 (en) * | 2021-10-11 | 2023-04-20 | 中兴通讯股份有限公司 | File reading and writing method for embedded file system, and electronic device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1399194A (en) * | 2001-07-24 | 2003-02-26 | 微软公司 | Method and system for creating and using operation system with optional functions |
US20070276874A1 (en) * | 2003-12-30 | 2007-11-29 | Hochfield Barry S | Smartcard System |
CN101111029A (en) * | 2007-07-20 | 2008-01-23 | 华为技术有限公司 | Method and device for obtaining operating data |
CN102419732A (en) * | 2011-12-27 | 2012-04-18 | Tcl集团股份有限公司 | Android-platform-based automated testing method and testing tool |
CN103761170A (en) * | 2014-01-27 | 2014-04-30 | 北京奇虎科技有限公司 | System file recovery method, device and system |
CN104123208A (en) * | 2014-07-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | System abnormality repairing method and device and mobile terminal |
CN104156273A (en) * | 2014-07-30 | 2014-11-19 | 深圳市中兴移动通信有限公司 | System exception repair method, system exception repair device and mobile terminal |
-
2014
- 2014-12-10 CN CN201410747211.1A patent/CN104484241B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1399194A (en) * | 2001-07-24 | 2003-02-26 | 微软公司 | Method and system for creating and using operation system with optional functions |
US20070276874A1 (en) * | 2003-12-30 | 2007-11-29 | Hochfield Barry S | Smartcard System |
CN101111029A (en) * | 2007-07-20 | 2008-01-23 | 华为技术有限公司 | Method and device for obtaining operating data |
CN102419732A (en) * | 2011-12-27 | 2012-04-18 | Tcl集团股份有限公司 | Android-platform-based automated testing method and testing tool |
CN103761170A (en) * | 2014-01-27 | 2014-04-30 | 北京奇虎科技有限公司 | System file recovery method, device and system |
CN104123208A (en) * | 2014-07-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | System abnormality repairing method and device and mobile terminal |
CN104156273A (en) * | 2014-07-30 | 2014-11-19 | 深圳市中兴移动通信有限公司 | System exception repair method, system exception repair device and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868047A (en) * | 2015-11-13 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Repairing method and device of data partition, and terminal |
WO2017080225A1 (en) * | 2015-11-13 | 2017-05-18 | 乐视控股(北京)有限公司 | Data partition recovery method and apparatus and terminal |
CN105740102A (en) * | 2016-02-02 | 2016-07-06 | 北京京东尚科信息技术有限公司 | Data backup equipment and method therein |
CN109101279A (en) * | 2018-06-26 | 2018-12-28 | 珠海全志科技股份有限公司 | A kind of compatible starting method of multi version system |
WO2023060976A1 (en) * | 2021-10-11 | 2023-04-20 | 中兴通讯股份有限公司 | File reading and writing method for embedded file system, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104484241B (en) | 2018-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9804933B2 (en) | System differential upgrade method, apparatus, and mobile terminal | |
WO2017067448A1 (en) | Firmware-over-the-air upgrade method, system and computer storage medium | |
EP3273351B1 (en) | System operation method and smart terminal | |
KR100515890B1 (en) | Method of efficiently recovering database | |
WO2019062635A1 (en) | Update method and device | |
CN104484241A (en) | Terminal system file backup and recovery method and device | |
KR101696490B1 (en) | Partial rebooting recovery apparatus and method | |
CN103049343B (en) | Operating system blue screen restoration methods and device | |
CN102938817A (en) | Storage mount achieving method and device under recovery mode of mobile phone | |
CN104516796A (en) | Command set based network element backup and recovery method and device | |
CN104951348A (en) | Interruptible recovery upgrading method and device | |
JP5167936B2 (en) | Information processing device | |
CN104503790A (en) | Application version management method and system and smart terminal | |
CN103902336A (en) | Method and device for controlling starting of operating system | |
WO2018049798A1 (en) | Method and apparatus for reconstructing cache partition | |
CN104750575A (en) | Restoring method and device for mobile terminal operating system | |
CN105094873A (en) | Handheld terminal system switching method and device | |
CN103890713A (en) | Apparatus and method for managing register information in a processing system | |
CN104765631A (en) | Restoration method and device for application program of mobile terminal | |
CN104407806A (en) | Method and device for revising hard disk information of redundant array group of independent disk (RAID) | |
KR101415761B1 (en) | Apparatus and method for performing data backup in portable terminal | |
CN105786650A (en) | Data management method and device | |
CN107229532A (en) | Firmware download control method, system, mobile terminal and readable storage medium storing program for executing | |
CN113890930A (en) | Bluetooth-based dual-platform direct connection switching method | |
CN108509265B (en) | Mobile terminal application APP state processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523000 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523000 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181211 |
|
CF01 | Termination of patent right due to non-payment of annual fee |