CN118193287A - Backup method for Android system - Google Patents
Backup method for Android system Download PDFInfo
- Publication number
- CN118193287A CN118193287A CN202410285012.7A CN202410285012A CN118193287A CN 118193287 A CN118193287 A CN 118193287A CN 202410285012 A CN202410285012 A CN 202410285012A CN 118193287 A CN118193287 A CN 118193287A
- Authority
- CN
- China
- Prior art keywords
- backup
- partition
- android system
- files
- information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000005192 partition Methods 0.000 claims abstract description 53
- 238000011084 recovery Methods 0.000 claims description 5
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A backup method for an Android system relates to the technical field of Android systems, and the backup content can be selectively controlled. The backup location may select a u-disk or system free space. And creating a dynamic partition or adopting a path of the u disk, and extracting the content to be backed up to the newly created partition or the u disk. The self-built partition of the factory setting avoidance system is restored to restore the content, the function of reserving user information when factory setting is restored is provided, and the restoration system can be backed up on the premise of not affecting the use of users.
Description
Technical Field
The invention relates to the technical field of Android systems, in particular to a backup method for an Android system.
Background
In the embedded Android device, when the device encounters important file backup of some problem devices, but some network information of the device, information of Bluetooth, wifi or apk (such as WeChat) and the like are difficult to backup by users, the device cannot be used immediately after factory setting is restored, and the device needs to be manually configured, so that the backup function is needed under the condition.
Disclosure of Invention
The invention provides a method for backing up and recovering a system on the premise of not influencing the use of a user in order to overcome the defects of the technology.
The technical scheme adopted for overcoming the technical problems is as follows:
A backup method for an Android system, comprising:
S1, creating a backup partition in a storage space of an Android system, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of a local backup partition;
S2, when the storage space of the Android system is insufficient, creating a backup partition in the external storage, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of the external storage area;
s3, in the process of acquiring root rights, when the root rights are required to be backed up, acquiring all files and information selected by a user and then storing all the files and information into a local backup partition or an external storage area according to the selection of the user;
S4, in the process of acquiring the root permission, when the backup needs to be restored, reading out the stored files and information of the local backup partition or the external storage area selected by a user, and restoring the read files and information to the corresponding positions.
Further, in step S1, a clear partition which is not subjected to the recovery system is selected, and a backup partition is created by adopting a dynamic partition method.
Further, the fixed file node in step S1 is a restore file node.
Further, the data structure of the file created in step S1 is composed of a header for storing the offset of the index for storing the offset and length of each block and a content block for storing the content in the block.
Further, in step S2, the external storage is a usb disk.
Further, the data structure of the file created in step S2 is composed of a header for storing the offset of the index for storing the offset and length of each block and a content block for storing the content in the block.
Further, in step S3, all files and information are stored in the local backup partition or the external storage area according to the created data structure of the files.
Further, in step S4, the stored files and information in the local backup partition or the external storage area selected by the user are read according to the data structure of the corresponding files.
Further, in step S4, if the restored file and information are located in the local backup partition, the local backup partition is released after the file and information stored in the local backup partition are read out.
Further, setting a user selection interface in the Android system, wherein the user selection interface is used for listing all selectable backup items and backup positions.
The beneficial effects of the invention are as follows: the backup content can be selectively controlled, such as Ethernet information, bluetooth information, wifi information, and certain apk information. The location of the backup may be selected for control (u-disk or system free space). And creating a dynamic partition or adopting a path of the u disk, and extracting the content to be backed up to the newly created partition or the u disk. The self-built partition of the factory setting avoidance system is restored to restore the content, the function of reserving user information when factory setting is restored is provided, and the restoration system can be backed up on the premise of not affecting the use of users.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is further described with reference to fig. 1.
A backup method for an Android system, comprising:
S1, creating a backup partition in a storage space of the Android system, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of the local backup partition.
S2, when the storage space of the Android system is insufficient, creating a backup partition in the external storage, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of the external storage area.
S3, in the process of acquiring the root permission, when the backup is needed, acquiring all files and information selected by a user to be backed up, and then storing all the files and information into a local backup partition or an external storage area according to the selection of the user.
S4, in the process of acquiring the root permission, when the backup needs to be restored, reading out the stored files and information of the local backup partition or the external storage area selected by a user, and restoring the read files and information to the corresponding positions.
The method solves the problem that the prior art scheme cannot backup the system configuration and apk information, and provides the backup function when the Android device recovers factory settings.
In one embodiment of the present invention, in step S1, a clear partition that is not subject to recovery (recovery) is selected, and a backup partition is created by using a dynamic partition method.
In one embodiment of the present invention, the file node fixed in step S1 is a restore file node.
In one embodiment of the present invention, the data structure of the file created in step S1 is composed of a header for storing an index for storing an offset and a length of each block and a content block for storing contents in the block.
In one embodiment of the present invention, in step S2, the external storage is a usb disk.
In one embodiment of the present invention, the data structure of the file created in step S2 is composed of a header for storing an index for storing an offset and a length of each block and a content block for storing contents in the block.
In one embodiment of the present invention, all files and information in step S3 are stored in the local backup partition or the external storage area according to the data structure of the created file.
In one embodiment of the present invention, in step S4, the stored files and information in the local backup partition or the external storage area selected by the user are read according to the data structure of the corresponding files.
In one embodiment of the present invention, if the restored file and information are located in the local backup partition in step S4, the local backup partition is released after the file and information stored in the local backup partition are read out. By adopting a dynamic partition mode, the backup partition can be deleted after backup is restored.
In one embodiment of the invention, the method further comprises setting a user selection interface in the Android system, wherein the user selection interface is used for listing all selectable backup items and backup positions. The method mainly serves the user, provides the user with the time for selecting the display and backup place of the backup content and the backup recovery, and then submits the information to the function shown in the method III after the selection of the user is collected.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. The backup method for the Android system is characterized by comprising the following steps of:
S1, creating a backup partition in a storage space of an Android system, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of a local backup partition;
S2, when the storage space of the Android system is insufficient, creating a backup partition in the external storage, mounting the created backup partition to a fixed file node, creating a file under the file node, and completing the creation of the external storage area;
s3, in the process of acquiring root rights, when the root rights are required to be backed up, acquiring all files and information selected by a user and then storing all the files and information into a local backup partition or an external storage area according to the selection of the user;
S4, in the process of acquiring the root permission, when the backup needs to be restored, reading out the stored files and information of the local backup partition or the external storage area selected by a user, and restoring the read files and information to the corresponding positions.
2. The backup method for an Android system of claim 1, wherein: in step S1, a clear partition which is not subjected to the recovery system is selected, and a backup partition is created by adopting a dynamic partition method.
3. The backup method for an Android system of claim 1, wherein: the fixed file node in step S1 is a restore file node.
4. The backup method for an Android system of claim 1, wherein: the data structure of the file created in step S1 is composed of a header for storing the offsets of the index for storing the offsets and lengths of the respective blocks and content blocks for storing the contents in the blocks.
5. The backup method for an Android system of claim 1, wherein: in step S2, the external storage is a usb disk.
6. The backup method for an Android system of claim 4, wherein: the data structure of the file created in step S2 is composed of a header for storing the offsets of the index for storing the offsets and lengths of the respective blocks and the content blocks for storing the contents in the blocks.
7. The backup method for an Android system of claim 6, wherein: in step S3, all files and information are stored in the local backup partition or the external storage area according to the created file data structure.
8. The backup method for an Android system of claim 7, wherein: in step S4, the stored files and information in the local backup partition or the external storage area selected by the user are read according to the data structure of the corresponding files.
9. The backup method for an Android system of claim 1, wherein: and S4, if the restored files and information are located in the local backup partition, releasing the local backup partition after the files and information stored in the local backup partition are read out.
10. The backup method for an Android system of claim 1, wherein: the method also comprises the step of setting a user selection interface in the Android system, wherein the user selection interface is used for listing all selectable backup items and backup positions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410285012.7A CN118193287A (en) | 2024-03-13 | 2024-03-13 | Backup method for Android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410285012.7A CN118193287A (en) | 2024-03-13 | 2024-03-13 | Backup method for Android system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118193287A true CN118193287A (en) | 2024-06-14 |
Family
ID=91408045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410285012.7A Pending CN118193287A (en) | 2024-03-13 | 2024-03-13 | Backup method for Android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118193287A (en) |
-
2024
- 2024-03-13 CN CN202410285012.7A patent/CN118193287A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6311193B1 (en) | Computer system | |
JP4324616B2 (en) | Data processing method in storage system | |
CA2178213C (en) | Incremental backup system | |
US7197665B2 (en) | Physical incremental backup using snapshots | |
US7873601B1 (en) | Backup of incremental metadata in block based backup systems | |
US7334098B1 (en) | Producing a mass storage backup using a log of write commands and time information | |
US7136977B2 (en) | Backup acquisition method and disk array apparatus | |
US6701455B1 (en) | Remote copy system with data integrity | |
US8600937B1 (en) | System and method for fast volume cloning | |
CN101566959A (en) | Using volume snapshots to prevent file corruption in failed restore operations | |
CN102667703A (en) | System and method for optimized reclamation processing in a virtual tape library system | |
CN113626256B (en) | Virtual machine disk data backup method, device, terminal and storage medium | |
CN105320576A (en) | Device and method for database backup | |
CN106844597A (en) | The method and its device of a kind of quick deletion dependent snapshot target volume | |
CN108572888B (en) | Disk snapshot creating method and disk snapshot creating device | |
CN110647425A (en) | Database recovery method and device | |
CN116088770A (en) | Data management method, device, system, electronic equipment and storage medium | |
CN103176920A (en) | Nor flash power down protection method and Nor flash power down protection device | |
CN109753381B (en) | Continuous data protection method based on object storage | |
KR101604222B1 (en) | Recording apparatus and method | |
CN118193287A (en) | Backup method for Android system | |
US6684293B1 (en) | Methods and computer readable media for preserving unique critical information during data imaging | |
JP3950316B2 (en) | IC card and IC card memory access control method | |
JPH01204163A (en) | File controller | |
CN111813603B (en) | Method, device and equipment for backing up metadata of thin volume and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |