WO2018018706A1 - 一种应用程序冻结方法及装置 - Google Patents

一种应用程序冻结方法及装置 Download PDF

Info

Publication number
WO2018018706A1
WO2018018706A1 PCT/CN2016/097474 CN2016097474W WO2018018706A1 WO 2018018706 A1 WO2018018706 A1 WO 2018018706A1 CN 2016097474 W CN2016097474 W CN 2016097474W WO 2018018706 A1 WO2018018706 A1 WO 2018018706A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
freezeable
frozen
applications
power consumption
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.)
Ceased
Application number
PCT/CN2016/097474
Other languages
English (en)
French (fr)
Inventor
文立新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2018018706A1 publication Critical patent/WO2018018706A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to an application freezing method and apparatus.
  • terminals such as mobile phones, tablet computers, desktop computers, and notebook computers have become more and more popular, and have gradually become an important tool in people's daily work and life. Users can install various applications in the terminal as needed.
  • the user may switch the application, and some applications will be in the background. For example, after using the application A at a certain moment, the user does not exit the application A, and directly opens the application B, so that the application A will be in the background running state. After the application is installed, even if the user is not using it, it will be awake constantly to push messages to the user.
  • the present invention provides an application freezing method and device, which can slow down the consumption of the battery power of the terminal, prolong the user's use time of the terminal, and improve the user experience.
  • An application freezing method is applied to a terminal, and the method includes:
  • the determining, according to the power consumption information of each application, the application to be frozen including:
  • Selecting from an application that consumes the least amount of power determining an application of a preset ratio in the set of freezeable applications as an application to be frozen, the preset ratio being the number of selected applications and a ratio of a total number of applications in the set of freezeable applications, the preset ratio having a preset correspondence with the predetermined freeze threshold.
  • the method further includes:
  • a prompt message for the application to be frozen is output.
  • the method further includes:
  • the step of monitoring the change in battery power of itself is repeatedly performed until there is no freezeable application in the terminal system.
  • the method further includes:
  • the defrosting operation is performed on the currently frozen application when it is detected that the battery power changes from a downward trend to an upward trend.
  • the application in the set of freezeable applications is an application that is in a background running state.
  • An application freezing device is applied to a terminal, the device comprising:
  • a battery fuel gauge module for monitoring the change in battery power of the battery
  • the freezeable application determining module is configured to determine a current freezeable application set when the battery power is in a downward trend and reaches a predetermined freeze threshold;
  • a power consumption information obtaining module configured to obtain power consumption information of each application in the set of freezeable applications
  • An application determining module to be frozen configured to determine an application to be frozen according to power consumption information of each application
  • An application freeze module that freezes the identified application.
  • the power consumption information obtaining module is specifically configured to:
  • Selecting from an application that consumes the least amount of power determining an application of a preset ratio in the set of freezeable applications as an application to be frozen, the preset ratio being the number of selected applications and a ratio of a total number of applications in the set of freezeable applications, the preset ratio having a preset correspondence with the predetermined freeze threshold.
  • the device further includes:
  • the prompt information output module is configured to output prompt information for the application to be frozen after the application to be frozen determines that the application to be frozen is determined by the application to be frozen.
  • the device further includes:
  • the device further includes:
  • the application defrosting module is configured to perform a defrosting operation on the currently frozen application when it is detected that the battery power changes from a downward trend to an upward trend.
  • the application in the set of freezeable applications is in a background running state.
  • the current freezeable application set may be determined, and according to the obtained The power consumption information of each application in the freezeable application set, determining the application to be frozen, and freezing the determined application.
  • the frozen application no longer consumes the battery power of the terminal, can slow down the consumption of the battery power of the terminal, prolong the user's use time of the terminal, and enhance the user experience.
  • FIG. 1 is a flowchart of an implementation of an application freezing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another implementation of an application freezing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an application freezing apparatus according to an embodiment of the present invention.
  • the core of the present invention is to provide an application freezing method, which can be applied to terminals such as mobile phones, tablet computers, notebook computers, and desktop computers.
  • the terminal can provide the user with the ability to freeze the application, or provide the user with the ability to freeze the application through a functional application.
  • the terminal can monitor the battery power change condition, determine the current freezeable application set when the battery power is in a downward trend, and reach a predetermined freeze threshold, according to each of the freezeable application sets.
  • the power consumption information of the application determine the application to be frozen, and freeze the determined application.
  • the frozen application no longer consumes the battery power of the terminal, which can slow down the consumption of the battery power of the terminal, prolong the user's use time of the terminal, and improve the user experience.
  • the application program does not include a system key application that provides basic functions provided by the terminal, such as telephone dialing, text messaging, and data service.
  • FIG. 1 is a flowchart of an implementation of an application freezing method according to an embodiment of the present invention. The method may include the following steps:
  • the terminal can monitor the change of its own battery power.
  • S120 Determine a currently freezeable application set when the battery power is in a downward trend and a predetermined freeze threshold is reached.
  • the freeze threshold may be determined in advance.
  • the freeze threshold corresponding to the battery power may be determined according to the current battery power.
  • three thresholds, a first threshold, a second threshold, and a third threshold are preset, and the relationship between the three is: first threshold > second threshold > third threshold.
  • the first threshold may be determined to be a freeze threshold, and if the current battery power is between the first threshold and the second threshold, the first The second threshold is a freeze threshold. If the current battery power is between the second threshold and the third threshold, the third threshold may be predetermined to be a freeze threshold.
  • the preset number and size of the thresholds can be set and adjusted according to the actual situation, and can be set by the user by providing a setting entry, which is not limited by the embodiment of the present invention.
  • the current set of freezeable applications can be determined.
  • the applications installed in the terminal can be divided into the following types:
  • the first type an application running in the foreground, which is the application currently being used by the user, consuming the battery power of the terminal;
  • This application may be an application that was previously used by the user, not closed, or it may be a self-starting, self-wake-up type application that is running in the background. , consuming the battery power of the terminal;
  • the application in the foreground running state is the application that the user is using, if it is frozen, it will affect the user's use, and the application can also not perform the freezing operation, so the application running in the background can be directly used.
  • the program is determined to be the currently freezeable application. This is a preferred way, in which the applications in the currently freezeable application collection are all in the back.
  • the running state of the application is the application that the user is using, if it is frozen, it will affect the user's use, and the application can also not perform the freezing operation, so the application running in the background can be directly used.
  • the program is determined to be the currently freezeable application. This is a preferred way, in which the applications in the currently freezeable application collection are all in the back.
  • the running state of the application is the application that the user is using, if it is frozen, it will affect the user's use, and the application can also not perform the freezing operation, so the application running in the background can be directly used.
  • the program is determined to be the currently freezeable
  • the determined freezeable applications may be the same may be different in view of the fact that the user actually uses the application.
  • the terminal system can continuously monitor and record the power consumption of each application.
  • the list of application power consumption maintained by the terminal system is shown in Table 1:
  • the power consumption information maintained by the terminal system can be dynamically updated in real time according to the actual usage of each application.
  • the terminal detects that the battery power is in a downward trend and reaches a predetermined freeze threshold, the total power consumption information of each application installed in the terminal can be obtained directly from the terminal system, and the current freezeable application set is determined. After that, the power consumption information of each application in the freezeable application set can be obtained from the total information.
  • the terminal detects that the battery power is in a downward trend and reaches a predetermined freeze threshold, and determines the currently freezeable application set
  • the power consumption of each application in the freezeable application set is obtained from the terminal system. information.
  • S140 Determine an application to be frozen according to the power consumption information of each application.
  • step S130 the power consumption information of each application in the freezeable application set is obtained, and the application to be frozen can be determined according to the power consumption information of each application.
  • the power consumption is small.
  • the applications to be frozen are randomly determined in the application.
  • step S140 may include the following steps:
  • Step 1 According to the power consumption information of each application, the applications in the freezeable application set are sorted according to the order of power consumption;
  • Step 2 Select from the application with the lowest power consumption, and determine the preset application in the freezeable application set as the application to be frozen.
  • the preset ratio is the number of selected applications and can be frozen. The proportion of the total number of applications in the application collection, the preset ratio has a preset correspondence with a predetermined freeze threshold.
  • the applications in the freezeable application set can be sorted according to the order of power consumption, and the selection from the application with the lowest power consumption will be freezeable.
  • the application of the preset scale in the application collection is determined to be the application to be frozen.
  • the preset ratio here is a ratio of the number of selected applications to be frozen to the total number of applications in the freezeable application set, and the preset ratio has a preset correspondence with a predetermined freeze threshold.
  • the freeze threshold is predetermined to be 30% when monitoring battery power changes.
  • the currently freezeable application set is ⁇ Application A, Application B, Application C, Application D, Application E, Application F ⁇ Get the power consumption information of each application, sorted according to the order of power consumption, as shown in Table 2:
  • the application with the lowest power consumption is used. F starts the selection and determines the application E and the application F as the application to be frozen.
  • the freeze threshold is predetermined to be 15%.
  • the currently freezeable application set is ⁇ Application A, Application B, Application C, Application D ⁇ , and the consumption of each application is obtained.
  • the power information is sorted according to the order of power consumption, as shown in Table 3:
  • the selection is started from the application D having the lowest power consumption, and the application D and the application C are determined as the applications to be frozen.
  • the number of applications to be frozen determined according to the preset ratio is not an integer, the number of applications to be frozen may be determined according to the rounding up or down rounding rules.
  • Selecting an application that is to be frozen from an application that consumes a small amount of power can avoid affecting the normal use of the user, because an application that consumes a large amount of power may be frequently used by the user. If it is frozen first, it may be Affect the normal use of the user.
  • the determined application may be frozen. This way, the frozen application will no longer consume the battery power of the terminal.
  • the current freezeable application set may be determined, and according to the obtained The power consumption information of each application in the freezeable application collection, determining the application to be frozen, and freezing the determined application.
  • the frozen application no longer consumes the battery power of the terminal, can slow down the consumption of the battery power of the terminal, prolong the user's use time of the terminal, and enhance the user experience.
  • the method may further include the following steps:
  • the prompt information may be output first, prompting the user to perform a freeze operation on the determined application. If the user does not want to freeze the determined application, the output may be provided through the terminal provided by the terminal or the terminal.
  • the reject button cancels the freeze operation. This will avoid affecting the user's normal use of the application.
  • the method may further include the following steps:
  • a plurality of freeze thresholds may be preset.
  • the battery power change condition is monitored, and the corresponding freeze threshold may be determined according to the battery power at this time; when the battery power is in a downward trend and reaches a predetermined freeze threshold in step S120, Determining a currently freezeable application set; obtaining power consumption information of each application in the freezeable application set in step S130; determining an application to be frozen according to the power consumption information of each application in step S140 The determined application is frozen in step S150; if there is a freezeable application in the terminal system, if it exists, step S110 is repeatedly executed to monitor its own battery power change, and if not, it ends.
  • the first application freeze operation is performed.
  • the power consumption information of the currently freezeable application from small to large.
  • the second application freeze operation is performed.
  • 1/2 is selected from small to large.
  • the app is frozen.
  • the third and last application freeze operation is performed. At this time, the currently freezeable applications can all be frozen, and then there is no freezeable application in the terminal system. program.
  • the method may further include the following steps:
  • the defrosting operation is performed on the currently frozen application when it is detected that the battery power changes from a downward trend to an upward trend.
  • the user will charge the battery of the terminal according to the battery power condition.
  • the battery level is detected to change from a downward trend to an upward trend, the current frozen application can be thawed to avoid affecting the user's normal use of the application.
  • the terminal may gradually unfreeze the frozen application according to the increase of the battery power, or the terminal may perform a defrosting operation on the currently frozen application when the battery power is detected to rise to a preset threshold.
  • the embodiment of the invention further provides an application freezing device, which is applied to the terminal.
  • the device can include the following modules:
  • the battery fuel gauge module 310 is configured to monitor a change in battery power of the battery
  • the freezeable application determining module 320 is configured to determine a current freezeable application set when the battery power is in a downward trend and reaches a predetermined freeze threshold;
  • the power consumption information obtaining module 330 is configured to obtain power consumption information of each application in the set of freezeable applications
  • the to-be-freeze application determining module 340 is configured to determine an application to be frozen according to the power consumption information of each application;
  • the application freeze module 350 is configured to freeze the determined application.
  • the power consumption information obtaining module 330 is specifically configured to:
  • the applications in the freezeable application set are sorted according to the order of power consumption
  • the preset ratio is the number of selected applications and the freezeable application.
  • the ratio of the total number of applications in the collection, the preset ratio has a preset correspondence with a predetermined freeze threshold.
  • the device may further comprise the following modules:
  • the prompt information output module is configured to output, after the application to be frozen, the application determining module 340 determines the application to be frozen, the prompt information for the application to be frozen.
  • the device may further comprise the following modules:
  • the repetitive execution module is configured to trigger the battery fuel gauge module 310 after the application freeze module 350 freezes the determined application until there is no freezeable application in the terminal system.
  • the device may further comprise the following modules:
  • the application defrost module is used to perform a thaw operation on the currently frozen application when it detects that the battery level has changed from a downward trend to an upward trend.
  • the application in the set of freezeable applications is in a background running state.
  • the current freezeable application set may be determined, and according to the obtained The power consumption information of each application in the freezeable application collection, determining the application to be frozen, and freezing the determined application. In this way, the frozen application no longer consumes the battery power of the terminal, can slow down the consumption of the battery power of the terminal, prolong the user's use time of the terminal, and enhance the user experience.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

一种应用程序冻结方法及装置,应用于终端。该方法包括以下步骤:监测自身的电池电量变化情况(S110);当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合(S120);获得可冻结的应用程序集合中每个应用程序的耗电量信息(S130);根据每个应用程序的耗电量信息,确定待冻结的应用程序(S140);冻结所确定的应用程序(S150)。该方法可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。

Description

一种应用程序冻结方法及装置
本申请要求于2016年7月28日提交中国专利局,申请号为201610606210.4、发明名称为“一种应用程序冻结方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及终端技术领域,特别是涉及一种应用程序冻结方法及装置。
背景技术
随着终端技术的快速发展,手机、平板电脑、台式机、笔记本电脑等终端越来越普及,已经逐渐成为人们日常工作和生活中的重要工具。用户可以根据需要在终端中安装各类应用程序。
用户在使用终端的过程中,可能会进行应用程序的切换,有的应用程序将会处于后台运行状态。比如,用户在某时刻使用应用程序A之后,没有退出应用程序A,直接打开了应用程序B,这样应用程序A将处于后台运行状态。还有的应用程序被安装之后,即使用户没有使用,也会不断被唤醒,以便向用户推送消息。
对于这些处于后台运行状态的应用程序和自唤醒类型的应用程序,即便用户当前没有使用,这些应用程序仍然在耗费终端的电池电量,使得终端的电池电量消耗过快,当其耗尽时,必然会影响用户对终端的正常使用,用户体验不佳。
发明内容
为解决上述技术问题,本发明提供一种应用程序冻结方法及装置,以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。
一种应用程序冻结方法,应用于终端,所述方法包括:
监测自身的电池电量变化情况;
当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;
获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;
根据每个应用程序的耗电量信息,确定待冻结的应用程序;
冻结所确定的应用程序。
在本发明的一种具体实施方式中,所述根据每个应用程序的耗电量信息,确定待冻结的应用程序,包括:
根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。
在本发明的一种具体实施方式中,在所述根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,所述方法还包括:
输出针对所述待冻结的应用程序的提示信息。
在本发明的一种具体实施方式中,在所述冻结所确定的应用程序之后,所述方法还包括:
重复执行所述监测自身的电池电量变化情况的步骤,直至终端系统中不存在可冻结的应用程序为止。
在本发明的一种具体实施方式中,在所述冻结所确定的应用程序之后,所述方法还包括:
在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
在本发明的一种具体实施方式中,所述可冻结的应用程序集合中的应用程序为处于后台运行状态的应用程序。
一种应用程序冻结装置,应用于终端,所述装置包括:
电池电量监测模块,用于监测自身的电池电量变化情况;
可冻结应用程序确定模块,用于当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;
耗电量信息获得模块,用于获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;
待冻结应用程序确定模块,用于根据每个应用程序的耗电量信息,确定待冻结的应用程序;
应用程序冻结模块,用于冻结所确定的应用程序。
在本发明的一种具体实施方式中,所述耗电量信息获得模块,具体用于:
根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。
在本发明的一种具体实施方式中,所述装置还包括:
提示信息输出模块,用于在所述待冻结应用程序确定模块确定待冻结的应用程序之后,输出针对所述待冻结的应用程序的提示信息。
在本发明的一种具体实施方式中,所述装置还包括:
重复执行模块,用于在所述应用程序冻结模块冻结所确定的应用程序之后,触发所述电池电量监测模块,直至终端系统中不存在可冻结的应用程序为止。
在本发明的一种具体实施方式中,所述装置还包括:
应用程序解冻模块,用于在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
在本发明的一种具体实施方式中,所述可冻结的应用程序集合中的应用程序处于后台运行状态。
应用本发明实施例所提供的技术方案,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。
附图说明
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中应用程序冻结方法的一种实施流程图;
图2为本发明实施例中应用程序冻结方法的另一种实施流程图;
图3为本发明实施例中一种应用程序冻结装置的结构示意图。
具体实施方式
本发明的核心是提供一种应用程序冻结方法,该方法可以应用于手机、平板电脑、笔记本电脑、台式机等终端。终端可以为用户提供冻结应用程序的功能,或者通过某一功能类应用程序为用户提供冻结应用程序的功能。
在用户使用终端过程中,终端可以监测电池电量变化情况,在电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合,根据该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,并冻结所确定的应用程序。冻结的应用程序不再耗费终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。
在本发明实施例中,应用程序不包括电话拨打、短信收发、数据业务等终端为用户提供的基本功能的系统关键应用。
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1所示,为本发明实施例所提供的一种应用程序冻结方法的实施流程图,该方法可以包括以下步骤:
S110:监测自身的电池电量变化情况。
在实际应用中,用户可以根据实际需要在终端中安装各类应用程序。用户在使用终端中安装的应用程序时会消耗终端的电池电量。如果电池电量耗尽,将影响用户对终端的基本功能的正常使用,给用户带来不便。
所以,在用户使用终端过程中,终端可以对自身的电池电量变化情况进行监测。
S120:当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合。
在本发明实施例中,可以预先确定冻结阈值,具体的,可以根据当前电池电量确定与该电池电量对应的冻结阈值。比如,预先设定三个阈值,第一阈值、第二阈值、第三阈值,三者的关系是:第一阈值>第二阈值>第三阈值。在监测电池电量的变化情况时,如果当前电池电量不小于第一阈值,则可以预先确定第一阈值为冻结阈值,如果当前电池电量处于第一阈值和第二阈值之间,则可以预先确定第二阈值为冻结阈值,如果当前电池电量处于第二阈值和第三阈值之间,则可以预先确定第三阈值为冻结阈值。
预先设定的阈值数量和大小都可以根据实际情况进行设定和调整,可以是终端默认设置,还可以通过提供设置入口由用户设置,本发明实施例对此不做限制。
在监测电池电量变化情况的过程中,当电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合。
根据用户在使用终端过程中应用程序的运行状态,可以将终端中安装的应用程序划分为以下几种:
第一种:处于前台运行状态的应用程序,这种应用程序为用户当前正在使用的应用程序,消耗终端的电池电量;
第二种:处于后台运行状态的应用程序,这种应用程序可能是用户之前使用的、未关闭的应用程序,还可能是自启动、自唤醒类型的应用程序,这种应用程序处于后台运行状态,消耗终端的电池电量;
第三种:处于非运行状态的应用程序,这种应用程序没有消耗终端的电池电量。
在实际应用中,可以直接将终端中安装的所有应用程序都确定为当前可冻结的应用程序。
或者,因为处于非运行状态的应用程序没有消耗终端的电池电量,对于这些应用程序没有必要执行冻结操作,所以,可以直接将所有处于前台运行状态和后台运行状态的应用程序都确定为当前可冻结的应用程序。
或者,因为处于前台运行状态的应用程序是用户正在使用的应用程序,如果被冻结将影响用户的使用,对这种应用程序也可以不执行冻结操作,所以,可以直接将处于后台运行状态的应用程序确定为当前可冻结的应用程序。这是一种比较优选的方式,即当前可冻结的应用程序集合中的应用程序均为处于后 台运行状态的应用程序。
可以理解的是,不同时刻电池电量处于下降趋势,且达到预先确定的冻结阈值时,鉴于用户实际使用应用程序的情况,所确定的可冻结的应用程序可能相同可能不同。
S130:获得可冻结的应用程序集合中每个应用程序的耗电量信息。
在用户通过终端使用应用程序过程中,终端系统可以持续对每个应用程序的耗电量情况进行监测和记录。比如,终端系统内部维护的应用程序耗电量列表如表1所示:
序号 应用程序 耗电量
1 视频应用程序 10%
2 音乐应用程序 8%
3 游戏应用程序 6%
4 社交应用程序 5%
5 …… ……
表1
终端系统所维护耗电量信息,可以根据每个应用程序的实际使用情况进行实时动态更新。
当终端监测到电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以直接从终端系统中获得终端中安装的每个应用程序的耗电量总信息,在确定当前可冻结的应用程序集合之后,可以从总信息中获得可冻结的应用程序集合中每个应用程序的耗电量信息。
或者,当终端监测到电池电量处于下降趋势,且达到预先确定的冻结阈值,确定当前可冻结的应用程序集合后,从终端系统中获得可冻结的应用程序集合中每个应用程序的耗电量信息。
S140:根据每个应用程序的耗电量信息,确定待冻结的应用程序。
可以理解的是,用户对不同应用程序使用的频率和时长都是不同的,而且不同的应用程序在单位时间内所需消耗的电量也可能不同。所以,每个应用程序的耗电量不同。在步骤S130获得了可冻结的应用程序集合中每个应用程序的耗电量信息,可以根据每个应用程序的耗电量信息,确定待冻结的应用程序。
在实际应用中,可以根据每个应用程序的耗电量信息,在耗电量较小的几 个应用程序中随机确定待冻结的应用程序。
在本发明的一种具体实施方式中,步骤S140可以包括以下步骤:
步骤一:根据每个应用程序的耗电量信息,对可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
步骤二:从耗电量最小的应用程序开始选择,将可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,预设比例为选择的应用程序的个数与可冻结的应用程序集合中应用程序的总个数的比例,预设比例与预先确定的冻结阈值具有预设的对应关系。
为便于描述,将上述两个步骤结合起来进行说明。
根据获得的每个应用程序的耗电量信息,可以对可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序,从耗电量最小的应用程序开始选择,将可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序。
这里的预设比例为选择的待冻结的应用程序的个数与可冻结的应用程序集合中应用程序的总个数的比例,预设比例与预先确定的冻结阈值具有预设的对应关系。
为方便理解,举例说明。
假设在监测电池电量变化情况时,预先确定冻结阈值为30%。当电池电量处于下降趋势,且达到该冻结阈值30%时,确定当前可冻结的应用程序集合为{应用程序A、应用程序B、应用程序C、应用程序D、应用程序E、应用程序F},获得每个应用程序的耗电量信息,按照耗电量的大小顺序排序后如表2所示:
序号 应用程序 耗电量
1 应用程序A 10%
2 应用程序B 8%
3 应用程序C 6%
4 应用程序D 5%
5 应用程序E 4%
6 应用程序F 2%
表2
假设该冻结阈值30%对应的预设比例为1/3,则从耗电量最小的应用程序 F开始选择,将应用程序E和应用程序F确定为待冻结的应用程序。
继续监测电池电量变化情况时,预先确定冻结阈值为15%。当电池电量处于下降趋势,且达到该冻结阈值15%时,确定当前可冻结的应用程序集合为{应用程序A、应用程序B、应用程序C、应用程序D},获得每个应用程序的耗电量信息,按照耗电量的大小顺序排序后如表3所示:
序号 应用程序 耗电量
1 应用程序A 10%
2 应用程序B 8%
3 应用程序C 6%
4 应用程序D 5%
表3
假设该冻结阈值15%对应的预设比例为1/2,则从耗电量最小的应用程序D开始选择,将应用程序D和应用程序C确定为待冻结的应用程序。
如果根据预设比例所确定的待冻结的应用程序的个数非整数,则可以按照向上取整或者向下取整规则确定待冻结的应用程序的个数。
从耗电量小的应用程序开始选择作为待冻结的应用程序,可以避免影响用户的正常使用,因为耗电量较大的应用程序,可能是用户频繁使用的,如果先将其冻结,可能会影响用户的正常使用。
S150:冻结所确定的应用程序。
在步骤S140,确定了待冻结的应用程序之后,可以冻结所确定的应用程序。这样,被冻结的应用程序将不再消耗终端的电池电量。
应用本发明实施例所提供的方法,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。
在本发明的一个实施例中,在步骤S140根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,该方法还可以包括以下步骤:
输出针对待冻结的应用程序的提示信息。
在确定待冻结的应用程序之后,可以先输出提示信息,提示用户将要对确定的应用程序执行冻结操作,如果用户不希望冻结确定的某个应用程序,可以通过终端提供的设置入口或者终端输出的拒绝按钮取消该冻结操作。这样可以避免影响用户对该应用程序的正常使用。
在本发明的一个实施例中,在步骤S150冻结所确定的应用程序之后,该方法还可以包括以下步骤:
重复执行监测自身的电池电量变化情况的步骤,直至终端系统中不存在可冻结的应用程序为止。
在本发明实施例中,可以预先设定多个冻结阈值。如图2所示,在步骤S110监测自身的电池电量变化情况,可以根据此时电池电量,预先确定相应的冻结阈值;在步骤S120当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;在步骤S130获得可冻结的应用程序集合中每个应用程序的耗电量信息;在步骤S140根据每个应用程序的耗电量信息,确定待冻结的应用程序;在步骤S150冻结所确定的应用程序;在步骤S160判断终端系统中是否存在可冻结的应用程序,如果存在,则重复执行步骤S110监测自身的电池电量变化情况,如果不存在,则结束。
为方便理解,举例说明。
假设冻结阈值有三个,分别为30%、15%和5%。在监测电池电量变化情况时,当电池电量处于下降趋势,且达到30%时,进行第一次应用程序冻结操作,此时,可以根据当前可冻结的应用程序的耗电量信息,从小到大选取1/3的应用程序进行冻结。以此类推,当电池电量处于下降趋势,且达到15%时,进行第二次应用程序冻结操作,此时,可以根据当前可冻结的应用程序的耗电量信息,从小到大选取1/2的应用程序进行冻结。当电池电量仍处于下降趋势,且达到5%时,进行第三次也是最后一次应用程序冻结操作,此时可以将当前可冻结的应用程序全部冻结,之后,终端系统中不存在可冻结的应用程序。
在本发明的一个实施例中,在步骤S150冻结所确定的应用程序之后,该方法还可以包括以下步骤:
在监测到电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
在实际应用中,用户会视电池电量情况对终端的电池进行充电操作,当终 端在监测到电池电量从下降趋势转换为上升趋势时,可以对当前已冻结的应用程序执行解冻操作,以避免影响用户对应用程序的正常使用。
具体的,终端可以根据电池电量的增长情况,逐步对已冻结的应用程序解冻,或者,终端可以在监测到电池电量上升到预设阈值时,对当前已冻结的应用程序执行解冻操作。
相应于上面的方法实施例,本发明实施例还提供了一种应用程序冻结装置,该装置应用于终端。
参见图3所示,该装置可以包括以下模块:
电池电量监测模块310,用于监测自身的电池电量变化情况;
可冻结应用程序确定模块320,用于当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;
耗电量信息获得模块330,用于获得可冻结的应用程序集合中每个应用程序的耗电量信息;
待冻结应用程序确定模块340,用于根据每个应用程序的耗电量信息,确定待冻结的应用程序;
应用程序冻结模块350,用于冻结所确定的应用程序。
在本发明的一种具体实施方式中,耗电量信息获得模块330,具体用于:
根据每个应用程序的耗电量信息,对可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
从耗电量最小的应用程序开始选择,将可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,预设比例为选择的应用程序的个数与可冻结的应用程序集合中应用程序的总个数的比例,预设比例与预先确定的冻结阈值具有预设的对应关系。
在本发明的一种具体实施方式中,该装置还可以包括以下模块:
提示信息输出模块,用于在待冻结应用程序确定模块340确定待冻结的应用程序之后,输出针对待冻结的应用程序的提示信息。
在本发明的一种具体实施方式中,该装置还可以包括以下模块:
重复执行模块,用于在应用程序冻结模块350冻结所确定的应用程序之后,触发电池电量监测模块310,直至终端系统中不存在可冻结的应用程序为止。
在本发明的一种具体实施方式中,该装置还可以包括以下模块:
应用程序解冻模块,用于在监测到电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
在本发明的一种具体实施方式中,可冻结的应用程序集合中的应用程序处于后台运行状态。
应用本发明实施例所提供的装置,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本发明所提供的一种应用程序冻结方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。

Claims (10)

  1. 一种应用程序冻结方法,其特征在于,应用于终端,所述方法包括:
    监测自身的电池电量变化情况;
    当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;
    获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;
    根据每个应用程序的耗电量信息,确定待冻结的应用程序;
    冻结所确定的应用程序。
  2. 根据权利要求1所述的方法,其特征在于,所述根据每个应用程序的耗电量信息,确定待冻结的应用程序,包括:
    根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
    从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。
  3. 根据权利要求1所述的方法,其特征在于,在所述根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,所述方法还包括:
    输出针对所述待冻结的应用程序的提示信息。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,在所述冻结所确定的应用程序之后,所述方法还包括:
    重复执行所述监测自身的电池电量变化情况的步骤,直至终端系统中不存在可冻结的应用程序为止。
  5. 根据权利要求1至3任一项所述的方法,其特征在于,在所述冻结所确定的应用程序之后,所述方法还包括:
    在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
  6. 根据权利要求1至3任一项所述的方法,其特征在于,所述可冻结的应用程序集合中的应用程序为处于后台运行状态的应用程序。
  7. 一种应用程序冻结装置,其特征在于,应用于终端,所述装置包括:
    电池电量监测模块,用于监测自身的电池电量变化情况;
    可冻结应用程序确定模块,用于当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;
    耗电量信息获得模块,用于获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;
    待冻结应用程序确定模块,用于根据每个应用程序的耗电量信息,确定待冻结的应用程序;
    应用程序冻结模块,用于冻结所确定的应用程序。
  8. 根据权利要求7所述的装置,其特征在于,所述耗电量信息获得模块,具体用于:
    根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;
    从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:
    提示信息输出模块,用于在所述待冻结应用程序确定模块确定待冻结的应用程序之后,输出针对所述待冻结的应用程序的提示信息。
    重复执行模块,用于在所述应用程序冻结模块冻结所确定的应用程序之后,触发所述电池电量监测模块,直至终端系统中不存在可冻结的应用程序为止。
  10. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括:
    应用程序解冻模块,用于在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。
PCT/CN2016/097474 2016-07-28 2016-08-31 一种应用程序冻结方法及装置 Ceased WO2018018706A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610606210.4 2016-07-28
CN201610606210.4A CN106292997A (zh) 2016-07-28 2016-07-28 一种应用程序冻结方法及装置

Publications (1)

Publication Number Publication Date
WO2018018706A1 true WO2018018706A1 (zh) 2018-02-01

Family

ID=57662570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097474 Ceased WO2018018706A1 (zh) 2016-07-28 2016-08-31 一种应用程序冻结方法及装置

Country Status (2)

Country Link
CN (1) CN106292997A (zh)
WO (1) WO2018018706A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4174626A4 (en) * 2020-06-29 2023-12-13 Vivo Mobile Communication Co., Ltd. APPLICATION PROGRAM CONTROL METHOD AND DEVICE AND ELECTRONIC DEVICE

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506211A (zh) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 终端设备、应用程序存储数据管理方法、装置、存储介质
CN107943650B (zh) * 2017-11-21 2021-09-17 Oppo广东移动通信有限公司 应用程序的控制方法、装置、存储介质及终端
CN109992364B (zh) * 2017-12-29 2020-12-22 Oppo广东移动通信有限公司 应用冻结方法、装置、计算机设备和计算机可读存储介质
CN110032266B (zh) * 2018-01-10 2022-09-09 Oppo广东移动通信有限公司 信息处理方法、装置、计算机设备和计算机可读存储介质
CN108897415A (zh) * 2018-05-31 2018-11-27 郑州易通众联电子科技有限公司 应用程序的管理方法、管理装置及移动终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100180134A1 (en) * 2009-01-15 2010-07-15 Samsung Electronics Co., Ltd. Apparatus and method for power saving of bus interface in portable terminal
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端
CN104866069A (zh) * 2015-06-12 2015-08-26 广东小天才科技有限公司 一种自动清理后台应用程序的方法及装置
CN105700663A (zh) * 2016-01-13 2016-06-22 广东小天才科技有限公司 一种移动终端的后台程序清理方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635908B (zh) * 2013-11-13 2018-09-28 腾讯科技(深圳)有限公司 一种降低移动终端的耗电量的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100180134A1 (en) * 2009-01-15 2010-07-15 Samsung Electronics Co., Ltd. Apparatus and method for power saving of bus interface in portable terminal
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端
CN104866069A (zh) * 2015-06-12 2015-08-26 广东小天才科技有限公司 一种自动清理后台应用程序的方法及装置
CN105700663A (zh) * 2016-01-13 2016-06-22 广东小天才科技有限公司 一种移动终端的后台程序清理方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4174626A4 (en) * 2020-06-29 2023-12-13 Vivo Mobile Communication Co., Ltd. APPLICATION PROGRAM CONTROL METHOD AND DEVICE AND ELECTRONIC DEVICE
US12474956B2 (en) 2020-06-29 2025-11-18 Vivo Mobile Communication Co., Ltd. Application program control method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN106292997A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2018018706A1 (zh) 一种应用程序冻结方法及装置
KR101739216B1 (ko) 중앙집중식 태스크 스케줄링
CN109803359B (zh) 一种唤醒终端系统的方法及终端
WO2018000508A1 (zh) 应用程序冻结方法及移动终端
CN105208642B (zh) 一种应用管理的方法及终端
TW201220180A (en) Application lifetime management
US20140157026A1 (en) Methods and apparatus for dynamically adjusting a power level of an electronic device
CN104866069A (zh) 一种自动清理后台应用程序的方法及装置
CN104166542A (zh) 检测应用耗电的方法和装置
CN104182029B (zh) 程序唤醒时间设置方法、程序唤醒时间设置装置和终端
WO2015007246A1 (zh) 移动终端中应用程序的唤醒控制方法、装置和移动终端
CN102841768B (zh) 一种移动终端的屏幕延时调整方法
CN112153216A (zh) 电量预警方法及装置、终端设备、存储介质
CN106451612A (zh) 充电方法和充电装置
CN107734578B (zh) 移动终端的待机优化方法、装置及移动终端
CN105279018B (zh) 一种关闭信息推送的方法及终端
CN110008008A (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
CN106095492B (zh) 一种应用程序的关闭方法和装置
CN106648767A (zh) 一种应用冻结方法及装置
CN115219930B (zh) 车辆蓄电池老化预警方法、装置、电子设备以及存储介质
CN107222612B (zh) 一种移动终端的后台应用程序关闭方法及装置
CN110365084A (zh) 充电控制方法、装置、终端及存储介质
CN103837835A (zh) 一种移动设备电池容量下降程度检测方法及其装置
CN110148992B (zh) 一种充电控制方法、终端设备及存储介质
CN111030249A (zh) 一种截止电压控制方法及电子设备

Legal Events

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

Ref document number: 16910285

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: 16910285

Country of ref document: EP

Kind code of ref document: A1