Movatterモバイル変換


[0]ホーム

URL:


CN107577471B - Application control method and mobile terminal - Google Patents

Application control method and mobile terminal
Download PDF

Info

Publication number
CN107577471B
CN107577471BCN201710826930.6ACN201710826930ACN107577471BCN 107577471 BCN107577471 BCN 107577471BCN 201710826930 ACN201710826930 ACN 201710826930ACN 107577471 BCN107577471 BCN 107577471B
Authority
CN
China
Prior art keywords
application
target application
mobile terminal
installation package
usage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710826930.6A
Other languages
Chinese (zh)
Other versions
CN107577471A (en
Inventor
李仁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710826930.6ApriorityCriticalpatent/CN107577471B/en
Publication of CN107577471ApublicationCriticalpatent/CN107577471A/en
Application grantedgrantedCritical
Publication of CN107577471BpublicationCriticalpatent/CN107577471B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供一种应用控制方法及移动终端,该方法包括:记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。

Figure 201710826930

The present invention provides an application control method and a mobile terminal. The method includes: recording corresponding usage scene parameters when a user uses an application; judging whether an application installed on the mobile terminal satisfies a first preset condition according to the usage scene parameter; The first target application of the first preset condition is uninstalled according to a preset rule; wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

Figure 201710826930

Description

Translated fromChinese
一种应用控制方法及移动终端Application control method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种应用控制方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to an application control method and a mobile terminal.

背景技术Background technique

进入物联网时代,智能终端已经跟人们的生活息息相关,越来越多的应用孕育而生,并被用户在智能终端中安装使用。但其中存在很大一部分不常用的应用,在被用户安装后,仅使用一两次。但是用户对不常用的应用没有去卸载,也不愿去主动卸载,很大一部分原因是,担心某天突然又要用了,又需要重新下载安装或者没有WiFi无法下载,从而带来不必要的麻烦。然而不常用的应用将会占用系统一大部分的内存,从而影响移动终端的运行速度。In the era of the Internet of Things, smart terminals have been closely related to people's lives, and more and more applications have been born and installed and used by users in smart terminals. But there are a large number of infrequently used applications, which are only used once or twice after being installed by users. However, users do not uninstall applications that are not commonly used, and are unwilling to uninstall them actively. A large part of the reason is that they are worried that they will be used again one day, and they need to be re-downloaded and installed or cannot be downloaded without WiFi, which will cause unnecessary trouble. However, applications that are not commonly used will occupy a large part of the memory of the system, thereby affecting the running speed of the mobile terminal.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种应用控制方法及移动终端,以解决不常用应用对系统内存占用,影响移动终端的运行速度的问题。Embodiments of the present invention provide an application control method and a mobile terminal, so as to solve the problem that infrequently used applications occupy system memory and affect the running speed of the mobile terminal.

第一方面,本发明实施例提供了一种应用控制方法,应用于移动终端,包括:In a first aspect, an embodiment of the present invention provides an application control method, applied to a mobile terminal, including:

记录用户使用应用时,对应的使用场景参数;Record the corresponding usage scene parameters when the user uses the application;

根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;Determine whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter;

对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,Perform uninstallation processing on the first target application that satisfies the first preset condition according to preset rules; wherein,

所述预设规则包括:The preset rules include:

释放应用运行时占用的内存。Frees up memory occupied by the app while it is running.

第二方面,本发明实施例还提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:

记录模块,用于记录用户使用应用时,对应的使用场景参数;The recording module is used to record the corresponding usage scene parameters when the user uses the application;

判断模块,用于根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;a judgment module, configured to judge whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter;

处理模块,用于对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,a processing module, configured to perform uninstallation processing on the first target application that satisfies the first preset condition according to preset rules; wherein,

所述预设规则包括:The preset rules include:

释放应用运行时占用的内存。Frees up memory occupied by the app while it is running.

第三方面,本发明实施例还提供了一种移动终端,包括:In a third aspect, an embodiment of the present invention further provides a mobile terminal, including:

一个或多个处理器;one or more processors;

存储器;以及memory; and

一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述一个或多个处理器执行,所述程序被执行时实现上述应用控制方法中的步骤。One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and when the programs are executed, the above application control method is implemented A step of.

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

这样,本发明实施例中,记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。In this way, in this embodiment of the present invention, when the user uses the application, the corresponding usage scenario parameters are recorded; according to the usage scenario parameters, it is determined whether the application installed on the mobile terminal satisfies the first preset condition; The first target application is uninstalled according to a preset rule, wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1是本发明一实施例提供的应用控制方法的流程图之一;1 is one of the flowcharts of an application control method provided by an embodiment of the present invention;

图2是本发明一实施例提供的应用控制方法的流程图之二;FIG. 2 is the second flowchart of an application control method provided by an embodiment of the present invention;

图3是本发明一实施例提供的应用控制方法的流程图之三;3 is a third flowchart of an application control method provided by an embodiment of the present invention;

图4是本发明一实施例提供的应用控制方法的流程图之四;4 is a fourth flowchart of an application control method provided by an embodiment of the present invention;

图5是本发明一实施例提供的移动终端的结构图;5 is a structural diagram of a mobile terminal provided by an embodiment of the present invention;

图6是本发明另一实施例提供的移动终端的结构图;6 is a structural diagram of a mobile terminal provided by another embodiment of the present invention;

图7是本发明又一实施例提供的移动终端的结构图。FIG. 7 is a structural diagram of a mobile terminal according to another embodiment 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.

参见图1,图1是本发明实施例提供的一种应用控制方法的流程图,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of an application control method provided by an embodiment of the present invention, as shown in FIG. 1, including the following steps:

步骤101,记录用户使用应用时,对应的使用场景参数;Step 101, recording the corresponding usage scene parameters when the user uses the application;

本发明实施例提供的应用控制方法主要应用在移动终端中,用于对移动终端的应用进行管理。The application control method provided by the embodiment of the present invention is mainly applied in a mobile terminal, and is used to manage applications of the mobile terminal.

该步骤中,上述使用场景参数具体可以根据实际需要进行设置,例如,在本实施例中,上述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。In this step, the above-mentioned usage scenario parameters can be specifically set according to actual needs. For example, in this embodiment, the above-mentioned usage scenario parameters include at least one of usage time, usage location, and usage frequency of the application.

步骤102,根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件。Step 102: Determine whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter.

该步骤中,上述第一预设条件用于判断应用是否为不常用的应用,对于不常用的应用可以根据使用场景参数进行确定。例如可以根据历史记录的各应用的使用场景参数对应的参数值确定当前状态下应用是否为不常用的应用。具体的,该第一预设条件的内容可以根据实际需要进行设置,例如该第一预设条件对应不同使用场景参数设有不同的子条件,以下对此进行详细说明。In this step, the above-mentioned first preset condition is used to determine whether the application is an infrequently used application, and the infrequently used application may be determined according to a usage scenario parameter. For example, whether the application in the current state is an infrequently used application may be determined according to the parameter value corresponding to the usage scenario parameter of each application recorded in the history. Specifically, the content of the first preset condition may be set according to actual needs. For example, the first preset condition has different sub-conditions corresponding to different usage scene parameters, which will be described in detail below.

针对使用时间特性的使用场景参数(即时间和频率),上述预设条件可以包括第一子条件和第二子条件。具体的,第一子条件包括:从安装后使用的次数小于第一预设值,且与当前时间相比距离上一次使用的间隔时间大于第一预设时长。第二子条件包括:当前时间是否在特定日期范围,该特定日期范围为节假日前后一段时间。例如应用的使用时间为特定日期(如购票软件仅在节假日前后),则当当前时间不在特定日期,即可确定该购票软件满足第一预设条件。Regarding the usage scene parameters (ie time and frequency) of using the time characteristic, the above-mentioned preset conditions may include a first sub-condition and a second sub-condition. Specifically, the first sub-condition includes: the number of times of use since installation is less than the first preset value, and the interval time from the last use compared with the current time is greater than the first preset duration. The second sub-condition includes: whether the current time is within a specific date range, and the specific date range is a period of time before and after a holiday. For example, the usage time of the application is on a specific date (for example, the ticket-purchasing software is only around holidays), and when the current time is not on the specific date, it can be determined that the ticket-purchasing software satisfies the first preset condition.

针对使用地点特性的使用场景参数(即地点),上述预设条件可以包括第三子条件,该第三子条件包括:移动终端所处的地理位置不属于应用使用的地点对应的区域范围。以免费国际长途通话软件应用为例进行说明,历史记录该免费国际长途通话软件应用的使用地点为国外(即用户出国时才会用到的软件),根据获取移动终端所在的位置,当确定移动终端在国内时,则确定免费国际长途通话软件应用满足上述第一预设条件。For the usage scene parameter (ie location) of the location feature, the above preset condition may include a third sub-condition, where the third sub-condition includes: the geographic location where the mobile terminal is located does not belong to the area corresponding to the location used by the application. Taking the free international long distance calling software application as an example, the history records that the free international long distance calling software application is used in a foreign country (that is, the software that the user will only use when they go abroad). When the terminal is in the country, it is determined that the free international long-distance calling software application satisfies the above-mentioned first preset condition.

步骤103,对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理。Step 103: Perform uninstallation processing on the first target application that satisfies the first preset condition according to a preset rule.

该步骤中,上述预设规则包括:In this step, the above-mentioned preset rules include:

释放应用运行时占用的内存。Frees up memory occupied by the app while it is running.

具体的,释放应用运行时占用的内存主要包括:安装过程中产生的一些文件,如data/app/应用包名/oat/*等,以及运行过程中产生的一些缓存文件,如data/data/应用包名/cache。Specifically, releasing the memory occupied by the application during running mainly includes: some files generated during the installation process, such as data/app/application package name/oat/*, etc., and some cache files generated during the running process, such as data/data/ Application package name/cache.

这样,本发明实施例中,记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。In this way, in this embodiment of the present invention, when the user uses the application, the corresponding usage scenario parameters are recorded; according to the usage scenario parameters, it is determined whether the application installed on the mobile terminal satisfies the first preset condition; The first target application is uninstalled according to a preset rule, wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

进一步的,上述预设规则还可以包括:Further, the above-mentioned preset rules may also include:

保留用户关键数据;Retain key user data;

以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包。And, if there is an installation package corresponding to the first target application, the installation package is retained; if there is no installation package of the first target application, the installation package is downloaded.

本实施例中,为了保证应用能够还原,保留应用安装包和用户关键数据(如账号、开关等),如data/data/应用名下的数据,另外,还可以保留用户必要的图片、音乐和视频数据等。In this embodiment, in order to ensure that the application can be restored, the application installation package and key user data (such as account numbers, switches, etc.) are retained, such as data under the data/data/application name. In addition, the user's necessary pictures, music and video data, etc.

应理解,通常情况下,在安装应用后,将应用的安装包存储在系统数据存储路径下。因此在按照预设规则对应用进行卸载处理时,应用的安装包都正常储存。当然,用户在使用的过程中还可以主动删除已经安装的应用对应的安装包,此时,可以对第一目标应用的安装包进行下载。具体地,在按照预设规则对应用进行卸载处理后,检测移动终端是否通过WiFi进入联网状态;若检测到移动终端处于WiFi联网状态,则向服务器发送第一目标应用的安装包下载请求,从而下载对应的安装包,并将下载的安装包储存在指定的目录下。由于在卸载后保留了用户关键数据和安装包,用户可以随时恢复应用,进行应用的安装使用,避免受到网络条件的限制。It should be understood that, in general, after the application is installed, the installation package of the application is stored in the system data storage path. Therefore, when the application is uninstalled according to the preset rules, the installation package of the application is stored normally. Of course, the user can also actively delete the installation package corresponding to the installed application during the use process, and at this time, the installation package of the first target application can be downloaded. Specifically, after the application is uninstalled according to the preset rules, it is detected whether the mobile terminal enters the networked state through WiFi; if it is detected that the mobile terminal is in the WiFi networked state, a download request of the installation package of the first target application is sent to the server, thereby Download the corresponding installation package and store the downloaded installation package in the specified directory. Since the user's key data and installation package are retained after uninstallation, the user can restore the application at any time, install and use the application, and avoid being restricted by network conditions.

应当说明的是,根据用户的不同需求,上述预设规则还可以设置其他功能,例如在本实施例中,上述预设规则还可以包括保留并标识所述第一目标应用的图标。保留图标是为了让用户仍然可以关注该应用,标识图标可以提醒用户该应用已经按照预设规则进行了卸载处理。标识图标的方式可以根据实际需要进行设置,例如可以在图标上设置雪花等。与此同时,为了避免其他应用对该第一目标应用的调用出现错误,还可以屏蔽其他应用拉起或调用该应用的入口。It should be noted that, according to different needs of users, the above-mentioned preset rules may further set other functions. For example, in this embodiment, the above-mentioned preset rules may further include an icon that retains and identifies the first target application. The purpose of retaining the icon is to allow the user to still pay attention to the application, and the identification icon can remind the user that the application has been uninstalled according to the preset rules. The way of identifying the icon can be set according to actual needs, for example, snowflakes can be set on the icon. At the same time, in order to avoid errors in other applications calling the first target application, the entry for other applications to pull up or call the application may also be blocked.

进一步的,按照上述预设规则进行应用卸载,并非应用的彻底的卸载,仅是释放了系统内存占用,本实施例中,还可以对其进行恢复。具体的,参照图2,上述步骤103之后,所述方法还包括:Further, uninstalling the application according to the above preset rules does not completely uninstall the application, but only releases the system memory occupation, which can also be restored in this embodiment. Specifically, referring to FIG. 2 , after theabove step 103, the method further includes:

步骤104,若接收到针对第二目标应用的运行指令或根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用。Step 104, if an operation instruction for the second target application is received or it is determined according to the usage scenario parameters that there is a second target application to be restored in the current state of the mobile terminal, call the installation package of the second target application to install the first target application. Second target application, and restore the user key data corresponding to the second target application, where the second target application is an application in the first target application.

本实施例中,用户可以主动恢复安装上述实施例中按照预设规则卸载的第一目标应用,也可以通过使用场景参数自动恢复安装上述实施例中按照预设规则卸载的第一目标应用。具体的,当用户进行主动选择恢复时,用户可以通过应用管理软件输入对第二目标应用的运行指令,也可以通过点击保留并标识的应用图标输入对第二目标应用的运行指令;当根据使用场景参数自动恢复时,根据所述使用场景参数确定移动终端当前状态下是否存在待恢复的第二目标应用,若存在,则对第二目标应用进行恢复。例如,先调用运行第二目标应用的安装包,进行本地应用的安装,然后设置还原该第二目标应用对应的用户关键数据。本实施例中,由于用户可以根据实际操作主动恢复第二目标应用,从而可以有针对性的安装使用第二目标应用,避免第二目标应用在未使用的状态下重新恢复安装,保证了系统运行速度。另外还可以根据使用场景参数自动对第二目标应用进行恢复,从而在用户无知觉的情况下自动完成安装,以方便用户正常使用,因此提高了移动终端的智能化程度。In this embodiment, the user can actively restore the installation of the first target application uninstalled according to the preset rules in the above embodiment, and can also automatically restore the installation of the first target application uninstalled according to the preset rules in the above embodiment by using scene parameters. Specifically, when the user actively selects and restores, the user can input the operation instruction for the second target application through the application management software, or input the operation instruction for the second target application by clicking the reserved and marked application icon; When the scene parameters are automatically restored, it is determined whether there is a second target application to be restored in the current state of the mobile terminal according to the use scene parameters, and if so, the second target application is restored. For example, the installation package for running the second target application is called first to install the local application, and then the key user data corresponding to the second target application is set and restored. In this embodiment, since the user can actively restore the second target application according to the actual operation, the second target application can be installed and used in a targeted manner, so as to prevent the second target application from being re-installed in an unused state, and ensure the running of the system. speed. In addition, the second target application can be automatically restored according to the usage scene parameters, so as to automatically complete the installation without the user's awareness, so as to facilitate the normal use of the user, thus improving the intelligence of the mobile terminal.

进一步的,为了更好的将第二目标应用还原至卸载之前的状态,本实施例中,在上述步骤101之前,该方法还包括:Further, in order to better restore the second target application to the state before uninstallation, in this embodiment, beforestep 101, the method further includes:

记录各应用的签名和权限;Record the signatures and permissions of each application;

在上述步骤104之后,该方法还包括:After theabove step 104, the method further includes:

检查并校验所述第二目标应用对应记录的签名;Check and verify the signature of the corresponding record of the second target application;

按照记录的所述第二目标应用对应的权限进行应用权限恢复。Perform application permission recovery according to the recorded permission corresponding to the second target application.

本实施例中,上述权限包括运行权限和读写权限。因为应用关键数据的存储路径一般都是固定的,比如data/data/应用包名/,所以,只要恢复应用对这些数据、文件的读写访问权限,则可达到恢复账户数据、开关设置等。由于记录了签名和权限,可以将应用还原至卸载前的状态,避免给用户感觉像重新安装了一个新的应用。In this embodiment, the above-mentioned rights include running rights and read-write rights. Because the storage path of key application data is generally fixed, such as data/data/application package name/, as long as the application's read and write access rights to these data and files are restored, account data and switch settings can be restored. Since signatures and permissions are recorded, the app can be restored to the state it was in before uninstallation, avoiding the user feeling like a new app has been reinstalled.

为了进一步降低不常用应用对系统的影响,本实施例中,还可以对应用运行所产生的垃圾数据进行清理,具体的,参照图3,在上述步骤101之前,该方法还包括:In order to further reduce the impact of infrequently used applications on the system, in this embodiment, the garbage data generated by the running of the applications may also be cleaned up. Specifically, referring to FIG. 3 , before theabove step 101, the method further includes:

步骤105,接收服务器发送各应用对应的垃圾数据清理路径列表;Step 105, the receiving server sends a list of garbage data cleaning paths corresponding to each application;

上述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。The above preset rules further include: deleting junk data according to the junk data cleaning path list corresponding to the application.

本实施例中,因各应用的设计不同,针对不同的应用,可以通过服务器下发配置各应用垃圾数据清理路径列表,在进行第一目标应用卸载时,根据该第一目标应用对应的垃圾数据清理路径列表,对指定的路径下的垃圾数据进行删除,从而进一步节省内存空间。In this embodiment, due to the different designs of each application, for different applications, the server can deliver and configure the garbage data cleaning path list of each application. When uninstalling the first target application, according to the garbage data corresponding to the first target application Clean up the path list and delete junk data under the specified path to further save memory space.

进一步的,为了节省内存空间,还可以对安装包和用户关键数据进行压缩。参照图4,本实施例中,在上述步骤103之后,该方法还包括:Further, in order to save memory space, the installation package and key user data can also be compressed. Referring to FIG. 4 , in this embodiment, afterstep 103 above, the method further includes:

步骤106,对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。Step 106, compressing the installation package and user key data corresponding to the first target application.

该步骤中,对安装包和用户关键数据进行压缩后,可以进一步减少内存占用。由于对安装包和关键数据进行了压缩,在进行应用恢复时,首先需要进行解压处理,具体过程在此不再赘述。In this step, after the installation package and key user data are compressed, the memory occupation can be further reduced. Since the installation package and key data are compressed, when the application is restored, decompression processing is required first, and the specific process will not be repeated here.

应理解,由于应用管理每隔一定时间可以定期更新第一目标应用的安装包;此时可以对各应用的更新设置优先级,移动终端中按照的其他应用的优先级均高于第一目标应用的优先级,从而可以避免用户常使用的应用长时间处于更新等待的过程。与此同时,还可以根据第一目标应用的使用场景参数对应用更新的优先级进行排序,从而可以缩短关键应用的更新等待时间。It should be understood that since the application management can periodically update the installation package of the first target application at regular intervals; at this time, priority can be set for the update of each application, and the priorities of other applications in the mobile terminal are higher than the first target application. , so that applications that are often used by users can be prevented from waiting for an update for a long time. At the same time, the priority of application update can also be sorted according to the usage scenario parameters of the first target application, so that the update waiting time of key applications can be shortened.

参见图5,图5是本发明实施例提供的移动终端的结构图,能够实现上述实施例中应用控制方法的细节,并达到相同的效果。如图5所示,移动终端包括:Referring to FIG. 5, FIG. 5 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can implement the details of the application control method in the above-mentioned embodiment, and achieve the same effect. As shown in Figure 5, the mobile terminal includes:

记录模块501,用于记录用户使用应用时,对应的使用场景参数;Therecording module 501 is used to record the corresponding usage scene parameters when the user uses the application;

判断模块502,用于根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;Ajudgment module 502, configured to judge whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter;

处理模块503,用于对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,Aprocessing module 503, configured to perform uninstallation processing on the first target application that satisfies the first preset condition according to preset rules; wherein,

所述预设规则包括:The preset rules include:

释放应用运行时占用的内存。Frees up memory occupied by the app while it is running.

可选的,所述预设规则还包括:Optionally, the preset rules further include:

保留用户关键数据;Retain key user data;

以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包。And, if there is an installation package corresponding to the first target application, the installation package is retained; if there is no installation package of the first target application, the installation package is downloaded.

可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:

控制模块,用于若接收到针对第二目标应用的运行指令或根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用。The control module is configured to call the installation package of the second target application to install the second target application if it receives a running instruction for the second target application or determines that there is a second target application to be restored in the current state of the mobile terminal according to the usage scenario parameters. The second target application is restored, and the user key data corresponding to the second target application is restored, and the second target application is an application in the first target application.

可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:

记录模块,用于记录各应用的签名和权限;Recording module, used to record the signatures and permissions of each application;

校验模块,用于检查并校验所述第二目标应用对应记录的签名;a verification module for checking and verifying the signature of the corresponding record of the second target application;

恢复模块,用于按照记录的所述第二目标应用对应的权限进行应用权限恢复。A recovery module, configured to perform application permission recovery according to the recorded permission corresponding to the second target application.

可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:

接收模块,用于接收服务器发送各应用对应的垃圾数据清理路径列表;The receiving module is used to receive the garbage data cleaning path list corresponding to each application sent by the server;

删除模块,用于所述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。The deletion module, used for the preset rule, further includes: deleting the garbage data according to the garbage data cleaning path list corresponding to the application.

可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:

压缩模块,用于对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。A compression module, configured to compress the installation package and user key data corresponding to the first target application.

可选的,所述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。Optionally, the usage scenario parameter includes at least one of usage time, usage location, and usage frequency of the application.

可选的,所述预设规则还包括:保留并标识所述第一目标应用的图标。Optionally, the preset rule further includes: retaining and identifying the icon of the first target application.

这样,本发明实施例中,记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。In this way, in this embodiment of the present invention, when the user uses the application, the corresponding usage scenario parameters are recorded; according to the usage scenario parameters, it is determined whether the application installed on the mobile terminal satisfies the first preset condition; The first target application is uninstalled according to a preset rule, wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

参见图6,图6是本发明实施例提供的移动终端的结构图,能够实现上述实施例中应用控制方法的细节,并达到相同的效果。如图6所示,移动终端600包括:至少一个处理器601、存储器602、至少一个网络接口604和用户接口603。移动终端600中的各个组件通过总线系统605耦合在一起。可理解,总线系统605用于实现这些组件之间的连接通信。总线系统605除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统605。Referring to FIG. 6, FIG. 6 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can implement the details of the application control method in the above-mentioned embodiment, and achieve the same effect. As shown in FIG. 6 , themobile terminal 600 includes: at least oneprocessor 601 ,memory 602 , at least onenetwork interface 604 anduser interface 603 . The various components in themobile terminal 600 are coupled together by abus system 605 . It can be understood that thebus system 605 is used to implement the connection communication between these components. In addition to the data bus, thebus system 605 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled asbus system 605 in FIG. 6 .

其中,用户接口603可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。Among them, theuser interface 603 may include a display, a keyboard or a pointing device (eg, a mouse, a track ball, a touch pad or a touch screen, etc.).

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch Link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that thememory 602 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch Link DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DRRAM). Thememory 602 of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

在一些实施方式中,存储器602存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统6021和应用程序6022。In some embodiments,memory 602 stores the following elements, executable modules or data structures, or subsets thereof, or extended sets of them:operating system 6021 andapplications 6022 .

其中,操作系统6021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序6022中。Theoperating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. Theapplication program 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in theapplication program 6022 .

在本发明实施例中,移动终端还包括:存储在存储器602上并可在处理器601上运行的计算机程序,具体地,可以是应用程序6022中的计算机程序,计算机程序被处理器601执行时实现如下步骤:记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。In this embodiment of the present invention, the mobile terminal further includes: a computer program stored in thememory 602 and executable on theprocessor 601 , specifically, a computer program in theapplication program 6022 , when the computer program is executed by theprocessor 601 The following steps are implemented: recording the corresponding usage scene parameters when the user uses the application; judging whether the application installed by the mobile terminal satisfies the first preset condition according to the use scene parameter; The uninstallation process is performed according to a preset rule; wherein, the preset rule includes: releasing the memory occupied by the application during running.

上述本发明实施例揭示的方法可以应用于处理器601中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to theprocessor 601 or implemented by theprocessor 601 . Theprocessor 601 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in theprocessor 601 or an instruction in the form of software. The above-mentionedprocessor 601 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (FieldProgrammable GateArray, FPGA) or other programmable Logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in thememory 602, and theprocessor 601 reads the information in thememory 602, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processing (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

可选的,所述预设规则还包括:保留用户关键数据;以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包。Optionally, the preset rule further includes: retaining key user data; and, if there is an installation package corresponding to the first target application, retaining the installation package; if there is no installation of the first target application package, download the installation package.

可选的,计算机程序被处理器601执行时还可实现如下步骤:若接收到针对第二目标应用的运行指令或根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用。Optionally, when the computer program is executed by theprocessor 601, the following steps may also be implemented: if an operation instruction for the second target application is received or it is determined according to the usage scenario parameters that there is a second target application to be restored in the current state of the mobile terminal. , calling the installation package of the second target application to install the second target application, and restore the user key data corresponding to the second target application, where the second target application is an application in the first target application.

可选的,计算机程序被处理器601执行时还可实现如下步骤:Optionally, when the computer program is executed by theprocessor 601, the following steps may also be implemented:

记录各应用的签名和权限;Record the signatures and permissions of each application;

所述调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据的步骤之后,实现如下步骤:检查并校验所述第二目标应用对应记录的签名;按照记录的所述第二目标应用对应的权限进行应用权限恢复。After the step of invoking the installation package of the second target application to install the second target application and restoring the user key data corresponding to the second target application, the following steps are implemented: checking and verifying the second target application The signature of the corresponding record of the application; and the application permission recovery is performed according to the recorded permission corresponding to the second target application.

可选的,计算机程序被处理器601执行时还可实现如下步骤:接收服务器发送各应用对应的垃圾数据清理路径列表;所述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。Optionally, when the computer program is executed by theprocessor 601, the following steps may also be implemented: the receiving server sends a list of garbage data cleaning paths corresponding to each application; the preset rules further include: performing garbage cleaning according to the garbage data cleaning path list corresponding to the application. Data deletion.

可选的,计算机程序被处理器601执行时还可实现如下步骤:对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。Optionally, when the computer program is executed by theprocessor 601, the following steps may also be implemented: compressing the installation package and user key data corresponding to the first target application.

可选的,所述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。Optionally, the usage scenario parameter includes at least one of usage time, usage location, and usage frequency of the application.

可选的,所述预设规则还包括:保留并标识所述第一目标应用的图标。Optionally, the preset rule further includes: retaining and identifying the icon of the first target application.

这样,本发明实施例中,记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。In this way, in this embodiment of the present invention, when the user uses the application, the corresponding usage scenario parameters are recorded; according to the usage scenario parameters, it is determined whether the application installed on the mobile terminal satisfies the first preset condition; The first target application is uninstalled according to a preset rule, wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

请参阅图7,图7是本发明实施例提供的移动终端的结构图,能够实现上述实施例中应用控制方法的细节,并达到相同的效果。如图7所示,移动终端700包括射频(RadioFrequency,RF)电路710、存储器720、输入单元730、显示单元740、处理器750、音频电路760、通信模块770、和电源780,还包括摄像头(图中未示出)。Please refer to FIG. 7. FIG. 7 is a structural diagram of a mobile terminal provided by an embodiment of the present invention, which can implement the details of the application control method in the above-mentioned embodiment, and achieve the same effect. As shown in FIG. 7 , themobile terminal 700 includes a radio frequency (RF)circuit 710, amemory 720, aninput unit 730, adisplay unit 740, aprocessor 750, anaudio circuit 760, acommunication module 770, and apower supply 780, and also includes a camera ( not shown in the figure).

其中,输入单元730可用于接收用户输入的数字或字符信息,以及产生与移动终端700的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元730可以包括触控面板731。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器750,并能接收处理器750发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, theinput unit 730 can be used to receive numeric or character information input by the user, and generate signal input related to user settings and function control of themobile terminal 700 . Specifically, in this embodiment of the present invention, theinput unit 730 may include atouch panel 731 . Thetouch panel 731, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's operations on thetouch panel 731 using any suitable objects or accessories such as a finger, a stylus, etc.) The specified program drives the corresponding connection device. Optionally, thetouch panel 731 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 theprocessor 750, and can receive the commands sent by theprocessor 750 and execute them. In addition, thetouch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to thetouch panel 731, theinput unit 730 may also includeother input devices 732, and theother input devices 732 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元740可用于显示由用户输入的信息或提供给用户的信息以及移动终端700的各种菜单界面。显示单元740可包括显示面板741,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。Thedisplay unit 740 may be used to display information input by the user or information provided to the user and various menu interfaces of themobile terminal 700 . Thedisplay unit 740 may include adisplay panel 741, and optionally, thedisplay panel 741 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板731可以覆盖显示面板741,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器750以确定触摸事件的类型,随后处理器750根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that thetouch panel 731 can cover thedisplay panel 741 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is transmitted to theprocessor 750 to determine the type of touch event, and then theprocessor 750 provides corresponding visual output on the touch display screen according to the type of touch event.

其中处理器750是移动终端700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器721内的软件程序和/或模块,以及调用存储在第二存储器722内的数据,执行移动终端700的各种功能和处理数据,从而对移动终端700进行整体监控。可选的,处理器750可包括一个或多个处理单元。Theprocessor 750 is the control center of themobile terminal 700, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in thefirst memory 721, and calls the software programs and/or modules stored in thesecond memory 721. The data in the memory 722 executes various functions of themobile terminal 700 and processes data, so as to monitor themobile terminal 700 as a whole. Optionally,processor 750 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器721内的软件程序和/或模块和/或该第二存储器722内的数据,计算机程序被处理器750执行时可以实现如下步骤:记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。In this embodiment of the present invention, by calling and storing software programs and/or modules in thefirst memory 721 and/or data in the second memory 722, when the computer program is executed by theprocessor 750, the following steps may be implemented: record the user When using the application, the corresponding usage scenario parameters; according to the usage scenario parameters, determine whether the application installed on the mobile terminal satisfies the first preset condition; uninstall the first target application that satisfies the first preset condition according to the preset rule processing; wherein, the preset rule includes: releasing memory occupied by the application when it is running.

可选的,所述预设规则还包括:保留用户关键数据;以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包。Optionally, the preset rule further includes: retaining key user data; and, if there is an installation package corresponding to the first target application, retaining the installation package; if there is no installation of the first target application package, download the installation package.

可选的,计算机程序被处理器750执行时还可实现如下步骤:若接收到针对第二目标应用的运行指令或根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用。Optionally, when the computer program is executed by theprocessor 750, the following steps may also be implemented: if an operation instruction for the second target application is received or it is determined according to the usage scenario parameters that there is a second target application to be restored in the current state of the mobile terminal. , calling the installation package of the second target application to install the second target application, and restore the user key data corresponding to the second target application, where the second target application is an application in the first target application.

可选的,计算机程序被处理器750执行时还可实现如下步骤:记录各应用的签名和权限;所述调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据的步骤之后,实现如下步骤:检查并校验所述第二目标应用对应记录的签名;按照记录的所述第二目标应用对应的权限进行应用权限恢复。Optionally, when the computer program is executed by theprocessor 750, the following steps may also be implemented: recording the signature and authority of each application; calling the installation package of the second target application to install the second target application, and restoring the second target application. After the step of the user key data corresponding to the second target application, the following steps are implemented: checking and verifying the signature of the record corresponding to the second target application; and performing application permission recovery according to the recorded permission corresponding to the second target application.

可选的,计算机程序被处理器750执行时还可实现如下步骤:接收服务器发送各应用对应的垃圾数据清理路径列表;Optionally, when the computer program is executed by theprocessor 750, the following steps may also be implemented: the receiving server sends a list of garbage data cleaning paths corresponding to each application;

所述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。The preset rule further includes: performing junk data deletion according to the junk data cleaning path list corresponding to the application.

可选的,计算机程序被处理器750执行时还可实现如下步骤:对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。Optionally, when the computer program is executed by theprocessor 750, the following steps may also be implemented: compressing the installation package and user key data corresponding to the first target application.

可选的,所述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。Optionally, the usage scenario parameter includes at least one of usage time, usage location, and usage frequency of the application.

可选的,所述预设规则还包括:保留并标识所述第一目标应用的图标。Optionally, the preset rule further includes: retaining and identifying the icon of the first target application.

这样,本发明实施例中,记录用户使用应用时,对应的使用场景参数;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,所述预设规则包括:释放应用运行时占用的内存。由于通过使用场景参数确定不常用的第一目标应用,对第一目标应用进行了内存占用的释放,因此,可以降低系统内存的占用,提升了移动终端的运行速度。In this way, in this embodiment of the present invention, when the user uses the application, the corresponding usage scenario parameters are recorded; according to the usage scenario parameters, it is determined whether the application installed on the mobile terminal satisfies the first preset condition; The first target application is uninstalled according to a preset rule, wherein the preset rule includes: releasing the memory occupied by the application during running. Since the first target application that is not commonly used is determined by using the scene parameters, the memory occupation of the first target application is released, so the occupation of the system memory can be reduced, and the running speed of the mobile terminal can be improved.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一个方法实施例中的应用控制方法中的步骤。Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the application control method in any one of the foregoing method embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (12)

Translated fromChinese
1.一种应用控制方法,应用于移动终端,其特征在于,包括:1. An application control method, applied to a mobile terminal, is characterized in that, comprising:记录用户使用应用时,对应的使用场景参数;Record the corresponding usage scene parameters when the user uses the application;根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;Determine whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter;对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,Perform uninstallation processing on the first target application that satisfies the first preset condition according to preset rules; wherein,所述预设规则包括:The preset rules include:释放应用运行时占用的内存;Release the memory occupied by the application when it is running;所述预设规则还包括:The preset rules also include:保留用户关键数据;Retain key user data;保留并标识所述第一目标应用的图标;retain and identify the icon of the first target application;以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包;And, if there is an installation package corresponding to the first target application, then keep the installation package; if there is no installation package of the first target application, download the installation package;所述对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理的步骤之后,所述方法还包括:After the step of uninstalling the first target application that satisfies the first preset condition according to the preset rule, the method further includes:根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用;According to the usage scenario parameters, it is determined that there is a second target application to be restored in the current state of the mobile terminal, the installation package of the second target application is called to install the second target application, and the user corresponding to the second target application is restored. key data, the second target application is an application in the first target application;其中,所述第一目标应用中各应用的更新的优先级由所述使用场景参数确定。Wherein, the update priority of each application in the first target application is determined by the usage scenario parameter.2.根据权利要求1所述的方法,其特征在于,所述根据应用被使用的使用场景参数判断移动终端安装的应用是否满足第一预设条件的步骤之前,所述方法还包括:2. The method according to claim 1, wherein, before the step of judging whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameters in which the application is used, the method further comprises:记录各应用的签名和权限;Record the signatures and permissions of each application;所述调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据的步骤之后,所述方法还包括:After the step of invoking the installation package of the second target application to install the second target application and restoring the user key data corresponding to the second target application, the method further includes:检查并校验所述第二目标应用对应记录的签名;Check and verify the signature of the corresponding record of the second target application;按照记录的所述第二目标应用对应的权限进行应用权限恢复。Perform application permission recovery according to the recorded permission corresponding to the second target application.3.根据权利要求1所述的方法,其特征在于,所述根据应用被使用的使用场景参数判断移动终端安装的应用是否满足第一预设条件的步骤之前,所述方法还包括:3. The method according to claim 1, wherein, before the step of judging whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameters in which the application is used, the method further comprises:接收服务器发送各应用对应的垃圾数据清理路径列表;The receiving server sends a list of garbage data cleaning paths corresponding to each application;所述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。The preset rule further includes: performing junk data deletion according to the junk data cleaning path list corresponding to the application.4.根据权利要求1所述的方法,其特征在于,所述对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理的步骤之后,所述方法还包括:4 . The method according to claim 1 , wherein after the step of uninstalling the first target application that satisfies the first preset condition according to a preset rule, the method further comprises: 5 .对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。Compressing the installation package and user key data corresponding to the first target application.5.根据权利要求1所述的方法,其特征在于,所述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。5. The method according to claim 1, wherein the usage scenario parameter comprises at least one of usage time, usage location and usage frequency of the application.6.一种移动终端,其特征在于,包括:6. A mobile terminal, comprising:记录模块,用于记录用户使用应用时,对应的使用场景参数;The recording module is used to record the corresponding usage scene parameters when the user uses the application;判断模块,用于根据所述使用场景参数判断移动终端安装的应用是否满足第一预设条件;a judgment module, configured to judge whether the application installed on the mobile terminal satisfies the first preset condition according to the usage scenario parameter;处理模块,用于对满足所述第一预设条件的第一目标应用按照预设规则进行卸载处理;其中,a processing module, configured to perform uninstallation processing on the first target application that satisfies the first preset condition according to preset rules; wherein,所述预设规则包括:The preset rules include:释放应用运行时占用的内存;Release the memory occupied by the application when it is running;所述预设规则还包括:The preset rules also include:保留用户关键数据;Retain key user data;保留并标识所述第一目标应用的图标;retain and identify the icon of the first target application;以及,若存在所述第一目标应用对应的安装包,则保留所述安装包;若不存在所述第一目标应用的安装包,则下载所述安装包;And, if there is an installation package corresponding to the first target application, then keep the installation package; if there is no installation package of the first target application, download the installation package;所述移动终端还包括:The mobile terminal also includes:控制模块,用于根据所述使用场景参数确定移动终端当前状态下存在待恢复的第二目标应用,调用所述第二目标应用的安装包安装所述第二目标应用,并还原所述第二目标应用对应的用户关键数据,所述第二目标应用为所述第一目标应用中的应用;A control module, configured to determine that there is a second target application to be restored in the current state of the mobile terminal according to the usage scenario parameters, call the installation package of the second target application to install the second target application, and restore the second target application User key data corresponding to the target application, and the second target application is an application in the first target application;其中,所述第一目标应用中各应用的更新的优先级由所述使用场景参数确定。Wherein, the update priority of each application in the first target application is determined by the usage scenario parameter.7.根据权利要求6所述的移动终端,其特征在于,所述移动终端还包括:7. The mobile terminal according to claim 6, wherein the mobile terminal further comprises:记录模块,用于记录各应用的签名和权限;Recording module, used to record the signatures and permissions of each application;校验模块,用于检查并校验所述第二目标应用对应记录的签名;a verification module for checking and verifying the signature of the corresponding record of the second target application;恢复模块,用于按照记录的所述第二目标应用对应的权限进行应用权限恢复。A recovery module, configured to perform application permission recovery according to the recorded permission corresponding to the second target application.8.根据权利要求6所述的移动终端,其特征在于,所述移动终端还包括:8. The mobile terminal according to claim 6, wherein the mobile terminal further comprises:接收模块,用于接收服务器发送各应用对应的垃圾数据清理路径列表;The receiving module is used to receive the garbage data cleaning path list corresponding to each application sent by the server;删除模块,用于所述预设规则还包括:按照应用对应的垃圾数据清理路径列表进行垃圾数据删除。The deletion module, used for the preset rule, further includes: deleting the garbage data according to the garbage data cleaning path list corresponding to the application.9.根据权利要求6所述的移动终端,其特征在于,所述移动终端还包括:9. The mobile terminal according to claim 6, wherein the mobile terminal further comprises:压缩模块,用于对所述第一目标应用对应的安装包和用户关键数据进行压缩处理。A compression module, configured to compress the installation package and user key data corresponding to the first target application.10.根据权利要求6所述的移动终端,其特征在于,所述使用场景参数包括应用的使用时间、使用地点和使用频率中的至少一项。10 . The mobile terminal according to claim 6 , wherein the usage scenario parameter comprises at least one of usage time, usage location and usage frequency of the application. 11 .11.一种移动终端,包括:11. A mobile terminal, comprising:一个或多个处理器;one or more processors;存储器;以及memory; and一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述一个或多个处理器执行,其特征在于,所述程序被执行时实现权利要求1-5中任一项所述的应用控制方法中的步骤。One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, wherein the programs, when executed, implement the rights Steps in the application control method according to any one of claims 1-5.12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-5中任一项所述的应用控制方法的步骤。12. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the application control method according to any one of claims 1-5 are implemented.
CN201710826930.6A2017-09-142017-09-14Application control method and mobile terminalActiveCN107577471B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710826930.6ACN107577471B (en)2017-09-142017-09-14Application control method and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710826930.6ACN107577471B (en)2017-09-142017-09-14Application control method and mobile terminal

Publications (2)

Publication NumberPublication Date
CN107577471A CN107577471A (en)2018-01-12
CN107577471Btrue CN107577471B (en)2020-05-26

Family

ID=61033463

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710826930.6AActiveCN107577471B (en)2017-09-142017-09-14Application control method and mobile terminal

Country Status (1)

CountryLink
CN (1)CN107577471B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109445804A (en)*2018-10-252019-03-08麒麟合盛网络技术股份有限公司A kind of starting method and apparatus of application program
CN111338703A (en)*2018-12-182020-06-26中兴通讯股份有限公司 Processing method, device, storage medium and electronic device applied in terminal
CN113641376B (en)*2020-05-112024-06-04深圳Tcl新技术有限公司Intelligent terminal upgrading optimization method and intelligent terminal
CN116113929B (en)*2020-08-142025-06-17深圳传音控股股份有限公司 Application management method, device and storage medium
CN112162787A (en)*2020-09-042021-01-01上海擎感智能科技有限公司Method for opening application, terminal and computer readable storage medium
CN112764833A (en)*2021-01-222021-05-07维沃移动通信有限公司Application program management method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103309729A (en)*2012-03-152013-09-18宇龙计算机通信科技(深圳)有限公司Terminal and application program management method
CN104156236A (en)*2014-07-232014-11-19小米科技有限责任公司Storage space saving method and device
CN104407894A (en)*2014-11-262015-03-11重庆蓝岸通讯技术有限公司Method and system for automatically starting application of intelligent electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP5638021B2 (en)*2012-03-302014-12-10京セラドキュメントソリューションズ株式会社 Information processing apparatus and image forming apparatus
CN102831035B (en)*2012-08-202015-11-18腾讯科技(深圳)有限公司The method of backup information and device
CN102945159A (en)*2012-10-242013-02-27深圳市万凯达科技有限公司Automatic application program cleaning method and system based on mobile terminal
CN103870319B (en)*2012-12-142018-12-14联想(北京)有限公司Information processing method, device and electronic equipment
US8918780B2 (en)*2013-03-142014-12-23International Business Machines CorporationAutomatic quality assurance for software installers
US9191209B2 (en)*2013-06-252015-11-17Google Inc.Efficient communication for devices of a home network
US9524119B2 (en)*2014-07-012016-12-20Naver CorporationMethod, system and recording medium for optimizing of mobile device
CN105786480B (en)*2015-12-292021-01-12上海闻泰电子科技有限公司Application processing system and processing method
CN105843367A (en)*2016-03-242016-08-10维沃移动通信有限公司Application processing method and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103309729A (en)*2012-03-152013-09-18宇龙计算机通信科技(深圳)有限公司Terminal and application program management method
CN104156236A (en)*2014-07-232014-11-19小米科技有限责任公司Storage space saving method and device
CN104407894A (en)*2014-11-262015-03-11重庆蓝岸通讯技术有限公司Method and system for automatically starting application of intelligent electronic equipment

Also Published As

Publication numberPublication date
CN107577471A (en)2018-01-12

Similar Documents

PublicationPublication DateTitle
CN107577471B (en)Application control method and mobile terminal
CN107402835B (en)Application program exception handling method and device, storage medium and mobile terminal
CN106951335B (en) A process guarding method and mobile terminal
CN105005735B (en)Download management method and download management device
WO2015196444A1 (en)Fast data protection using dual file systems
CN109408465B (en) File ownership information recording method, device, storage medium and terminal
CN106155699B (en)A kind of management method and mobile terminal of background process
CN107026933B (en)Multi-open application message management method and device and intelligent terminal
CN114205365B (en) Application interface migration system, method and related equipment
CN107450773A (en)A kind of false-touch prevention method, terminal and computer-readable recording medium
CN106528350B (en) A file backup method and mobile terminal
WO2018233668A1 (en) Anomaly recovery method, device, smart device and storage medium based on Android system
CN107480001A (en)System recovery method and device
CN106776908B (en)Data cleaning method and device and terminal
CN104731530A (en)Mobile terminal and file management method applied to same
CN106599115B (en) Data protection method, device and terminal
CN106529332B (en)A kind of authority control method of mobile terminal, device and mobile terminal
CN107491482A (en)A kind of reminding method and mobile terminal
CN110083483A (en)The method and apparatus for removing terminal data
CN104951348B (en)A kind of interruptable recovery upgrade method and device
CN107656746B (en) Method and mobile terminal for program upgrading
CN106325942A (en)Application program data processing method and mobile terminal
CN106354509B (en)Screen locking interface setting method and mobile terminal
CN106776148A (en)The trial method and mobile terminal of a kind of application program
JP5429906B2 (en) Mobile terminal, program, and control method.

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp