[go: up one dir, main page]

CN103246617B - Mobile terminal and data save method based on android system - Google Patents

Mobile terminal and data save method based on android system Download PDF

Info

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
application
file
partition
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.)
Expired - Fee Related
Application number
CN201210026245.2A
Other languages
Chinese (zh)
Other versions
CN103246617A (en
Inventor
阳得常
燕青洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201210026245.2A priority Critical patent/CN103246617B/en
Publication of CN103246617A publication Critical patent/CN103246617A/en
Application granted granted Critical
Publication of CN103246617B publication Critical patent/CN103246617B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供了一种移动终端,包括:数据分区,用于保存基于Android系统的应用数据;核心分区,用于保存在运行核心应用程序时产生的核心数据;安装单元,在安装所述核心应用程序时,在所述数据分区中创建与所述核心应用程序对应的第一文件夹;链接单元,将所述第一文件夹链接至所述核心分区,以将在运行所述核心应用程序时产生的核心数据保存至所述核心分区。根据本发明的技术方案,能够在系统恢复出厂设置或碰到其他问题时,保证用户核心数据的独立性,以保护用户的核心数据。本发明还提供了一种基于Android系统的数据保存方法。

The present invention provides a mobile terminal, comprising: a data partition for storing application data based on the Android system; a core partition for storing core data generated when running a core application; an installation unit for storing the core application program, create a first folder corresponding to the core application program in the data partition; link unit, link the first folder to the core partition, so that when the core application program is running The generated core data is saved to the core partition. According to the technical solution of the present invention, when the system restores factory settings or encounters other problems, the independence of the user's core data can be guaranteed to protect the user's core data. The invention also provides a data saving method based on the Android system.

Description

移动终端和基于Android系统的数据保存方法Mobile terminal and data storage method based on Android system

技术领域 technical field

本发明涉及通信技术领域,具体而言,涉及移动终端和基于Android系统的数据保存方法。The invention relates to the field of communication technology, in particular to a mobile terminal and a data storage method based on an Android system.

背景技术 Background technique

基于Android平台的移动终端将所有应用的数据放在同一个数据分区(data)下,如果要保护自己的核心数据,必须通过备份的方式,备份不具备实时性,因此,需经常更新备份。智能手机通常仅仅是由于某些应用损坏导致的系统挂掉,或者是某些代码导致的问题,碰到这种情况不会损坏用户数据,仅仅是进不去系统或者是无法响应操作。在这种情况下,通过恢复出厂设置,系统就能够正常运行,但是如果数据没有实时备份,就会导致数据丢失。例如,存在手机里的联系人、短信等,在恢复出厂设置后将全部被清空掉。Mobile terminals based on the Android platform put all application data under the same data partition (data). If you want to protect your own core data, you must use a backup method. The backup does not have real-time performance, so the backup needs to be updated frequently. Smartphones usually just hang up the system due to some application damage, or some codes cause problems. In this case, user data will not be damaged, but the system cannot be accessed or cannot respond to operations. In this case, by restoring the factory settings, the system can run normally, but if the data is not backed up in real time, it will lead to data loss. For example, the contacts, text messages, etc. stored in the mobile phone will all be cleared after the factory settings are restored.

因此,需要解决在数据没有被损坏时,通过恢复出厂设置使操作系统恢复正常使用后,还能将用户的核心数据实时保留下来的技术问题。Therefore, it is necessary to solve the technical problem that the user's core data can be preserved in real time after the operating system is restored to normal use by restoring the factory settings when the data is not damaged.

发明内容 Contents of the invention

考虑到上述背景技术,本发明的一个目的是提供一种移动终端,本发明的另一个目的是提供一种基于Android系统的数据保存方法,能够通过某种方式,使用户的核心数据能够被实时保存。In view of the above-mentioned background technology, an object of the present invention is to provide a mobile terminal, and another object of the present invention is to provide a data storage method based on the Android system, which can enable the user's core data to be saved in real time in a certain way. save.

根据本发明的一个方面,提供了一种移动终端,包括:数据分区,用于保存基于Android系统的应用数据;核心分区,用于保存在运行核心应用程序时产生的核心数据;安装单元,在安装所述核心应用程序时,在所述数据分区中创建与所述核心应用程序对应的第一文件夹;链接单元,将所述第一文件夹链接至所述核心分区,以将在运行所述核心应用程序时产生的核心数据保存至所述核心分区。According to one aspect of the present invention, a mobile terminal is provided, including: a data partition for storing application data based on an Android system; a core partition for storing core data generated when running a core application program; an installation unit for storing When the core application program is installed, a first folder corresponding to the core application program is created in the data partition; a link unit links the first folder to the core partition, so that the running The core data generated when the core application program is described is saved to the core partition.

在上述技术方案中,优选地,所述安装单元可以包括:判断子单元,判断所述核心分区中是否存在与所述核心应用程序对应的第二文件夹,若不存在所述对应的第二文件夹,则在所述核心分区中创建与所述核心应用程序对应的第二文件夹,以保存所述核心数据;所述链接单元还用于将所述数据分区中的第一文件夹链接至所述核心分区中的所述第二文件夹。In the above technical solution, preferably, the installation unit may include: a judging subunit, judging whether there is a second folder corresponding to the core application program in the core partition, if there is no corresponding second folder folder, then create a second folder corresponding to the core application program in the core partition to save the core data; the link unit is also used to link the first folder in the data partition to the second folder in the core partition.

在上述技术方案中,优选地,还可以包括:设置单元,用于将选择的应用程序设置为核心应用程序。In the above technical solution, preferably, it may further include: a setting unit, configured to set the selected application program as the core application program.

在上述技术方案中,优选地,所述判断子单元还用于判断当前安装的应用程序是否是核心应用程序,若属于核心应用程序,则通过所述链接单元将所述第一文件夹链接至所述核心分区。In the above technical solution, preferably, the judging subunit is also used to judge whether the currently installed application program is a core application program, and if it belongs to a core application program, link the first folder to the The core partition.

在上述技术方案中,优选地,还可以包括:检测单元,根据为所述核心分区添加的标志位,确定是否需要对所述核心分区中的核心数据进行清除。In the above technical solution, preferably, it may further include: a detection unit, which determines whether the core data in the core partition needs to be cleared according to the flag bit added for the core partition.

根据本发明的技术方案,将核心数据和其它数据分开,确保了核心数据的独立性,能够实时更新核心数据,在终端出现问题的时候,能够保护用户的核心数据,并确保该核心数据是最新的。According to the technical solution of the present invention, the core data is separated from other data, the independence of the core data is ensured, the core data can be updated in real time, and the core data of the user can be protected when the terminal has a problem, and the core data can be guaranteed to be up-to-date of.

根据本发明的另一方面,还提供了一种基于Android系统的数据保存方法,包括:步骤202,创建用于存放核心数据的核心分区,所述核心数据是在运行核心应用程序时产生的数据;步骤204,在安装所述核心应用程序时,在数据分区中,创建与所述核心应用程序对应的第一文件夹,将所述第一文件夹链接至所述核心分区,其中,所述数据分区是用于保存基于Android系统的应用数据的存储区;步骤206,通过创建的所述第一文件夹的链接,将在运行所述核心应用程序时产生的核心数据保存至所述核心分区。According to another aspect of the present invention, there is also provided a data storage method based on the Android system, comprising: step 202, creating a core partition for storing core data, the core data being data generated when running a core application program ; Step 204, when installing the core application, in the data partition, create a first folder corresponding to the core application, and link the first folder to the core partition, wherein the The data partition is a storage area for storing application data based on the Android system; step 206, through the created link of the first folder, the core data generated when running the core application program is saved to the core partition .

在上述技术方案中,优选地,所述步骤204还可以包括:在安装所述核心应用程序时,判断所述核心分区中是否存在与所述核心应用程序对应的第二文件夹,若不存在所述对应的第二文件夹,则在所述核心分区中创建与所述核心应用程序对应的第二文件夹,以保存所述核心数据;将所述数据分区中的第一文件夹链接至所述核心分区中的所述第二文件夹。In the above technical solution, preferably, the step 204 may further include: when installing the core application program, judging whether there is a second folder corresponding to the core application program in the core partition, if not For the corresponding second folder, create a second folder corresponding to the core application program in the core partition to save the core data; link the first folder in the data partition to The second folder in the core partition.

在上述技术方案中,优选地,所述步骤202还可以包括:将选择的应用程序设置为核心应用程序。In the above technical solution, preferably, step 202 may further include: setting the selected application program as a core application program.

在上述技术方案中,优选地,所述步骤204还可以包括:判断当前安装的应用程序是否是核心应用程序,若属于核心应用程序,则将所述第一文件夹链接至所述核心分区。In the above technical solution, preferably, the step 204 may further include: judging whether the currently installed application is a core application, and if it is a core application, linking the first folder to the core partition.

在上述技术方案中,优选地,还可以包括:为所述核心分区添加标志位,根据所述标志位判断是否需要对所述核心分区中的核心数据进行清除。In the above technical solution, preferably, it may further include: adding a flag bit to the core partition, and judging whether the core data in the core partition needs to be cleared according to the flag bit.

根据本发明的技术方案,将核心数据和其它数据分开,确保了核心数据的独立性,能够实时更新核心数据,在终端出现问题的时候,能够保护用户的核心数据,并确保该核心数据是最新的。According to the technical solution of the present invention, the core data is separated from other data, the independence of the core data is ensured, the core data can be updated in real time, and the core data of the user can be protected when the terminal has a problem, and the core data can be guaranteed to be up-to-date of.

附图说明 Description of drawings

图1示出了根据本发明的实施例的移动终端的框图;Fig. 1 shows a block diagram of a mobile terminal according to an embodiment of the present invention;

图2示出了根据本发明的实施例的基于Android系统的数据保存方法的流程图;Fig. 2 shows the flow chart of the data preservation method based on the Android system according to an embodiment of the present invention;

图3示出了根据本发明的实施例的基于Android系统的数据保存方法的流程图。Fig. 3 shows a flow chart of a data saving method based on an Android system according to an embodiment of the present invention.

具体实施方式 detailed description

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明并不限于下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the present invention is not limited to the specific embodiments disclosed below limit.

图1示出了根据本发明的实施例的移动终端的框图。FIG. 1 shows a block diagram of a mobile terminal according to an embodiment of the present invention.

如图1所示,根据本发明的实施例的移动终端100包括:数据分区102,用于保存基于Android系统的应用数据;核心分区104,用于保存在运行核心应用程序时产生的核心数据;安装单元106,在安装核心应用程序时,在数据分区102中创建与核心应用程序对应的第一文件夹;链接单元108,将第一文件夹链接至核心分区104,以将在运行核心应用程序时产生的核心数据保存至核心分区104。链接单元也可用于移动终端运行核心应用程序时调用所述核心分区中的核心数据。As shown in FIG. 1 , a mobile terminal 100 according to an embodiment of the present invention includes: a data partition 102 for storing application data based on an Android system; a core partition 104 for storing core data generated when running a core application program; The installation unit 106, when installing the core application program, creates a first folder corresponding to the core application program in the data partition 102; the link unit 108 links the first folder to the core partition 104, so that the core application program will be run The core data generated during the process is saved to the core partition 104. The link unit can also be used to call the core data in the core partition when the mobile terminal runs the core application program.

核心数据是指需要保护的用户数据,用户可以定义核心应用程序,那么在运行该核心应用程序产生的数据就是需要保护的核心数据,并且将该核心数据与一般存放的数据(Android系统默认保存的数据)分开保存。Core data refers to the user data that needs to be protected. The user can define a core application program, then the data generated by running the core application program is the core data that needs to be protected. data) are stored separately.

在上述技术方案中,优选地,安装单元106可以包括:判断子单元1062,判断核心分区104中是否存在与核心应用程序对应的第二文件夹,若不存在对应的第二文件夹,则在核心分区104中创建与核心应用程序对应的第二文件夹,以保存核心数据;链接单元108还用于将数据分区102中的第一文件夹链接至所述核心分区104中的所述第二文件夹。In the above technical solution, preferably, the installation unit 106 may include: a judging subunit 1062, judging whether there is a second folder corresponding to the core application program in the core partition 104, if there is no corresponding second folder, then in A second folder corresponding to the core application program is created in the core partition 104 to store core data; the link unit 108 is also used to link the first folder in the data partition 102 to the second folder in the core partition 104. folder.

采用这种链接方式,使得核心数据能够保存在指定的存储区-核心分区,而操作系统则认为该核心数据的保存在数据分区中,在对第一文件夹进行操作时,实际上是对第二文件夹进行的操作。With this link method, the core data can be saved in the specified storage area-the core partition, but the operating system thinks that the core data is stored in the data partition. When operating on the first folder, it is actually on the second The operations performed by the second folder.

在上述技术方案中,优选地,还可以包括:设置单元110,用于将选择的应用程序设置为核心应用程序。In the above technical solution, preferably, it may further include: a setting unit 110, configured to set the selected application program as the core application program.

在上述技术方案中,优选地,判断子单元1062还用于判断当前安装的应用程序是否是核心应用程序,若属于核心应用程序,则通过链接单元108将第一文件夹链接至核心分区104。In the above technical solution, preferably, the judging subunit 1062 is also used to judge whether the currently installed application is a core application, and if it is a core application, link the first folder to the core partition 104 through the linking unit 108 .

在上述技术方案中,优选地,还可以包括:检测单元112,根据为核心分区104添加的标志位,确定是否需要对核心分区104中的核心数据进行清除。例如,根据该标志位可以判断是否格式化该核心分区,如果标志位为真,则格式化该核心分区,否则不格式化该核心分区而只格式化其它分区,这样即使刷新版本也可以将用户的核心数据保存下来。In the above technical solution, preferably, it may further include: a detection unit 112 , which determines whether to clear the core data in the core partition 104 according to the flag bit added for the core partition 104 . For example, it can be judged whether to format the core partition according to the flag bit, if the flag bit is true, then format the core partition, otherwise the core partition is not formatted but only other partitions are formatted, so even if the version is refreshed, the user The core data is saved.

采用本发明的技术方案,移动终端在刷新版本重新安装核心应用程序时,检测核心分区是否存在该应用程序对应的文件夹,如果存在就使用其中的核心数据,否则就创建新的文件夹并建立新的链接关系。Adopting the technical solution of the present invention, when the mobile terminal refreshes the version and reinstalls the core application program, it detects whether there is a folder corresponding to the application program in the core partition, and if it exists, it uses the core data in it, otherwise it creates a new folder and creates new link relationship.

根据本发明的技术方案,将核心数据和其它数据分开,确保了核心数据的独立性,能够实时更新核心数据,在终端出现问题的时候,能够保护用户的核心数据,并确保该核心数据是最新的。According to the technical solution of the present invention, the core data is separated from other data, the independence of the core data is ensured, the core data can be updated in real time, and the core data of the user can be protected when the terminal has a problem, and the core data can be guaranteed to be up-to-date of.

图2示出了根据本发明的实施例的基于Android系统的数据保存方法的流程图。Fig. 2 shows a flow chart of a data saving method based on an Android system according to an embodiment of the present invention.

如图2所示,根据本发明的实施例的基于Android系统的数据保存方法,包括:步骤202,创建用于存放核心数据的核心分区,核心数据是在运行核心应用程序时产生的数据;步骤204,在安装核心应用程序时,在数据分区中,创建与核心应用程序对应的第一文件夹,将第一文件夹链接至核心分区,其中,数据分区是用于保存基于Android系统的应用数据的存储区;步骤206,通过创建的第一文件夹的链接,将在运行核心应用程序时产生的核心数据保存至核心分区。As shown in Figure 2, the data preservation method based on the Android system according to an embodiment of the present invention includes: step 202, creating a core partition for storing core data, and the core data is the data generated when running the core application program; step 204. When installing the core application program, in the data partition, create a first folder corresponding to the core application program, and link the first folder to the core partition, wherein the data partition is used to save application data based on the Android system storage area; step 206, save the core data generated when running the core application program to the core partition through the link of the created first folder.

在上述技术方案中,优选地,步骤204还可以包括:在安装核心应用程序时,判断核心分区中是否存在与核心应用程序对应的第二文件夹,若不存在对应的第二文件夹,则在核心分区中创建与核心应用程序对应的第二文件夹,以保存核心数据;将数据分区中的第一文件夹链接至核心分区中的第二文件夹。In the above technical solution, preferably, step 204 may further include: when installing the core application program, judging whether there is a second folder corresponding to the core application program in the core partition, if there is no corresponding second folder, then A second folder corresponding to the core application program is created in the core partition to store core data; and the first folder in the data partition is linked to the second folder in the core partition.

在上述技术方案中,优选地,步骤202还可以包括:将选择的应用程序设置为核心应用程序。In the above technical solution, preferably, step 202 may further include: setting the selected application program as a core application program.

在上述技术方案中,优选地,步骤204还可以包括:判断当前安装的应用程序是否是核心应用程序,若属于核心应用程序,则将第一文件夹链接至核心分区。In the above technical solution, preferably, step 204 may further include: judging whether the currently installed application program is a core application program, and if it is a core application program, linking the first folder to the core partition.

在上述技术方案中,优选地,还可以包括:为核心分区添加标志位,根据标志位判断是否需要对核心分区中的核心数据进行清除。例如,根据该标志位可以判断是否格式化该核心分区,如果标志位为真,则格式化该核心分区,否则不格式化该核心分区而只格式化其它分区,这样即使刷新版本也可以将用户的核心数据保存下来。In the above technical solution, preferably, it may further include: adding a flag bit to the core partition, and judging whether the core data in the core partition needs to be cleared according to the flag bit. For example, it can be judged whether to format the core partition according to the flag bit, if the flag bit is true, then format the core partition, otherwise the core partition is not formatted but only other partitions are formatted, so even if the version is refreshed, the user The core data is saved.

采用本发明的技术方案,移动终端在刷新版本重新安装核心应用程序时,检测核心分区是否存在该应用程序对应的文件夹,如果存在就使用其中的核心数据,否则就创建新的文件夹并建立新的链接关系。Adopting the technical solution of the present invention, when the mobile terminal refreshes the version and reinstalls the core application program, it detects whether there is a folder corresponding to the application program in the core partition, and if it exists, it uses the core data in it, otherwise it creates a new folder and creates new link relationship.

根据本发明的技术方案,将核心数据和其它数据分开,确保了核心数据的独立性,能够实时更新核心数据,在终端出现问题的时候,能够保护用户的核心数据,并确保该核心数据是最新的。According to the technical solution of the present invention, the core data is separated from other data, the independence of the core data is ensured, the core data can be updated in real time, and the core data of the user can be protected when the terminal has a problem, and the core data can be guaranteed to be up-to-date of.

图3示出了根据本发明的实施例的基于Android系统的数据保存方法的流程图。Fig. 3 shows a flow chart of a data saving method based on an Android system according to an embodiment of the present invention.

如图3所示,在步骤302,新建一个核心分区,用于保存用户的核心数据,核心数据是在运行预设的核心应用程序时产生的数据。As shown in FIG. 3 , in step 302 , a new core partition is created to store user's core data, and the core data is data generated when running a preset core application program.

在步骤304,安装应用程序。At step 304, the application is installed.

在步骤306,判断当前安装的应用程序是否是核心应用程序,若判断结果为否,则进入步骤308,按照相关技术安装该应用程序;若判断结果为是,则进入步骤310。In step 306, it is determined whether the currently installed application program is a core application program, if the determination result is no, then enter step 308, and install the application program according to the related technology; if the determination result is yes, then enter step 310.

在步骤310,检查新建的核心分区中是否存在与当前安装的核心应用程序对应的目录(即是否有存在与该核心应用程序对应的核心数据的文件夹-第二文件夹),如果没有对应目录,则进入步骤312,在该核心分区中创建一个目录,与该目录对应的文件夹用于存放该核心应用的数据,然后进入步骤314;若具有对应目录,则进入步骤314。In step 310, check whether there is a directory corresponding to the core application program currently installed in the newly-built core partition (that is, whether there is a folder-the second folder with core data corresponding to the core application program), if there is no corresponding directory , then go to step 312, create a directory in the core partition, and the folder corresponding to the directory is used to store the data of the core application, and then go to step 314; if there is a corresponding directory, go to step 314.

在步骤314,在数据分区(/data/data/)下创建与该核心应用程序对应的文件夹(即第一文件夹)。In step 314, a folder corresponding to the core application program (namely the first folder) is created under the data partition (/data/data/).

在步骤316,通过命令创建一个链接(例如符号链接,其包含文本字符串,被操作系统解释为一条指向其他文件或目录的路径),将该第一文件夹链接至核心分区下的相应目录。将数据分区目录下的文件夹(第一文件夹)当做源文件夹,需要链接的文件夹(核心分区下的第二文件夹)当做目标文件夹。In step 316, create a link (such as a symbolic link, which contains a text string and is interpreted by the operating system as a path pointing to other files or directories) through a command, and link the first folder to the corresponding directory under the core partition. Take the folder (the first folder) under the data partition directory as the source folder, and the folder to be linked (the second folder under the core partition) as the target folder.

对于系统来说,这样的设计没有更改原有的架构,在核心应用程序运行时,系统在保存运行核心应用程序时产生的相关数据时(如联系人应用运行时,新建联系人,并保存新建的联系人),对于用户而言,只需要直接执行保存操作,系统会认为该相关数据(核心数据)保存在数据分区(data分区),而不需要修改任何其它地方,但是在实际操作时,因为数据分区下仅仅是一个链接(相当于电脑上的快捷方式),对该第一文件夹进行操作,实际上,操作的是核心分区对应的目录,也就将对应的核心数据保存到了核心分区。For the system, such a design does not change the original architecture. When the core application is running, the system saves the relevant data generated when the core application is running (such as when the contact application is running, create a new contact, and save the newly created contact. For the user, only need to directly perform the save operation, the system will think that the relevant data (core data) is saved in the data partition (data partition), and does not need to modify any other places, but in actual operation, Because the data partition is only a link (equivalent to a shortcut on the computer), the first folder is operated. In fact, the directory corresponding to the core partition is operated, and the corresponding core data is saved to the core partition. .

通过以上方式就可以将用户的核心数据直接保存至新建的核心分区,实现了数据的隔离,因为数据分区是用户能够直接操作的,而核心分区只有系统核心应用程序能够操作,增加了数据的安全性,当数据分区的数据出现问题,或者因为某些原因例如安装了不适配的安装文件,导致系统不能正常运行,需要进行恢复出厂设置,或者重新刷版本时,就可以对保存核心数据的分区进行特殊处理。例如:Through the above method, the user's core data can be directly saved to the newly created core partition, realizing data isolation, because the data partition can be directly operated by the user, while the core partition can only be operated by the system core application program, which increases data security When there is a problem with the data in the data partition, or the system cannot run normally due to some reasons such as installation of an inappropriate installation file, and it is necessary to restore the factory settings or re-refresh the version, you can save the core data. Partitions are treated specially. For example:

在恢复出厂设置时,需要确认才能清除核心分区,在没有额外确认时,默认不清除该核心分区。When restoring factory settings, you need to confirm to clear the core partition. If there is no additional confirmation, the core partition will not be cleared by default.

或者,为核心分区添加标志位,用于设置是否需要格式化核心分区。在刷新版本时,首先检查标志位是否为真,如果为真,就格式化核心分区;否则,不格式化该核心分区,只清除其它分区,这样即使刷新版本也可以将用户的核心数据保存下来。Alternatively, add a flag bit for the core partition to set whether the core partition needs to be formatted. When refreshing the version, first check whether the flag is true, if true, format the core partition; otherwise, do not format the core partition, only clear other partitions, so that the user's core data can be saved even if the version is refreshed .

采用本发明的技术方案,移动终端在刷新版本重新安装核心应用程序时,检测核心分区是否存在该应用程序对应的文件夹,如果存在就使用其中的核心数据,否则就创建新的文件夹并建立新的链接关系。Adopting the technical solution of the present invention, when the mobile terminal refreshes the version and reinstalls the core application program, it detects whether there is a folder corresponding to the application program in the core partition, and if it exists, it uses the core data in it, otherwise it creates a new folder and creates new link relationship.

因此,将核心数据和其它数据分开,确保了数据的独立性,能够实时更新数据,在终端出问题的时候,能够保护用户数据,并确保数据是最新的。Therefore, separating the core data from other data ensures the independence of the data, updates the data in real time, protects the user data and ensures that the data is up-to-date when there is a problem with the terminal.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

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.
CN201210026245.2A 2012-02-07 2012-02-07 Mobile terminal and data save method based on android system Expired - Fee Related CN103246617B (en)

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 Expired - Fee Related 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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138604A (en) * 2015-08-07 2015-12-09 广东欧珀移动通信有限公司 A terminal data processing method and device
CN105956487A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Data eliminating method and device

Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046765A (en) * 2006-03-29 2007-10-03 华为技术有限公司 Method for positioning fault of software

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
US8789035B2 (en) Method and apparatus for updating firmware
CN105867947B (en) Data processing method and device after preset application program updating
EP2330507A1 (en) Firmware update device and method
CN110825563B (en) System recovery method and device and electronic equipment
WO2004086168A3 (en) Non-invasive automatic offsite patch fingerprinting and updating system and method
CN106681813B (en) System management method and device
CN102841793A (en) Software upgrading method and terminal
TWI721996B (en) Secure mode state data access tracking
CN102938817B (en) Storage mount achieving method and device under recovery mode of mobile phone
CN111474860A (en) Processing method and device based on failure intelligent scene and storage medium
CN104133730A (en) Method and device for repairing system abnormality and mobile terminal
CN104915188A (en) Method and system for theme change and mobile terminal
CN103246617B (en) Mobile terminal and data save method based on android system
CN104503790B (en) The management method and system of a kind of application version, intelligent terminal
CN102968321A (en) Application program installation device and application program installation method
JP2016533588A (en) Storage processing method, apparatus and terminal
CN105653304B (en) The switching method of operational mode, the switching device of operational mode and terminal
US20120030691A1 (en) Method and Apparatus for Supporting Diverse Memory Access Schemes
JP4859465B2 (en) Software updating method and mobile terminal device
US20190065223A1 (en) Disabling Just-In-Time Translation For Application Functions
CN110554934B (en) Embedded equipment and system partitioning and upgrading method thereof
CN111538536B (en) Method for formatting intelligent terminal, intelligent terminal and storage medium
CN104346204B (en) Application software processing method, system and mobile terminal based on mobile terminal
CN103309710A (en) Method and system for loading OUT file through VXWORKS operating system
WO2014080547A1 (en) Improved synchronization of an application run on two distinct devices

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817