WO2018018706A1 - Application program freezing method and device - Google Patents

Application program freezing method and device 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
Application number
PCT/CN2016/097474
Other languages
French (fr)
Chinese (zh)
Inventor
文立新
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018018706A1 publication Critical patent/WO2018018706A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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.

Abstract

An application freezing method and device, applied to a terminal. The method comprises the following steps: monitoring changes in battery level of the terminal itself (S110); determining a current freezable application program set if the battery level tends to decrease and reaches a predetermined freezing threshold (S120); obtaining power consumption information of each application program in the freezable application program set (S130); determining application programs to be frozen according to the power consumption information of each application program (S140); and freezing the determined application programs (S150). The method is capable of decreasing the consumption rate of the battery level of the terminal, prolonging the service time of the terminal for a user, and improving user experience.

Description

一种应用程序冻结方法及装置Application freezing method and device
本申请要求于2016年7月28日提交中国专利局,申请号为201610606210.4、发明名称为“一种应用程序冻结方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610606210.4, entitled "Application Freezing Method and Apparatus", filed on July 28, 2016, the entire contents of in.
技术领域Technical field
本发明涉及终端技术领域,特别是涉及一种应用程序冻结方法及装置。The present invention relates to the field of terminal technologies, and in particular, to an application freezing method and apparatus.
背景技术Background technique
随着终端技术的快速发展,手机、平板电脑、台式机、笔记本电脑等终端越来越普及,已经逐渐成为人们日常工作和生活中的重要工具。用户可以根据需要在终端中安装各类应用程序。With the rapid development of terminal technologies, 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.
用户在使用终端的过程中,可能会进行应用程序的切换,有的应用程序将会处于后台运行状态。比如,用户在某时刻使用应用程序A之后,没有退出应用程序A,直接打开了应用程序B,这样应用程序A将处于后台运行状态。还有的应用程序被安装之后,即使用户没有使用,也会不断被唤醒,以便向用户推送消息。During the process of using the terminal, 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.
对于这些处于后台运行状态的应用程序和自唤醒类型的应用程序,即便用户当前没有使用,这些应用程序仍然在耗费终端的电池电量,使得终端的电池电量消耗过快,当其耗尽时,必然会影响用户对终端的正常使用,用户体验不佳。For these applications running in the background and self-wake-up applications, even if the user is not currently using them, these applications still consume the battery power of the terminal, making the terminal's battery power consumption too fast, when it is exhausted, it is inevitable It will affect the normal use of the terminal by the user, and the user experience is not good.
发明内容Summary of the invention
为解决上述技术问题,本发明提供一种应用程序冻结方法及装置,以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。To solve the above technical problem, 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:
监测自身的电池电量变化情况;Monitor your battery's battery power changes;
当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;Determining a currently freezeable application set when the battery power is in a downward trend and a predetermined freeze threshold is reached;
获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;Obtaining power consumption information of each application in the set of freezeable applications;
根据每个应用程序的耗电量信息,确定待冻结的应用程序; Determine the application to be frozen according to the power consumption information of each application;
冻结所确定的应用程序。Freeze the identified application.
在本发明的一种具体实施方式中,所述根据每个应用程序的耗电量信息,确定待冻结的应用程序,包括:In a specific implementation manner of the present invention, the determining, according to the power consumption information of each application, the application to be frozen, including:
根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;Sorting the applications in the set of freezeable applications according to the order of power consumption according to the power consumption information of each application;
从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。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.
在本发明的一种具体实施方式中,在所述根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,所述方法还包括:In a specific implementation of the present invention, after determining the application to be frozen according to the power consumption information of each application, the method further includes:
输出针对所述待冻结的应用程序的提示信息。A prompt message for the application to be frozen is output.
在本发明的一种具体实施方式中,在所述冻结所确定的应用程序之后,所述方法还包括:In a specific implementation of the present invention, after the freezing the determined application, 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.
在本发明的一种具体实施方式中,在所述冻结所确定的应用程序之后,所述方法还包括:In a specific implementation of the present invention, after the freezing the determined application, 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.
在本发明的一种具体实施方式中,所述可冻结的应用程序集合中的应用程序为处于后台运行状态的应用程序。In a specific embodiment of the present invention, 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.
在本发明的一种具体实施方式中,所述耗电量信息获得模块,具体用于:In a specific implementation manner of the present invention, the power consumption information obtaining module is specifically configured to:
根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;Sorting the applications in the set of freezeable applications according to the order of power consumption according to the power consumption information of each application;
从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。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.
在本发明的一种具体实施方式中,所述装置还包括:In a specific embodiment of the present invention, 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.
在本发明的一种具体实施方式中,所述装置还包括:In a specific embodiment of the present invention, the device further includes:
重复执行模块,用于在所述应用程序冻结模块冻结所确定的应用程序之后,触发所述电池电量监测模块,直至终端系统中不存在可冻结的应用程序为止。And repeating the execution module, after the application freezing module freezes the determined application, triggering the battery fuel gauge module until there is no freezeable application in the terminal system.
在本发明的一种具体实施方式中,所述装置还包括:In a specific embodiment of the present invention, 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.
在本发明的一种具体实施方式中,所述可冻结的应用程序集合中的应用程序处于后台运行状态。In a specific embodiment of the invention, the application in the set of freezeable applications is in a background running state.
应用本发明实施例所提供的技术方案,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。According to the technical solution provided by the embodiment of the present invention, in the process of monitoring the battery power change, if the battery power is in a downward trend and reaches a predetermined freeze threshold, 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. 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.
附图说明DRAWINGS
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the art.
图1为本发明实施例中应用程序冻结方法的一种实施流程图;1 is a flowchart of an implementation of an application freezing method according to an embodiment of the present invention;
图2为本发明实施例中应用程序冻结方法的另一种实施流程图;2 is a flowchart of another implementation of an application freezing method according to an embodiment of the present invention;
图3为本发明实施例中一种应用程序冻结装置的结构示意图。FIG. 3 is a schematic structural diagram of an application freezing apparatus according to an embodiment of the present invention.
具体实施方式detailed description
本发明的核心是提供一种应用程序冻结方法,该方法可以应用于手机、平板电脑、笔记本电脑、台式机等终端。终端可以为用户提供冻结应用程序的功能,或者通过某一功能类应用程序为用户提供冻结应用程序的功能。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.
在用户使用终端过程中,终端可以监测电池电量变化情况,在电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合,根据该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,并冻结所确定的应用程序。冻结的应用程序不再耗费终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。During the user's use of the terminal, 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.
在本发明实施例中,应用程序不包括电话拨打、短信收发、数据业务等终端为用户提供的基本功能的系统关键应用。In the embodiment of the present invention, 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.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be further described in detail below in conjunction with the drawings and embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图1所示,为本发明实施例所提供的一种应用程序冻结方法的实施流程图,该方法可以包括以下步骤: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:
S110:监测自身的电池电量变化情况。S110: Monitor the change of its own battery power.
在实际应用中,用户可以根据实际需要在终端中安装各类应用程序。用户在使用终端中安装的应用程序时会消耗终端的电池电量。如果电池电量耗尽,将影响用户对终端的基本功能的正常使用,给用户带来不便。In practical applications, users can install various applications in the terminal according to actual needs. The user consumes the battery power of the terminal when using the application installed in the terminal. If the battery is exhausted, it will affect the normal use of the basic functions of the terminal, which will cause inconvenience to the user.
所以,在用户使用终端过程中,终端可以对自身的电池电量变化情况进行监测。Therefore, during the user's use of the terminal, the terminal can monitor the change of its own battery power.
S120:当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合。 S120: Determine a currently freezeable application set when the battery power is in a downward trend and a predetermined freeze threshold is reached.
在本发明实施例中,可以预先确定冻结阈值,具体的,可以根据当前电池电量确定与该电池电量对应的冻结阈值。比如,预先设定三个阈值,第一阈值、第二阈值、第三阈值,三者的关系是:第一阈值>第二阈值>第三阈值。在监测电池电量的变化情况时,如果当前电池电量不小于第一阈值,则可以预先确定第一阈值为冻结阈值,如果当前电池电量处于第一阈值和第二阈值之间,则可以预先确定第二阈值为冻结阈值,如果当前电池电量处于第二阈值和第三阈值之间,则可以预先确定第三阈值为冻结阈值。In the embodiment of the present invention, the freeze threshold may be determined in advance. Specifically, the freeze threshold corresponding to the battery power may be determined according to the current battery power. For example, 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. When monitoring the change of the battery power, if the current battery power is not less than the first 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.
在监测电池电量变化情况的过程中,当电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合。During the monitoring of battery power changes, when the battery power is in a downward trend and a predetermined freeze threshold is reached, the current set of freezeable applications can be determined.
根据用户在使用终端过程中应用程序的运行状态,可以将终端中安装的应用程序划分为以下几种:According to the running state of the application during the process of using the terminal, 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;
第二种:处于后台运行状态的应用程序,这种应用程序可能是用户之前使用的、未关闭的应用程序,还可能是自启动、自唤醒类型的应用程序,这种应用程序处于后台运行状态,消耗终端的电池电量;Second: an application that is running in the background. 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;
第三种:处于非运行状态的应用程序,这种应用程序没有消耗终端的电池电量。Third: An application that is not running, this application does not consume the battery power of the terminal.
在实际应用中,可以直接将终端中安装的所有应用程序都确定为当前可冻结的应用程序。In practical applications, all applications installed in the terminal can be directly determined as the currently freezeable application.
或者,因为处于非运行状态的应用程序没有消耗终端的电池电量,对于这些应用程序没有必要执行冻结操作,所以,可以直接将所有处于前台运行状态和后台运行状态的应用程序都确定为当前可冻结的应用程序。Or, because the application that is not running does not consume the battery power of the terminal, there is no need to perform a freeze operation for these applications, so all applications that are in the foreground running state and the background running state can be directly determined to be currently freezeable. s application.
或者,因为处于前台运行状态的应用程序是用户正在使用的应用程序,如果被冻结将影响用户的使用,对这种应用程序也可以不执行冻结操作,所以,可以直接将处于后台运行状态的应用程序确定为当前可冻结的应用程序。这是一种比较优选的方式,即当前可冻结的应用程序集合中的应用程序均为处于后 台运行状态的应用程序。Or, because 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.
可以理解的是,不同时刻电池电量处于下降趋势,且达到预先确定的冻结阈值时,鉴于用户实际使用应用程序的情况,所确定的可冻结的应用程序可能相同可能不同。It can be understood that when the battery power is at a downward trend at different times and reaches a predetermined freeze threshold, the determined freezeable applications may be the same may be different in view of the fact that the user actually uses the application.
S130:获得可冻结的应用程序集合中每个应用程序的耗电量信息。S130: Obtain power consumption information of each application in the set of freezeable applications.
在用户通过终端使用应用程序过程中,终端系统可以持续对每个应用程序的耗电量情况进行监测和记录。比如,终端系统内部维护的应用程序耗电量列表如表1所示:During the user's use of the application through the terminal, the terminal system can continuously monitor and record the power consumption of each application. For example, the list of application power consumption maintained by the terminal system is shown in Table 1:
序号Serial number 应用程序application 耗电量power consumption
11 视频应用程序Video application 10%10%
22 音乐应用程序Music app 8%8%
33 游戏应用程序Game application 6%6%
44 社交应用程序Social application 5%5%
55 ……...... ……......
表1Table 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.
当终端监测到电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以直接从终端系统中获得终端中安装的每个应用程序的耗电量总信息,在确定当前可冻结的应用程序集合之后,可以从总信息中获得可冻结的应用程序集合中每个应用程序的耗电量信息。When 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.
或者,当终端监测到电池电量处于下降趋势,且达到预先确定的冻结阈值,确定当前可冻结的应用程序集合后,从终端系统中获得可冻结的应用程序集合中每个应用程序的耗电量信息。Alternatively, when 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:根据每个应用程序的耗电量信息,确定待冻结的应用程序。S140: Determine an application to be frozen according to the power consumption information of each application.
可以理解的是,用户对不同应用程序使用的频率和时长都是不同的,而且不同的应用程序在单位时间内所需消耗的电量也可能不同。所以,每个应用程序的耗电量不同。在步骤S130获得了可冻结的应用程序集合中每个应用程序的耗电量信息,可以根据每个应用程序的耗电量信息,确定待冻结的应用程序。Understandably, users use different frequencies and durations for different applications, and different applications may consume different amounts of power per unit of time. Therefore, each application consumes less power. In 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.
在实际应用中,可以根据每个应用程序的耗电量信息,在耗电量较小的几 个应用程序中随机确定待冻结的应用程序。In practical applications, 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.
在本发明的一种具体实施方式中,步骤S140可以包括以下步骤:In a specific implementation manner of the present invention, 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.
为便于描述,将上述两个步骤结合起来进行说明。For the convenience of description, the above two steps are combined for explanation.
根据获得的每个应用程序的耗电量信息,可以对可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序,从耗电量最小的应用程序开始选择,将可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序。According to the obtained power consumption information of each application, 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.
为方便理解,举例说明。For ease of understanding, an example is given.
假设在监测电池电量变化情况时,预先确定冻结阈值为30%。当电池电量处于下降趋势,且达到该冻结阈值30%时,确定当前可冻结的应用程序集合为{应用程序A、应用程序B、应用程序C、应用程序D、应用程序E、应用程序F},获得每个应用程序的耗电量信息,按照耗电量的大小顺序排序后如表2所示:Assume that the freeze threshold is predetermined to be 30% when monitoring battery power changes. When the battery power is in a downward trend and reaches the freeze threshold of 30%, it is determined that 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:
序号Serial number 应用程序application 耗电量power consumption
11 应用程序AApplication A 10%10%
22 应用程序BApplication B 8%8%
33 应用程序CApplication C 6%6%
44 应用程序DApplication D 5%5%
55 应用程序EApplication E 4%4%
66 应用程序FApplication F 2%2%
表2Table 2
假设该冻结阈值30%对应的预设比例为1/3,则从耗电量最小的应用程序 F开始选择,将应用程序E和应用程序F确定为待冻结的应用程序。Assuming that the preset threshold of 30% of the freeze threshold is 1/3, 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.
继续监测电池电量变化情况时,预先确定冻结阈值为15%。当电池电量处于下降趋势,且达到该冻结阈值15%时,确定当前可冻结的应用程序集合为{应用程序A、应用程序B、应用程序C、应用程序D},获得每个应用程序的耗电量信息,按照耗电量的大小顺序排序后如表3所示:When monitoring battery power changes continuously, the freeze threshold is predetermined to be 15%. When the battery power is in a downward trend and reaches the freezing threshold of 15%, it is determined that 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:
序号Serial number 应用程序application 耗电量power consumption
11 应用程序AApplication A 10%10%
22 应用程序BApplication B 8%8%
33 应用程序CApplication C 6%6%
44 应用程序DApplication D 5%5%
表3table 3
假设该冻结阈值15%对应的预设比例为1/2,则从耗电量最小的应用程序D开始选择,将应用程序D和应用程序C确定为待冻结的应用程序。Assuming that the preset ratio corresponding to the freeze threshold of 15% is 1/2, 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.
如果根据预设比例所确定的待冻结的应用程序的个数非整数,则可以按照向上取整或者向下取整规则确定待冻结的应用程序的个数。If 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.
S150:冻结所确定的应用程序。S150: Freeze the determined application.
在步骤S140,确定了待冻结的应用程序之后,可以冻结所确定的应用程序。这样,被冻结的应用程序将不再消耗终端的电池电量。After the application to be frozen is determined in step S140, the determined application may be frozen. This way, the frozen application will no longer consume the battery power of the terminal.
应用本发明实施例所提供的方法,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。According to the method provided by the embodiment of the present invention, in the process of monitoring the battery power change, if the battery power is in a downward trend and reaches a predetermined freeze threshold, 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.
在本发明的一个实施例中,在步骤S140根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,该方法还可以包括以下步骤:In an embodiment of the present invention, after determining the application to be frozen according to the power consumption information of each application in step S140, the method may further include the following steps:
输出针对待冻结的应用程序的提示信息。 Outputs prompts for applications to be frozen.
在确定待冻结的应用程序之后,可以先输出提示信息,提示用户将要对确定的应用程序执行冻结操作,如果用户不希望冻结确定的某个应用程序,可以通过终端提供的设置入口或者终端输出的拒绝按钮取消该冻结操作。这样可以避免影响用户对该应用程序的正常使用。After determining the application to be frozen, 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.
在本发明的一个实施例中,在步骤S150冻结所确定的应用程序之后,该方法还可以包括以下步骤:In an embodiment of the present invention, after the determined application is frozen in step S150, the method may further include the following steps:
重复执行监测自身的电池电量变化情况的步骤,直至终端系统中不存在可冻结的应用程序为止。Repeat the steps to monitor your battery's battery level until there are no freezeable applications in the terminal system.
在本发明实施例中,可以预先设定多个冻结阈值。如图2所示,在步骤S110监测自身的电池电量变化情况,可以根据此时电池电量,预先确定相应的冻结阈值;在步骤S120当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;在步骤S130获得可冻结的应用程序集合中每个应用程序的耗电量信息;在步骤S140根据每个应用程序的耗电量信息,确定待冻结的应用程序;在步骤S150冻结所确定的应用程序;在步骤S160判断终端系统中是否存在可冻结的应用程序,如果存在,则重复执行步骤S110监测自身的电池电量变化情况,如果不存在,则结束。In the embodiment of the present invention, a plurality of freeze thresholds may be preset. As shown in FIG. 2, in step S110, 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.
为方便理解,举例说明。For ease of understanding, an example is given.
假设冻结阈值有三个,分别为30%、15%和5%。在监测电池电量变化情况时,当电池电量处于下降趋势,且达到30%时,进行第一次应用程序冻结操作,此时,可以根据当前可冻结的应用程序的耗电量信息,从小到大选取1/3的应用程序进行冻结。以此类推,当电池电量处于下降趋势,且达到15%时,进行第二次应用程序冻结操作,此时,可以根据当前可冻结的应用程序的耗电量信息,从小到大选取1/2的应用程序进行冻结。当电池电量仍处于下降趋势,且达到5%时,进行第三次也是最后一次应用程序冻结操作,此时可以将当前可冻结的应用程序全部冻结,之后,终端系统中不存在可冻结的应用程序。Assume that there are three freeze thresholds, 30%, 15%, and 5%. When monitoring the battery power change, when the battery power is in a downward trend and reaches 30%, the first application freeze operation is performed. At this time, according to the power consumption information of the currently freezeable application, from small to large. Select 1/3 of the application to freeze. By analogy, when the battery power is declining and reaches 15%, the second application freeze operation is performed. At this time, according to the power consumption information of the currently freezeable application, 1/2 is selected from small to large. The app is frozen. When the battery power is still in a downward trend and reaches 5%, 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.
在本发明的一个实施例中,在步骤S150冻结所确定的应用程序之后,该方法还可以包括以下步骤:In an embodiment of the present invention, after the determined application is frozen in step S150, 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.
在实际应用中,用户会视电池电量情况对终端的电池进行充电操作,当终 端在监测到电池电量从下降趋势转换为上升趋势时,可以对当前已冻结的应用程序执行解冻操作,以避免影响用户对应用程序的正常使用。In practical applications, the user will charge the battery of the terminal according to the battery power condition. When 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.
具体的,终端可以根据电池电量的增长情况,逐步对已冻结的应用程序解冻,或者,终端可以在监测到电池电量上升到预设阈值时,对当前已冻结的应用程序执行解冻操作。Specifically, 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.
相应于上面的方法实施例,本发明实施例还提供了一种应用程序冻结装置,该装置应用于终端。Corresponding to the above method embodiment, the embodiment of the invention further provides an application freezing device, which is applied to the terminal.
参见图3所示,该装置可以包括以下模块:Referring to Figure 3, the device can include the following modules:
电池电量监测模块310,用于监测自身的电池电量变化情况;The battery fuel gauge module 310 is configured to monitor a change in battery power of the battery;
可冻结应用程序确定模块320,用于当电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;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;
耗电量信息获得模块330,用于获得可冻结的应用程序集合中每个应用程序的耗电量信息;The power consumption information obtaining module 330 is configured to obtain power consumption information of each application in the set of freezeable applications;
待冻结应用程序确定模块340,用于根据每个应用程序的耗电量信息,确定待冻结的应用程序;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;
应用程序冻结模块350,用于冻结所确定的应用程序。The application freeze module 350 is configured to freeze the determined application.
在本发明的一种具体实施方式中,耗电量信息获得模块330,具体用于:In a specific implementation manner of the present invention, the power consumption information obtaining module 330 is specifically configured to:
根据每个应用程序的耗电量信息,对可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;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;
从耗电量最小的应用程序开始选择,将可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,预设比例为选择的应用程序的个数与可冻结的应用程序集合中应用程序的总个数的比例,预设比例与预先确定的冻结阈值具有预设的对应关系。Select from the application with the lowest power consumption, and determine the preset application in the freezeable application collection as the application to be frozen. 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.
在本发明的一种具体实施方式中,该装置还可以包括以下模块:In a specific embodiment of the invention, the device may further comprise the following modules:
提示信息输出模块,用于在待冻结应用程序确定模块340确定待冻结的应用程序之后,输出针对待冻结的应用程序的提示信息。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.
在本发明的一种具体实施方式中,该装置还可以包括以下模块:In a specific embodiment of the invention, the device may further comprise the following modules:
重复执行模块,用于在应用程序冻结模块350冻结所确定的应用程序之后,触发电池电量监测模块310,直至终端系统中不存在可冻结的应用程序为止。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.
在本发明的一种具体实施方式中,该装置还可以包括以下模块: In a specific embodiment of the invention, 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.
在本发明的一种具体实施方式中,可冻结的应用程序集合中的应用程序处于后台运行状态。In one embodiment of the invention, the application in the set of freezeable applications is in a background running state.
应用本发明实施例所提供的装置,在监测电池电量变化情况过程中,如果电池电量处于下降趋势,且达到预先确定的冻结阈值时,可以确定当前可冻结的应用程序集合,并根据获得的该可冻结的应用程序集合中每个应用程序的耗电量信息,确定待冻结的应用程序,对确定的应用程序进行冻结操作。这样,被冻结的应用程序不再消耗终端的电池电量,可以减缓终端的电池电量的消耗速度,延长用户对终端的使用时长,提升用户体验。When the device provided by the embodiment of the present invention is used to monitor the battery power change, if the battery power is in a downward trend and reaches a predetermined freeze threshold, 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 various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the respective embodiments may be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art will further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate the hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。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.
以上对本发明所提供的一种应用程序冻结方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。 The application freezing method and device provided by the present invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, and the description of the above embodiments is only to assist in understanding the method of the present invention and its core idea. It should be noted that those skilled in the art can make various modifications and changes to the present invention without departing from the spirit and scope of the invention.

Claims (10)

  1. 一种应用程序冻结方法,其特征在于,应用于终端,所述方法包括:An application freezing method is characterized in that it is applied to a terminal, and the method includes:
    监测自身的电池电量变化情况;Monitor your battery's battery power changes;
    当所述电池电量处于下降趋势,且达到预先确定的冻结阈值时,确定当前可冻结的应用程序集合;Determining a currently freezeable application set when the battery power is in a downward trend and a predetermined freeze threshold is reached;
    获得所述可冻结的应用程序集合中每个应用程序的耗电量信息;Obtaining power consumption information of each application in the set of freezeable applications;
    根据每个应用程序的耗电量信息,确定待冻结的应用程序;Determine the application to be frozen according to the power consumption information of each application;
    冻结所确定的应用程序。Freeze the identified application.
  2. 根据权利要求1所述的方法,其特征在于,所述根据每个应用程序的耗电量信息,确定待冻结的应用程序,包括:The method according to claim 1, wherein the determining the application to be frozen according to the power consumption information of each application comprises:
    根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;Sorting the applications in the set of freezeable applications according to the order of power consumption according to the power consumption information of each application;
    从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。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.
  3. 根据权利要求1所述的方法,其特征在于,在所述根据每个应用程序的耗电量信息,确定待冻结的应用程序之后,所述方法还包括:The method according to claim 1, wherein after the determining the application to be frozen according to the power consumption information of each application, the method further comprises:
    输出针对所述待冻结的应用程序的提示信息。A prompt message for the application to be frozen is output.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,在所述冻结所确定的应用程序之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the freezing the determined application, the method further comprises:
    重复执行所述监测自身的电池电量变化情况的步骤,直至终端系统中不存在可冻结的应用程序为止。The step of monitoring the change in battery power of itself is repeatedly performed until there is no freezeable application in the terminal system.
  5. 根据权利要求1至3任一项所述的方法,其特征在于,在所述冻结所确定的应用程序之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the freezing the determined application, the method further comprises:
    在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。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.
  6. 根据权利要求1至3任一项所述的方法,其特征在于,所述可冻结的应用程序集合中的应用程序为处于后台运行状态的应用程序。 The method according to any one of claims 1 to 3, wherein the application in the set of freezeable applications is an application that is in a background running state.
  7. 一种应用程序冻结装置,其特征在于,应用于终端,所述装置包括:An application freezing device is characterized in that it is applied to a terminal, and the device includes:
    电池电量监测模块,用于监测自身的电池电量变化情况;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.
  8. 根据权利要求7所述的装置,其特征在于,所述耗电量信息获得模块,具体用于:The device according to claim 7, wherein the power consumption information obtaining module is specifically configured to:
    根据每个应用程序的耗电量信息,对所述可冻结的应用程序集合中的应用程序按照耗电量的大小顺序进行排序;Sorting the applications in the set of freezeable applications according to the order of power consumption according to the power consumption information of each application;
    从耗电量最小的应用程序开始选择,将所述可冻结的应用程序集合中预设比例的应用程序确定为待冻结的应用程序,所述预设比例为选择的应用程序的个数与所述可冻结的应用程序集合中应用程序的总个数的比例,所述预设比例与所述预先确定的冻结阈值具有预设的对应关系。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.
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    提示信息输出模块,用于在所述待冻结应用程序确定模块确定待冻结的应用程序之后,输出针对所述待冻结的应用程序的提示信息。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.
    重复执行模块,用于在所述应用程序冻结模块冻结所确定的应用程序之后,触发所述电池电量监测模块,直至终端系统中不存在可冻结的应用程序为止。And repeating the execution module, after the application freezing module freezes the determined application, triggering the battery fuel gauge module until there is no freezeable application in the terminal system.
  10. 根据权利要求7至9任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 7 to 9, wherein the device further comprises:
    应用程序解冻模块,用于在监测到所述电池电量从下降趋势转换为上升趋势时,对当前已冻结的应用程序执行解冻操作。 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.
PCT/CN2016/097474 2016-07-28 2016-08-31 Application program freezing method and device WO2018018706A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610606210.4 2016-07-28
CN201610606210.4A CN106292997A (en) 2016-07-28 2016-07-28 A kind of application program freezing method and device

Publications (1)

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

Family

ID=57662570

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097474 WO2018018706A1 (en) 2016-07-28 2016-08-31 Application program freezing method and device

Country Status (2)

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

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 apparatus, and electronic device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506211A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Terminal device, application program data storage management method, device, storage medium
CN107943650B (en) * 2017-11-21 2021-09-17 Oppo广东移动通信有限公司 Application program control method and device, storage medium and terminal
CN109992364B (en) * 2017-12-29 2020-12-22 Oppo广东移动通信有限公司 Application freezing method and device, computer equipment and computer readable storage medium
CN110032266B (en) * 2018-01-10 2022-09-09 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN108897415A (en) * 2018-05-31 2018-11-27 郑州易通众联电子科技有限公司 Management method, managing device and the mobile terminal of application program

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 (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs
CN105700663A (en) * 2016-01-13 2016-06-22 广东小天才科技有限公司 Background program cleaning method and system for mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635908B (en) * 2013-11-13 2018-09-28 腾讯科技(深圳)有限公司 A kind of method and device for the power consumption reducing mobile terminal

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 (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs
CN105700663A (en) * 2016-01-13 2016-06-22 广东小天才科技有限公司 Background program cleaning method and system for mobile terminal

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 apparatus, and electronic device

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2018018706A1 (en) Application program freezing method and device
WO2018000508A1 (en) Application freezing method and mobile terminal
CN109803359B (en) Method for awakening terminal system and terminal
CN106233571B (en) Load scheduling in multi-battery devices
US20190188007A1 (en) Method for Preloading Application, Storage Medium, and Terminal Device
US20140157026A1 (en) Methods and apparatus for dynamically adjusting a power level of an electronic device
TW201220180A (en) Application lifetime management
CN104166542A (en) Method and device for detecting electricity consumption of application
WO2015007246A1 (en) Mobile terminal, device and method for controlling waking of application program in mobile terminal
CN109947497B (en) Application program preloading method and device, storage medium and mobile terminal
US20140195843A1 (en) Method and system for battery power saving
KR20150120435A (en) Centralized task scheduling
CN105183137A (en) Mobile terminal and wake lock control method and system thereof
JP2005160091A (en) Power management method and apparatus using transmission mode for reducing power
US9118520B1 (en) Systems and methods for monitoring application resource usage on mobile computing systems
US6753625B2 (en) Method and apparatus for implementing programmable battery shut off
CN107734578B (en) Standby optimization method and device of mobile terminal and mobile terminal
CN103837835B (en) A kind of mobile equipment cell container decline degree detecting method and device thereof
Lee et al. CAS: Context-aware background application scheduling in interactive mobile systems
CN104063316A (en) Application testing method and device
CN107547742B (en) Wake-up lock release method and device for mobile terminal
CN109933419B (en) Control method and device
CN111369715A (en) Function operation method and device of video lock and computer storage medium
EP2867790B1 (en) Systems and methods for automatic modification of device configuration values
US11880259B2 (en) Smart assertion management

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