Movatterモバイル変換


[0]ホーム

URL:


CN109284187A - Application processing method, device and mobile terminal - Google Patents

Application processing method, device and mobile terminal
Download PDF

Info

Publication number
CN109284187A
CN109284187ACN201810998074.7ACN201810998074ACN109284187ACN 109284187 ACN109284187 ACN 109284187ACN 201810998074 ACN201810998074 ACN 201810998074ACN 109284187 ACN109284187 ACN 109284187A
Authority
CN
China
Prior art keywords
storage space
application
mobile terminal
target
target application
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.)
Pending
Application number
CN201810998074.7A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201810998074.7ApriorityCriticalpatent/CN109284187A/en
Publication of CN109284187ApublicationCriticalpatent/CN109284187A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种应用处理方法、装置和移动终端,涉及移动终端技术领域。其中,该方法包括:当接收到预设操作时,确定移动终端剩余的第一存储空间;当第一存储空间小于执行预设操作触发的指令需占用的目标存储空间时,获取移动终端中各个应用的使用参数值;确定使用参数值满足预设条件的各个目标应用;根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩。在本发明中,移动终端可以在存储空间不足时,对至少一个目标应用进行压缩,从而能够节省出部分存储空间,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载,并且可以保留应用中的用户数据,避免因卸载应用而造成的用户数据丢失。

The present invention provides an application processing method, device and mobile terminal, and relates to the technical field of mobile terminals. Wherein, the method includes: when a preset operation is received, determining the remaining first storage space of the mobile terminal; when the first storage space is less than the target storage space occupied by an instruction triggered by executing the preset operation, obtaining each The use parameter value of the application; determine each target application whose use parameter value meets the preset condition; and compress at least one target application according to the first storage space difference between the target storage space and the first storage space. In the present invention, the mobile terminal can compress at least one target application when the storage space is insufficient, so that part of the storage space can be saved, and the user does not need to manually uninstall the installed application, and thus does not need to re-download the uninstalled application. , and the user data in the application can be retained to avoid user data loss caused by uninstalling the application.

Description

Translated fromChinese
一种应用处理方法、装置和移动终端Application processing method, device and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种应用处理方法、装置和移动终端。The present invention relates to the technical field of mobile terminals, and in particular, to an application processing method, device and mobile terminal.

背景技术Background technique

随着应用功能的不断增多,安装应用所需的存储空间也不断增大。另外,在应用的使用过程中,还会存储大量的用户数据,例如照片、音频等等,也需要占用相当大的存储空间。如此,在各个应用安装一段时间后,移动终端经常会出现存储空间不足的问题,进一步导致系统卡顿,甚至无法继续安装新应用的问题。As application functions continue to increase, so does the storage space required to install the application. In addition, during the use of the application, a large amount of user data, such as photos, audios, etc., will also be stored, which also requires a considerable storage space. In this way, after each application is installed for a period of time, the mobile terminal often encounters a problem of insufficient storage space, which further causes the system to freeze, and even cannot continue to install new applications.

通常,在移动终端的存储空间不足时,用户可以通过手动卸载应用的方式获得更多的存储空间。然而,用户将某应用卸载之后,若要再次使用该应用,则需卸载其他应用,并重新下载该应用,既浪费时间和流量,还会丢失应用中原先的用户数据。Usually, when the storage space of the mobile terminal is insufficient, the user can obtain more storage space by manually uninstalling the application. However, after a user uninstalls an application, if he wants to use the application again, he needs to uninstall other applications and download the application again, which not only wastes time and traffic, but also loses the original user data in the application.

发明内容SUMMARY OF THE INVENTION

本发明提供一种应用处理方法、装置和移动终端,以解决通过卸载应用的方式获得更多存储空间之后,再次使用应用时需重新下载,并且会丢失原先用户数据的问题。The present invention provides an application processing method, device and mobile terminal to solve the problem that after obtaining more storage space by uninstalling the application, the application needs to be re-downloaded and the original user data will be lost when the application is used again.

为了解决上述技术问题,本发明是这样实现的:一种应用处理的方法,应用于移动终端,包括:In order to solve the above technical problems, the present invention is implemented as follows: a method for application processing, applied to a mobile terminal, includes:

当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;When a preset operation is received, determine the remaining first storage space of the mobile terminal; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction;

当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;When the first storage space is smaller than the target storage space, acquiring the usage parameter value of each application in the mobile terminal;

确定所述使用参数值满足预设条件的各个目标应用;Determine each target application whose usage parameter value satisfies the preset condition;

确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;determining a first storage space difference between the target storage space and the first storage space;

根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。According to the first storage space difference, at least one of the target applications is compressed to obtain storage space required for executing the instruction.

第一方面,本发明实施例还提供了一种应用处理装置,包括:In a first aspect, an embodiment of the present invention further provides an application processing device, including:

第一确定模块,用于当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;a first determining module, configured to determine the remaining first storage space of the mobile terminal when a preset operation is received; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction;

获取模块,用于当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;an acquisition module, configured to acquire use parameter values of each application in the mobile terminal when the first storage space is smaller than the target storage space;

第二确定模块,用于确定所述使用参数值满足预设条件的各个目标应用;a second determination module, configured to determine each target application whose usage parameter value satisfies a preset condition;

第三确定模块,用于确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;a third determining module, configured to determine a first storage space difference between the target storage space and the first storage space;

压缩模块,用于根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。A compression module, configured to compress at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction.

第二方面,本发明实施例还提供了一种移动终端,该移动终端包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现本发明所述的应用处理方法的步骤。In a second aspect, an embodiment of the present invention further provides a mobile terminal, the mobile terminal includes a processor, a memory, and a computer program stored in the memory and executable on the processor, the computer program being The steps of implementing the application processing method of the present invention when the processor is executed.

第三方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现本发明所述的应用处理方法的步骤。In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the application processing method of the present invention are implemented.

在本发明实施例中,当移动终端接收到预设操作时,可以确定移动终端剩余的第一存储空间,该预设操作触发的指令中包括执行该指令需占用的目标存储空间,当第一存储空间小于目标存储空间时,可以获取各个应用的使用参数值,并确定使用参数值满足预设条件的各个目标应用,然后可以根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。在本发明实施例中,移动终端可以在存储空间不足时,对使用参数值满足预设条件的各个目标应用进行压缩,从而能够节省出部分存储空间,以执行用户操作所触发的指令,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载。另外,已安装的应用无需卸载,因此可以保留应用中的用户数据,能够避免因卸载应用而造成用户数据的丢失。In this embodiment of the present invention, when the mobile terminal receives a preset operation, it can determine the remaining first storage space of the mobile terminal, and the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction. When the storage space is smaller than the target storage space, the use parameter values of each application can be obtained, and each target application whose use parameter value meets the preset condition can be determined, and then the first storage space difference between the target storage space and the first storage space can be determined according to the first storage space difference between the target storage space and the first storage space. value to compress at least one target application to obtain the storage space required to execute the instruction. In the embodiment of the present invention, when the storage space is insufficient, the mobile terminal can compress each target application whose use parameter value meets the preset condition, thereby saving part of the storage space and executing the instruction triggered by the user operation without the need for The user manually uninstalls the installed application, and thus does not need to re-download the uninstalled application. In addition, the installed applications do not need to be uninstalled, so the user data in the applications can be retained, and the loss of user data caused by uninstalling the applications can be avoided.

附图说明Description of drawings

图1示出了本发明实施例一中的一种应用处理方法的流程图;1 shows a flowchart of an application processing method in Embodiment 1 of the present invention;

图2示出了本发明实施例二中的一种应用处理方法的流程图;2 shows a flowchart of an application processing method in Embodiment 2 of the present invention;

图3示出了本发明实施例二中的一种按照使用参数值对各个应用排序并进行显示的界面示意图;FIG. 3 shows a schematic diagram of an interface for sorting and displaying applications according to use parameter values in Embodiment 2 of the present invention;

图4示出了本发明实施例三中的一种应用处理装置的结构框图;4 shows a structural block diagram of an application processing apparatus in Embodiment 3 of the present invention;

图5示出了本发明实施例三中的另一种应用处理装置的结构框图;5 shows a structural block diagram of another application processing apparatus in Embodiment 3 of the present invention;

图6示出了本发明各个实施例中的一种移动终端的硬件结构示意图。FIG. 6 shows a schematic diagram of a hardware structure of a mobile terminal in various embodiments of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一Example 1

参照图1,示出了本发明实施例一的应用处理方法的流程图,具体可以包括如下步骤:Referring to FIG. 1, a flowchart of an application processing method according to Embodiment 1 of the present invention is shown, which may specifically include the following steps:

步骤101,当接收到预设操作时,确定移动终端剩余的第一存储空间;该预设操作触发的指令中包括执行该指令需占用的目标存储空间。Step 101 , when a preset operation is received, determine the remaining first storage space of the mobile terminal; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction.

在本发明实施例中,当用户需要占用移动终端中的存储空间进行操作时,例如在用户需要下载或安装新应用,或者需要将图片、文件等存储在移动终端等情况下,用户可以进行点击安装图标,或者点击移动、复制图标等预设操作,移动终端可以相应接收到用户执行的预设操作,该预设操作可以触发对应的指令,例如点击新应用的下载图标或安装图标的预设操作,可以触发下载或安装新应用到移动终端的指令,再例如点击移动、复制图标的预设操作,可以触发将图片、文件等移动或复制到移动终端的指令。该预设操作触发的指令中可以包括执行该指令需占用的目标存储空间,例如需要下载新应用时,预设操作触发的指令具体可以为将500MB(兆字节)的新应用下载至预设存储路径xxx,也即该指令中可以包括下载新应用的安装文件需占用的目标存储空间。In this embodiment of the present invention, when the user needs to occupy the storage space in the mobile terminal to perform operations, for example, when the user needs to download or install a new application, or needs to store pictures, files, etc. in the mobile terminal, the user can click Install the icon, or click preset operations such as moving or copying the icon, the mobile terminal can receive the preset operation performed by the user correspondingly, and the preset operation can trigger the corresponding instruction, such as clicking the download icon of the new application or the preset of the installation icon. The operation can trigger an instruction to download or install a new application to the mobile terminal, and for example, the preset operation of clicking the move or copy icon can trigger an instruction to move or copy pictures, files, etc. to the mobile terminal. The instruction triggered by the preset operation may include the target storage space to be occupied by executing the instruction. For example, when a new application needs to be downloaded, the instruction triggered by the preset operation may specifically be downloading a 500MB (megabyte) new application to the preset The storage path xxx, that is, the instruction may include the target storage space occupied by downloading the installation file of the new application.

当移动终端接收到预设操作时,可以确定当前剩余的第一存储空间,以便进一步确定当前剩余的第一存储空间,是否能够满足预设操作所触发的指令的存储空间需求。When the mobile terminal receives the preset operation, it can determine the currently remaining first storage space, so as to further determine whether the currently remaining first storage space can meet the storage space requirement of the instruction triggered by the preset operation.

步骤102,当第一存储空间小于目标存储空间时,获取移动终端中各个应用的使用参数值。Step 102: When the first storage space is smaller than the target storage space, obtain the usage parameter values of each application in the mobile terminal.

在本发明实施例中,移动终端可以将第一存储空间与目标存储空间进行对比,当第一存储空间小于执行指令需占用的目标存储空间时,可以确定移动终端中剩余的第一存储空间无法满足预设操作所触发的指令的存储空间需求,此时,移动终端可以获取已安装的各个应用的使用参数值。In this embodiment of the present invention, the mobile terminal may compare the first storage space with the target storage space, and when the first storage space is smaller than the target storage space required to execute the instruction, it may be determined that the remaining first storage space in the mobile terminal cannot be The storage space requirement of the instruction triggered by the preset operation is met. At this time, the mobile terminal can obtain the usage parameter value of each installed application.

在实际应用中,应用的使用参数值可以包括第一预设时间段内的启动次数、第二预设时间段内的压缩次数等等。In practical applications, the usage parameter value of the application may include the number of times of activation within the first preset time period, the number of times of compression within the second preset time period, and the like.

步骤103,确定使用参数值满足预设条件的各个目标应用。Step 103: Determine each target application whose use parameter value satisfies the preset condition.

在本发明实施例中,移动终端可以从各个应用中,确定使用参数值满足预设条件的各个目标应用,例如当使用参数值包括第一预设时间段内的启动次数时,移动终端可以从各个应用中,确定启动次数小于第一预设次数的各个目标应用,再例如,当使用参数值包括第二预设时间段内的压缩次数时,移动终端可以从各个应用中,确定压缩次数大于第二预设次数的各个目标应用。In this embodiment of the present invention, the mobile terminal may determine each target application whose usage parameter value satisfies the preset condition from various applications. For example, when the usage parameter value includes the number of startups within the first preset time period, the mobile terminal may select the target application from each application. In each application, determine each target application whose startup times are less than the first preset number of times. For another example, when the use parameter value includes the number of compression times within the second preset time period, the mobile terminal may determine from each application that the number of compression times is greater than the number of times of compression. each target application for the second preset number of times.

步骤104,确定目标存储空间与第一存储空间之间的第一存储空间差值。Step 104: Determine the first storage space difference between the target storage space and the first storage space.

在本发明实施例中,移动终端可以确定目标存储空间与第一存储空间之间的第一存储空间差值,也即是可以确定除剩余的第一存储空间之外,移动终端还需要多少存储空间,才能够顺利执行预设操作所触发的指令。In this embodiment of the present invention, the mobile terminal can determine the first storage space difference between the target storage space and the first storage space, that is, it can determine how much storage the mobile terminal needs in addition to the remaining first storage space space, so that the commands triggered by the preset operations can be successfully executed.

步骤105,根据第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。Step 105: Compress at least one target application according to the first storage space difference to obtain storage space required for executing the instruction.

在本发明实施例中,在移动终端剩余的第一存储空间不足时,移动终端可以对至少一个目标应用对应的应用文件进行压缩,从而可以节省出一部分存储空间,以执行预设操作所触发的指令,而无需用户对已安装的应用进行手动卸载,后续也无需将卸载的应用再重新安装。In the embodiment of the present invention, when the remaining first storage space of the mobile terminal is insufficient, the mobile terminal may compress the application file corresponding to at least one target application, thereby saving a part of the storage space for executing the instruction, without the need for the user to manually uninstall the installed application, and subsequently reinstall the uninstalled application.

在一种实现方式中,移动终端可以每压缩一个目标应用之后,确定剩余的存储空间,当剩余的存储空间大于第一存储空间差值时,可以确定此时移动终端中的存储空间足够顺利执行指令,移动终端此时可以停止压缩,从而可以获得执行指令所需的存储空间。In an implementation manner, the mobile terminal may determine the remaining storage space after each target application is compressed, and when the remaining storage space is greater than the first storage space difference, it may be determined that the storage space in the mobile terminal is sufficient for smooth execution at this time command, the mobile terminal can stop compressing at this time, so that the storage space required for executing the command can be obtained.

在另一种实现方式中,移动终端可以确定每个目标应用压缩前所占用的存储空间,以及压缩后需占用的存储空间,进而可以确定二者之间的第二存储空间差值,移动终端可以对累计第二存储空间差值大于第一存储空间差值的至少一个目标应用进行压缩,从而可以获得执行指令所需的存储空间。In another implementation manner, the mobile terminal can determine the storage space occupied by each target application before compression and the storage space that needs to be occupied after compression, and then can determine the second storage space difference between the two, and the mobile terminal At least one target application whose accumulated second storage space difference value is greater than the first storage space difference value may be compressed, so that storage space required for executing the instruction can be obtained.

在本发明实施例中,当移动终端接收到预设操作时,可以确定移动终端剩余的第一存储空间,该预设操作触发的指令中包括执行该指令需占用的目标存储空间,当第一存储空间小于目标存储空间时,可以获取各个应用的使用参数值,并确定使用参数值满足预设条件的各个目标应用,然后可以根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。在本发明实施例中,移动终端可以在存储空间不足时,对使用参数值满足预设条件的各个目标应用进行压缩,从而能够节省出部分存储空间,以执行用户操作触发的指令,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载。另外,已安装的应用无需卸载,因此可以保留应用中的用户数据,能够避免因卸载应用而造成用户数据的丢失。In this embodiment of the present invention, when the mobile terminal receives a preset operation, it can determine the remaining first storage space of the mobile terminal, and the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction. When the storage space is smaller than the target storage space, the use parameter values of each application can be obtained, and each target application whose use parameter value meets the preset condition can be determined, and then the first storage space difference between the target storage space and the first storage space can be determined according to the first storage space difference between the target storage space and the first storage space. value to compress at least one target application to obtain the storage space required to execute the instruction. In the embodiment of the present invention, when the storage space is insufficient, the mobile terminal can compress each target application whose use parameter value meets the preset condition, thereby saving part of the storage space and executing the instruction triggered by the user operation without the need for the user Manually uninstall installed apps without re-downloading uninstalled apps. In addition, the installed applications do not need to be uninstalled, so the user data in the applications can be retained, and the loss of user data caused by uninstalling the applications can be avoided.

实施例二Embodiment 2

参照图2,示出了本发明实施例二的应用处理方法的流程图,具体可以包括如下步骤:Referring to FIG. 2 , a flowchart of an application processing method according to Embodiment 2 of the present invention is shown, which may specifically include the following steps:

步骤201,当接收到预设操作时,确定移动终端剩余的第一存储空间;该预设操作触发的指令中包括执行该指令需占用的目标存储空间。Step 201, when a preset operation is received, determine the remaining first storage space of the mobile terminal; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction.

此步骤与上述步骤101的实现过程类似,在此不再详述。This step is similar to the implementation process of the above-mentioned step 101, and will not be described in detail here.

例如,当用户需要安装新应用时,用户可以点击新应用对应的安装图标,移动终端相应可以接收到安装新应用的预设操作,该预设操作触发的指令中可以包括安装新应用需占用的目标存储空间为540MB、安装路径为xxx等安装信息,此时移动终端可以确定剩余的第一存储空间为260MB。For example, when the user needs to install a new application, the user can click the installation icon corresponding to the new application, and the mobile terminal can accordingly receive a preset operation for installing the new application. The target storage space is 540MB and the installation path is xxx and other installation information. At this time, the mobile terminal can determine that the remaining first storage space is 260MB.

步骤202,当第一存储空间小于目标存储空间时,获取移动终端中各个应用的使用参数值。Step 202, when the first storage space is smaller than the target storage space, obtain the usage parameter values of each application in the mobile terminal.

在本发明实施例中,移动终端可以将第一存储空间与目标存储空间进行对比,当第一存储空间小于执行指令需占用的目标存储空间时,可以确定移动终端中剩余的第一存储空间无法满足操作所触发的指令的存储空间需求,此时,移动终端可以获取已安装的各个应用的使用参数值。In this embodiment of the present invention, the mobile terminal may compare the first storage space with the target storage space, and when the first storage space is smaller than the target storage space required to execute the instruction, it may be determined that the remaining first storage space in the mobile terminal cannot be To meet the storage space requirement of the instruction triggered by the operation, at this time, the mobile terminal can obtain the usage parameter value of each installed application.

在本发明实施例中,考虑到用户的实际需求,移动终端可以选择用户不常用的应用进行压缩,以节省出部分存储空间。另外,用户经常压缩的应用也可间接认为是用户不常使用的应用,因而用户才会对经常对这些应用进行压缩,因此,移动终端也可以选择用户经常压缩,但此时未被压缩的应用进行压缩。相应的,在本发明实施例中,使用参数值可以包括第一预设时间段内的启动次数和/或第二预设时间段内的压缩次数,其中,第一预设时间段与第二预设时间段可以相同,也可以不同,本发明实施例对此不作具体限定。In this embodiment of the present invention, considering the actual needs of the user, the mobile terminal may select applications that are not commonly used by the user to compress, so as to save part of the storage space. In addition, applications that are often compressed by the user can also be indirectly considered as applications that are not frequently used by the user, so the user compresses these applications frequently. Therefore, the mobile terminal can also select applications that are often compressed by the user but are not compressed at this time. to compress. Correspondingly, in this embodiment of the present invention, the use parameter value may include the number of starts within the first preset time period and/or the number of compressions within the second preset time period, wherein the first preset time period and the second preset time period The preset time periods may be the same or different, which are not specifically limited in this embodiment of the present invention.

另外,当第一存储空间大于或等于目标存储空间时,可以确定此时移动终端中的第一存储空间足够顺利执行预设操作触发的指令,此时移动终端可以直接执行该指令。In addition, when the first storage space is greater than or equal to the target storage space, it can be determined that the first storage space in the mobile terminal is sufficient to smoothly execute the instruction triggered by the preset operation, and the mobile terminal can directly execute the instruction.

在实际应用中,在获取到各个应用的使用参数值之后,移动终端还可以按照使用参数值对各个应用排序并进行显示,如图3所示,移动终端可以还可以显示已占用的存储空间,可用的第一存储空间。In practical applications, after obtaining the usage parameter values of each application, the mobile terminal can also sort and display the applications according to the usage parameter values. As shown in FIG. 3 , the mobile terminal can also display the occupied storage space. Available first storage space.

例如,如图3所示,使用参数值可以包括第一预设时间段内的启动次数,第一预设时间段可以为一个月,移动终端可以确定第一存储空间260MB小于目标存储空间540MB,此时,移动终端可以获取应用A在一个月内的启动次数为0,应用B在一个月内的启动次数为0,应用C在一个月内的启动次数为0,应用D在一个月内的启动次数为1,应用E在一个月内的启动次数为2,应用F在一个月内的启动次数为30,应用G在一个月内的启动次数为210,应用H在一个月内的启动次数为240。For example, as shown in FIG. 3 , the use parameter value may include the number of startups within a first preset time period, the first preset time period may be one month, and the mobile terminal may determine that the first storage space 260MB is smaller than the target storage space 540MB, At this time, the mobile terminal can obtain that the number of startups of application A in one month is 0, the number of startups of application B in one month is 0, the number of startups of application C in one month is 0, and the number of startups of application D in one month is 0. The number of startups in a month is 1, the number of startups for application E in a month is 2, the number of startups for application F in a month is 30, the number of startups for application G in a month is 210, and the number of startups for application H in a month is 240.

步骤203,确定使用参数值满足预设条件的各个目标应用。Step 203: Determine each target application whose use parameter value satisfies the preset condition.

在本发明实施例中,使用参数值可以包括第一预设时间段内的启动次数和/或第二预设时间段内的压缩次数,相应的,本步骤的实现方式可以包括:确定启动次数小于第一预设次数,和/或压缩次数大于第二预设次数的各个目标应用。从而移动终端可以根据各个应用的使用参数值,从各个应用中选择出用户不常使用的目标应用。In this embodiment of the present invention, the used parameter value may include the number of startups within the first preset time period and/or the number of compressions within the second preset time period. Correspondingly, an implementation manner of this step may include: determining the number of startups Each target application whose number of times is smaller than the first preset number of times and/or whose number of compressions is greater than the number of times of the second preset number. Therefore, the mobile terminal can select a target application that is not frequently used by the user from each application according to the use parameter value of each application.

例如,移动终端可以从各个应用中,确定启动次数小于第一预设次数3的各个目标应用为应用A、应用B、应用C、应用D和应用E。For example, the mobile terminal may determine, from the respective applications, respective target applications whose startup times are less than the first preset number of times 3 as application A, application B, application C, application D, and application E.

步骤204,确定目标存储空间与第一存储空间之间的第一存储空间差值。Step 204: Determine the first storage space difference between the target storage space and the first storage space.

此步骤与上述步骤104的实现过程类似,在此不再详述。This step is similar to the implementation process of the above-mentioned step 104, and will not be described in detail here.

例如,移动终端可以确定目标存储空间540MB与第一存储空间260MB之间的第一存储空间差值为280MB。For example, the mobile terminal may determine that the first storage space difference between the target storage space of 540MB and the first storage space of 260MB is 280MB.

步骤205,根据第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。Step 205: Compress at least one target application according to the first storage space difference to obtain storage space required for executing the instruction.

在本发明实施例中,在移动终端剩余的第一存储空间不足时,移动终端可以对至少一个目标应用对应的应用文件进行压缩,从而可以节省出一部分存储空间,进而可以利用节省出的存储空间,以及原先剩余的第一存储空间执行指令,而无需对已安装的应用进行手动卸载,后续也无需将卸载的应用再重新安装,因此能够节约时间和流量。另外,由于无需卸载移动终端中已安装的应用,因此不会丢失各个应用中的用户数据。In the embodiment of the present invention, when the remaining first storage space of the mobile terminal is insufficient, the mobile terminal can compress the application file corresponding to at least one target application, so that a part of the storage space can be saved, and then the saved storage space can be used. , and the original remaining first storage space to execute the instruction, without manually uninstalling the installed application, and subsequently re-installing the uninstalled application, thus saving time and traffic. In addition, since there is no need to uninstall applications already installed in the mobile terminal, user data in each application will not be lost.

在本发明实施例中,本步骤可以通过下述两种方式中的任一种实现,包括:In this embodiment of the present invention, this step can be implemented in any of the following two ways, including:

第一种实现方式:依次对各个目标应用进行压缩,直至移动终端剩余的存储空间大于第一存储空间差值时,停止压缩,以获得执行指令所需的存储空间。The first implementation manner: compress each target application in sequence until the remaining storage space of the mobile terminal is greater than the first storage space difference, and stop the compression to obtain the storage space required for executing the instruction.

在第一种实现方式中,移动终端可以每压缩一个目标应用之后,确定剩余的存储空间,当剩余的存储空间大于第一存储空间差值时,可以确定此时移动终端中的存储空间足够顺利执行指令,移动终端此时可以停止压缩,从而可以获得执行指令所需的存储空间。当剩余的存储空间小于或等于第一存储空间差值时,可以确定此时移动终端中的存储空间无法顺利执行指令,移动终端此时可以继续对下一个目标应用进行压缩,直至移动终端中的剩余存储空间大于第一存储空间差值时停止压缩。In the first implementation manner, the mobile terminal may determine the remaining storage space after each target application is compressed, and when the remaining storage space is greater than the first storage space difference, it may be determined that the storage space in the mobile terminal is sufficient and smooth at this time After executing the instruction, the mobile terminal can stop compression at this time, so that the storage space required for executing the instruction can be obtained. When the remaining storage space is less than or equal to the first storage space difference, it can be determined that the storage space in the mobile terminal cannot successfully execute the instruction at this time, and the mobile terminal can continue to compress the next target application until the Compression is stopped when the remaining storage space is greater than the first storage space difference.

第二种实现方式:确定每个目标应用压缩前所占用的存储空间与压缩后需占用的存储空间之间的第二存储空间差值;对累计第二存储空间差值大于第一存储空间差值的至少一个目标应用进行压缩,以获得执行指令所需的存储空间。The second implementation method: determine the second storage space difference between the storage space occupied by each target application before compression and the storage space to be occupied after compression; the cumulative second storage space difference is greater than the first storage space difference. The value of at least one target application is compressed to obtain the storage space required to execute the instruction.

在第二种实现方式中,移动终端可以确定每个目标应用压缩前所占用的存储空间,以及压缩后需占用的存储空间,进而可以确定二者之间的第二存储空间差值,移动终端可以对累计第二存储空间差值大于第一存储空间差值的至少一个目标应用进行压缩,从而可以获得执行指令所需的存储空间。其中,将每个目标应用压缩前所占用的存储空间乘以预设压缩率,可以得到每个目标应用压缩后需占用的存储空间,也即移动终端可以事先根据预设的压缩率,预估出各个目标应用压缩后可以节省出多少存储空间,进而可以对累计节省出的空间大于第一存储空间差值的一个或多个目标应用进行压缩。在实际应用中,针对不同目标应用预设的压缩率可以相同,也可以不同,本发明实施例对此不作具体限定。In the second implementation manner, the mobile terminal can determine the storage space occupied by each target application before compression and the storage space that needs to be occupied after compression, and then can determine the second storage space difference between the two, and the mobile terminal At least one target application whose accumulated second storage space difference value is greater than the first storage space difference value may be compressed, so that storage space required for executing the instruction can be obtained. The storage space occupied by each target application before compression is multiplied by the preset compression ratio, and the storage space occupied by each target application after compression can be obtained, that is, the mobile terminal can estimate the compression ratio in advance according to the preset compression ratio. How much storage space can be saved after each target application is compressed, and then one or more target applications whose accumulatively saved space is greater than the first storage space difference can be compressed. In practical applications, the preset compression ratios for different target applications may be the same or different, which are not specifically limited in this embodiment of the present invention.

进一步地,移动终端还可以在如图3所示界面中,提供各个应用对应的压缩图标,从而用户可以手动选择对哪些应用进行压缩,而不仅限于用户不经常使用的应用,本发明实施例对此不作具体限定。Further, the mobile terminal may also provide compression icons corresponding to each application in the interface as shown in FIG. 3 , so that the user can manually select which applications to compress, not only the applications that the user does not use frequently. This is not specifically limited.

例如,移动终端可以依次对应用A、应用B、应用C、应用D和应用E进行压缩,对应用A进行压缩之后,移动终端可以确定压缩应用A后的剩余存储空间为440MB,也即压缩583MB的应用A后可以节省出180MB的存储空间,此时剩余存储空间440MB仍小于目标存储空间540MB,因此移动终端可以对应用B进行压缩,对应用B进行压缩之后,移动终端可以确定压缩应用B后的剩余存储空间为638MB,也即压缩641MB的应用B后可以节省出198MB的存储空间,此时,剩余存储空间638MB大于目标存储空间540MB,移动终端可以停止压缩,不再对应用C、应用D和应用E进行压缩,从而可以获得安装新应用所需的存储空间。For example, the mobile terminal can compress application A, application B, application C, application D, and application E in sequence. After compressing application A, the mobile terminal can determine that the remaining storage space after compressing application A is 440MB, that is, compressing 583MB Application A can save 180MB of storage space, and the remaining storage space of 440MB is still less than the target storage space of 540MB. Therefore, the mobile terminal can compress application B. After compressing application B, the mobile terminal can determine that after compressing application B, the mobile terminal can compress application B. The remaining storage space is 638MB, that is, 198MB of storage space can be saved after compressing 641MB of application B. At this time, the remaining storage space of 638MB is greater than the target storage space of 540MB, and the mobile terminal can stop compressing and no longer compress application C and application D. Compress with application E, so that the storage space required for installing new applications can be obtained.

步骤206,当接收到压缩后的目标应用的启动操作时,确定移动终端剩余的第二存储空间。Step 206: When receiving the start operation of the compressed target application, determine the remaining second storage space of the mobile terminal.

在本发明实施例中,当用户需要启动某个应用时,用户可以点击该应用的图标,从而移动终端可以接收到该应用的启动操作,之后移动终端可以先确定该应用是否已被压缩,若该应用未被压缩,则移动终端可以直接启动该应用。若该应用已被压缩,也即该应用为压缩后的任一目标应用,则移动终端可以确定剩余的第二存储空间,以便进一步确定剩余的第二存储空间是否足够对压缩后的目标应用进行解压。In this embodiment of the present invention, when a user needs to start an application, the user can click on the icon of the application, so that the mobile terminal can receive the start operation of the application, and then the mobile terminal can first determine whether the application has been compressed. If the application is not compressed, the mobile terminal can directly start the application. If the application has been compressed, that is, the application is any compressed target application, the mobile terminal may determine the remaining second storage space, so as to further determine whether the remaining second storage space is sufficient to perform the compression on the compressed target application. unzip.

例如,当接收到压缩后的应用A的启动操作时,移动终端可以确定剩余的第二存储空间为50MB。For example, when receiving the start operation of the compressed application A, the mobile terminal may determine that the remaining second storage space is 50MB.

步骤207,根据第二存储空间,以及压缩后的目标应用所需的解压空间,对压缩后的目标应用进行解压。Step 207: Decompress the compressed target application according to the second storage space and the decompression space required by the compressed target application.

在本发明实施例中,本步骤的实现方式可以包括:当第二存储空间大于压缩后的目标应用所需的解压空间时,对压缩后的目标应用进行解压;或者,当第二存储空间小于或等于压缩后的目标应用所需的解压空间时,对移动终端中未压缩的至少一个应用进行压缩,以获得大于解压空间的存储空间;对压缩后的目标应用进行解压。In this embodiment of the present invention, an implementation manner of this step may include: when the second storage space is larger than the decompression space required by the compressed target application, decompressing the compressed target application; or, when the second storage space is smaller than the decompression space required by the compressed target application; or equal to the decompression space required by the compressed target application, compress at least one uncompressed application in the mobile terminal to obtain a storage space larger than the decompression space; and decompress the compressed target application.

在上述实现方式中,压缩后的目标应用所需的解压空间,也即解压后的目标应用需占用的存储空间与压缩后的目标应用所占用的存储空间之间的存储空间差值,其中,解压后的目标应用需占用的存储空间,可以根据压缩率计算得到。用户在压缩目标应用之后的移动终端使用过程中,可能会进行删除图片、卸载应用、清空垃圾文件等操作,之后,移动终端剩余的第二存储空间可能会大于压缩后的目标应用所需的解压空间。当第二存储空间大于压缩后的目标应用所需的解压空间时,可以确定此时移动终端剩余的第二存储空间足够对解压后的目标应用进行存储,此时,移动终端可以直接对压缩后的目标应用进行解压。In the above implementation manner, the decompression space required by the compressed target application, that is, the storage space difference between the storage space occupied by the decompressed target application and the storage space occupied by the compressed target application, wherein, The storage space occupied by the decompressed target application can be calculated according to the compression ratio. During the use of the mobile terminal after compressing the target application, the user may delete pictures, uninstall the application, clear junk files, etc. After that, the remaining second storage space of the mobile terminal may be larger than the decompression required by the compressed target application. space. When the second storage space is larger than the decompression space required by the compressed target application, it can be determined that the remaining second storage space of the mobile terminal is sufficient to store the decompressed target application. At this time, the mobile terminal can directly store the compressed target application. The target application is decompressed.

而当第二存储空间小于或等于压缩后的目标应用所需的解压空间时,可以确定此时移动终端剩余的第二存储空间不足以对解压后的目标应用进行存储,此时,移动终端可以对移动终端中未压缩的至少一个应用进行压缩,以获得大于解压空间的存储空间,获得足够的存储空间之后,移动终端可以对压缩后的目标应用进行解压。When the second storage space is less than or equal to the decompression space required by the compressed target application, it can be determined that the second storage space remaining in the mobile terminal is not enough to store the decompressed target application. At this time, the mobile terminal can Compress at least one uncompressed application in the mobile terminal to obtain a storage space larger than the decompression space, and after obtaining enough storage space, the mobile terminal can decompress the compressed target application.

另外,当对移动终端中未压缩的至少一个应用进行压缩之后,仍无法获得足够的存储空间时,可以提醒用户当前移动终端的存储空间严重不足,从而用户查看到提醒消息之后可以采取相应的解决措施。In addition, when at least one uncompressed application in the mobile terminal is compressed and still cannot obtain enough storage space, the user can be reminded that the storage space of the current mobile terminal is seriously insufficient, so that the user can take corresponding solutions after viewing the reminder message measure.

例如,移动终端可以确定第二存储空间50MB小于压缩后的应用A所需的解压空间180MB,此时,移动终端可以对496MB的应用C进行压缩,可以节省出154MB,从而获得共204MB的存储空间,进而移动终端可以对压缩后的应用A进行解压。For example, the mobile terminal can determine that the second storage space of 50MB is less than the 180MB decompression space required by the compressed application A. At this time, the mobile terminal can compress the 496MB application C, which can save 154MB and obtain a total storage space of 204MB. , and then the mobile terminal can decompress the compressed application A.

步骤208,启动解压后的目标应用。Step 208, start the decompressed target application.

在本发明实施例中,在对压缩后的目标应用进行解压之后,移动终端可以启动解压后的目标应用,整个应用解压过程用户是无法感知的。In this embodiment of the present invention, after decompressing the compressed target application, the mobile terminal can start the decompressed target application, and the user cannot perceive the entire application decompression process.

另外,当压缩后的目标应用需要进行更新时,可以直接默认不进行更新,或者也可以提示用户需要对目标应用进行更新,当移动终端接收到目标应用的更新操作时,可以对压缩后的目标应用先进行解压,再进行更新,更新后可以压缩,也可以不压缩,本发明实施例对此不做具体限定。In addition, when the compressed target application needs to be updated, it may not be updated by default, or the user may be prompted that the target application needs to be updated. When the mobile terminal receives the update operation of the target application, it can update the compressed target application. The application is first decompressed and then updated. After the update, it may be compressed or not compressed, which is not specifically limited in this embodiment of the present invention.

例如,移动终端可以启动解压后的应用A。For example, the mobile terminal can start the decompressed application A.

在本发明实施例中,当移动终端接收到预设操作时,可以确定移动终端剩余的第一存储空间,该预设操作触发的指令中包括执行该指令需占用的目标存储空间,当第一存储空间小于目标存储空间时,可以获取各个应用的使用参数值,并确定使用参数值满足预设条件的各个目标应用,然后可以根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间,当需要启动压缩后的目标应用时,移动终端可以对压缩后的目标应用进行解压。在本发明实施例中,移动终端可以在存储空间不足时,对使用参数值满足预设条件的各个目标应用进行压缩,从而能够节省出部分存储空间,以执行用户操作所触发的指令,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载。另外,已安装的应用无需卸载,在存储空间不足时可以进行压缩,在解压后即可进行启动,因此可以保留应用中的用户数据,能够避免因卸载应用而造成用户数据的丢失。In this embodiment of the present invention, when the mobile terminal receives a preset operation, it can determine the remaining first storage space of the mobile terminal, and the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction. When the storage space is smaller than the target storage space, the use parameter values of each application can be obtained, and each target application whose use parameter value meets the preset condition can be determined, and then the first storage space difference between the target storage space and the first storage space can be determined according to the first storage space difference between the target storage space and the first storage space. value, at least one target application is compressed to obtain the storage space required for executing the instruction, and when the compressed target application needs to be started, the mobile terminal can decompress the compressed target application. In the embodiment of the present invention, when the storage space is insufficient, the mobile terminal can compress each target application whose use parameter value meets the preset condition, thereby saving part of the storage space and executing the instruction triggered by the user operation without the need for The user manually uninstalls the installed application, and thus does not need to re-download the uninstalled application. In addition, the installed application does not need to be uninstalled, and can be compressed when the storage space is insufficient, and can be started after decompression, so the user data in the application can be retained, and the loss of user data caused by uninstalling the application can be avoided.

实施例三Embodiment 3

参照图4,示出了本发明实施例三的一种应用处理400的结构框图,具体可以包括:Referring to FIG. 4, a structural block diagram of an application processing 400 according to Embodiment 3 of the present invention is shown, which may specifically include:

第一确定模块401,用于当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;The first determination module 401 is configured to determine the remaining first storage space of the mobile terminal when a preset operation is received; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction;

获取模块402,用于当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;an obtaining module 402, configured to obtain the usage parameter value of each application in the mobile terminal when the first storage space is smaller than the target storage space;

第二确定模块403,用于确定所述使用参数值满足预设条件的各个目标应用;A second determining module 403, configured to determine each target application whose usage parameter value satisfies a preset condition;

第三确定模块404,用于确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;A third determining module 404, configured to determine a first storage space difference between the target storage space and the first storage space;

压缩模块405,用于根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。The compression module 405 is configured to compress at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction.

可选的,参照图5,所述压缩模块405包括:Optionally, referring to FIG. 5 , the compression module 405 includes:

第一压缩子模块4051,用于依次对所述各个目标应用进行压缩,直至所述移动终端剩余的存储空间大于所述第一存储空间差值时,停止压缩,以获得执行所述指令所需的存储空间。The first compression sub-module 4051 is used to compress the respective target applications in sequence, and stop the compression until the remaining storage space of the mobile terminal is greater than the first storage space difference, so as to obtain the required storage space for executing the instruction. of storage space.

可选的,参照图5,所述压缩模块405包括:Optionally, referring to FIG. 5 , the compression module 405 includes:

第一确定子模块4052,用于确定每个所述目标应用压缩前所占用的存储空间与压缩后需占用的存储空间之间的第二存储空间差值;The first determination submodule 4052 is used to determine the second storage space difference between the storage space occupied by each of the target applications before compression and the storage space to be occupied after compression;

第二压缩子模块4053,用于对累计第二存储空间差值大于所述第一存储空间差值的至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。The second compression sub-module 4053 is configured to compress at least one target application whose accumulated second storage space difference value is greater than the first storage space difference value, so as to obtain storage space required for executing the instruction.

可选的,参照图5,所述使用参数值包括第一预设时间段内的启动次数和/或第二预设时间段内的压缩次数;Optionally, referring to FIG. 5 , the use parameter value includes the number of activations in the first preset time period and/or the number of compressions in the second preset time period;

所述第二确定模块403包括:The second determining module 403 includes:

第二确定子模块4031,用于确定所述启动次数小于第一预设次数,和/或所述压缩次数大于第二预设次数的各个目标应用。The second determination sub-module 4031 is configured to determine each target application for which the number of activations is less than the first preset number of times, and/or the number of times of compression is greater than the second preset number of times.

可选的,参照图5,所述装置还包括:Optionally, referring to Figure 5, the device further includes:

第四确定模块406,用于当接收到压缩后的所述目标应用的启动操作时,确定所述移动终端剩余的第二存储空间;a fourth determining module 406, configured to determine the remaining second storage space of the mobile terminal when the compressed start operation of the target application is received;

解压模块407,用于根据所述第二存储空间,以及压缩后的所述目标应用所需的解压空间,对压缩后的所述目标应用进行解压;A decompression module 407, configured to decompress the compressed target application according to the second storage space and the decompression space required by the compressed target application;

启动模块408,用于启动解压后的所述目标应用。The startup module 408 is configured to start the decompressed target application.

可选的,参照图5,所述解压模块407包括:Optionally, referring to FIG. 5 , the decompression module 407 includes:

第一解压子模块4071,用于当所述第二存储空间大于压缩后的所述目标应用所需的解压空间时,对压缩后的所述目标应用进行解压;或者,The first decompression submodule 4071 is configured to decompress the compressed target application when the second storage space is larger than the decompression space required by the compressed target application; or,

压缩子模块4072,用于当所述第二存储空间小于或等于压缩后的所述目标应用所需的解压空间时,对所述移动终端中未压缩的至少一个应用进行压缩,以获得大于所述解压空间的存储空间;第二解压子模块4073,用于对压缩后的所述目标应用进行解压。Compression sub-module 4072, configured to compress at least one uncompressed application in the mobile terminal when the second storage space is less than or equal to the decompression space required by the compressed target application, so as to obtain an application larger than the target application. The storage space of the decompression space; the second decompression sub-module 4073 is used to decompress the compressed target application.

本发明实施例提供的应用处理装置能够实现图1和图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The application processing apparatus provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of FIG. 1 and FIG. 2 , and to avoid repetition, details are not described here.

在本发明实施例中,当移动终端接收到预设操作时,可以通过第一确定模块,确定移动终端剩余的第一存储空间,该预设操作触发的指令中包括执行该指令需占用的目标存储空间,当第一存储空间小于目标存储空间时,可以通过获取模块获取各个应用的使用参数值,并通过第二确定模块确定使用参数值满足预设条件的各个目标应用,然后可以通过压缩模块,根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。在本发明实施例中,移动终端可以在存储空间不足时,对使用参数值满足预设条件的各个目标应用进行压缩,从而能够节省出部分存储空间,以执行用户操作所触发的指令,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载。另外,已安装的应用无需卸载,因此可以保留应用中的用户数据,能够避免因卸载应用而造成用户数据的丢失。In the embodiment of the present invention, when the mobile terminal receives a preset operation, the first determination module can determine the remaining first storage space of the mobile terminal, and the instruction triggered by the preset operation includes the target to be occupied to execute the instruction Storage space, when the first storage space is smaller than the target storage space, the use parameter value of each application can be obtained through the acquisition module, and each target application whose use parameter value meets the preset condition can be determined by the second determination module, and then can be used by the compression module. , compressing at least one target application according to the first storage space difference between the target storage space and the first storage space, so as to obtain the storage space required for executing the instruction. In the embodiment of the present invention, when the storage space is insufficient, the mobile terminal can compress each target application whose use parameter value meets the preset condition, thereby saving part of the storage space and executing the instruction triggered by the user operation without the need for The user manually uninstalls the installed application, and thus does not need to re-download the uninstalled application. In addition, the installed applications do not need to be uninstalled, so the user data in the applications can be retained, and the loss of user data caused by uninstalling the applications can be avoided.

实施例四Embodiment 4

图6为实现本发明各个实施例的一种移动终端的硬件结构示意图,6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,

该移动终端600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and Power supply 611 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 6 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器610,用于当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;确定所述使用参数值满足预设条件的各个目标应用;确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。The processor 610 is configured to determine the remaining first storage space of the mobile terminal when a preset operation is received; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction; When the first storage space is smaller than the target storage space, obtain the usage parameter value of each application in the mobile terminal; determine each target application whose usage parameter value satisfies the preset condition; determine the target storage space and the target application. A first storage space difference between the first storage spaces; and according to the first storage space difference, compress at least one of the target applications to obtain storage space required for executing the instruction.

在本发明实施例中,当移动终端接收到预设操作时,可以确定移动终端剩余的第一存储空间,该预设操作触发的指令中包括执行该指令需占用的目标存储空间,当第一存储空间小于目标存储空间时,可以获取各个应用的使用参数值,并确定使用参数值满足预设条件的各个目标应用,然后可以根据目标存储空间与第一存储空间之间的第一存储空间差值,对至少一个目标应用进行压缩,以获得执行指令所需的存储空间。在本发明实施例中,移动终端可以在存储空间不足时,对使用参数值满足预设条件的各个目标应用进行压缩,从而能够节省出部分存储空间,以执行用户操作所触发的指令,而无需用户手动卸载已安装的应用,进而也无需对卸载的应用进行重新下载。另外,已安装的应用无需卸载,因此可以保留应用中的用户数据,能够避免因卸载应用而造成用户数据的丢失。In this embodiment of the present invention, when the mobile terminal receives a preset operation, it can determine the remaining first storage space of the mobile terminal, and the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction. When the storage space is smaller than the target storage space, the use parameter values of each application can be obtained, and each target application whose use parameter value meets the preset condition can be determined, and then the first storage space difference between the target storage space and the first storage space can be determined according to the first storage space difference between the target storage space and the first storage space. value to compress at least one target application to obtain the storage space required to execute the instruction. In the embodiment of the present invention, when the storage space is insufficient, the mobile terminal can compress each target application whose use parameter value satisfies the preset condition, so as to save part of the storage space and execute the instruction triggered by the user operation without the need for The user manually uninstalls the installed application, and thus does not need to re-download the uninstalled application. In addition, the installed applications do not need to be uninstalled, so the user data in the applications can be retained, and the loss of user data caused by uninstalling the applications can be avoided.

应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 610; The uplink data is sent to the base station. Generally, the radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 602, such as helping the user to send and receive emails, browse web pages, and access streaming media.

音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与移动终端600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into audio signals and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.

输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used to receive audio or video signals. The input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 606 . The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602 . The microphone 6042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 601 for output in the case of a telephone call mode.

移动终端600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在移动终端600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and the proximity sensor when the mobile terminal 600 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 605 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元607可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 6071). operate). The touch panel 6071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 610, the command sent by the processor 610 is received and executed. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 6071 , the user input unit 607 may also include other input devices 6072 . Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.

进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 6071 can be covered on the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it transmits it to the processor 610 to determine the type of the touch event, and then the processor 610 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.

接口单元608为外部装置与移动终端600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端600内的一个或多个元件或者可以用于在移动终端600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device to the mobile terminal 600 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 608 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 600 or may be used between the mobile terminal 600 and the external Transfer data between devices.

存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 609 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器610是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块,以及调用存储在存储器609内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 609, and calls the data stored in the memory 609. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 610.

移动终端600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 600 may also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,移动终端600包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 600 includes some unshown functional modules, which are not repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器610,存储器609,存储在存储器609上并可在所述处理器610上运行的计算机程序,该计算机程序被处理器610执行时实现上述应用处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 610 , a memory 609 , a computer program stored in the memory 609 and running on the processor 610 , when the computer program is executed by the processor 610 Various processes of the above application processing method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述应用处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing application processing method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (14)

Translated fromChinese
1.一种应用处理方法,应用于移动终端,其特征在于,所述方法包括:1. An application processing method, applied to a mobile terminal, wherein the method comprises:当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;When a preset operation is received, determine the remaining first storage space of the mobile terminal; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction;当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;When the first storage space is smaller than the target storage space, acquiring the usage parameter value of each application in the mobile terminal;确定所述使用参数值满足预设条件的各个目标应用;Determine each target application whose usage parameter value satisfies the preset condition;确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;determining a first storage space difference between the target storage space and the first storage space;根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。According to the first storage space difference, at least one of the target applications is compressed to obtain storage space required for executing the instruction.2.根据权利要求1所述的方法,其特征在于,所述根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间的步骤,包括:2. The method according to claim 1, wherein the step of compressing at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction ,include:依次对所述各个目标应用进行压缩,直至所述移动终端剩余的存储空间大于所述第一存储空间差值时,停止压缩,以获得执行所述指令所需的存储空间。The respective target applications are compressed in sequence, and when the remaining storage space of the mobile terminal is greater than the first storage space difference, the compression is stopped to obtain the storage space required for executing the instruction.3.根据权利要求1所述的方法,其特征在于,所述根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间的步骤,包括:3. The method according to claim 1, wherein the step of compressing at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction ,include:确定每个所述目标应用压缩前所占用的存储空间与压缩后需占用的存储空间之间的第二存储空间差值;Determine the second storage space difference between the storage space occupied by each of the target applications before compression and the storage space to be occupied after compression;对累计第二存储空间差值大于所述第一存储空间差值的至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。Compress at least one of the target applications whose accumulated second storage space difference value is greater than the first storage space difference value, so as to obtain storage space required for executing the instruction.4.根据权利要求1所述的方法,其特征在于,所述使用参数值包括第一预设时间段内的启动次数和/或第二预设时间段内的压缩次数;4. The method according to claim 1, wherein the use parameter value comprises the number of activations in the first preset time period and/or the number of compressions in the second preset time period;所述确定所述使用参数值满足预设条件的各个目标应用的步骤,包括:The step of determining each target application whose usage parameter value satisfies a preset condition includes:确定所述启动次数小于第一预设次数,和/或所述压缩次数大于第二预设次数的各个目标应用。It is determined that the number of times of activation is less than the first preset number of times, and/or the number of times of compression is greater than the second preset number of target applications.5.根据权利要求1所述的方法,其特征在于,所述根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间的步骤之后,还包括:5. The method according to claim 1, wherein the step of compressing at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction After that, also include:当接收到压缩后的所述目标应用的启动操作时,确定所述移动终端剩余的第二存储空间;When receiving the compressed start operation of the target application, determining the remaining second storage space of the mobile terminal;根据所述第二存储空间,以及压缩后的所述目标应用所需的解压空间,对压缩后的所述目标应用进行解压;Decompress the compressed target application according to the second storage space and the decompression space required by the compressed target application;启动解压后的所述目标应用。Start the decompressed target application.6.根据权利要求5所述的方法,其特征在于,所述根据所述第二存储空间,以及压缩后的所述目标应用所需的解压空间,对压缩后的所述目标应用进行解压的步骤,包括:6 . The method according to claim 5 , wherein, according to the second storage space and the decompression space required by the compressed target application, the compressed target application is decompressed. 7 . steps, including:当所述第二存储空间大于压缩后的所述目标应用所需的解压空间时,对压缩后的所述目标应用进行解压;或者,When the second storage space is larger than the decompression space required by the compressed target application, decompress the compressed target application; or,当所述第二存储空间小于或等于压缩后的所述目标应用所需的解压空间时,对所述移动终端中未压缩的至少一个应用进行压缩,以获得大于所述解压空间的存储空间;对压缩后的所述目标应用进行解压。When the second storage space is less than or equal to the decompression space required by the compressed target application, compress at least one uncompressed application in the mobile terminal to obtain a storage space larger than the decompression space; The compressed target application is decompressed.7.一种应用处理装置,其特征在于,所述装置包括:7. An application processing device, wherein the device comprises:第一确定模块,用于当接收到预设操作时,确定所述移动终端剩余的第一存储空间;所述预设操作触发的指令中包括执行所述指令需占用的目标存储空间;a first determining module, configured to determine the remaining first storage space of the mobile terminal when a preset operation is received; the instruction triggered by the preset operation includes the target storage space to be occupied by executing the instruction;获取模块,用于当所述第一存储空间小于所述目标存储空间时,获取所述移动终端中各个应用的使用参数值;an acquisition module, configured to acquire use parameter values of each application in the mobile terminal when the first storage space is smaller than the target storage space;第二确定模块,用于确定所述使用参数值满足预设条件的各个目标应用;a second determination module, configured to determine each target application whose usage parameter value satisfies a preset condition;第三确定模块,用于确定所述目标存储空间与所述第一存储空间之间的第一存储空间差值;a third determining module, configured to determine a first storage space difference between the target storage space and the first storage space;压缩模块,用于根据所述第一存储空间差值,对至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。A compression module, configured to compress at least one of the target applications according to the first storage space difference to obtain storage space required for executing the instruction.8.根据权利要求7所述的装置,其特征在于,所述压缩模块包括:8. The apparatus according to claim 7, wherein the compression module comprises:第一压缩子模块,用于依次对所述各个目标应用进行压缩,直至所述移动终端剩余的存储空间大于所述第一存储空间差值时,停止压缩,以获得执行所述指令所需的存储空间。The first compression sub-module is configured to compress the respective target applications in sequence, and stop the compression until the remaining storage space of the mobile terminal is greater than the first storage space difference, so as to obtain the required data for executing the instruction. storage.9.根据权利要求7所述的装置,其特征在于,所述压缩模块包括:9. The apparatus according to claim 7, wherein the compression module comprises:第一确定子模块,用于确定每个所述目标应用压缩前所占用的存储空间与压缩后需占用的存储空间之间的第二存储空间差值;The first determination submodule is used to determine the second storage space difference between the storage space occupied before each described target application is compressed and the storage space to be occupied after compression;第二压缩子模块,用于对累计第二存储空间差值大于所述第一存储空间差值的至少一个所述目标应用进行压缩,以获得执行所述指令所需的存储空间。The second compression submodule is configured to compress at least one of the target applications whose accumulated second storage space difference is greater than the first storage space difference, so as to obtain storage space required for executing the instruction.10.根据权利要求7所述的装置,其特征在于,所述使用参数值包括第一预设时间段内的启动次数和/或第二预设时间段内的压缩次数;10. The apparatus according to claim 7, wherein the use parameter value comprises the number of activations in the first preset time period and/or the number of compressions in the second preset time period;所述第二确定模块包括:The second determining module includes:第二确定子模块,用于确定所述启动次数小于第一预设次数,和/或所述压缩次数大于第二预设次数的各个目标应用。The second determination sub-module is configured to determine each target application for which the number of activations is less than the first preset number of times, and/or the number of times of compression is greater than the second preset number of times.11.根据权利要求7所述的装置,其特征在于,所述装置还包括:11. The apparatus of claim 7, wherein the apparatus further comprises:第四确定模块,用于当接收到压缩后的所述目标应用的启动操作时,确定所述移动终端剩余的第二存储空间;a fourth determining module, configured to determine the remaining second storage space of the mobile terminal when the compressed start operation of the target application is received;解压模块,用于根据所述第二存储空间,以及压缩后的所述目标应用所需的解压空间,对压缩后的所述目标应用进行解压;a decompression module, configured to decompress the compressed target application according to the second storage space and the decompression space required by the compressed target application;启动模块,用于启动解压后的所述目标应用。The startup module is used to start the decompressed target application.12.根据权利要求11所述的装置,其特征在于,所述解压模块包括:12. The apparatus according to claim 11, wherein the decompression module comprises:第一解压子模块,用于当所述第二存储空间大于压缩后的所述目标应用所需的解压空间时,对压缩后的所述目标应用进行解压;或者,a first decompression submodule, configured to decompress the compressed target application when the second storage space is larger than the decompression space required by the compressed target application; or,压缩子模块,用于当所述第二存储空间小于或等于压缩后的所述目标应用所需的解压空间时,对所述移动终端中未压缩的至少一个应用进行压缩,以获得大于所述解压空间的存储空间;第二解压子模块,用于对压缩后的所述目标应用进行解压。a compression sub-module, configured to compress at least one uncompressed application in the mobile terminal when the second storage space is less than or equal to the decompression space required by the compressed target application, so as to obtain an application larger than the target application. The storage space of the decompression space; the second decompression submodule is used to decompress the compressed target application.13.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的应用处理方法的步骤。13. A mobile terminal, characterized in that it comprises a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the right The steps of applying the processing method of any one of claims 1 to 6.14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的应用处理方法的步骤。14. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the application according to any one of claims 1 to 6 is realized The steps of the processing method.
CN201810998074.7A2018-08-292018-08-29 Application processing method, device and mobile terminalPendingCN109284187A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810998074.7ACN109284187A (en)2018-08-292018-08-29 Application processing method, device and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810998074.7ACN109284187A (en)2018-08-292018-08-29 Application processing method, device and mobile terminal

Publications (1)

Publication NumberPublication Date
CN109284187Atrue CN109284187A (en)2019-01-29

Family

ID=65183683

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810998074.7APendingCN109284187A (en)2018-08-292018-08-29 Application processing method, device and mobile terminal

Country Status (1)

CountryLink
CN (1)CN109284187A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110209403A (en)*2019-05-302019-09-06努比亚技术有限公司Terminal space method for releasing, device, mobile terminal and readable storage medium storing program for executing
CN112463039A (en)*2020-11-172021-03-09浙江大华技术股份有限公司Data storage method, device and storage medium
CN113033779A (en)*2021-03-182021-06-25联想(北京)有限公司Model processing method based on equipment parameters and electronic equipment
CN113885787A (en)*2021-06-082022-01-04荣耀终端有限公司 A memory management method and electronic device
CN113918176A (en)*2020-07-072022-01-11丰田自动车株式会社Vehicle-mounted device, vehicle-mounted system, and vehicle
CN120085806A (en)*2025-02-122025-06-03深圳市抖胆科技有限公司 A detection method, system, intelligent terminal and computer-readable storage medium for Flash intelligent analysis and detection

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101334736A (en)*2007-06-282008-12-31索尼爱立信移动通信日本株式会社Oftware updating method and portable terminal devic
CN106066770A (en)*2016-05-252016-11-02北京小米移动软件有限公司Memory space management and device
CN107357617A (en)*2017-06-302017-11-17广东欧珀移动通信有限公司Using update method, device, storage medium and electronic equipment
CN107957907A (en)*2016-10-142018-04-24北京搜狗科技发展有限公司A kind of applied program processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101334736A (en)*2007-06-282008-12-31索尼爱立信移动通信日本株式会社Oftware updating method and portable terminal devic
CN106066770A (en)*2016-05-252016-11-02北京小米移动软件有限公司Memory space management and device
CN107957907A (en)*2016-10-142018-04-24北京搜狗科技发展有限公司A kind of applied program processing method and device
CN107357617A (en)*2017-06-302017-11-17广东欧珀移动通信有限公司Using update method, device, storage medium and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110209403A (en)*2019-05-302019-09-06努比亚技术有限公司Terminal space method for releasing, device, mobile terminal and readable storage medium storing program for executing
CN113918176A (en)*2020-07-072022-01-11丰田自动车株式会社Vehicle-mounted device, vehicle-mounted system, and vehicle
EP3939846A1 (en)*2020-07-072022-01-19Toyota Jidosha Kabushiki KaishaIn-vehicle unit, in-vehicle system, and vehicle
CN112463039A (en)*2020-11-172021-03-09浙江大华技术股份有限公司Data storage method, device and storage medium
CN113033779A (en)*2021-03-182021-06-25联想(北京)有限公司Model processing method based on equipment parameters and electronic equipment
CN113033779B (en)*2021-03-182024-08-27联想(北京)有限公司Model processing method based on equipment parameters and electronic equipment
CN113885787A (en)*2021-06-082022-01-04荣耀终端有限公司 A memory management method and electronic device
CN116243850A (en)*2021-06-082023-06-09荣耀终端有限公司 A memory management method and electronic device
CN116243850B (en)*2021-06-082024-05-28荣耀终端有限公司Memory management method and electronic equipment
CN120085806A (en)*2025-02-122025-06-03深圳市抖胆科技有限公司 A detection method, system, intelligent terminal and computer-readable storage medium for Flash intelligent analysis and detection

Similar Documents

PublicationPublication DateTitle
CN108958074B (en)A kind of smart machine control method and mobile terminal
CN109284187A (en) Application processing method, device and mobile terminal
CN110837327B (en) A message viewing method and terminal
CN109885323B (en) Application upgrade method, mobile terminal and readable storage medium
CN107861730B (en) Application processing method and mobile terminal
CN110780940A (en)Application program loading method, electronic device and storage medium
WO2021098360A1 (en)Application control method, electronic device, and server
CN108595201A (en)A kind of application program update method and mobile terminal
CN108270870A (en) Method and device for pushing prompt information
CN110308839A (en) A file management method and terminal equipment
CN107967153A (en)The management method and mobile terminal of a kind of application program
CN110442437A (en)Application switching method and mobile terminal
CN111522575B (en)Application program upgrading method and electronic equipment
CN108228357B (en) A kind of memory cleaning method and mobile terminal
CN108491225B (en)Update package generation method and mobile terminal
CN111240729B (en)Software updating method, electronic device and medium
CN109992941A (en) A rights management method and terminal device
CN108009031A (en)The control method and mobile terminal of a kind of application program
CN108762799A (en)A kind of method and terminal of update application
CN107844318A (en)The upgrade method and mobile terminal and server of a kind of operating system
CN110990029A (en) Application processing method and electronic device
CN111309390A (en)Method for acquiring configuration information and electronic equipment
CN110888688A (en) A kind of setting restoration method of electronic equipment and electronic equipment
CN107885423B (en)Picture processing method and mobile terminal
CN109947323A (en) A terminal display method and terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190129

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp