WO2017219445A1 - 冻结应用程序的方法及终端 - Google Patents
冻结应用程序的方法及终端 Download PDFInfo
- Publication number
- WO2017219445A1 WO2017219445A1 PCT/CN2016/092524 CN2016092524W WO2017219445A1 WO 2017219445 A1 WO2017219445 A1 WO 2017219445A1 CN 2016092524 W CN2016092524 W CN 2016092524W WO 2017219445 A1 WO2017219445 A1 WO 2017219445A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- terminal
- preset rule
- frozen
- freezing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
Definitions
- the present disclosure relates to the field of terminals, for example, to a method and terminal for freezing an application.
- terminals such as smart phones, tablets, etc.
- terminals have become an indispensable part of people's daily lives. Due to the large number of applications stored in the terminal, the storage space of the terminal is occupied in a large amount. Moreover, it should be pointed out that some applications in the terminal are often idle, so users can freeze these idle applications to reduce the consumption of terminal resources (the frozen application cannot run in the background) .
- the related art has a method for freezing an application, the method comprising: receiving a request to freeze an application, determining a location of an application configuration file, backing up an application configuration file, and then deleting the application configuration file. .
- the related art provides a solution that can freeze the application, but the method can only freeze for one application at a time, and cannot freeze multiple applications at the same time.
- Embodiments of the present disclosure provide a method and a terminal for freezing an application, which are capable of freezing a plurality of applications at the same time, thereby facilitating operation of the user.
- a method of freezing an application including:
- the application that conforms to the preset rule is frozen.
- the method further includes:
- determining whether the application installed in the terminal meets a preset rule comprises:
- the method further includes:
- a method of thawing an application including:
- the system interface is invoked to unfreeze the frozen application.
- the method further includes:
- a terminal comprising:
- a judging unit configured to determine whether an application installed in the terminal conforms to a preset rule when receiving an instruction of the batch freezing application
- the freezing unit is configured to freeze the application that meets the preset rule when there is an application that conforms to the preset rule.
- the traversal unit is further included;
- the traversing unit is configured to traverse an application installed in the terminal to determine an application in an unfrozen state before determining whether the application installed in the terminal conforms to the preset rule;
- the determining unit is configured to determine whether the application in the non-freezing state of the terminal meets a preset rule.
- an update unit is further included;
- the update unit is configured to update a desktop of the terminal to clear an icon of an application in a frozen state.
- a terminal comprising:
- Determining a unit configured to determine an application that is frozen when an instruction to bulk thaw the application is received
- the defrosting unit is configured to invoke the system interface to unfreeze the frozen application.
- it also includes:
- a recovery unit configured to restore an icon of the unfrozen application on the desktop of the terminal.
- a terminal comprising:
- a processor coupled to the memory
- the processor invokes the executable program code stored in the memory to execute the method of freezing the application described in any of the above.
- a terminal comprising:
- a processor coupled to the memory
- the processor invokes the executable program code stored in the memory to execute the method of defrosting the application described above.
- a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of freezing an application as described in any of the above.
- a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of defrosting an application as described above.
- FIG. 1 is a schematic flowchart of a method for freezing an application according to an embodiment of the present disclosure
- FIG. 1 is a schematic diagram of an automatic freeze setting interface according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart diagram of a method for thawing an application according to an embodiment of the present disclosure
- FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram of a physical device of a terminal according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of another entity device of a terminal according to an embodiment of the present disclosure.
- the embodiment of the present disclosure provides a method and a terminal for unlocking a fingerprint, which can improve the security of the terminal and improve the user experience.
- a method for freezing an application comprising: determining, when an instruction of a batch freeze application input by a user is received, determining whether an application installed in the terminal conforms to a preset rule; When there is an application that conforms to the preset rule, the application that conforms to the preset rule is frozen.
- FIG. 1 is a schematic flowchart diagram of a method for freezing an application according to an embodiment of the present disclosure. As shown in FIG. 1 , a method for freezing an application provided by an embodiment of the present disclosure includes the following content:
- the method can be applied to a plurality of types of smart terminals installed with a plurality of applications, such as a tablet computer, a smart phone, a personal computer PC, a notebook computer, a wearable device, or other smart terminal installed with a plurality of applications.
- a tablet computer such as a tablet computer, a smart phone, a personal computer PC, a notebook computer, a wearable device, or other smart terminal installed with a plurality of applications.
- the user can input the instruction to freeze the application by voice, text box, button or other means.
- the user can initiate a batch freeze application command by clicking the fast freeze one-click in the auto-freeze setting.
- the application may be a social application, a text editing application, a real-time bus query application, a subscription application, or an application in another terminal.
- the freeze process of the application may be to isolate the system resources occupied by the application, isolate the application in the system framework, and send a freeze signal to the process group of the application, so that the target application performs freeze.
- the method further includes traversing an application installed in the terminal to determine an application that is in an unfrozen state.
- the terminal can determine whether the application has been frozen by calling a system interface.
- the calling system interface determines whether the application belongs to the frozen code as:
- PackageManager pm (PackageManager)Context().getPackageManager();
- the preset rule may be a function of an application, a network connection condition of the application, an installation time of the application, or other application characteristics.
- the preset rule is a social application
- all social-like applications installed in the terminal are frozen accordingly.
- the preset rule is an application that requires networking
- all applications that need to be networked installed in the terminal are frozen accordingly.
- the preset rule is the installation time of the application
- the application in the terminal before the installation time, the installation date, or the installation date is frozen in the corresponding terminal.
- the preset rule may also be a combination of the foregoing application features.
- the preset rule is a social application before any installation time
- the social application before the installation date is correspondingly frozen.
- the preset rule may be pre-stored in the terminal or may be set by the user.
- the method further includes: updating a desktop of the terminal to clear an icon of the application in a frozen state.
- the terminal can freeze the application by calling a system interface.
- code of the calling system interface freezing application is:
- PackageManager pm (PackageManager)Context().getPackageManager();
- a method of thawing an application comprising: determining an application in a frozen state when receiving an instruction of a batch thawing application input by a user; calling a system interface The application in the frozen state is thawed.
- FIG. 2 is a schematic flowchart diagram of a method for thawing an application according to another embodiment of the present disclosure.
- a method of the defrosting application of the present disclosure may include the following contents:
- the method can be applied to a plurality of types of smart terminals installed with a plurality of applications, such as a tablet computer, a smart phone, a personal computer PC, a notebook computer, a wearable device, or other smart terminal installed with a plurality of applications.
- a tablet computer such as a tablet computer, a smart phone, a personal computer PC, a notebook computer, a wearable device, or other smart terminal installed with a plurality of applications.
- the user can input the instruction to freeze the application by voice, text box or other means.
- the user can initiate a batch unfreezing of the application's instructions by clicking the batch unfreeze one-click in the Auto Freeze setting.
- the application may be a social application, a text editing application, a real-time bus query application, a subscription application, or an application in another terminal.
- the thawing process of the application may send a defrosting signal to a process group of the target application and allocate system resources to the defrosted application.
- the terminal may directly invoke the system interface to determine whether the application belongs to the frozen application.
- PackageManager pm (PackageManager)Context().getPackageManager();
- the method further includes: restoring the icon of the thawed application on the desktop of the terminal.
- FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
- an embodiment of the present disclosure provides a terminal 300, where the terminal can be a tablet, a smart phone, a personal computer PC, a notebook computer, a wearable device, or the like.
- the terminal 300 includes a judging unit 310 and a freezing unit 320.
- the determining unit 310 is configured to determine whether the application installed in the terminal conforms to the preset rule when receiving an instruction of the batch freezing application input by the user.
- the user can input the instruction to freeze the application by voice, text box, button or other means.
- the user can initiate a batch freeze application command by clicking the fast freeze one-click in the auto-freeze setting.
- the application may be a social application, a text editing application, a real-time bus query application, a subscription application, or an application in another terminal.
- the freeze process of the application may be to isolate the system resources occupied by the application, isolate the application in the system framework, and send a freeze signal to the process group of the application, so that the target application performs freeze.
- the terminal can determine whether the application has been frozen by calling a system interface.
- the calling system interface determines whether the application belongs to the frozen code as:
- PackageManager pm (PackageManager)Context().getPackageManager();
- the preset rule may be a function of an application, a network connection of the application, Application installation time or other application features.
- the preset rule is a social application
- all social-like applications installed in the terminal are frozen accordingly.
- the preset rule is an application that requires networking
- all applications that need to be networked installed in the terminal are frozen accordingly.
- the preset rule is the installation time of the application
- the application in the terminal before the installation time, the installation date, or the installation date is frozen in the corresponding terminal.
- the preset rule may also be a combination of the foregoing application features.
- the preset rule is a social application before any installation time
- the social application before the installation date is correspondingly frozen.
- the preset rule may be pre-stored in the terminal or may be set by the user.
- the freezing unit 320 is configured to freeze the application that meets the preset rule when there is an application that conforms to the preset rule.
- the terminal can freeze the application by calling a system interface.
- code of the calling system interface freezing application is:
- PackageManager pm (PackageManager)Context().getPackageManager();
- the determining unit 310, the freezing unit 320 may be configured to perform the method described in the steps S110 to S120 in the first embodiment. For details, refer to the description of the method in the embodiment 1, and details are not described herein again.
- the terminal may further include a traversing unit 330 configured to traverse an application installed in the terminal to determine an application in a non-freeze state.
- a traversing unit 330 configured to traverse an application installed in the terminal to determine an application in a non-freeze state.
- the determining unit 310 is configured to determine whether the application in the non-freezing state of the terminal meets a preset rule.
- the terminal may further include an update unit 340, where the update unit 340 is configured to update the desktop of the terminal to clear an icon of the application in a frozen state.
- FIG. 4 is a schematic structural diagram of a terminal according to another embodiment of the present disclosure.
- another embodiment of the present disclosure provides a terminal 400, where the terminal can be a tablet, a smart phone, a personal computer PC, a notebook computer, a wearable device, or the like.
- the terminal 400 includes a determining unit 410 and a defrosting unit 420.
- the determining unit 410 is configured to determine the application in a frozen state when receiving an instruction of the batch thawing application input by the user.
- the user can input the instruction to freeze the application by voice, text box or other means.
- the user can initiate batch unfreezing of the application's instructions by clicking the batch unfreeze in the Auto Freeze setting.
- the application may be a social application, a text editing application, a real-time bus query application, a subscription application, or an application in another terminal.
- the thawing process of the application may send a defrosting signal to a process group of the target application and allocate system resources to the defrosted application.
- the terminal may directly invoke the system interface to determine whether the application belongs to the frozen application.
- the defrosting unit 420 is configured to invoke the system interface to unfreeze the frozen application.
- PackageManager pm (PackageManager)Context().getPackageManager();
- the determining unit 410, the defrosting unit 420 may be configured to perform the method described in the steps S210 and S220 in the second embodiment. For details, refer to the description of the method in the embodiment 2, and details are not described herein again.
- the terminal may further include a recovery unit 430 configured to restore an icon of the thawed application on a desktop of the terminal.
- a recovery unit 430 configured to restore an icon of the thawed application on a desktop of the terminal.
- a terminal in another embodiment of the present disclosure, includes hardware such as a CPU 510, a memory 520, a bus 530, a display screen 540, and the like.
- the terminal 500 tablet computer, smart phone, personal computer PC, notebook computer, wearable device or other smart terminal with multiple applications installed.
- the CPU 510 executes a program stored in advance in the memory 520, and the execution process may include:
- the application that conforms to the preset rule is frozen.
- the execution process further includes:
- the method further includes:
- Determining whether the application installed in the terminal meets a preset rule including:
- the execution process further includes:
- the method further includes:
- a terminal in another embodiment of the present disclosure, includes hardware such as a CPU 610, a memory 620, a bus 630, and a display screen 640.
- the terminal 600 tablet computer, smart phone, personal computer PC, notebook computer, wearable device or other smart terminal with multiple applications installed.
- the CPU 610 executes a program stored in advance in the memory 620, and the execution process may include:
- the system interface is invoked to unfreeze the frozen application.
- the execution process further includes:
- the method further includes: restoring the icon of the thawed application on the desktop of the terminal.
- the units in the terminal of the embodiment of the present disclosure may be combined, divided, and deleted according to actual needs.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- Another point, the mutual coupling or direct coupling or communication connection shown or discussed may be The indirect coupling or communication connection through some interfaces, devices or units may be in electrical or other form.
- the units described as separate components may or may not be physically separated, and the 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 solution of the embodiment.
- a plurality of functional units in each embodiment of the present disclosure may be integrated into one processing unit, or a plurality of units may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a non-transitory computer readable storage medium. Based on such understanding, the technical solution of the present disclosure, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. Some instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present disclosure.
- the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program code. .
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种冻结应用程序的方法,包括:当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
Description
本申请要求在2016年6月20日提交中国专利局、申请号为201610444250.3、发明名称为“一种冻结应用程序的方法及终端”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
本公开涉及终端领域,例如涉及了一种冻结应用程序的方法及终端。
近年来,随着终端(例如智能手机、平板电脑等)的发展与普及,终端在人们日常生活中已经成为不可或缺的一部分。由于终端中存储了大量的应用程序,导致终端的存储空间被大量占用。而且,需要指出的是,终端中有一部分应用程序经常处于闲置状态,因此用户可以将这些处于闲置状态的应用程序进行冻结以减少对终端资源的消耗(处于冻结状态的应用程序不能在后台运行)。
针对上述问题,相关技术中有一种冻结应用程序的方法,该方法包括:接收冻结应用程序的请求,确定应用程序的配置文件所在位置,备份应用程序的配置文件,然后删除该应用程序的配置文件。
相关技术提供的解决方案,虽然可以完成对应用程序的冻结,但是该方法每次只能针对一个应用程序进行冻结,无法同时对多个应用程序进行冻结。
发明内容
本公开实施例提供了一种冻结应用程序的方法及终端,能够同时对多个应用程序进行冻结,从而为用户的操作提供便利。
一种冻结应用程序的方法,包括:
当接收到批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;以及
当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
可选的,所述判断终端中安装的应用程序是否符合预设规则之前,所述方法还包括:
遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序;
相应的,所述判断终端中安装的应用程序是否符合预设规则,包括:
判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
可选的,所述将所述符合预设规则的应用程序进行冻结之后,所述方法还包括:
更新终端的桌面以清除处于冻结状态的应用程序的图标。
一种解冻应用程序的方法,包括:
当接收到批量解冻应用程序的指令时,确定处于冻结状态的应用程序;以及
调用系统接口将所述处于冻结状态的应用程序进行解冻。
可选的,所述调用系统接口将所述处于冻结状态的应用程序进行解冻之后,所述方法还包括:
在终端的桌面上恢复被解冻的应用程序的图标。
一种终端,包括:
判断单元,设置为当接收到批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;以及
冻结单元,设置为当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
可选的,还包括遍历单元;
所述遍历单元,设置为所述判断终端中安装的应用程序是否符合预设规则之前,遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序;以及
所述判断单元,是设置为判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
可选的,还包括更新单元;
所述更新单元,设置为更新所述终端的桌面以清除处于冻结状态的应用程序的图标。
一种终端,包括:
确定单元,设置为当接收到批量解冻应用程序的指令时,确定处于冻结状态的应用程序;以及
解冻单元,设置为调用系统接口将所述处于冻结状态的应用程序进行解冻。
可选的,还包括:
恢复单元,设置为在所述终端的桌面上恢复被解冻的应用程序的图标。
一种终端,包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;以及
所述处理器调用所述存储器中存储的所述可执行程序代码,执行上述任一项所述的冻结应用程序的方法。
一种终端,包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;以及
所述处理器调用所述存储器中存储的所述可执行程序代码,执行上述所述的解冻应用程序的方法。
一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一项所述的冻结应用程序的方法。
一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述所述的解冻应用程序的方法。
可以看出,本公开实施例的方案中,当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。从而可知,通过实施本公开提供的技术方案,能够同时对多个应用程序进行冻结,从而为用户的操作提供便利。
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,下面描述中的附图是本公开的一些实施例的附图。
图1为本公开实施例提供的一种冻结应用程序的方法的流程示意图;
图1-a为本公开实施例提供的一种自动冻结设置界面的示意图;
图2为本公开实施例提供的一种解冻应用程序的方法的流程示意图;
图3为本公开实施例提供的一种终端的结构示意图;
图4为本公开实施例提供的另一种终端的结构示意图;
图5为本公开实施例提供的一种终端的实体装置结构示意图;
图6为本公开实施例提供的另一种终端的实体装置结构示意图。
实施方式
本公开实施例提供了一种指纹解锁的方法及终端,能够提升终端安全性的同时,还可以提升用户体验。
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚地描述,所描述的实施例是本公开一部分的实施例,而不是全部的实施例。本公开说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本公开的一个实施例中公开了一种冻结应用程序的方法,所述方法包括:当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
请参阅图1,图1是本公开一个实施例提供的一种冻结应用程序的方法的流程示意图。其中,如图1所示,本公开的一个实施例提供的一种冻结应用程序的方法包括以下内容:
在S110中,当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则。
其中,该方法可应用在多类安装有多种应用程序的智能终端中,例如平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。
其中,用户可以通过语音、文本框、按键或其他方式输入冻结应用程序的指令。举例来说,如图1-a,用户可通过点击自动冻结设置中的极速冻结一键式启动批量冻结应用程序的指令。
其中,所述应用程序可以为社交应用、文本编辑应用、实时公交查询应用、订餐应用或其他终端中的应用程序。
其中,所述应用程序的冻结过程可以为隔离所述应用程序所占用的系统资源,在系统框架中隔离所述应用程序,向所述应用程序的进程组发送冻结信号,使得所述目标应用进行冻结。
其中,可选的,所述判断终端中安装的应用程序是否符合预设规则之前,所述方法还包括遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序。
其中,可选的,终端可以通过调用系统接口的方式判断应用是否已经被冻结。
其中,所述调用系统接口判断应用是否属于已被冻结的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
if(pm.getApplicationEnabledSetting(String PackageName)==
PackageManager.COMPONENT_ENABLED_STATE_DISABLED){
//应用被冻结}else{//应用未被冻结}
其中,可以理解的是,如果应用程序未被冻结,则判断应用程序是否符合预设规则,如果符合预设规则,则逐一冻结所有应该冻结的应用。
其中,所述预设规则可以为应用程序的功能、应用程序的网络连接情况、应用程序的安装时间或者其他应用程序特性。
举例来说,当预设规则为社交应用时,则相应冻结终端中安装的所有社交类应用程序。
举例来说,当预设规则为需要联网的应用程序,则相应冻结终端中安装的所有需要联网的应用程序。
举例来说,当预设规则为应用程序的安装时间,则相应的冻结终端中在这个安装时间之前、安装日期当天或者安装日期之后的应用程序。
其中,可以理解的是,所述预设规则也可以为上述应用程序特性的组合。
举例来说,当预设规则为在任意一安装时间之前的社交应用时,则相应的冻结在此安装日期之前的社交应用程序。
其中,可以理解的是,所述预设规则可以为终端中预先储存的,也可以为用户设置的。
在S120中,当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
其中,可选的,所述将所述符合预设规则的应用程序进行冻结之后,所述方法还包括:更新终端的桌面以清除处于冻结状态的应用程序的图标。
其中,可选的,终端可以通过调用系统接口的方式冻结应用程序。
其中,所述调用系统接口冻结应用程序的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
pm.setApplicationEnabledSetting(packageName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED,0)
可以看出,本公开实施例的方案中,当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。从而可知,通过实施本公开提供的技术方案,能够同时对多个应用程序进行冻结,从而为用户的操作提供便利。
在本公开的另一个实施例中公开了一种解冻应用程序的方法,所述方法包括:当接收到用户输入的批量解冻应用程序的指令时,确定处于冻结状态的应用程序;调用系统接口将所述处于冻结状态的应用程序进行解冻。
请参阅图2,图2是本公开的另一个实施例提供的一种解冻应用程序的方法的流程示意图。其中,如图2所示,本公开的一种解冻应用程序的方法可以包括以下内容:
在S210中,当接收到用户输入的批量解冻应用程序的指令时,确定处于冻结状态的应用程序。
其中,该方法可应用在多类安装有多种应用程序的智能终端中,例如平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。
其中,用户可以通过语音、文本框或其他方式输入冻结应用程序的指令。举例来说,如图1-a,用户可通过点击自动冻结设置中的批量解冻一键式启动批量解冻应用程序的指令。
其中,所述应用程序可以为社交应用、文本编辑应用、实时公交查询应用、订餐应用或其他终端中的应用程序。
其中,所述应用程序的解冻过程可以为向所述目标应用的进程组发送解冻信号,并分配系统资源给解冻的应用程序。
其中,所述终端可以直接调用系统接口判断应用是否属于被冻结应用程序。
在S220中,调用系统接口将所述处于冻结状态的应用程序进行解冻。
其中,所述调用接口解冻应用程序的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
pm.setApplicationEnabledSetting(packageName,PackageManager.COMPONEN
T_ENABLED_STATE_ENABLED,0)
其中,可选的,所述调用系统接口将所述处于冻结状态的应用程序进行解冻之后,所述方法还包括:在终端的桌面上恢复被解冻的应用程序的图标。
可以看出,本公开实施例的方案中,当接收到用户输入的批量解冻应用程序的指令时,确定处于冻结状态的应用程序;调用系统接口将所述处于冻结状态的应用程序进行解冻。从而可知,通过实施本公开提供的技术方案,能够同时对多个应用程序进行解冻,从而为用户的操作提供便利。
请参阅图3,图3是本公开的一个实施例提供的一种终端的结构示意图。其中,如图3所示,本公开的一个实施例提供的一种终端300,其中,该终端可以为平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。该终端300包括判断单元310,冻结单元320。
判断单元310,设置为当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则。
其中,用户可以通过语音、文本框、按键或其他方式输入冻结应用程序的指令。举例来说,如图1-a,用户可通过点击自动冻结设置中的极速冻结一键式启动批量冻结应用程序的指令。
其中,所述应用程序可以为社交应用、文本编辑应用、实时公交查询应用、订餐应用或其他终端中的应用程序。
其中,所述应用程序的冻结过程可以为隔离所述应用程序所占用的系统资源,在系统框架中隔离所述应用程序,向所述应用程序的进程组发送冻结信号,使得所述目标应用进行冻结。
其中,可选的,终端可以通过调用系统接口的方式判断应用是否已经被冻结。
其中,所述调用系统接口判断应用是否属于已被冻结的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
if(pm.getApplicationEnabledSetting(String PackageName)==
PackageManager.COMPONENT_ENABLED_STATE_DISABLED){
//应用被冻结}else{//应用未被冻结}
其中,可以理解的是,如果应用程序未被冻结,则判断应用程序是否符合预设规则,如果符合预设规则,则逐一冻结所有应该冻结的应用。
其中,所述预设规则可以为应用程序的功能、应用程序的网络连接情况、
应用程序的安装时间或者其他应用程序特性。
举例来说,当预设规则为社交应用时,则相应冻结终端中安装的所有社交类应用程序。
举例来说,当预设规则为需要联网的应用程序,则相应冻结终端中安装的所有需要联网的应用程序。
举例来说,当预设规则为应用程序的安装时间,则相应的冻结终端中在这个安装时间之前、安装日期当天或者安装日期之后的应用程序。
其中,可以理解的是,所述预设规则也可以为上述应用程序特性的组合。
举例来说,当预设规则为在任意一安装时间之前的社交应用时,则相应的冻结在此安装日期之前的社交应用程序。
其中,可以理解的是,所述预设规则可以为终端中预先储存的,也可以为用户设置的。
冻结单元320,设置为当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
其中,可选的,终端可以通过调用系统接口的方式冻结应用程序。
其中,所述调用系统接口冻结应用程序的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
pm.setApplicationEnabledSetting(packageName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED,0)
其中,判断单元310,冻结单元320可以设置为执行实施例1中步骤S110至S120所述的方法,描述详见实施例1对所述方法的描述,在此不再赘述。
可选的,所述终端还可以包括遍历单元330,所述遍历单元330设置为遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序。
所述判断单元310,是设置为判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
可选的,所述终端还可以包括更新单元340,所述更新单元340设置为更新所述终端的桌面以清除处于冻结状态的应用程序的图标。
请参阅图4,图4是本公开的另一个实施例提供的一种终端的结构示意图。其中,如图4所示,本公开的另一个实施例提供的一种终端400,其中,该终端可以为平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。该终端400包括确定单元410,解冻单元420。
确定单元410,设置为当接收到用户输入的批量解冻应用程序的指令时,确定处于冻结状态的应用程序。
其中,用户可以通过语音、文本框或其他方式输入冻结应用程序的指令。如图1-a,用户可通过点击自动冻结设置中的批量解冻一键式启动批量解冻应用程序的指令。
其中,所述应用程序可以为社交应用、文本编辑应用、实时公交查询应用、订餐应用或其他终端中的应用程序。
其中,所述应用程序的解冻过程可以为向所述目标应用的进程组发送解冻信号,并分配系统资源给解冻的应用程序。
其中,所述终端可以直接调用系统接口判断应用是否属于被冻结应用。
解冻单元420,设置为调用系统接口将所述处于冻结状态的应用程序进行解冻。
其中,所述调用接口解冻应用程序的编码为:
PackageManager pm=(PackageManager)Context().getPackageManager();
pm.setApplicationEnabledSetting(packageName,PackageManager.COMPONENT_ENABLED_STATE_ENABLED,0)
其中,确定单元410,解冻单元420可以设置为执行实施例2中步骤S210、S220所述的方法,描述详见实施例2对所述方法的描述,在此不再赘述。
可选的,所述终端还可以包括恢复单元430,设置为在所述终端的桌面上恢复被解冻的应用程序的图标。
请参阅图5,在本公开的另一个实施例中,提供一种终端。所述终端500包括CPU510、存储器520、总线530,显示屏540等硬件。其中,该终端500平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。
其中,CPU510执行预先存储在存储器520中的程序,该执行过程可以包括:
当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;
当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
可选的,该执行过程还包括:
所述判断终端中安装的应用程序是否符合预设规则之前,所述方法还包括:
遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序;
所述判断终端中安装的应用程序是否符合预设规则,包括:
判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
可选的,该执行过程还包括:
所述将所述符合预设规则的应用程序进行冻结之后,所述方法还包括:
更新终端的桌面以清除处于冻结状态的应用程序的图标。
可以看出,本公开实施例的方案中,当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。从而可知,通过实施本公开提供的技术方案,能够同时对多个应用程序进行冻结,从而为用户的操作提供便利。
请参阅图6,在本公开的另一个实施例中,提供一种终端。所述终端600包括CPU610、存储器620、总线630,显示屏640等硬件。其中,该终端600平板电脑、智能手机、个人电脑PC、笔记本电脑、可穿戴设备或其他安装有多种应用程序的智能终端。
其中,CPU610执行预先存储在存储器620中的程序,该执行过程可以包括:
当接收到用户输入的批量解冻应用程序的指令时,确定处于冻结状态的应用程序;
调用系统接口将所述处于冻结状态的应用程序进行解冻。
可选的,该执行过程还包括:
所述调用系统接口将所述处于冻结状态的应用程序进行解冻之后,所述方法还包括:在终端的桌面上恢复被解冻的应用程序的图标。
在上述实施例中,对每个实施例的描述都有不同的侧重,任意一个实施例中没有详述的部分,可以参见其他实施例的相关描述。
本公开实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本公开实施例终端中的单元可以根据实际需要进行合并、划分和删减。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可
以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开每个实施例中的多个功能单元可以集成在一个处理单元中,也可以是多个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非瞬时性计算机可读存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一些指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本公开多个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。
本公开实施例的方案中,当接收到用户输入的批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。从而可知,通过实施本公开提供的技术方案,能够同时对多个应用程序进行冻结,从而为用户的操作提供便利。
Claims (14)
- 一种冻结应用程序的方法,包括:当接收到批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;以及当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
- 根据权利要求1所述的方法,所述判断终端中安装的应用程序是否符合预设规则之前,所述方法还包括:遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序;所述判断终端中安装的应用程序是否符合预设规则,包括:判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
- 根据权利要求1或2所述的方法,所述将所述符合预设规则的应用程序进行冻结之后,所述方法还包括:更新终端的桌面以清除处于冻结状态的应用程序的图标。
- 一种解冻应用程序的方法,包括:当接收到批量解冻应用程序的指令时,确定处于冻结状态的应用程序;以及调用系统接口将所述处于冻结状态的应用程序进行解冻。
- 根据权利要求4所述的方法,所述调用系统接口将所述处于冻结状态的应用程序进行解冻之后,所述方法还包括:在终端的桌面上恢复被解冻的应用程序的图标。
- 一种终端,包括:判断单元,设置为当接收到批量冻结应用程序的指令时,判断终端中安装的应用程序是否符合预设规则;以及冻结单元,设置为当存在符合预设规则的应用程序时,将所述符合预设规则的应用程序进行冻结。
- 根据权利要求6所述的终端,还包括遍历单元;所述遍历单元,设置为遍历所述终端中安装的应用程序以确定处于非冻结状态的应用程序;以及所述判断单元,是设置为判断所述终端中处于非冻结状态的应用程序是否符合预设规则。
- 根据权利要求6或7所述的终端,还包括更新单元;所述更新单元,设置为更新所述终端的桌面以清除处于冻结状态的应用程序的图标。
- 一种终端,包括:确定单元,设置为当接收到批量解冻应用程序的指令时,确定处于冻结状态的应用程序;以及解冻单元,设置为调用系统接口将所述处于冻结状态的应用程序进行解冻。
- 根据权利要求9所述的终端,还包括:恢复单元,设置为在所述终端的桌面上恢复被解冻的应用程序的图标。
- 一种终端,包括:存储有可执行程序代码的存储器;与所述存储器耦合的处理器;以及所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至3任一项所述的方法。
- 一种终端,包括:存储有可执行程序代码的存储器;与所述存储器耦合的处理器;以及所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求4或5所述的方法。
- 一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-3任一项所述的方法。
- 一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求4或5所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610444250.3 | 2016-06-20 | ||
CN201610444250.3A CN106126324A (zh) | 2016-06-20 | 2016-06-20 | 一种冻结应用程序的方法及终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017219445A1 true WO2017219445A1 (zh) | 2017-12-28 |
Family
ID=57470297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/092524 WO2017219445A1 (zh) | 2016-06-20 | 2016-07-31 | 冻结应用程序的方法及终端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106126324A (zh) |
WO (1) | WO2017219445A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991003B (zh) * | 2017-03-06 | 2023-07-07 | 宇龙计算机通信科技(深圳)有限公司 | 冻结和解冻文件夹内批量应用程序的方法及系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6910210B1 (en) * | 1998-11-24 | 2005-06-21 | Microsoft Corp. | System and method for terminating applications |
CN103744681A (zh) * | 2014-01-16 | 2014-04-23 | 广州市久邦数码科技有限公司 | 一种冻结/解冻程序的方法及系统 |
CN104317608A (zh) * | 2014-09-30 | 2015-01-28 | 北京金山安全软件有限公司 | 移动终端中预装应用程序的管理方法、装置和客户端 |
CN105653323A (zh) * | 2015-12-28 | 2016-06-08 | 小米科技有限责任公司 | 应用程序管理方法及装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102148948B1 (ko) * | 2013-12-06 | 2020-08-27 | 삼성전자주식회사 | 전자 장치의 멀티 태스킹 방법 및 그 전자 장치 |
CN104881299A (zh) * | 2014-02-28 | 2015-09-02 | 可牛网络技术(北京)有限公司 | 一种应用程序冻结方法及装置 |
CN105468426A (zh) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | 一种应用冻结的方法及终端 |
-
2016
- 2016-06-20 CN CN201610444250.3A patent/CN106126324A/zh active Pending
- 2016-07-31 WO PCT/CN2016/092524 patent/WO2017219445A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6910210B1 (en) * | 1998-11-24 | 2005-06-21 | Microsoft Corp. | System and method for terminating applications |
CN103744681A (zh) * | 2014-01-16 | 2014-04-23 | 广州市久邦数码科技有限公司 | 一种冻结/解冻程序的方法及系统 |
CN104317608A (zh) * | 2014-09-30 | 2015-01-28 | 北京金山安全软件有限公司 | 移动终端中预装应用程序的管理方法、装置和客户端 |
CN105653323A (zh) * | 2015-12-28 | 2016-06-08 | 小米科技有限责任公司 | 应用程序管理方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN106126324A (zh) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8812983B2 (en) | Automatic magnification and selection confirmation | |
US20160224207A1 (en) | Method and system for freezing and unfreezing applications | |
US20140007106A1 (en) | Display and Terminate Running Applications | |
CN111800462B (zh) | 微服务实例处理方法、装置、计算机设备及存储介质 | |
CN110233742B (zh) | 一种群组建立方法、系统、终端和服务器 | |
US8819587B1 (en) | Methods of managing items in a shared workspace | |
CN109564517B (zh) | 将被本地删除的内容留存在存储服务处的方法和服务器 | |
US20210271491A1 (en) | Application processing method, device, electronic device and storage medium | |
CN113805962B (zh) | 应用页面的显示方法、装置以及电子设备 | |
JP6196740B2 (ja) | ダウンロードに利用可能なアプリケーションについてユーザに知らせるためのシステム及び方法 | |
US10375576B1 (en) | Detection of malware apps that hijack app user interfaces | |
WO2018049939A1 (zh) | 数据迁移方法及相关产品 | |
WO2016169212A1 (zh) | 文件管理方法和装置 | |
WO2017166640A1 (zh) | 一种应用调用方法和终端 | |
WO2017219446A1 (zh) | 图标的处理方法以及装置 | |
WO2017219445A1 (zh) | 冻结应用程序的方法及终端 | |
US10452838B2 (en) | Providing joint access to an isolated computer object by both an isolated computer application and a non-isolated computer application | |
WO2017215087A1 (zh) | 控制导航运行的方法及终端 | |
CN105868616A (zh) | 一种终端控制方法及装置 | |
CN106975221B (zh) | 用户终端及游戏数据直播装置与方法 | |
CN113126928B (zh) | 文件移动方法及装置、电子设备和介质 | |
CN113839944B (zh) | 应对网络攻击的方法、装置、电子设备和介质 | |
US11442892B2 (en) | File and data migration to storage system | |
WO2016123235A1 (en) | Method and system for freezing and unfreezing applications | |
US10516570B1 (en) | Systems and methods for tagging client devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16905985 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16905985 Country of ref document: EP Kind code of ref document: A1 |