CN106201776A - The backup method of bag configuration file and terminal - Google Patents
The backup method of bag configuration file and terminal Download PDFInfo
- Publication number
- CN106201776A CN106201776A CN201610508827.2A CN201610508827A CN106201776A CN 106201776 A CN106201776 A CN 106201776A CN 201610508827 A CN201610508827 A CN 201610508827A CN 106201776 A CN106201776 A CN 106201776A
- Authority
- CN
- China
- Prior art keywords
- backed item
- backed
- item
- backup
- father
- 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
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000008569 process Effects 0.000 claims abstract description 16
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 239000000203 mixture Substances 0.000 claims description 4
- 238000011084 recovery Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000002574 poison Substances 0.000 description 1
- 231100000614 poison Toxicity 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses backup method and the device of a kind of bag configuration file, wherein, described method includes: the APMB package in scanning system, obtains the bag configuration file in APMB package, comprises at least one backed item in described APMB package;Definition, the group mark of this backed item and backed item type according to the backed item comprised in bag configuration file, loads at least one backed item comprised in APMB package, and described backed item type includes father's backed item and sub-backed item;Searching backed item type in the same group of backed item loaded identified is the backed item of father's backed item, if finding, then in the backed item loaded identified same group, backed item type is that the backed item of sub-backed item is added in Backup and Restore queue;By the backed item in Backup and Restore process detection Backup and Restore queue, if the backed item type of the backed item detected is father's backed item, then it is added in backed item display list.Use the present invention, the integrity of terminal data backup can be improved.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to backup method and the terminal of a kind of bag configuration file.
Background technology
Along with the development of terminal technology, the use of backup and recovery gets more and more, and, in existing mobile phone,
Nearly all there is this ROM module instrument of backup and recovery, user can back up the data on veteran's machine and at new cell-phone
Upper recovery, this allows for user and is changing after mobile phone or after mobile phone upgrade, realizes original data in mobile phone easily and fast and turn
The function moved.Such as, carrying in mobile phone can be applied the data comprised to back up by user, such as note, and contact person is logical
Words record, calendar, clock, arrange, further, the third-party application that mobile phone is installed can also be backed up by user,
The related data (such as chat record etc.) included under this application of backup, further comprises the associated profile of this application,
The such as third-party application such as Alipay, wechat.The above-mentioned data carrying application or the data of third-party application, can regard as
Being a backed item, such as, message registration is a backed item, and wechat is also a backed item.
Except above-mentioned carrying is applied or in addition to third-party application, be there is also some other modules and be also required to standby in mobile phone
Number evidence, but it does not has again oneself corresponding apk, it is impossible to display with the form of application, a simply card format, again
Or this module is not intended to be shown separately in face of user, want that depending on certain backed item exists.For above-mentioned data
Backup, because user cannot view the data of this module or correspondence in the list of backup, just cannot back up it,
This allows in terminal, and some needs the problem that the data of backup cannot be carried out backup.It is to say, existing data backup with
For cannot there is no corresponding processing scheme with the backup of the data of the module that the form of application displays in recovery, result in
Data backup in terminal is incomplete.
Summary of the invention
Based on this, for solving in prior art in the scheme of backup and recovery because not for cannot be with application
What the integrity of the data backup that the data of the module that form displays carry out the associated solutions that backs up and exist was not enough
Technical problem, spy proposes the backup method of a kind of bag configuration file.
A kind of backup method of bag configuration file, including:
APMB package in scanning system, the bag configuration file in the APMB package scanned described in acquisition, in described APMB package
Comprise at least one backed item;
Group mark according to the definition of backed item comprised in described bag configuration file, this backed item and backed item class
Type, loads at least one backed item comprised in described APMB package, and described backed item type includes father's backed item and sub-backed item;
The backed item that described backed item type is father's backed item is searched in the same group of backed item loaded identified, if
Find, then the backed item that backed item type described in the described same group of backed item loaded identified is sub-backed item is added
It is added in Backup and Restore queue;
By the backed item in Backup and Restore queue described in Backup and Restore process detection, if the backup of the backed item detected
Item type is father's backed item, then this backed item added in backed item display list.
Optionally, in one embodiment, described by the described backed item that backed item type is father's backed item detected
Also include after adding in backed item display list:
By identical with the group mark of the described backed item that backed item type is father's backed item detected for described group of mark,
And the backed item that described backed item type is sub-backed item is not added in backed item display list.
Optionally, in one embodiment, described by the backed item in Backup and Restore process detection Backup and Restore queue
The most also include:
If the backed item type of the backed item detected is sub-backed item, then search described in described Backup and Restore queue
It is that the backed item of father's backed item is as target father's backed item that group identifies identical with this backed item and described backed item type;
When not finding described target father's backed item, it is judged that whether this backed item is supported individually to back up, if this backed item
Support individually backup, then this backed item is added in the display list of described backed item.
Optionally, in one embodiment, described in the same group of backed item loaded identified, described backup is searched
Type be father's backed item backed item after also include:
If not finding described backed item type in the backed item loaded of described same group of mark is father's backed item
Backed item, then judge whether this backed item is supported individually to back up, if if this backed item supports individually backup, then by this backed item
Add in described Backup and Restore list.
Optionally, in one embodiment, described bag configuration file is AndroidManifest.xml file.
Additionally, for solving in prior art in the scheme of backup and recovery because not for cannot be with the shape of application
The skill that the integrity of the data backup that the data of the module that formula displays carry out the associated solutions that backs up and exist is not enough
Art problem, spy proposes the back-up device of a kind of bag configuration file.
A kind of back-up device of bag configuration file, including:
APMB package scan module, the APMB package in scanning system, the bag in the APMB package scanned described in acquisition is joined
Put file, described APMB package comprises at least one backed item;
Backed item load-on module, for according to the definition of backed item that comprises in described bag configuration file, this backed item
Group mark and backed item type, load at least one backed item comprised in described APMB package, and described backed item type includes
Father's backed item and sub-backed item;
Backed item is recovered queue and is added module, for searching described backup in the same group of backed item loaded identified
Item type is the backed item of father's backed item, if finding, then standby described in the backed item loaded by described same group of mark
Part item type is that the backed item of sub-backed item is added in Backup and Restore queue;
Module is added in backed item display list, standby for by Backup and Restore queue described in Backup and Restore process detection
Part item, if the backed item type of the backed item detected is father's backed item, then adds backed item display list to by this backed item
In.
Optionally, in one embodiment, described backed item display list add module be additionally operable to by described group mark with
The group mark of the described backed item that backed item type is father's backed item detected is identical and described backed item type is standby for son
The backed item of part item is not added in backed item display list.
Optionally, in one embodiment, if the backup that module is additionally operable to detect is added in the display list of described backed item
Backed item type be sub-backed item, then search in described Backup and Restore queue described group of mark identical with this backed item,
And described backed item type is that the backed item of father's backed item is as target father's backed item;Do not finding described target father's backed item
Time, it is judged that whether this backed item is supported individually to back up, if this backed item supports individually backup, then this backed item is added to described
In backed item display list.
Optionally, in one embodiment, if described backed item recovers queue, interpolation module is additionally operable at described same group
The backed item loaded of mark does not finds the backed item that described backed item type is father's backed item, then judges this backed item
Whether support individually to back up, if if this backed item supports individually backup, then this backed item being added described Backup and Restore list to
In.
Optionally, in one embodiment, described bag configuration file is AndroidManifest.xml file.
Implement the embodiment of the present invention, will have the advantages that
After have employed backup method and the device of above-mentioned bag configuration file, during backing up, to terminal system
APMB package in system is scanned, and the association attributes letter of backed item corresponding in the bag configuration file included according to APMB package
Breath loads all backed item in APMB package, and determines whether that can this backed item be backed up according to father's backed item, sub-backed item,
In the presence of father's backed item, the sub-backed item of its correspondence can back up, in father's backed item not along with the backup of father's backed item
In the presence of, whether whether the sub-backed item of its correspondence is backed up is supported individually to back up to carry out certainly by this backed item is predefined
Fixed.It is to say, after the backup method that have employed above-mentioned bag configuration file and device, the file in terminal is being carried out standby
During part, for the data of the module that individually cannot display with the form of application in terminal, it is provided that a kind of data backup
Scheme, it is to avoid because above-mentioned data are because the asking of cannot backing up of cannot individually causing so that the form applied is shown
Topic, improves the data integrity during backing up of the data in terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Wherein:
Fig. 1 is the schematic flow sheet of the backup method of a kind of bag configuration file in an embodiment;
Fig. 2 is the structural representation of the back-up device of a kind of bag configuration file in an embodiment;
Fig. 3 is the structural representation of the computer system of the backup method running above-mentioned bag configuration file in an embodiment
Figure.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
For solving in prior art in the scheme of backup and recovery because not for cannot be with the form exhibition of application
The technology that the integrity of the data backup that the data of the module illustrated carry out the associated solutions that backs up and exist is not enough is asked
Topic, in the present embodiment, spy proposes the backup method of a kind of bag configuration file, and the realization of the method can be dependent on computer journey
Sequence, this computer program can run on computer system based on von Neumann system, and this computer program can be literary composition
Part backup and the application program recovered.This computer system can be the such as smart mobile phone of operation above computer program, put down
The terminal units such as plate computer, palm PC, PC.
Concrete, as it is shown in figure 1, the backup method of above-mentioned bag configuration file comprises the steps:
Step S102: the APMB package in scanning system, the bag configuration file in the APMB package scanned described in acquisition, described
APMB package comprises at least one backed item.
When user needs to back up terminal, or terminal self is according to when pre-setting startup stand-by program, first
The all APMB packages comprised in the system to terminal are first needed to be scanned, say, that to need installations all in terminal
The APMB package of APP is scanned, and contains at least one backed item, such as, micro-in the APMB package of the APP installed in the terminal
The APMB package of letter application contains multiple independent backed item such as chat record, user setup, contact person.
APMB package in systems further comprises bag configuration file, such as, in android system, bag configuration file
Being AndroidManifest.xml file, this document is in each program and exists and unique necessary literary composition existed
Part, and it is positioned at the root in all of file that whole application is corresponding, describe the assembly exposed in APMB package
(activities, services etc.), accordingly realize class and the data that can be processed and start position.
Bag configuration file contains in APMB package and contain the precious backup that each backed item wherein comprised is corresponding
The definition of item, the group mark of backed item and the backed item type of backed item, according to that comprise in bag configuration file and backed item
Corresponding above-mentioned attribute information, it may be determined that the attributes such as each backed item comprised in this APMB package and the definition of its correspondence
Information.
Step S104: identify according to the group of the definition of backed item comprised in described bag configuration file, this backed item and
Backed item type, loads at least one backed item comprised in described APMB package, described backed item type include father's backed item and
Sub-backed item.
In specific embodiment, according to corresponding standby of all of backed item comprised in the APMB package comprised in bag configuration file
Part definition of item, the group mark of backed item, the backed item type of backed item, load all backed item comprised in APMB package.
It should be noted that in the present embodiment, the group mark of the backed item of the backed item comprised in above-mentioned bag configuration file
Knowledge can be that the attribute information adding correspondence in the AndroidManifest.xml file of this backed item realizes, such as, and can
Come each backed item with interpolation GROUP_NAME attribute in the AndroidManifest.xml file of each backed item
Group mark be defined.
Further, the backed item type of the backed item comprised in above-mentioned bag configuration file include father's backed item, son standby
Part item and three kinds of situations of normal backup item, and, the definition of backed item type can be led to richness and be existed in each backed item
The attribute information adding correspondence in AndroidManifest.xml file in corresponding definition realizes, for example, it is possible to each
Individual backed item related definition part interpolation GROUP_TYPE attribute in AndroidManifest.xml file, and
During GROUP_TYPE=1, the backed item type of this backed item is father's backed item, when GROUP_TYPE=2, and this backed item standby
Part item type is sub-backed item, and when GROUP_TYPE=0, the backed item type of this backed item is normal backup item.
It should be noted that in the present embodiment, backed item type is backed item (hereinafter referred to as father's backup of father's backed item
) with the backed item (hereinafter referred to as corresponding with father's backed item sub-backed item) that corresponding backed item type is sub-backed item
Group mark be the same, say, that it is identical that the group of corresponding father and son's backed item identifies.In known a certain group of mark
In the case of, AndroidManifest.xml file travels through the correlation attribute information that all of backed item is corresponding, it may be determined that
All backed item under this group mark.
Step S106: searching described backed item type in the same group of backed item loaded identified is father's backed item
Backed item, if finding, then performs step S108: by backed item class described in the described same group of backed item loaded identified
Type is that the backed item of sub-backed item is added in Backup and Restore queue;If not finding, then perform step S110: judge this backup
Whether item is supported individually to back up, if this backed item supports individually backup, then this backed item is added described Backup and Restore list to
In.
Step S106 is performed respectively for the backed item under all of group of mark in AndroidManifest.xml file.
For all of backed item loaded under some group mark, searching backed item type wherein is father's backed item, if looking into
Find, then illustrate to there is, under this group identifies, the backed item that backed item type is father's backed item, be then father by this backed item type
The backed item of backed item and the backed item that backed item type is sub-backed item of correspondence are added in Backup and Restore queue.Instead
It, if not finding backed item type is the backed item paying backed item, then illustrate that the backed item type under this group identifies is
There is not the backed item that corresponding backed item type is father's backed item in the backed item of sub-backed item, in this case,
Whether the backed item that this backed item type is sub-backed item is added to and Backup and Restore queue needs a point situation discussion.
Concrete, it is judged that the backed item that backed item type is sub-backed item under this group identifies, it is judged that this backed item is
No support is individually backed up, if supporting, then adds in Backup and Restore queue by this backed item, in order to can in follow-up backup
So that this backed item is backed up;Otherwise, if not supporting, this backed item is not added in Backup and Restore queue, the most just
Being to say, this backed item will be able to not back up in follow-up backup.
Optionally, in one embodiment, above-mentioned judge whether the backed item that backed item type is sub-backed item props up
The process holding individually backup can be by this backed item attribute about individually backup in AndroidManifest.xml file
Information is determined, concrete, in advance in the backed item that backed item type is sub-backed item at AndroidManifest.xml literary composition
Definition in part is added the attribute information whether allowing individually to back up, for example, it is possible at AndroidManifest.xml file
In add GROUP_ALONE attribute information for backed item, and when GROUP_ALONE=TRUE, it is allowed to this backed item is carried out
Individually backup, when GROUP_ALONE=FALSE, does not allow this backed item individually to back up.It should be noted that at this
In embodiment, the attribute information of GROUP_ALONE has only to be added on the backed item that backed item type is sub-backed item and exists
Related definition in AndroidManifest.xml file and attribute information are added, and other backed item need not add
Add the attribute information first closed with GROUP_ALONE.
Step S112: by the backed item in Backup and Restore queue described in Backup and Restore process detection, if detect is standby
The backed item type of part item is father's backed item, then perform step S114: this backed item added in backed item display list;If
The backed item type of the backed item detected is sub-backed item, then perform step S116: search in described Backup and Restore queue
Described group identifies identical with this backed item and described backed item type is that the backed item of father's backed item is as target father's backed item;
When not finding described target father's backed item, it is judged that whether this backed item is supported individually to back up, if this backed item is supported individually
Backup, then add to this backed item in the display list of described backed item.
Whether the backed item in all of APMB package comprised in for system adds Backup and Restore queue to is grasped
After work, by all backed item comprised in Backup and Restore process detection Backup and Restore correspondence, it should be noted that in this reality
Execute in example, Backup and Restore queue not only contains backed item, further comprises the correlation attribute information of its correspondence, such as, organize mark
Knowledge, backed item type etc..
Each backed item that very poison detects, is father's backed item or sub-backed item according to the backed item type of this backed item
Illustrate the most respectively.
Concrete, when the backed item type of the backed item detected is father's backed item, add this backed item to backup
In item display list, and, the backed item that backed item type is sub-backed item (group mark is identical) of its correspondence will not be added
It is added in backed item display list, because the backed item that backed item type is sub-backed item is that to depend on backed item type be father
The backed item of backed item and in the presence of, only not existing the latter is just individually to show, in the presence of the latter, can't be independent
Show.
Further, when the backed item type of the backed item detected is sub-backed item, look in Backup and Restore queue
The backed item that corresponding backed item type is father's backed item, group mark is identical is looked for back up as the target father that threshold value is corresponding
, if finding, then illustrate this father's backed item can be added to backed item display list in, it is not necessary to by this detect standby
Part item adds in backed item display list;Otherwise, if not finding, then illustrate that target father's backed item of its correspondence is not
Exist, then need whether to support individually to back up to this backed item to judge, when supporting individually to back up, this backed item is added
It is added in backed item display list, when not supporting individually to back up, this backed item is not added in backed item display list
Go, i.e. user had both searched less than backed item in backed item display list, and this backed item also will not be carried out along with other backed item
Backup.
Additionally, for solving in prior art in the scheme of backup and recovery because not for cannot be with the shape of application
The skill that the integrity of the data backup that the data of the module that formula displays carry out the associated solutions that backs up and exist is not enough
Art problem, in one embodiment, as shown in Figure 2, it is also proposed that the back-up device of a kind of bag configuration file, concrete, this dress
Put and include that APMB package scan module 102, backed item load-on module 104, backed item are recovered queue and added module 106 and backed item
Module 108 is added in display list, wherein:
APMB package scan module 102, the APMB package in scanning system, the bag in the APMB package scanned described in acquisition
Configuration file, comprises at least one backed item in described APMB package;
Backed item load-on module 104, for the definition according to the backed item comprised in described bag configuration file, this backed item
Group mark and backed item type, load at least one backed item comprised in described APMB package, described backed item type bag
Include father's backed item and sub-backed item;
Backed item is recovered queue and is added module 106, described for searching in the same group of backed item loaded identified
Backed item type is the backed item of father's backed item, if finding, then by institute in the backed item loaded of described same group of mark
State the backed item that backed item type is sub-backed item to add in Backup and Restore queue;
Backed item display list adds module 108, for by Backup and Restore queue described in Backup and Restore process detection
Backed item, if the backed item type of the backed item detected is father's backed item, then adds this backed item to backed item and show
In list.
Optionally, wherein in an embodiment, backed item display list is added module 108 and is additionally operable to identify described group
Identical with the group mark of the described backed item that backed item type is father's backed item detected and described backed item type is son
The backed item of backed item is not added in backed item display list.
Optionally, wherein in an embodiment, if backed item display list add that module 108 is additionally operable to detect standby
The backed item type of part item is sub-backed item, then search described group of mark and this backed item phase in described Backup and Restore queue
Same and described backed item type is that the backed item of father's backed item is as target father's backed item;Not finding, described target father is standby
During part item, it is judged that whether this backed item is supported individually to back up, if this backed item supports individually backup, then this backed item is added to
In the display list of described backed item.
Optionally, wherein in an embodiment, if backed item recovers queue, interpolation module 106 is additionally operable to described same
The backed item loaded of group mark does not finds the backed item that described backed item type is father's backed item, then judges this backup
Whether item is supported individually to back up, if if this backed item supports individually backup, then this backed item being added described Backup and Restore row to
In table.
Optionally, wherein in an embodiment, above-mentioned bag configuration file is AndroidManifest.xml file.
Implement the embodiment of the present invention, will have the advantages that
After have employed backup method and the device of above-mentioned bag configuration file, during backing up, to terminal system
APMB package in system is scanned, and the association attributes letter of backed item corresponding in the bag configuration file included according to APMB package
Breath loads all backed item in APMB package, and determines whether that can this backed item be backed up according to father's backed item, sub-backed item,
In the presence of father's backed item, the sub-backed item of its correspondence can back up, in father's backed item not along with the backup of father's backed item
In the presence of, whether whether the sub-backed item of its correspondence is backed up is supported individually to back up to carry out certainly by this backed item is predefined
Fixed.It is to say, after the backup method that have employed above-mentioned bag configuration file and device, the file in terminal is being carried out standby
During part, for the data of the module that individually cannot display with the form of application in terminal, it is provided that a kind of data backup
Scheme, it is to avoid because above-mentioned data are because the asking of cannot backing up of cannot individually causing so that the form applied is shown
Topic, improves the data integrity during backing up of the data in terminal.
In one embodiment, as it is shown on figure 3, Fig. 3 illustrates a kind of backup method running above-mentioned bag configuration file
The terminal of computer system based on von Neumann system.This computer system can be smart mobile phone, panel computer, palm electricity
The terminals such as brain.Concrete, it may include the outer input interface 1001 that connected by system bus, processor 1002, memorizer
1003 and output interface 1004.Wherein, outer input interface 1001 optionally can at least include network interface 10012.Memorizer
1003 can include external memory 10032 (such as hard disk, CD or floppy disk etc.) and built-in storage 10034.Output interface 1004 can
At least include display screen 10042 equipment such as grade.
In the present embodiment, the operation of this method is stored in based on computer program, the program file of this computer program
In the external memory 10032 of aforementioned computer system based on von Neumann system, operationally it is loaded into built-in storage
In 10034, it is transferred to after being then compiled as machine code in processor 1002 perform, and forms APMB package scanning in logic
Module 102, backed item load-on module 104, backed item are recovered queue and are added module 106 and backed item display list interpolation module
108.And during the backup method of above-mentioned bag configuration file performs, the parameter of input is all connect by outer input interface 1001
Receive, and be transferred in memorizer 1003 caching, be then input in processor 1002 process, the result data or slow of process
It is stored in memorizer 1003 and subsequently processes, or be passed to output interface 1004 and export.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.The present invention is real
The terminal that executing example provides includes but not limited to carryOr other operating system
Terminal, such as mobile phone.Can also be other terminal, such as have Touch sensitive surface (such as, touch-screen display and/or
Trackpad) laptop computer or panel computer or desk computer.
In the following discussion, a kind of terminal including display and Touch sensitive surface is described.It should be appreciated, however, that terminal
Other physical user-interface device one or more, such as physical keyboard, mouse and/or action bars can be included.
Terminal generally supports multiple application program, such as following in one or more: picture application program, present application
Program, word-processing application, webpage create application program, dish editor's application program, spreadsheet applications, game should
With program, telephony application, videoconference application, email application, instant message application program, take exercise and prop up
Hold application program, photograph management application program, digital camera applications program, digital video camcorder application program, network browsing
Application program, digital music player application and/or video frequency player application program.
The various application programs that can perform in terminal can use at least one physical user-interface device shared, such as
Touch sensitive surface.One or more functions of Touch sensitive surface and display corresponding information in terminal can be adjusted from a kind of application program
Whole and/or be changed to lower a kind of application program and/or be adjusted in corresponding application programs and/or change.So, being total to of terminal
Various application journey is supported by the available clearly user interface directly perceived for a user of physical structure (such as Touch sensitive surface)
Sequence.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
The above disclosed present pre-ferred embodiments that is only, can not limit the right model of the present invention with this certainly
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.
Claims (10)
1. the backup method of a bag configuration file, it is characterised in that including:
APMB package in scanning system, the bag configuration file in the APMB package scanned described in acquisition, described APMB package comprises
At least one backed item;
Group mark according to the definition of backed item comprised in described bag configuration file, this backed item and backed item type, add
Carrying at least one backed item comprised in described APMB package, described backed item type includes father's backed item and sub-backed item;
The backed item that described backed item type is father's backed item is searched, if searching in the same group of backed item loaded identified
Arrive, then the backed item that backed item type described in the described same group of backed item loaded identified is sub-backed item is added to
In Backup and Restore queue;
By the backed item in Backup and Restore queue described in Backup and Restore process detection, if the backed item class of the backed item detected
Type is father's backed item, then this backed item added in backed item display list.
The backup method of bag configuration file the most according to claim 1, it is characterised in that described by described detect standby
Part item type is also to include after the backed item of father's backed item is added in backed item display list:
By identical with the group mark of the described backed item that backed item type is father's backed item detected for described group of mark and institute
State the backed item that backed item type is sub-backed item to be not added in backed item display list.
The backup method of bag configuration file the most according to claim 1 and 2, it is characterised in that described in pass through Backup and Restore
Also include after backed item in process detection Backup and Restore queue:
If the backed item type of the backed item detected is sub-backed item, then in described Backup and Restore queue, search described group of mark
Knowing identical with this backed item and described backed item type is that the backed item of father's backed item is as target father's backed item;
When not finding described target father's backed item, it is judged that whether this backed item is supported individually to back up, if this backed item is supported
Individually backup, then add to this backed item in the display list of described backed item.
The backup method of bag configuration file the most according to claim 1, it is characterised in that described identify at same group
Also include after the backed item loaded searches the backed item that described backed item type is father's backed item:
If not finding described backed item type in the backed item loaded of described same group of mark is the standby of father's backed item
Part item, then judge whether this backed item is supported individually to back up, if if this backed item supports individually backup, then this backed item being added
In described Backup and Restore list.
The backup method of valency is asked in bag configuration the most according to claim 1, it is characterised in that described bag configuration file is
AndroidManifest.xml file.
6. the back-up device of a bag configuration file, it is characterised in that including:
APMB package scan module, the APMB package in scanning system, the bag configuration literary composition in the APMB package scanned described in acquisition
Part, comprises at least one backed item in described APMB package;
Backed item load-on module, for according to the definition of backed item comprised in described bag configuration file, the group mark of this backed item
Knowing and backed item type, load at least one backed item comprised in described APMB package, described backed item type includes that father is standby
Part item and sub-backed item;
Backed item is recovered queue and is added module, for searching described backed item class in the same group of backed item loaded identified
Type is the backed item of father's backed item, if finding, then and backed item described in the backed item loaded by described same group of mark
Type is that the backed item of sub-backed item is added in Backup and Restore queue;
Backed item display list adds module, for by the backup in Backup and Restore queue described in Backup and Restore process detection
, if the backed item type of the backed item detected is father's backed item, then this backed item is added in backed item display list.
The back-up device of bag configuration file the most according to claim 6, it is characterised in that the display list of described backed item adds
Add module to be additionally operable to the group of described group of mark with the described backed item that backed item type is father's backed item detected is identified phase
Same and described backed item type is that the backed item of sub-backed item is not added in backed item display list.
8. according to the back-up device of the bag configuration file described in claim 6 or 7, it is characterised in that described backed item display row
If the backed item type that table adds the backed item that module is additionally operable to detect is sub-backed item, then in described Backup and Restore queue
Search the described group of backed item that mark is identical with this backed item and described backed item type is father's backed item as target father backup
?;When not finding described target father's backed item, it is judged that whether this backed item is supported individually to back up, if this backed item is supported single
Solely backup, then add to this backed item in the display list of described backed item.
The back-up device of bag configuration file the most according to claim 6, it is characterised in that described backed item is recovered queue and added
If add module being additionally operable to not find described backed item type in the backed item loaded of described same group of mark is that father is standby
The backed item of part item, then judge whether this backed item is supported individually to back up, if if this backed item supports individually backup, then this is standby
Part item adds in described Backup and Restore list.
The back-up device of bag configuration file the most according to claim 6, it is characterised in that described bag configuration file is
AndroidManifest.xml file.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610508827.2A CN106201776B (en) | 2016-06-29 | 2016-06-29 | The backup method and terminal of bag configuration file |
CN201710856087.6A CN107608827B (en) | 2016-06-29 | 2016-06-29 | Backup method and terminal for package configuration file and related medium product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610508827.2A CN106201776B (en) | 2016-06-29 | 2016-06-29 | The backup method and terminal of bag configuration file |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710856087.6A Division CN107608827B (en) | 2016-06-29 | 2016-06-29 | Backup method and terminal for package configuration file and related medium product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106201776A true CN106201776A (en) | 2016-12-07 |
CN106201776B CN106201776B (en) | 2017-09-26 |
Family
ID=57464085
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710856087.6A Expired - Fee Related CN107608827B (en) | 2016-06-29 | 2016-06-29 | Backup method and terminal for package configuration file and related medium product |
CN201610508827.2A Expired - Fee Related CN106201776B (en) | 2016-06-29 | 2016-06-29 | The backup method and terminal of bag configuration file |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710856087.6A Expired - Fee Related CN107608827B (en) | 2016-06-29 | 2016-06-29 | Backup method and terminal for package configuration file and related medium product |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN107608827B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608827B (en) * | 2016-06-29 | 2020-12-18 | Oppo广东移动通信有限公司 | Backup method and terminal for package configuration file and related medium product |
CN113535482B (en) * | 2021-07-22 | 2024-03-19 | 华云数据控股集团有限公司 | Cloud backup chain data backup method and device, equipment and readable medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181012A1 (en) * | 2012-12-14 | 2014-06-26 | Samsung Electronics Co., Ltd. | Apparatus and method for contents back-up in home network system |
CN104268033A (en) * | 2014-09-22 | 2015-01-07 | 北京数字天域科技股份有限公司 | Storage method of terminal data, and method and device for restoring default settings of terminal |
CN104301142A (en) * | 2014-10-13 | 2015-01-21 | 杭州华三通信技术有限公司 | Backup method and device for configuration files |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7418619B1 (en) * | 2004-09-07 | 2008-08-26 | Emc Corporation | Backup and restore operations of interdependent system components |
JP5486793B2 (en) * | 2008-11-07 | 2014-05-07 | 株式会社日立製作所 | Remote copy management system, method and apparatus |
CN102289524B (en) * | 2011-09-26 | 2013-01-30 | 深圳市万兴软件有限公司 | Data recovery method and system |
US9223842B2 (en) * | 2011-12-05 | 2015-12-29 | Blackberry Limited | Apparatus, and associated method, for synchronizing a database |
CN102830996B (en) * | 2012-08-08 | 2016-01-20 | 广东欧珀移动通信有限公司 | A kind of fast starting method of handheld device |
CN103176864B (en) * | 2013-03-11 | 2016-03-23 | 广东欧珀移动通信有限公司 | A kind of backup method based on Android system, device and mobile terminal |
US9413610B2 (en) * | 2013-04-24 | 2016-08-09 | Ciena Corporation | Network-based DHCP server recovery |
CN104866389A (en) * | 2014-02-25 | 2015-08-26 | 北京奇虎科技有限公司 | Data recovery method as well as data backup method, device and system based on mobile operating system |
CN104281503A (en) * | 2014-09-30 | 2015-01-14 | 华为数字技术(成都)有限公司 | Data backup method and related system |
CN105183460B (en) * | 2015-08-14 | 2018-09-14 | 魅族科技(中国)有限公司 | A kind of list methods of exhibiting and terminal |
CN105373447B (en) * | 2015-10-23 | 2018-09-11 | 北京金山安全软件有限公司 | Data backup method and device and electronic equipment |
CN105279047B (en) * | 2015-11-02 | 2019-10-25 | Oppo广东移动通信有限公司 | Data backup device, method and Data Recapture Unit, method |
CN107608827B (en) * | 2016-06-29 | 2020-12-18 | Oppo广东移动通信有限公司 | Backup method and terminal for package configuration file and related medium product |
-
2016
- 2016-06-29 CN CN201710856087.6A patent/CN107608827B/en not_active Expired - Fee Related
- 2016-06-29 CN CN201610508827.2A patent/CN106201776B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181012A1 (en) * | 2012-12-14 | 2014-06-26 | Samsung Electronics Co., Ltd. | Apparatus and method for contents back-up in home network system |
CN104268033A (en) * | 2014-09-22 | 2015-01-07 | 北京数字天域科技股份有限公司 | Storage method of terminal data, and method and device for restoring default settings of terminal |
CN104301142A (en) * | 2014-10-13 | 2015-01-21 | 杭州华三通信技术有限公司 | Backup method and device for configuration files |
Also Published As
Publication number | Publication date |
---|---|
CN107608827A (en) | 2018-01-19 |
CN106201776B (en) | 2017-09-26 |
CN107608827B (en) | 2020-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8595489B1 (en) | Grouping and ranking of application permissions | |
CN112068936B (en) | Workflow management platform and workflow management system | |
BRPI0920057B1 (en) | system and method for quarantining incoming data while a screen of a mobile computing device is locked | |
CN107291347B (en) | Information display method and device | |
CN105988860A (en) | Method for executing application program and mobile device | |
US20150286342A1 (en) | System and method for displaying application data through tile objects | |
CN106126718A (en) | A kind of picture management method and terminal | |
CN107181858A (en) | A kind of method and terminal for showing notification message | |
CN112099684A (en) | Search display method and device and electronic equipment | |
US20190384460A1 (en) | Surfacing application functionality for an object | |
CN105955770A (en) | Application program uninstalling method and terminal | |
CN109948101A (en) | Page switching method, device, storage medium and electronic equipment | |
CN112948844A (en) | Control method and device and electronic equipment | |
CN103019556A (en) | Quick help information display system and quick help information display method | |
CN116541142A (en) | Task scheduling method, device, equipment, storage medium and computer program product | |
CN106484779B (en) | File operation method and device | |
CN116088716A (en) | Window management method and terminal equipment | |
CN106201776B (en) | The backup method and terminal of bag configuration file | |
CN106020616A (en) | Updating method and device for desktop quick linking icons | |
CN111694627B (en) | Desktop editing method and device | |
CN111198830B (en) | Identification method and device of mobile storage equipment, electronic equipment and storage medium | |
CN114489892A (en) | Data processing method, data processing device, computer readable storage medium and computer equipment | |
CN107621903B (en) | Double-touch-screen equipment and response control method thereof | |
CN107577422B (en) | Photo storage method and device based on double-domain space | |
CN105843607A (en) | Information displaying 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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170926 |