Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for backing up and restoring terminal system files

A terminal system and backup technology, applied in the direction of response error generation, redundant data error detection in operation, etc., can solve problems such as failure to switch versions, files cannot be obtained, and time-consuming, etc., to achieve the convenience of users. Operation, the effect of avoiding file read failure

Active Publication Date: 2018-12-11
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the existing partition is formatted, the entire partition is formatted, so that the files that need to be kept cannot be obtained; if a certain directory or file is to be kept, the file is deleted recursively, but it takes a lot of time to delete the file in this way longer time
After the formatting operation is completed, the mobile terminal needs to read a certain system attribute file (such as the nv parameter) of the partition where it is formatted. Causes the switch version to fail, you need to recreate the file after that, restart the mobile terminal to switch successfully

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for backing up and restoring terminal system files
  • A method and device for backing up and restoring terminal system files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] A method for backing up and restoring terminal system files, the steps of the method comprising:

[0031] S1. Create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

[0032] S2. After the system receives the formatting partition instruction, it judges whether to perform backup and recovery operations according to the script file, and if so, backs up the system attribute files to be backed up;

[0033] S3. After the formatted partition is completed, restore the backed up system attribute file.

[0034] In step S1, a directory reserve is created under the partition to be formatted, a script file is placed in this directory, and files to be backed up and related operations are defined in the script file. The backup files in the present invention are not ordinary files such as apk, but include system attribute files such as N...

Embodiment 2

[0051] as attached figure 2 As shown, the present invention also provides a device for backing up and restoring terminal system files, including:

[0052] Script creation module 21 is used to create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

[0053] The judging module 22 is used for judging whether to perform backup and recovery operations according to the script file after the system receives the formatting partition instruction;

[0054] The backup module 23 is used for backing up the system attribute files to be backed up when judging to perform backup and recovery operations;

[0055] The recovery module 24 is configured to perform a recovery operation on the backed up system attribute file after the partition is formatted.

[0056] The judging module 22 is configured to directly execute partition formatting when the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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 [0001] The invention relates to the technical field of mobile terminals, in particular to a method and device for backing up and restoring terminal system files. Background technique [0002] At present, with the rapid development of global commerce and cross-border trade, the flow of goods between different countries and regions is becoming wider and wider. Taking mobile terminals as an example, a mobile phone of the same model produced by a multinational manufacturer may sell to hundreds of units. in the country area. In order to adapt to this development trend, manufacturers are often compatible with multiple system versions when setting up software systems to adapt to the language and operating habits of different countries and regions. Users can flexibly switch between different version systems according to actual needs. [0003] For the case where there are multiple system versions, it is necessary to format the partition during the system switching pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/14
Inventor 田小华
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD