CN103246617A - Mobile terminal and data saving method based on Android system - Google Patents
Mobile terminal and data saving method based on Android system Download PDFInfo
- Publication number
- CN103246617A CN103246617A CN2012100262452A CN201210026245A CN103246617A CN 103246617 A CN103246617 A CN 103246617A CN 2012100262452 A CN2012100262452 A CN 2012100262452A CN 201210026245 A CN201210026245 A CN 201210026245A CN 103246617 A CN103246617 A CN 103246617A
- Authority
- CN
- China
- Prior art keywords
- core
- data
- application
- subregion
- 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.)
- Granted
Links
Images
Landscapes
- Telephone Function (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a mobile terminal. The mobile terminal comprises a data subarea, a core subarea, an installation unit and a linkage unit. The data subarea is used for saving application data based on an Android system; the core subarea is used for storing core data generated during the operation of a core application program; the installation unit is used for creating a first folder corresponding to the core application program in the data subarea during the installation of the core application program; and the linkage unit is used for linking the first folder to the core subarea and saving the core data generated during the operation of the core application program in the core subarea. By means of the technical scheme, independence of the core data of a user can be guaranteed during restoring of factory settings or meeting of other issues, so that the user core data are protected. The invention further provides a data storage method based on the Android system.
Description
Technical field
The present invention relates to communication technical field, in particular to portable terminal with based on the data save method of Android system.
Background technology
Be placed under the same data partition (data) based on the portable terminal of the Android platform data with all application, if the own core data of protection, must be by the mode of backup, backup does not possess real-time, therefore, needs often to upgrade to back up.Smart mobile phone mostly just is because some use to damage the system that causes hangs, or the problem that causes of some code, runs into this situation and can not damage user data, only is into not go to system or can't operation response.In this case, by factory reset, system just can normally move, if still data are not backed up in realtime, will cause loss of data.For example, there are contact person in the mobile phone, note etc., after factory reset, will all be cleared.
Therefore, need to solve when data are not damaged, after making that operating system recovery is normal and use by factory reset, the technical matters that user's core data can also be remained in real time.
Summary of the invention
Consider the above-mentioned background technology, an object of the present invention is to provide a kind of portable terminal, another object of the present invention provides a kind of data save method based on the Android system, can pass through certain mode, and user's core data can be preserved in real time.
According to an aspect of the present invention, provide a kind of portable terminal, having comprised: data partition is used for preserving the application data based on the Android system; The core subregion, the core data that produces when being used for being kept at the operation core application; Installation unit when described core application is installed, is created first file corresponding with described core application in described data partition; Link unit links to described core subregion with described first file, is saved to described core subregion with the core data that will produce when moving described core application.
In technique scheme, preferably, described installation unit can comprise: judgment sub-unit, judge and whether have second file corresponding with described core application in the described core subregion, if there is not second file of described correspondence, then in described core subregion, create second file corresponding with described core application, to preserve described core data; Described link unit also is used for first file with described data partition and links to described second file in the described core subregion.
In technique scheme, preferably, can also comprise: the unit is set, and the application program that is used for selecting is set to core application.
In technique scheme, preferably, described judgment sub-unit also is used for judging whether the application program of current installation is core application, if belong to core application, then by described link unit described first file is linked to described core subregion.
In technique scheme, preferably, can also comprise: detecting unit according to being the zone bit that described core subregion adds, determines whether and need remove the core data in the described core subregion.
According to technical scheme of the present invention, core data and other data are separated, guaranteed the independence of core data; can the real-time update core data; when terminal goes wrong, can protect user's core data, and guarantee that this core data is up-to-date.
According to a further aspect in the invention, also provide a kind of data save method based on the Android system, having comprised: step 202, create the core subregion that is used for depositing core data, described core data is the data that produce when the operation core application; Step 204, when described core application is installed, in data partition, create first file corresponding with described core application, described first file is linked to described core subregion, wherein, described data partition is for the memory block of preserving based on the application data of Android system; Step 206, by the link of described first file created, the core data that will produce when the described core application of operation is saved to described core subregion.
In technique scheme, preferably, described step 204 can also comprise: when described core application is installed, judge and whether have second file corresponding with described core application in the described core subregion, if there is not second file of described correspondence, then in described core subregion, create second file corresponding with described core application, to preserve described core data; First file in the described data partition is linked to described second file in the described core subregion.
In technique scheme, preferably, described step 202 can also comprise: the application program of selecting is set to core application.
In technique scheme, preferably, described step 204 can also comprise: whether the application program of judging current installation is core application, if belong to core application, then described first file is linked to described core subregion.
In technique scheme, preferably, can also comprise: be that described core subregion adds zone bit, judge whether that according to described zone bit needs remove the core data in the described core subregion.
According to technical scheme of the present invention, core data and other data are separated, guaranteed the independence of core data; can the real-time update core data; when terminal goes wrong, can protect user's core data, and guarantee that this core data is up-to-date.
Description of drawings
Fig. 1 shows the block diagram of portable terminal according to an embodiment of the invention;
Fig. 2 shows according to an embodiment of the invention the process flow diagram based on the data save method of Android system;
Fig. 3 shows according to an embodiment of the invention the process flow diagram based on the data save method of Android system.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments the present invention is further described in detail.
Set forth a lot of details in the following description so that fully understand the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following public specific embodiment.
Fig. 1 shows the block diagram of portable terminal according to an embodiment of the invention.
As shown in Figure 1, portable terminal 100 comprises according to an embodiment of the invention: data partition 102 is used for preserving the application data based on the Android system; Core subregion 104, the core data that produces when being used for being kept at the operation core application; Installation unit 106 when core application is installed, is created first file corresponding with core application in data partition 102; Link unit 108 links to core subregion 104 with first file, is saved to core subregion 104 with the core data that will produce when moving core application.Link unit calls the core data in the described core subregion when also can be used for the running of mobile terminal core application.
Core data refers to the user data that needs protection; the user can define core application; the data that produce at this core application of operation are exactly the core data that needs protection so, and this core data and the data of generally depositing (data that the Android system default is preserved) are separated preservation.
In technique scheme, preferably, installation unit 106 can comprise: judgment sub-unit 1062, judge and whether have second file corresponding with core application in the core subregion 104, if there is not the second corresponding file, then in core subregion 104, create second file corresponding with core application, to preserve core data; Link unit 108 also is used for first file with data partition 102 and links to described second file in the described core subregion 104.
Adopt this on-link mode (OLM), make core data can be kept at specified memory-core subregion, operating system is then thought and being kept in the data partition of this core data when first file is operated, is actually the operation that second file is carried out.
In technique scheme, preferably, can also comprise: unit 110 is set, and the application program that is used for selecting is set to core application.
In technique scheme, preferably, judgment sub-unit 1062 also is used for judging whether the application program of current installation is core application, if belong to core application, then by link unit 108 first file is linked to core subregion 104.
In technique scheme, preferably, can also comprise: detecting unit 112 according to being the zone bit that core subregion 104 adds, determines whether and need remove the core data in the core subregion 104.For example, can judge whether to format this core subregion according to this zone bit, if zone bit is true, then format this core subregion, otherwise do not format this core subregion and only format other subregion, user's core data can be preserved even refresh version so yet.
Adopt technical scheme of the present invention, portable terminal is when refreshing version and reinstall core application, detect the core subregion and whether have this application program corresponding file folder, if there is the core data that just uses wherein, otherwise just creates new file and set up new linking relationship.
According to technical scheme of the present invention, core data and other data are separated, guaranteed the independence of core data; can the real-time update core data; when terminal goes wrong, can protect user's core data, and guarantee that this core data is up-to-date.
Fig. 2 shows according to an embodiment of the invention the process flow diagram based on the data save method of Android system.
As shown in Figure 2, based on the data save method of Android system, comprising according to an embodiment of the invention: step 202, create the core subregion that is used for depositing core data, core data is the data that produce when the operation core application; Step 204 is when installing core application, in data partition, create first file corresponding with core application, first file is linked to the core subregion, and wherein, data partition is for the memory block of preserving based on the application data of Android system; Step 206, by the link of first file created, the core data that will produce when the operation core application is saved to the core subregion.
In technique scheme, preferably, step 204 can also comprise: when core application is installed, judge and whether have second file corresponding with core application in the core subregion, if there is not the second corresponding file, then in the core subregion, create second file corresponding with core application, to preserve core data; First file in the data partition is linked to second file in the core subregion.
In technique scheme, preferably, step 202 can also comprise: the application program of selecting is set to core application.
In technique scheme, preferably, step 204 can also comprise: whether the application program of judging current installation is core application, if belong to core application, then first file is linked to the core subregion.
In technique scheme, preferably, can also comprise: be that the core subregion adds zone bit, judge whether that according to zone bit needs remove the core data in the core subregion.For example, can judge whether to format this core subregion according to this zone bit, if zone bit is true, then format this core subregion, otherwise do not format this core subregion and only format other subregion, user's core data can be preserved even refresh version so yet.
Adopt technical scheme of the present invention, portable terminal is when refreshing version and reinstall core application, detect the core subregion and whether have this application program corresponding file folder, if there is the core data that just uses wherein, otherwise just creates new file and set up new linking relationship.
According to technical scheme of the present invention, core data and other data are separated, guaranteed the independence of core data; can the real-time update core data; when terminal goes wrong, can protect user's core data, and guarantee that this core data is up-to-date.
Fig. 3 shows according to an embodiment of the invention the process flow diagram based on the data save method of Android system.
As shown in Figure 3, in step 302, a newly-built core subregion is used for preserving user's core data, and core data is the data that produce when the core application that operation is preset.
In step 304, set up applications.
In step 306, judge whether the application program of current installation is core application, if judged result then enters step 308 for not, according to correlation technique this application program is installed; If judged result is for being then to enter step 310.
In step 310, check whether there be the catalogue corresponding with the core application of current installation in the newly-built core subregion (file-second the file whether corresponding core data of existence and this core application is namely arranged), if there is not corresponding catalogue, then enter step 312, in this core subregion, create a directory, press from both sides the data that are used for depositing this core application with this catalogue corresponding file, enter step 314 then; If have corresponding catalogue, then enter step 314.
In step 314, in data partition (/data/data/) establishment and this core application corresponding file folder (i.e. first file) down.
In step 316, create a link (for example Symbolic Links, it comprises text-string, is interpreted as the path of a sensing alternative document or catalogue by operating system) by order, this first file is linked to respective directories under the core subregion.As source folder, need the file (second file under the core subregion) of link as destination folder the file under the data partition catalogue (first file).
For system, original framework is not changed in such design, when core application moves, during related data that system produces when preserving the operation core application (when moving as contact application, newly-built contact person, and preserve newly-built contact person), for the user, only need directly to carry out and preserve operation, system can think that this related data (core data) is kept at data partition (data subregion), and do not need to revise any other place, but when practical operation, because under the data partition only be a link (being equivalent to the shortcut on the computer), this first file is operated, in fact, operation be the catalogue of core subregion correspondence, also just the core data of correspondence has been saved in the core subregion.
By just user's core data directly being saved to newly-built core subregion with upper type, realized the isolation of data, can direct control because data partition is the user, and the core subregion has only system core application program to operate, increased the security of data, when the data of data partition go wrong, perhaps because some reason has for example been installed not adaptive installation file, cause system normally not move, need carry out factory reset, when perhaps brushing version again, just can carry out special processing to the subregion of preserving core data.For example:
When factory reset, need to confirm to remove the core subregion, when additionally not confirming, acquiescence is not removed this core subregion.
Perhaps, for the core subregion adds zone bit, be used for arranging whether need to format the core subregion.When refreshing version, at first whether the checkmark position is true, if be true, just formats the core subregion; Otherwise, do not format this core subregion, only remove other subregion, also user's core data can be preserved even refresh version like this.
Adopt technical scheme of the present invention, portable terminal is when refreshing version and reinstall core application, detect the core subregion and whether have this application program corresponding file folder, if there is the core data that just uses wherein, otherwise just creates new file and set up new linking relationship.
Therefore, with core data and other data separately, guaranteed the independence of data, can the real-time update data, when terminal goes wrong, can protect user data, and guarantee that data are up-to-date.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a portable terminal is characterized in that, comprising:
Data partition is used for preserving the application data based on the Android system;
The core subregion, the core data that produces when being used for being kept at the operation core application;
Installation unit when described core application is installed, is created first file corresponding with described core application in described data partition;
Link unit links to described core subregion with described first file, is saved to described core subregion with the core data that will produce when moving described core application.
2. portable terminal according to claim 1, it is characterized in that, described installation unit comprises: judgment sub-unit, judge and whether have second file corresponding with described core application in the described core subregion, if there is not second file of described correspondence, then in described core subregion, create second file corresponding with described core application, to preserve described core data;
Described link unit also is used for first file with described data partition and links to described second file in the described core subregion.
3. portable terminal according to claim 1 is characterized in that, also comprises:
The unit is set, and the application program that is used for selecting is set to core application.
4. portable terminal according to claim 3, it is characterized in that, described judgment sub-unit also is used for judging whether the application program of current installation is core application, if belong to core application, then by described link unit described first file is linked to described core subregion.
5. according to each described portable terminal in the claim 1 to 4, it is characterized in that, also comprise:
Detecting unit according to being the zone bit that described core subregion adds, determines whether and need remove the core data in the described core subregion.
6. the data save method based on the Android system is characterized in that, comprising:
Step 202 is created the core subregion that is used for depositing core data, and described core data is the data that produce when the operation core application;
Step 204, when described core application is installed, in data partition, create first file corresponding with described core application, described first file is linked to described core subregion, wherein, described data partition is for the memory block of preserving based on the application data of Android system;
Step 206, by the link of described first file created, the core data that will produce when the described core application of operation is saved to described core subregion.
7. the data save method based on the Android system according to claim 6 is characterized in that, described step 204 also comprises:
When described core application is installed, judge and whether have second file corresponding with described core application in the described core subregion, if there is not second file of described correspondence, then in described core subregion, create second file corresponding with described core application, to preserve described core data;
First file in the described data partition is linked to described second file in the described core subregion.
8. the data save method based on the Android system according to claim 6 is characterized in that, described step 202 also comprises:
The application program of selecting is set to core application.
9. the data save method based on the Android system according to claim 8 is characterized in that, described step 204 also comprises:
Whether the application program of judging current installation is core application, if belong to core application, then described first file is linked to described core subregion.
10. according to each described data save method based on the Android system in the claim 7 to 9, it is characterized in that, also comprise:
Be that described core subregion adds zone bit, judge whether that according to described zone bit needs remove the core data in the described core subregion.
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 true CN103246617A (en) | 2013-08-14 |
CN103246617B 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) |
Cited By (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 (4)
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 |
CN101046765A (en) * | 2006-03-29 | 2007-10-03 | 华为技术有限公司 | Method for positioning fault of software |
CN101635921A (en) * | 2009-07-31 | 2010-01-27 | 王德高 | Protection method of memory device based on mobile communication network |
-
2012
- 2012-02-07 CN CN201210026245.2A patent/CN103246617B/en active Active
Patent Citations (4)
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 |
CN101046765A (en) * | 2006-03-29 | 2007-10-03 | 华为技术有限公司 | Method for positioning fault of software |
CN101635921A (en) * | 2009-07-31 | 2010-01-27 | 王德高 | Protection method of memory device based on mobile communication network |
Cited By (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 |
Also Published As
Publication number | Publication date |
---|---|
CN103246617B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102855138B (en) | The hold-up interception method of a kind of API, device and mobile terminal | |
US20070232265A1 (en) | Method of security management for wireless mobile device and apparatus for security management using the method | |
CN102945192A (en) | Data backup and recovery method and intelligent mobile terminal | |
CN104239140A (en) | Mobile terminal as well as method and device for controlling switching of operation systems of mobile terminal | |
CN102236764B (en) | Method and monitoring system for Android system to defend against desktop information attack | |
CN102968357B (en) | A kind of distributed communication equipment method for upgrading software and system | |
CN102103470A (en) | Memory-expandable electronic equipment and memory expanding method | |
CN105511928A (en) | System upgrading device and method | |
CN104572207B (en) | A kind of APP expansion use methods and smart accessories based on smart accessories | |
CN107832105A (en) | A kind of application program launching method, starter and computer-readable recording medium | |
CN104133730A (en) | Method and device for repairing system abnormality and mobile terminal | |
CN105591778A (en) | Method and system for updating configuration file in distributed system | |
CN104270534A (en) | Terminal equipment control method and device | |
CN102938817A (en) | Storage mount achieving method and device under recovery mode of mobile phone | |
CN106547486A (en) | A kind of data migration method and device | |
CN104636154B (en) | Application program installation method and device | |
CN102883017B (en) | terminal and terminal management method | |
CN104461648A (en) | OTA upgrade backing-up method and system for intelligent terminals | |
CN104503790A (en) | Application version management method and system and smart terminal | |
CN103246617A (en) | Mobile terminal and data saving method based on Android system | |
CN106126289A (en) | File loading method and mobile terminal are installed in a kind of application | |
CN105653304A (en) | Method for switching operation mode, device for switching operation mode, and terminal | |
CN101022633B (en) | Allocation data recovering method, system and device | |
CN104468947A (en) | Information processing method and electronic equipment | |
CN107783633A (en) | A kind of method, terminal and computer-readable recording medium for managing application program |
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 |