WO2019090622A1 - 一种智能终端的存储空间优化方法及存储空间优化装置 - Google Patents

一种智能终端的存储空间优化方法及存储空间优化装置 Download PDF

Info

Publication number
WO2019090622A1
WO2019090622A1 PCT/CN2017/110253 CN2017110253W WO2019090622A1 WO 2019090622 A1 WO2019090622 A1 WO 2019090622A1 CN 2017110253 W CN2017110253 W CN 2017110253W WO 2019090622 A1 WO2019090622 A1 WO 2019090622A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
smart terminal
partition
data
storage space
Prior art date
Application number
PCT/CN2017/110253
Other languages
English (en)
French (fr)
Inventor
张涛
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/110253 priority Critical patent/WO2019090622A1/zh
Publication of WO2019090622A1 publication Critical patent/WO2019090622A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of intelligent terminals, and in particular, to a storage space optimization method and a storage space optimization apparatus for an intelligent terminal.
  • the storage space of the smart terminal is divided into a partition of a system partition, a data partition, a backup partition, and the like, wherein the system partition is installed with an operating system and each application program; and the data partition stores various data files, such as audio files and videos. Files, photos, etc.; the backup partition stores backup files of the operating system to provide necessary file contents when the system is restored and the operating system is reinstalled.
  • the system partition is not particularly divided. Therefore, the application greatly occupies the storage space of the system partition, which causes the operating system to run slower and lower the user experience.
  • the prior art has various solutions to the above problems.
  • One is that the application has a cleaning function, and after entering the application interface, the cleaning function is selected and run, and the application is generated after the function is run. Temporary file deletion, saving storage space.
  • Another way is to restore the smart terminal to the factory settings, and the application installed on the smart terminal and various generated data will be deleted after shipment.
  • the prior art still has the following problems:
  • the first application has its own cleanup function, which does not solve the storage space occupied by the installation file of the application itself, especially the storage space of the system partition, and cannot alleviate the resource shortage of the system partition;
  • the second type of factory reset is a “one size fits all” approach. Some applications that users want to keep will also be deleted. Users need to reinstall them, and the data generated by users during the previous use will be lost.
  • an object of the present invention is to provide a storage space optimization method and a storage space optimization apparatus for an intelligent terminal, by moving an installation file of an application into a data partition, and retaining the application when restoring the factory settings.
  • the installation file implements the technical effect of optimizing the storage space of the smart terminal.
  • a first aspect of the present application discloses a storage space optimization method for an intelligent terminal, including the following steps:
  • the smart terminal restores the factory settings.
  • the step of restoring the factory settings of the smart terminal comprises:
  • a formatting operation is performed on all data in the data partition except for an application that has been marked as non-unloadable.
  • the step of restoring the factory settings of the smart terminal further includes:
  • the data of the system partition is retained.
  • the step of moving the installation file of the at least one application in the system partition of the smart terminal to the data partition of the smart terminal comprises:
  • the smart terminal moves an installation file of an application selected by the external selection operation to the data partition.
  • the installation file of the at least one application in the system partition of the smart terminal is moved to the smart
  • the application is a third-party application or a Google mobile service program.
  • a storage space optimization apparatus for an intelligent terminal including:
  • a mobile module moving an installation file of at least one application in a system partition of the smart terminal to a data partition of the smart terminal;
  • a marking module connected to the mobile module, and marking at least one application set in the data partition as a non-unloadable state
  • a recovery module connected to the marking module to restore the smart terminal to a factory setting.
  • the recovery module comprises:
  • a formatting unit performs a formatting operation on all data in the data partition except for an application that has been marked as non-unloadable.
  • the recovery module further includes:
  • the mobile module comprises:
  • a display unit displaying an application list on the display interface of the smart terminal
  • a mobile unit connected to the operation receiving unit to move an installation file of the application selected by the external selection operation to the data partition.
  • the application is a third party application or a Google mobile service program.
  • FIG. 1 is a schematic flow chart of a method for optimizing a storage space of an intelligent terminal according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic flow chart of step S103 of FIG. 1 in accordance with a preferred embodiment of the present invention
  • step S101 of FIG. 1 is a schematic flow chart of step S101 of FIG. 1 in accordance with a preferred embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a storage space optimization apparatus of a smart terminal according to a preferred embodiment of the present invention.
  • FIG. 5 is a schematic flow chart of a recovery module in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a mobile module in accordance with a preferred embodiment of the present invention.
  • 10-Smart terminal storage space optimization device 11-mobile module, 111-display unit, 112-operation receiving unit, 113-mobile unit, 12-tag module, 13-recovery module, 131-delete unit, 132-formatted Unit, 133-retention unit.
  • the storage space optimization method includes the following steps:
  • S101 Move an installation file of at least one application in a system partition of the smart terminal to a data partition of the smart terminal.
  • the smart terminal may be a smart device having a display interface, such as a smart phone, a tablet computer, or a multimedia player.
  • the software developed by the application to complete various application functions has a concept corresponding to the operating system and needs to be compatible with the operating system to operate. Common applications include instant messaging applications, game applications, office applications, and more.
  • the storage area in the smart terminal is divided into a system partition and a data partition, and there may be a backup partition and a cache partition.
  • the system partition is installed with an operating system and each application; the data partition is also referred to as a data partition, and stores various data files, such as audio files, video files, photos, etc.; the backup partition stores a backup of the operating system. Files to provide the necessary file content when the system is restored and reinstalled; the cache partition holds temporary files generated by the operating system or applications at runtime.
  • the installation file of the application is again become an APK.
  • the APK is an abbreviation of AndroidPackage, which is an Android installation package (apk).
  • the APK is a file format similar to Symbian Sis or Sisx.
  • the apk file is the same as sis, and the android sdk compiled project is packaged into an installer file in the format apk.
  • the APK file is actually in zip format, but the suffix name is modified to apk.
  • UnZip decompression you can see the Dex file.
  • Dex is the abbreviation of Dalvik VM executes, which is the Android Dalvik executable. It is not the bytecode of Java ME but Dalvik. Bytecode. Android first needs UnZip when running a program, and then directly like Symbian, and is different from PE files in Windows Mobile.
  • the installation file of the application described in the prior art is stored in the system partition, for example, the apk file is stored in the /system/app folder, and the system apk file is put into this folder by default, they are Have root privileges.
  • This step moves an installation file of at least one application in the system partition into the data partition to save storage space of the system partition.
  • the implementation of this step is to store the APK file of the application selected by the user in the data partition, and modify the link path of the APK file in the operating system, without affecting daily use. In this way, all files and data of the application being moved are in the data partition, and the storage space of the system partition is not occupied.
  • the user can select a part of the application to move to the data partition according to actual usage, for example, to move an application with a large number of data files, such as chat software, map software, graphic editing software, and the like.
  • the data partition may be a storage medium that is provided by the smart terminal, such as a ROM or a hard disk, or an external storage device, such as an SD card.
  • S102 Mark at least one application set in the data partition as a non-unloadable state.
  • This step marks the application in the data partition. It should be noted that not all the applications located in the data partition are marked, but the application that needs to be reserved during the storage space cleaning process is selected.
  • the order is marked and marked as non-unloadable, which means that the marked application has higher permissions, does not allow arbitrary uninstallation, and is not allowed to be uninstalled in various cleanup operations.
  • the way to implement the markup is to set a list within the operating system that records the state in which each application can be unloaded.
  • the list may be displayed on the display interface of the smart terminal, and a status button corresponding to whether the uninstallable state is corresponding to each application is displayed, and the user clicks the status button on the touch screen of the smart terminal.
  • S103 The smart terminal restores the factory settings.
  • This step performs a factory reset operation.
  • Each smart terminal is shipped with only a small amount of application and function software pre-installed, and the available size of its storage space is the largest.
  • the factory settings are restored, that is, the smart terminal is changed to the factory state, and the application and other files installed by the smart terminal during use are deleted.
  • the step is executed, the application marked in step S102 is not deleted, and remains in the smart terminal.
  • the smart terminal restores the factory settings, the user can continue to use the application, eliminating the need to install the application again.
  • the process can also save the data and settings generated by the application.
  • step S103 includes:
  • a data deletion operation is performed on the cache partition of the smart terminal.
  • the cache partition stores files temporarily generated by the operating system or the application runtime. Even if these files are deleted, the operation and functions of the operating system and applications are not affected.
  • the cache partition is also called a cache partition, and is mounted to the /cache directory to store the most frequently accessed data and applications of the system. Erasing this partition will not affect the personal data, just delete the cached content already saved in this partition, and the cached content will be automatically generated again during the subsequent use of the mobile phone.
  • S103-2 Perform a formatting operation on all data in the data partition except for an application that has been marked as not unloadable.
  • the data partition is formatted, and the installation file of the application marked as non-uninstallable in step S102 is retained during the execution, so that the application specified by the reserved user is not deleted.
  • the non-uninstallable application and its installation file storage location are obtained from the list set in the step S102, and the storage location of the installation file of the application is avoided during the formatting process.
  • step S103 further includes:
  • This step retains data for the system partition, including applications installed on the system partition.
  • the improved embodiment saves the content of the system partition, so that the application and the configuration in the system partition are not deleted when the factory settings are restored, the user environment is retained, and the time for reinstalling the application is saved.
  • This step also retains the configuration of the operating system, such as the user's arrangement of desktop icons, ringtone selection, and the like.
  • step S101 includes:
  • S101-1 Display an application program list on the display interface of the smart terminal.
  • This step sends a prompt interface to the client, which is displayed through the display interface of the smart terminal.
  • the prompt interface displays an application list in which the names of all applications and the storage location of the installation files are displayed.
  • the application list also displays a selection button for each application, prompting the user to click a button to transfer the storage location of the installation file that selects the application to the data partition or system partition. If the smart terminal has a touch screen, the display interface is displayed through the touch screen, and the user operation is received; if the smart terminal displays through the screen and receives an input device such as a touch panel or a mouse, the user operates through the input device.
  • the smart terminal receives an external selection operation and selects at least one application in the system partition.
  • the smart terminal in this step receives an external selection operation and selects an application that needs to perform a mobile storage location.
  • the user must select an application within the application list on the display interface to determine which needs to be moved to the data partition.
  • S101-3 The smart terminal moves an installation file of an application selected by the external selection operation to the data partition.
  • the smart terminal transfers the installation file of the application selected in step S101-2 to the data partition, and records a new storage path of the application in the operating system, so as to perform the open operation subsequently. Run the app. After this step is executed, the latest list of all applications is displayed on the application list, that is, the location of the moved installation file.
  • the application when the step S101 is executed, the application is a third party application or a Google mobile service program.
  • the improved embodiment optimizes the type of the application, and the application may be a third-party published application or a Google mobile service program.
  • the Google mobile service program English name is Google Mobile Service, referred to as GMS, currently provides Search, Search by Voice, Gmail, Contact Sync, Calendar Sync, Talk, Maps, Street View, You Tube, Android Market service.
  • the storage space optimization apparatus 10 includes:
  • the mobile module 11 moves an installation file of at least one application program in a system partition of the smart terminal to a data partition of the smart terminal.
  • the mobile module 11 is provided with a read/write capability for each storage area in the smart terminal, and can cut an installation file of the application program from the system partition to the data partition, and report the file to the operating system. The storage path after the installation file is moved.
  • the mobile module 11 can also allow the user to select an application to move through the input and output device of the smart terminal.
  • the marking module 12 is connected to the mobile module 11, and the at least one application that is set in the data partition is in a non-unloadable state.
  • the tagging module 12 acquires information of an application moving to the data partition from the mobile module 11 and marks at least one application in the data partition, marked as non-unloadable.
  • the marking module 12 can also allow the user to select a corresponding application for marking by the input and output device of the smart terminal.
  • the tagging module 12 sets a list to record the tag status of each application.
  • the recovery module 13 is connected to the marking module 12 to restore the smart terminal to factory settings.
  • the recovery module 13 acquires an application marked as non-uninstallable from the markup module 12, deletes other applications or data other than the factory settings, and keeps the application not deleted during the process of restoring the factory settings.
  • the recovery module 13 includes:
  • the deleting unit 131 deletes all data of the cache partition of the smart terminal.
  • the deleting unit 131 performs a data deletion operation on the cache partition of the smart terminal, and deletes a file temporarily generated by the operating system or the application program.
  • the formatting unit 132 performs a formatting operation on all data in the data partition except for an application that has been marked as non-unloadable.
  • the formatting unit 132 has been marked as an installation file of an application that is not unloadable, and the application that retains the user-specified application is not deleted.
  • the non-unloadable application and its installation file storage location are obtained from the list set by the marking module 12, and are formatted. The process of avoiding the storage location of the application's installation files.
  • the recovery module 13 further includes:
  • the reservation unit 133 retains data of the system partition.
  • the retention unit 133 write-protects the data of the system partition during the factory resetting process, so that the application and each configuration in the system partition are not deleted when the factory settings are restored, and the user's use is retained.
  • the environment saves time when the application is installed again.
  • the mobile module 11 includes:
  • the display unit 111 displays an application program list on the display interface of the smart terminal.
  • the display unit 111 is connected to the display screen or the touch screen of the smart terminal through an interface to display the application list, and the application list displays the names of all applications and the storage location of the installation files.
  • the operation receiving unit 112 receives an external selection operation and selects at least one application in the system partition.
  • the operation receiving unit 112 is connected to the input device of the smart terminal through an interface, receives an input operation of the user, and knows that the user selects an application that needs to be moved to the data partition.
  • the mobile unit 113 is connected to the operation receiving unit 112 to move an installation file of an application selected by the external selection operation to the data partition.
  • the mobile unit 113 acquires, from the operation receiving unit 112, application information that is selected to be moved to the data partition by the external selection operation, and moves the application to the data partition.
  • the mobile unit 113 can perform a read/write operation on the storage area of the smart terminal, and after the installation file of the application is cut to the data partition, the new storage path is reported to the operating system.
  • the application is a third party application or a Google mobile service program.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供了一种智能终端的存储空间优化方法及存储空间优化装置,所述存储空间优化方法包括以下步骤:移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区;标记设于所述数据分区内的至少一个应用程序为不可卸载状态;所述智能终端恢复出厂设置。本技术方案实施后,保留了用户需要的应用程序,有区别地进行存储空间清理;节约了系统分区的存储资源。

Description

一种智能终端的存储空间优化方法及存储空间优化装置 技术领域
本发明涉及智能终端领域,尤其涉及一种智能终端的存储空间优化方法及存储空间优化装置。
背景技术
目前,随着智能手机、平板电脑等智能终端设备的普及,应用于所述智能终端的应用程序也越来越丰富,这些应用程序往往以图标的形式显示在所述智能终端的桌面或其他页面上,方便用户查找并打开使用。然而应用程序的运行并不是用户看到的显示界面上的图标那么简单,其运行需要依托于安装文件,用户在使用应用程序中所看到的界面、使用的数据等信息都存储在所述安装文件中。所述安装文件一般设于所述智能终端的系统分区内,随着用户的使用,所述应用程序的安装文件会产生很多数据,占据较多的存储空间,例如人们常用的微信,常常会在使用过程中记录用户发送或接收的文本信息、图片信息、视频信息等数据,这些数据的大小甚至可以超过1GB,占用了智能终端的存储空间。所述智能终端的存储空间被划分为系统分区、数据分区、备份分区等分区,其中所述系统分区安装了操作系统以及各应用程序;所述数据分区存储各种数据文件,如音频文件、视频文件、照片等;所述备份分区存储操作系统的备份文件,以便在系统恢复、重装操作系统的时候提供必要的文件内容。一般情况下所述系统分区并不会划分得特别大,因此所述应用程序极大占用了所述系统分区的存储空间,会导致操作系统运行变慢,降低用户体验。
现有技术对于上述问题的解决方式有多种,一种是所述应用程序自带清理功能,进入所述应用程序界面后选择清理功能并运行即可,该功能运行后将所述应用程序产生的临时文件删除,节省了存储空间。另一种方式是将所述智能终端恢复出厂设置,出厂后在所述智能终端安装的应用程序以及产生的各种数据都会被删除。然而现有技术仍存在以下问题:
1、第一种应用程序自带清理功能的方式未解决应用程序本身的安装文件所占用的存储空间,尤其是占用所述系统分区的存储空间,无法缓解所述系统分区的资源紧张情况;
2、第二种恢复出厂设置是“一刀切”的方式,某些用户希望保留的应用程序也会被删除,还需要用户重新安装,且用户在之前使用过程中产生的数据也会丢失。
因此如何为用户提供优化所述智能终端存储空间的方法,既能缓解所述系统分区的存储资源紧张情况,又能保留用户所需的应用程序,是一个需要解决的技术问题。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种智能终端的存储空间优化方法及存储空间优化装置,通过移动应用程序的安装文件至数据分区内,并在恢复出厂设置时保留该应用程序的安装文件,实现优化所述智能终端存储空间的技术效果。
本申请的第一方面公开了一种智能终端的存储空间优化方法,包括以下步骤:
移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区;
标记设于所述数据分区内的至少一个应用程序为不可卸载状态;
所述智能终端恢复出厂设置。
优选地,所述智能终端恢复出厂设置的步骤包括:
删除所述智能终端的缓存分区的所有数据;
对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。
优选地,对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作的步骤之后,所述智能终端恢复出厂设置的步骤还包括:
保留所述系统分区的数据。
优选地,移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区的步骤包括:
于所述智能终端的显示界面上显示一应用程序列表;
所述智能终端接收一外部选择操作,选中所述系统分区内至少一个应用程序;
所述智能终端移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。
优选地,移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能 终端的数据分区时,所述应用程序为第三方应用程序或谷歌移动服务程序。
本申请的第二方面,公开了一种智能终端的存储空间优化装置,包括:
移动模块,移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区;
标记模块,与所述移动模块连接,标记设于所述数据分区内的至少一个应用程序为不可卸载状态;
恢复模块;与所述标记模块连接,将所述智能终端恢复出厂设置。
优选地,所述恢复模块包括:
删除单元,删除所述智能终端的缓存分区的所有数据;
格式化单元,对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。
优选地,所述恢复模块还包括:
保留单元,保留所述系统分区的数据。
优选地,所述移动模块包括:
显示单元,于所述智能终端的显示界面上显示一应用程序列表;
操作接收单元,接收一外部选择操作,选中所述系统分区内至少一个应用程序;
移动单元,与所述操作接收单元连接,移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。
优选地,所述移动模块移动所述应用程序的安装文件时,所述应用程序为第三方应用程序或谷歌移动服务程序。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.保留了用户需要的应用程序,有区别地进行存储空间清理;
2.节约了系统分区的存储资源。
附图说明
图1为符合本发明一优选实施例中智能终端的存储空间优化方法的流程示意图;
图2为符合本发明一优选实施例中图1中步骤S103的流程示意图;
图3为符合本发明一优选实施例中图1中步骤S101的流程示意图;
图4为符合本发明一优选实施例中智能终端的存储空间优化装置的结构示意图;
图5为符合本发明一优选实施例中恢复模块的流程示意图;
图6为符合本发明一优选实施例中移动模块的结构示意图。
附图标记:
10-智能终端的存储空间优化装置、11-移动模块、111-显示单元、112-操作接收单元、113-移动单元、12-标记模块、13-恢复模块、131-删除单元、132-格式化单元、133-保留单元。
具体实施方式
以下由特定的具体实施例说明本申请的实施方式,熟悉此技术的人士可由本说明书所揭露的内容轻易地了解本申请的其他优点及功效。
在下述描述中,参考附图,附图描述了本申请的若干实施例。应当理解,还可使用其他实施例,并且可以在不背离本公开的精神和范围的情况下进行机械组成、结构、电气以及操作上的改变.下面的详细描述不应该被认为是限制性的,并且本申请的实施例的范围仅由公布的专利的权利要求书所限定.这里使用的术语仅是为了描述特定实施例,而并非旨在限制本申请。空间相关的术语,例如“上”、“下”、“左”、“右”、“下面”、“下方”、“下部”、“上方”、“上部”等,可在文中使用以便于说明图中所示的一个元件或特征与另一元件或特征的关系。
虽然在一些实例中术语第一、第二等在本文中用来描述各种元件,但是这些元件不应当被这些术语限制。这些术语仅用来将一个元件与另一个元件进行区分。
再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示.应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加.此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合.因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”.仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。
参阅图1,为符合本发明一优选实施例中智能终端的存储空间优化方法的流程示意图,所述存储空间优化方法包括以下步骤:
S101:移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区。
所述智能终端可以是智能手机、平板电脑、多媒体播放器等具有显示界面的智能设备。所述应用程序为完成各种应用功能而开发的软件,与操作系统为相对应的概念,需要与操作系统兼容方能运行。常见的应用程序有即时通讯类应用程序、游戏类应用程序、办公类应用程序等。所述智能终端内的存储区域被划分为系统分区和数据分区,可能还会有备份分区和缓存分区。其中所述系统分区安装了操作系统以及各应用程序;所述数据分区也被称为data分区,存储各种数据文件,如音频文件、视频文件、照片等;所述备份分区存储操作系统的备份文件,以便在系统恢复、重装操作系统的时候提供必要的文件内容;所述缓存分区则存放操作系统或应用程序在运行时产生的临时文件。
在安卓操作系统中,所述应用程序的安装文件又被成为APK。所述APK是AndroidPackage的缩写,即Android安装包(apk),APK是类似Symbian Sis或Sisx的文件格式。安装应用程序时,通过将APK文件直接传到Android模拟器或Android手机中执行即可安装。apk文件和sis一样,把android sdk编译的工程打包成一个安装程序文件,格式为apk。APK文件其实是zip格式,但后缀名被修改为apk,通过UnZip解压后,可以看到Dex文件,Dex是Dalvik VM executes的简称,即Android Dalvik执行程序,并非Java ME的字节码而是Dalvik字节码。Android在运行一个程序时首先需要UnZip,然后类似Symbian那样直接,和Windows Mobile中的PE文件有区别。
现有技术中所述应用程序的安装文件,也就是APK,存放于所述系统分区内,例如apk文件存放于/system/app文件夹下,系统的apk文件默认会放入这个文件夹,它们拥有root权限。本步骤将所述系统分区内的至少一个应用程序的安装文件移动至所述数据分区内,以节省所述系统分区的存储空间。本步骤的实现是将用户选择的应用程序的APK文件存放于所述数据分区,并在操作系统内修改该APK文件的链接路径,不影响日常的使用。这样以来,被移动的所述应用程序的所有文件及数据均在所述数据分区内,不会占用所述系统分区的存储空间。用户可以根据实际使用情况选择部分应用程序移动至所述数据分区,例如将附带有大量数据文件的应用程序移动,例如聊天软件、地图软件、图形编辑软件等。
所述数据分区可以是所述智能终端自带的存储介质,如ROM或硬盘,也可以是外部存储设备,例如SD卡。
S102:标记设于所述数据分区内的至少一个应用程序为不可卸载状态。
本步骤对所述数据分区内的应用程序进行标记,需要注意的是并不是对所有设于所述数据分区内的应用程序进行标记,而是选择在存储空间清理过程中需要保留的应用程 序进行标记,将其标记为不可卸载状态,也就是说被标记的应用程序具有较高的权限,不允许随意卸载,也不允许在各类清理操作中被卸载。实现标记的方式是在所述操作系统内设置一列表,所述列表内记录各应用程序是否可卸载的状态。
本步骤执行时,可于所述智能终端的显示界面显示所述列表,并显示各应用程序对应的是否可卸载的状态按钮,用户在所述智能终端触摸屏上对所述状态按钮进行点击操作,以切换所述应用程序处于可卸载状态或不可卸载状态。
S103:所述智能终端恢复出厂设置。
本步骤执行恢复出厂设置操作。每一智能终端在出厂时,仅预装了少量的应用程序和功能软件,其存储空间的可用大小是最大的。恢复出厂设置,也就是将所述智能终端变为出厂时的状态,删除所述智能终端在使用过程中安装的应用程序及其他文件。本步骤执行时,步骤S102中标记的应用程序不会被删除,仍保留在所述智能终端内,用户在所述智能终端恢复出厂设置后可以继续使用该应用程序,省去了再次安装应用程序的过程,还能保存所述应用程序产生的数据及各项设置。
参阅图2,为符合本发明一优选实施例中图1中步骤S103的流程示意图,所述步骤S103包括:
S103-1:删除所述智能终端的缓存分区的所有数据。
本步骤对所述智能终端的缓存分区进行数据删除操作。所述缓存分区内存储的都是操作系统或应用程序运行时临时产生的文件,这些文件即便被删除,也不会影响操作系统及应用程序的运行和功能。在安卓操作系统中,所述缓存分区也被称为cache分区,挂载到/cache目录下,保存系统最常访问的数据和应用程序。擦除这个分区,不会影响个人数据,只是删除了这个分区中已经保存的缓存内容,缓存内容会在后续手机使用过程中重新自动生成。
S103-2:对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。
本步骤对所述数据分区进行格式化操作,执行的过程中保留步骤S102中已标记为不可卸载状态的应用程序的安装文件,实现保留用户指定的应用程序不被删除。本步骤执行时,会从所述步骤S102设置的列表中获取不可卸载的应用程序及其安装文件存储位置,在格式化的过程中避开所述应用程序的安装文件的存储位置。
作为所述存储空间优化方法的进一步改进,步骤S103-2之后,所述步骤S103还包括:
S103-3:保留所述系统分区的数据。
本步骤保留所述系统分区的数据,包括安装于所述系统分区的应用程序。本改进实施例保存了系统分区的内容,这样在恢复出厂设置时不会删除所述系统分区中的应用程序和各项配置,保留了用户的使用环境,节约了再次安装应用程序的时间。本步骤同样保留了操作系统的配置,例如用户对桌面图标的排布、铃音的选择等设置。
参阅图3,为符合本发明一优选实施例中图1中步骤S101的流程示意图,所述步骤S101包括:
S101-1:于所述智能终端的显示界面上显示一应用程序列表。
本步骤向客户发出提示界面,通过所述智能终端的显示界面显示。所述提示界面显示一应用程序列表,所述应用程序列表内显示所有应用程序的名称和安装文件的存储位置。此外所述应用程序列表针对每一应用程序还显示了一个选择按钮,提示用户点击按钮将选择所述应用程序的安装文件的存储位置转移至数据分区或系统分区。若所述智能终端具有触摸屏,则通过触摸屏显示所述显示界面,并接收用户操作;若所述智能终端通过屏幕显示,并接收触摸板、鼠标等输入设备,则用户通过上述输入设备进行操作。
S101-2:所述智能终端接收一外部选择操作,选中所述系统分区内至少一个应用程序。
本步骤中所述智能终端接收外部选择操作,对需要进行移动存储位置的应用程序进行选择。用户须对所述显示界面上所述应用程序列表内的应用程序进行选择,决定哪些需要移动至所述数据分区。
S101-3:所述智能终端移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。
本步骤中所述智能终端将步骤S101-2中选择的应用程序的安装文件转移至所述数据分区内,同时在操作系统内记录所述应用程序的新的存储路径,以便后续执行打开操作并运行该应用程序。本步骤执行后,所述应用程序列表上显示所有应用程序最新的状态,也就是移动后的安装文件所在的位置。
作为所述存储空间优化方法的进一步改进,步骤S101执行时,所述应用程序为第三方应用程序或谷歌移动服务程序。本改进实施例对所述应用程序的类型进行优选,所述应用程序可以是第三方发布的应用程序,也可以是谷歌移动服务程序。所述谷歌移动服务程序英文名称为Google Mobile Service,简称GMS,目前提供有Search、Search by Voice、Gmail、Contact Sync、Calendar Sync、Talk、Maps、Street View、You Tube、Android Market 服务。
参阅图4,为符合本发明一优选实施例中智能终端的存储空间优化装置10的结构示意图,所述存储空间优化装置10包括:
- 移动模块11
所述移动模块11移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区。所述移动模块11具备对所述智能终端内各存储区域的读写能力,能够将所述应用程序的安装文件从所述系统分区剪切至所述数据分区,并向所述操作系统上报所述安装文件移动后的存储路径。所述移动模块11还可通过所述智能终端的输入输出设备允许用户选择应用程序进行移动。
- 标记模块12
所述标记模块12与所述移动模块11连接,标记设于所述数据分区内的至少一个应用程序为不可卸载状态。所述标记模块12从所述移动模块11获取移动至所述数据分区的应用程序的信息,并对所述数据分区内至少一个应用程序进行标记,标记为不可卸载状态。所述标记模块12还可通过所述智能终端的输入输出设备允许用户选择相应的应用程序进行标记。所述标记模块12设置一列表来记录各应用程序的标记状态。
- 恢复模块13
所述恢复模块13与所述标记模块12连接,将所述智能终端恢复出厂设置。所述恢复模块13从所述标记模块12获取被标记为不可卸载状态的应用程序,删除出厂设置以外的其他应用程序或数据,并在恢复出厂设置的过程中保留上述应用程序不删除。
参阅图5,为符合本发明一优选实施例中恢复模块13的流程示意图,所述恢复模块13包括:
- 删除单元131
所述删除单元131删除所述智能终端的缓存分区的所有数据。所述删除单元131对所述智能终端的缓存分区进行数据删除操作,删除操作系统或应用程序运行时临时产生的文件。
- 格式化单元132
所述格式化单元132对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。所述格式化单元132已标记为不可卸载状态的应用程序的安装文件,实现保留用户指定的应用程序不被删除。所述格式化单元132运行时,会从所述标记模块12设置的列表中获取不可卸载的应用程序及其安装文件存储位置,在格式化 的过程中避开所述应用程序的安装文件的存储位置。
作为所述存储空间优化装置10的进一步改进,所述恢复模块13还包括:
- 保留单元133
所述保留单元133保留所述系统分区的数据。所述保留单元133在恢复出厂设置过程中对所述系统分区的数据进行写保护,这样这样在恢复出厂设置时不会删除所述系统分区中的应用程序和各项配置,保留了用户的使用环境,节约了再次安装应用程序的时间。
参阅图6,为符合本发明一优选实施例中移动模块11的结构示意图,所述移动模块11包括:
- 显示单元111
所述显示单元111于所述智能终端的显示界面上显示一应用程序列表。所述显示单元111通过接口与所述智能终端的显示屏幕或触摸屏连接,显示所述应用程序列表,所述应用程序列表内显示所有应用程序的名称和安装文件的存储位置。
- 操作接收单元112
所述操作接收单元112接收一外部选择操作,选中所述系统分区内至少一个应用程序。所述操作接收单元112通过接口与所述智能终端的输入设备连接,接收用户的输入操作,获知用户选择需要移动至所述数据分区的应用程序。
- 移动单元113
所述移动单元113与所述操作接收单元112连接,移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。所述移动单元113从所述操作接收单元112获取被所述外部选择操作选中需要移动至所述数据分区的应用程序信息,并移动所述应用程序至所述数据分区。所述移动单元113能够对所述智能终端的存储区域进行读写操作,将所述应用程序的安装文件剪切至所述数据分区后,将新的存储路径上报至操作系统。
作为所述存储空间优化装置10的进一步改进,所述移动模块11移动所述应用程序的安装文件时,所述应用程序为第三方应用程序或谷歌移动服务程序。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。

Claims (10)

  1. 一种智能终端的存储空间优化方法,其特征在于,包括以下步骤:
    移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区;
    标记设于所述数据分区内的至少一个应用程序为不可卸载状态;
    所述智能终端恢复出厂设置。
  2. 如权利要求1所述的存储空间优化方法,其特征在于,
    所述智能终端恢复出厂设置的步骤包括:
    删除所述智能终端的缓存分区的所有数据;
    对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。
  3. 如权利要求2所述的存储空间优化方法,其特征在于,
    对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作的步骤之后,所述智能终端恢复出厂设置的步骤还包括:
    保留所述系统分区的数据。
  4. 如权利要求1-3任一项所述的存储空间优化方法,其特征在于,
    移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区的步骤包括:
    于所述智能终端的显示界面上显示一应用程序列表;
    所述智能终端接收一外部选择操作,选中所述系统分区内至少一个应用程序;
    所述智能终端移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。
  5. 如权利要求1-3任一项所述的存储空间优化方法,其特征在于,
    移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区时,所述应用程序为第三方应用程序或谷歌移动服务程序。
  6. 一种智能终端的存储空间优化装置,其特征在于,包括:
    移动模块,移动所述智能终端的系统分区内至少一个应用程序的安装文件至所述智能终端的数据分区;
    标记模块,与所述移动模块连接,标记设于所述数据分区内的至少一个应用程序为不可卸载状态;
    恢复模块;与所述标记模块连接,将所述智能终端恢复出厂设置。
  7. 如权利要求6所述的存储空间优化装置,其特征在于,
    所述恢复模块包括:
    删除单元,删除所述智能终端的缓存分区的所有数据;
    格式化单元,对所述数据分区中除已标记为不可卸载状态的应用程序以外的所有数据执行格式化操作。
  8. 如权利要求7所述的存储空间优化装置,其特征在于,
    所述恢复模块还包括:
    保留单元,保留所述系统分区的数据。
  9. 如权利要求6-8任一项所述的存储空间优化装置,其特征在于,
    所述移动模块包括:
    显示单元,于所述智能终端的显示界面上显示一应用程序列表;
    操作接收单元,接收一外部选择操作,选中所述系统分区内至少一个应用程序;
    移动单元,与所述操作接收单元连接,移动被所述外部选择操作选中的应用程序的安装文件至所述数据分区。
  10. 如权利要求6-8任一项所述的存储空间优化装置,其特征在于,
    所述移动模块移动所述应用程序的安装文件时,所述应用程序为第三方应用程序或谷歌移动服务程序。
PCT/CN2017/110253 2017-11-09 2017-11-09 一种智能终端的存储空间优化方法及存储空间优化装置 WO2019090622A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110253 WO2019090622A1 (zh) 2017-11-09 2017-11-09 一种智能终端的存储空间优化方法及存储空间优化装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110253 WO2019090622A1 (zh) 2017-11-09 2017-11-09 一种智能终端的存储空间优化方法及存储空间优化装置

Publications (1)

Publication Number Publication Date
WO2019090622A1 true WO2019090622A1 (zh) 2019-05-16

Family

ID=66438744

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110253 WO2019090622A1 (zh) 2017-11-09 2017-11-09 一种智能终端的存储空间优化方法及存储空间优化装置

Country Status (1)

Country Link
WO (1) WO2019090622A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073526A (zh) * 2011-01-21 2011-05-25 奇智软件(北京)有限公司 用于移动终端的软件转移安装方法及系统
CN102831173A (zh) * 2012-07-27 2012-12-19 Tcl集团股份有限公司 基于Android系统的内存扩展方法、装置及终端设备
CN103309699A (zh) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 移动终端和应用程序安装方法
US8826435B1 (en) * 2009-05-28 2014-09-02 Trend Micro Incorporated Apparatus and methods for protecting removable storage devices from malware infection
CN104679544A (zh) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 应用程序管理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8826435B1 (en) * 2009-05-28 2014-09-02 Trend Micro Incorporated Apparatus and methods for protecting removable storage devices from malware infection
CN102073526A (zh) * 2011-01-21 2011-05-25 奇智软件(北京)有限公司 用于移动终端的软件转移安装方法及系统
CN103309699A (zh) * 2012-03-16 2013-09-18 宇龙计算机通信科技(深圳)有限公司 移动终端和应用程序安装方法
CN102831173A (zh) * 2012-07-27 2012-12-19 Tcl集团股份有限公司 基于Android系统的内存扩展方法、装置及终端设备
CN104679544A (zh) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 应用程序管理方法及装置

Similar Documents

Publication Publication Date Title
US11269696B2 (en) Application processing method and apparatus
US9990059B2 (en) Ink modes
WO2018077085A1 (zh) 应用程序处理方法、装置及存储介质
CN104951326B (zh) 网页访问方法及装置
US10430047B2 (en) Managing content on an electronic device
CN104915268A (zh) 桌面布局的存储、恢复方法及其装置、终端设备、系统
CN103914205B (zh) 一种智能终端的文件缩略图展示方法和装置
US10088986B2 (en) User function operation method and electronic device supporting the same
WO2013178124A1 (zh) 应用的快捷方式的处理方法及装置
CN106844181B (zh) 用于记录用户行为的方法、系统及移动终端
JP2008507786A (ja) 統一ローカル・リモート論理ボリューム
WO2016107465A1 (zh) 一种卡片式桌面的实现方法、装置和系统
CN107977469B (zh) 对最近使用文件进行管理的方法、装置及终端
US10877885B2 (en) Electronic device data operation method and electronic device for improved electronic device storage
US20180307525A1 (en) Surfacing Task-Related Applications in a Heterogeneous Tab Environment
US11314391B2 (en) Navigation bar controlling method and terminal
TW201610848A (zh) 作業系統的融合方法及裝置
KR100923161B1 (ko) 작업 환경 이동 서비스를 위한 이동식 저장 장치 및 그의작업 환경 이동 서비스 방법
EP3467681A1 (en) Data migration method and device
KR20130085146A (ko) 애플리케이션 파일 재개와 그를 위한 스크린 캡처 방법 및 장치
WO2019090622A1 (zh) 一种智能终端的存储空间优化方法及存储空间优化装置
CN109725818B (zh) 一种信息展示方法、设备及计算机可读介质
JP2013161451A (ja) 情報処理装置、情報処理方法、およびプログラム
CN109597537B (zh) 文件同步方法、装置及设备
CN106886600A (zh) 一种文件管理方法及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931243

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17931243

Country of ref document: EP

Kind code of ref document: A1