CN103246617B - Mobile terminal and data save method based on android system - Google Patents
Mobile terminal and data save method based on android system Download PDFInfo
- Publication number
- CN103246617B CN103246617B CN201210026245.2A CN201210026245A CN103246617B CN 103246617 B CN103246617 B CN 103246617B CN 201210026245 A CN201210026245 A CN 201210026245A CN 103246617 B CN103246617 B CN 103246617B
- Authority
- CN
- China
- Prior art keywords
- core
- data
- subregion
- application
- file
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a kind of mobile terminal, including: data partition, for preserving application data based on android system;Core subregion, the core data produced when running core application for being saved in;Installation unit, when installing described core application, creates first file corresponding with described core application in described data partition;Link unit, links to described core subregion by described first file, preserves to described core subregion with the core data that will produce when running described core application.According to technical scheme, it is possible in system factory reset or when encountering other problems, it is ensured that the independence of user kernel data, to protect the core data of user.Present invention also offers a kind of data save method based on android system.
Description
Technical field
The present invention relates to communication technical field, in particular to mobile terminal with based on Android
The data save method of system.
Background technology
The data of all application are placed on same data partition by mobile terminal based on Android platform
(data) under, if to protect the core data of oneself, it is necessary to by the way of backup, backup is not
Possess real-time, therefore, need to often update backup.Smart mobile phone is normally only owing to some is applied
Damage the system caused to hang, or the problem that some code causes, encounter this situation and will not damage
Bad user data, is only into not going system or cannot respond to operation.In this case, logical
Over recovery Default Value, system just can be properly functioning, but if data are not backed up in realtime, just
Loss of data can be caused.Such as, there are the contact person in mobile phone, note etc., in factory reset
After will all be cleared.
Accordingly, it would be desirable to solve when data do not have damaged, make operating system by factory reset
After recovering normal use, moreover it is possible to the technical problem that the core data of user is remained in real time.
Summary of the invention
In view of above-mentioned background technology, it is an object of the present invention to provide a kind of mobile terminal, this
Another bright purpose is to provide a kind of data save method based on android system, it is possible to pass through
Certain mode, enables the core data of user to be preserved in real time.
According to an aspect of the invention, it is provided a kind of mobile terminal, including: data partition, use
In preserving application data based on android system;Core subregion, being used for being saved in operation core should
With the core data produced during program;Installation unit, when installing described core application, in institute
State the first file that in data partition, establishment is corresponding with described core application;Link unit, will
Described first file links to described core subregion, will produce when running described core application
Raw core data preserves to described core subregion.
In technique scheme, it is preferable that described installation unit may include that judgment sub-unit,
Judge whether described core subregion exists second file corresponding with described core application, if
There is not the second file of described correspondence, then create and described core application in described core subregion
The second file that program is corresponding, to preserve described core data;Described link unit is additionally operable to institute
State described second file that the first file in data partition links in described core subregion.
In technique scheme, it is preferable that can also include: arrange unit, for by selection
Application program is set to core application.
In technique scheme, it is preferable that described judgment sub-unit is additionally operable to judge to be currently installed on
Whether application program is core application, if belonging to core application, then by described chain order
Described first file is linked to described core subregion by unit.
In technique scheme, it is preferable that can also include: detector unit, according to for described core
The flag bit that heart subregion adds, it is determined whether need the core data in described core subregion is carried out clearly
Remove.
According to technical scheme, core data and other data are separated, it is ensured that core number
According to independence, it is possible to real-time update core data, terminal goes wrong when, it is possible to protection
The core data of user, and guarantee that this core data is up-to-date.
According to a further aspect in the invention, additionally provide a kind of data based on android system to preserve
Method, including: step 202, create the core subregion for depositing core data, described core number
According to being the data produced when running core application;Step 204, is installing described core application
During program, in data partition, create first file corresponding with described core application, will
Described first file links to described core subregion, and wherein, described data partition is for preserving base
Memory block in the application data of android system;Step 206, by described first literary composition created
The link of part folder, preserves the core data produced when running described core application to described core
Heart subregion.
In technique scheme, it is preferable that described step 204 can also include: described installing
During core application, it is judged that whether described core subregion exists corresponding with described core application
The second file, if there is not the second file of described correspondence, then in described core subregion create
Build second file corresponding with described core application, to preserve described core data;By described
The first file in data partition links to described second file in described core subregion.
In technique scheme, it is preferable that described step 202 can also include: should by select
It is set to core application by program.
In technique scheme, it is preferable that described step 204 can also include: judge current peace
Whether the application program of dress is core application, if belonging to core application, then by described first
File links to described core subregion.
In technique scheme, it is preferable that can also include: add mark for described core subregion
Position, judges whether to need to carry out the core data in described core subregion clearly according to described flag bit
Remove.
According to technical scheme, core data and other data are separated, it is ensured that core number
According to independence, it is possible to real-time update core data, terminal goes wrong when, it is possible to protection
The core data of user, and guarantee that this core data is up-to-date.
Accompanying drawing explanation
Fig. 1 shows the block diagram of mobile terminal according to an embodiment of the invention;
Fig. 2 shows based on android system according to an embodiment of the invention data save method
Flow chart;
Fig. 3 shows based on android system according to an embodiment of the invention data save method
Flow chart.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the present invention, feature and advantage, below in conjunction with attached
The present invention is further described in detail by figure and detailed description of the invention.
Elaborate a lot of detail in the following description so that fully understanding the present invention, but,
The present invention can implement to use other to be different from other modes described here, therefore, and the present invention
It is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of mobile terminal according to an embodiment of the invention.
As it is shown in figure 1, mobile terminal 100 includes according to an embodiment of the invention: data partition
102, for preserving application data based on android system;Core subregion 104, is used for being saved in
The core data produced when running core application;Installation unit 106, is installing core application journey
During sequence, data partition 102 creates first file corresponding with core application;Chain order
Unit 108, the first file is linked to core subregion 104, with will run core application time
The core data produced preserves to core subregion 104.Link unit can also be used for running of mobile terminal core
The core data in described core subregion is called during heart application program.
Core data refers to need user data to be protected, and user can define core application, that
Core data to be protected is needed exactly in the data running the generation of this core application, and should
Core data is retained separately with the data (data that android system acquiescence preserves) typically deposited.
In technique scheme, it is preferable that installation unit 106 may include that judgment sub-unit
1062, it is judged that whether core subregion 104 exists second file corresponding with core application,
If there is not the second file of correspondence, then create and core application pair in core subregion 104
The second file answered, to preserve core data;Link unit 108 is additionally operable to data partition 102
In the first file link to described second file in described core subregion 104.
Use this on-link mode (OLM) so that core data can be saved in the memory block-core specified and divide
District, operating system then thinks being saved in data partition, to the first file of this core data
When operating, the operation actually the second file carried out.
In technique scheme, it is preferable that can also include: arrange unit 110, for selecting
The application program selected is set to core application.
In technique scheme, it is preferable that judgment sub-unit 1062 is additionally operable to judgement and is currently installed on
Application program whether be core application, if belonging to core application, then pass through link unit
First file is linked to core subregion 104 by 108.
In technique scheme, it is preferable that can also include: detector unit 112, according to for core
The flag bit that heart subregion 104 adds, it is determined whether need the core data in core subregion 104 is entered
Row is removed.Such as, can decide whether to format this core subregion according to this flag bit, if mark
Position is true, then format this core subregion, the most do not format this core subregion and only format other
Subregion, can also preserve the core data of user accordingly even when refresh version.
Using technical scheme, mobile terminal reinstalls core application at refreshing version
Time, whether detection core subregion exists the file that this application program is corresponding, if there is just using it
In core data, be otherwise created that new file and set up new linking relationship.
According to technical scheme, core data and other data are separated, it is ensured that core number
According to independence, it is possible to real-time update core data, terminal goes wrong when, it is possible to protection
The core data of user, and guarantee that this core data is up-to-date.
Fig. 2 shows based on android system according to an embodiment of the invention data save method
Flow chart.
As in figure 2 it is shown, based on android system according to an embodiment of the invention data preservation side
Method, including step 202, creates the core subregion for depositing core data, core data be
The data produced when running core application;Step 204, when installing core application,
In data partition, create first file corresponding with core application, by the first file link
To core subregion, wherein, data partition is for preserving application data based on android system
Memory block;Step 206, the link of the first file by creating, will run core application journey
The core data produced during sequence preserves to core subregion.
In technique scheme, it is preferable that step 204 can also include: core application is being installed
During program, it is judged that whether core subregion exists second file corresponding with core application, if
There is not the second file of correspondence, then in core subregion, create corresponding with core application the
Two files, to preserve core data;The first file in data partition is linked to core subregion
In the second file.
In technique scheme, it is preferable that step 202 can also include: the application journey that will select
Sequence is set to core application.
In technique scheme, it is preferable that step 204 can also include: judgement is currently installed on
Whether application program is core application, if belonging to core application, then by the first file clip chain
It is connected to core subregion.
In technique scheme, it is preferable that can also include: add flag bit for core subregion,
Judge whether to need the core data in core subregion to be purged according to flag bit.Such as, according to
This flag bit can decide whether to format this core subregion, if flag bit is true, then formatting should
Core subregion, does not the most format this core subregion and only formats other subregion, accordingly even when refresh
The core data of user can also be preserved by version.
Using technical scheme, mobile terminal reinstalls core application at refreshing version
Time, whether detection core subregion exists the file that this application program is corresponding, if there is just using it
In core data, be otherwise created that new file and set up new linking relationship.
According to technical scheme, core data and other data are separated, it is ensured that core number
According to independence, it is possible to real-time update core data, terminal goes wrong when, it is possible to protection
The core data of user, and guarantee that this core data is up-to-date.
Fig. 3 shows based on android system according to an embodiment of the invention data save method
Flow chart.
As it is shown on figure 3, in step 302, a newly-built core subregion, for preserving the core of user
Data, core data is the data produced when running the core application preset.
In step 304, set up applications.
In step 306, it is judged that whether the application program being currently installed on is core application, if judging
Result is no, then enter step 308, install this application program according to correlation technique;If judged result
It is yes, then enters step 310.
In step 310, check the core application whether existing in newly-built core subregion Yu being currently installed on
The most whether catalogue corresponding to program (has the file that there is the core data corresponding with this core application
Folder the-the second file), without corresponding catalogue, then enter step 312, at this core subregion
In create a directory, the file corresponding with this catalogue is for depositing the data of this core application, so
Rear entrance step 314;If having corresponding catalogue, then enter step 314.
In step 314, create corresponding with this core application under data partition (/data/data/)
File (the i.e. first file).
In step 316, (such as Symbolic Links, it comprises text word to create a link by order
Symbol string, is construed to one by operating system and points to alternative document or the path of catalogue), by this first literary composition
Part clip chain is connected to the respective directories under core subregion.By file (the first literary composition under data partition catalogue
Part presss from both sides) as source folder, need the file (the second file under core subregion) of link when
Do destination folder.
For system, such being designed without changes original framework, transports at core application
During row, (such as contact application during the related data that system produces when preserving and running core application
During operation, newly-built contact person, and preserve newly-built contact person), for a user, it is only necessary to straight
Connecing execution and preserve operation, system will be considered that this related data (core data) is saved in data partition
(data subregion), without amendment other place any, but when practical operation, because number
According to being only a link (being equivalent to the shortcut on computer) under subregion, to this first file
Operate, it practice, operation is the catalogue that core subregion is corresponding, the most just by corresponding core number
According to being saved in core subregion.
By just the core data of user directly being preserved to newly-built core subregion with upper type,
Achieve the isolation of data, can directly operate because data partition is user, and core subregion is only
There is system core application program to be operable to, add the security of data, when the data of data partition
Go wrong, or because some reason is such as mounted with the most adaptive installation file, cause system not
Can be properly functioning, need to carry out factory reset, or again brush version time, it is possible to preservation
The subregion of core data carries out specially treated.Such as:
When factory reset, need to confirm to remove core subregion, the most additionally confirming
Time, acquiescence does not remove this core subregion.
Or, add flag bit for core subregion, for arranging the need of formatting core subregion.
When refreshing version, first check for whether flag bit is true, if very, just format core and divide
District;Otherwise, do not format this core subregion, only remove other subregion, accordingly even when refresh version yet
The core data of user can be preserved.
Using technical scheme, mobile terminal reinstalls core application at refreshing version
Time, whether detection core subregion exists the file that this application program is corresponding, if there is just using it
In core data, be otherwise created that new file and set up new linking relationship.
Therefore, core data and other data are separated, it is ensured that the independence of data, it is possible in real time
More new data, terminal goes wrong when, it is possible to protection user data, and guarantees that data are up-to-date
's.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for
For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention
Within god and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention
Protection domain within.
Claims (8)
1. a mobile terminal, it is characterised in that including:
Data partition, for preserving application data based on android system;
Core subregion, the core data produced when running core application for being saved in;
Installation unit, when installing described core application, creates with described in described data partition
The first file that core application is corresponding;
Link unit, links to described core subregion by described first file, will run described core
The core data produced during heart application program preserves to described core subregion;
Whether described installation unit includes: judgment sub-unit, it is judged that exist with described in described core subregion
, if there is not the second file of described correspondence, then in institute in the second file that core application is corresponding
State the second file that in core subregion, establishment is corresponding with described core application, to preserve described core
Data;
Described link unit is additionally operable to that the first file in described data partition is linked to described core and divides
Described second file in district.
Mobile terminal the most according to claim 1, it is characterised in that also include:
Unit is set, for the application program of selection is set to core application.
Mobile terminal the most according to claim 2, it is characterised in that described judgment sub-unit is also
Whether it is core application for judging the application program being currently installed on, if belonging to core application,
Then by described link unit, described first file is linked to described core subregion.
Mobile terminal the most according to any one of claim 1 to 3, it is characterised in that also wrap
Include:
Detector unit, according to the flag bit added for described core subregion, it is determined whether need described core
Core data in heart subregion is purged.
5. a data save method based on android system, it is characterised in that including:
Step 202, creates the core subregion for depositing core data, and described core data is to run core
The data produced during heart application program;
Step 204, when installing described core application, in data partition, creates and described core
The first file that application program is corresponding, links to described core subregion by described first file, wherein,
Described data partition is the memory block for preserving application data based on android system;
Step 206, the link of described first file by creating, will run described core application journey
The core data produced during sequence preserves to described core subregion;
Wherein, described step 204 also includes:
When installing described core application, it is judged that whether described core subregion exists and described core
, if there is not the second file of described correspondence, then at described core in the second file that application program is corresponding
Heart subregion creates second file corresponding with described core application, to preserve described core data;
The first file in described data partition is linked to described second file in described core subregion
Folder.
Data save method based on android system the most according to claim 5, its feature exists
In, described step 202 also includes:
The application program of selection is set to core application.
Data save method based on android system the most according to claim 6, its feature exists
In, described step 204 also includes:
Judge whether the application program being currently installed on is core application, if belonging to core application,
Then described first file is linked to described core subregion.
8. according to the data preservation side based on android system according to any one of claim 5 to 7
Method, it is characterised in that also include:
Add flag bit for described core subregion, judge whether to need described core according to described flag bit
Core data in subregion is purged.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210026245.2A CN103246617B (en) | 2012-02-07 | 2012-02-07 | Mobile terminal and data save method based on android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210026245.2A CN103246617B (en) | 2012-02-07 | 2012-02-07 | Mobile terminal and data save method based on android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103246617A CN103246617A (en) | 2013-08-14 |
CN103246617B true CN103246617B (en) | 2016-08-17 |
Family
ID=48926145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210026245.2A Active CN103246617B (en) | 2012-02-07 | 2012-02-07 | Mobile terminal and data save method based on android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103246617B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138604A (en) * | 2015-08-07 | 2015-12-09 | 广东欧珀移动通信有限公司 | Terminal data processing method and apparatus |
CN105956487A (en) * | 2016-04-29 | 2016-09-21 | 乐视控股(北京)有限公司 | Data eliminating method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6611907B1 (en) * | 1999-10-21 | 2003-08-26 | Matsushita Electric Industrial Co., Ltd. | Semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card |
CN1831701A (en) * | 2005-03-11 | 2006-09-13 | 北京共创开源软件有限公司 | Operation system protection method based on virtual file system |
CN101635921A (en) * | 2009-07-31 | 2010-01-27 | 王德高 | Protection method of memory device based on mobile communication network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101046765A (en) * | 2006-03-29 | 2007-10-03 | 华为技术有限公司 | Method for positioning fault of software |
-
2012
- 2012-02-07 CN CN201210026245.2A patent/CN103246617B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6611907B1 (en) * | 1999-10-21 | 2003-08-26 | Matsushita Electric Industrial Co., Ltd. | Semiconductor memory card access apparatus, a computer-readable recording medium, an initialization method, and a semiconductor memory card |
CN1831701A (en) * | 2005-03-11 | 2006-09-13 | 北京共创开源软件有限公司 | Operation system protection method based on virtual file system |
CN101635921A (en) * | 2009-07-31 | 2010-01-27 | 王德高 | Protection method of memory device based on mobile communication network |
Also Published As
Publication number | Publication date |
---|---|
CN103246617A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893084B (en) | Version upgrading method and terminal device | |
CN102236764B (en) | Method and monitoring system for Android system to defend against desktop information attack | |
CN107992243A (en) | A kind of information displaying method and device, terminal, readable storage medium storing program for executing | |
CN108509209A (en) | A kind of generation method, device, computer equipment and the storage medium of resource packet | |
TW200519729A (en) | Method for restoring backup data | |
CN102609304B (en) | Management method for internal third-party applications of Android mobile phone | |
CN102591747A (en) | Data backup method and device | |
CN109800098A (en) | Service exception node positioning method, device, computer equipment and storage medium | |
CN103294955B (en) | Macrovirus checking and killing method and system | |
CN105184153A (en) | Intelligent terminal and multi-stage container based application running method thereof | |
CN103246617B (en) | Mobile terminal and data save method based on android system | |
CN103019764B (en) | The detection method of Andriod resource bag installability and system | |
CN104615662A (en) | Data processing method and device and terminal device | |
CN101201768A (en) | Method and module for storing and recovering data | |
CN101430705A (en) | Memory method and apparatus based on embedded database | |
CN104834749A (en) | File synchronization method and synchronization system for mobile terminal and PC terminal | |
CN106528480A (en) | Method and system of preventing hot swapping data from missing, and terminal equipment | |
CN104750864A (en) | Universal text checking method | |
CN106155746A (en) | Installation file processing method and device and server | |
CN110865903A (en) | Node abnormal reconnection multiplexing method and system based on erasure code distributed storage | |
CN102073523B (en) | Realize the method and device of software version synchronization | |
CN104765631B (en) | A kind of application recovery method and device of mobile terminal | |
CN105827739B (en) | Contact information synchronous method, device, server and system | |
CN104484241A (en) | Terminal system file backup and recovery method and device | |
CN106649756A (en) | Log synchronization 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |