WO2015007247A1 - 耗电异常的应用程序获取方法、装置和移动终端 - Google Patents

耗电异常的应用程序获取方法、装置和移动终端 Download PDF

Info

Publication number
WO2015007247A1
WO2015007247A1 PCT/CN2014/082631 CN2014082631W WO2015007247A1 WO 2015007247 A1 WO2015007247 A1 WO 2015007247A1 CN 2014082631 W CN2014082631 W CN 2014082631W WO 2015007247 A1 WO2015007247 A1 WO 2015007247A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
wake
power consumption
mobile terminal
statistics
Prior art date
Application number
PCT/CN2014/082631
Other languages
English (en)
French (fr)
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 WO2015007247A1 publication Critical patent/WO2015007247A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • 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/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to an application acquisition method, apparatus, and mobile terminal for power consumption abnormality. Background technique
  • the rapid development of mobile terminals has brought great convenience to people.
  • technical problems have arisen:
  • the development of small and sophisticated mobile terminals is limited to the battery capacity of batteries, for example, the capacity of lithium batteries.
  • the reasons for the power consumption of mobile terminals mainly include large screen highlighting, operating system operation, and application (APP) background running power consumption.
  • APP application
  • the user can lower the brightness display of the large screen by operation, and lock the screen without moving the terminal; for the power consumption problem of the operating system, the user can reduce the related system Function usage time, such as using 3G Ord-generation, third-generation mobile communication technology, Wi-Fi (wireless fidelity), etc., but the problem of power consumption in the background running of the application is very difficult. Overcome.
  • the present invention aims to solve at least one of the above technical problems.
  • a first object of the present invention is to provide an application acquisition method for power consumption abnormality. This method enables statistics on the power consumption of active applications during lock screens, so that it can accurately measure whether the application consumes power or not. In addition, it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, thereby avoiding misoperation and improving the user experience.
  • a second object of the present invention is to provide an application acquisition apparatus that consumes power abnormalities.
  • a third object of the present invention is to provide a mobile terminal.
  • a fourth object of the present invention is to provide a storage medium.
  • the method for acquiring an abnormal power consumption application of the first aspect of the present invention includes the following steps: acquiring at least one application in the mobile terminal; acquiring the at least one application in a lock screen within a preset time period Awakening statistical information during the period; and acquiring an application of the power consumption abnormality in the at least one application according to the wakeup statistical information.
  • the wake-up statistics information of the application during the lock screen can be acquired, and the application program for the power consumption abnormality is obtained according to the wake-up statistics information, and the active period during the lock screen is realized.
  • the application's power consumption is counted to accurately measure whether the application consumes power.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, thereby avoiding misoperation and improving the user experience.
  • an application program for acquiring an abnormal power consumption of the second aspect of the present invention includes: a first acquisition module, configured to acquire at least one application program in the mobile terminal; and a second acquisition module, configured to acquire The wake-up statistics information of the at least one application during the preset time period during the lock screen; and the third obtaining module, configured to acquire the application of the power consumption abnormality in the at least one application according to the wake-up statistics.
  • the application program for acquiring power consumption abnormality can acquire the wake-up statistics information of the application during the lock screen, and obtain the application program of the power consumption abnormality according to the wake-up statistics information, thereby realizing the active during the lock screen period.
  • the application's power consumption is counted to accurately measure whether the application consumes power abnormally.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, thereby avoiding misoperation and improving the user experience.
  • a mobile terminal includes: a casing, a screen, a processor, and a circuit board; the screen is disposed on the casing, and the circuit board is disposed in the casing Inside the space, the processor is disposed on the circuit board; the processor is configured to process data, specifically: acquiring at least one application in the mobile terminal; acquiring the at least one application in a preset time period The wakeup statistics during the lock screen; and the application for acquiring the power consumption abnormality in the at least one application according to the wakeup statistics.
  • the mobile terminal can acquire the wake-up statistics information of the application during the lock screen, and acquire the application program of the power consumption abnormality according to the wake-up statistics information, thereby realizing the power consumption of the active application during the lock screen.
  • Statistics are performed to accurately measure whether the application consumes power abnormally.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, avoids misoperation, and improves the user experience.
  • a storage medium configured to store an application, and the application is used to execute an application acquisition method of the power consumption abnormality according to the first aspect of the present invention.
  • FIG. 1 is a flowchart of an application acquisition method of a power consumption abnormality according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for acquiring an application of a power consumption abnormality according to another embodiment of the present invention
  • 3 is a flowchart of an application acquisition method for power consumption abnormality according to still another embodiment of the present invention
  • FIG. 4 is a flowchart of an application acquisition method for power consumption abnormality according to still another embodiment of the present invention
  • FIG. 5 is a structural block diagram of an application acquiring apparatus for power consumption abnormality according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an application acquisition apparatus for power consumption abnormality according to another embodiment of the present invention.
  • FIG. 7 is a block diagram showing the structure of an application acquisition apparatus for power consumption abnormality according to still another embodiment of the present invention.
  • the operating system of the mobile terminal has a power management mechanism, which allows the mobile terminal in the sleep state to end all processes and ensure power consumption in standby mode.
  • API application programming interface
  • the lock mechanism of the backlight switch that can control the screen can cause the mobile terminal to enter the sleep state, thereby becoming a power culprits, which is also the reason why the mobile terminal consumes too much power in the standby state.
  • the present invention proposes an application that consumes power abnormality.
  • the acquisition method, the device, and the mobile terminal, the application acquisition method, the device, and the mobile terminal according to the embodiment of the present invention are described below with reference to the accompanying drawings.
  • 1 is a flow chart of an application acquisition method for power consumption anomaly according to an embodiment of the present invention. As shown in FIG. 1, the application acquisition method of the power consumption abnormality includes the following steps.
  • get all installed applications in the mobile terminal which can include running applications and non-running applications.
  • the wake-up statistics may include wake-up statistics time and/or wake-up statistics, etc.
  • the wake-up time may be the time after the application wakes up, and the wake-up time may be the number of times the application is woken up.
  • the mobile terminal After the mobile terminal locks the screen, it will go to sleep. Ideally, after the mobile terminal is in the sleep state, there is no active application, but some special cases usually cause the mobile terminal to fail to enter the sleep, such as when the wakelock is used by the application. , the mobile terminal cannot sleep normally, and the application is still in an active state.
  • the start time point is obtained, and the active application in the mobile terminal is counted, and when the screen is locked, a snapshot of the resource consumption of each active application in the system is obtained, and the snapshot may include Information such as the wake-up time of the active application (eg, wakelock time) and the number of wake-ups (eg, wakelock count), when the user unlocks the mobile terminal, acquires the end time point, and stops counting the active application.
  • Statistics can be used to obtain wake-up statistics between the start time point and the end time point of the application for each activity within a preset time period. For example, the preset time period is one day, and the accumulated wake-up time and the wake-up time of the application during the multiple lock screen period may be accumulated in one day to obtain corresponding wake-up statistics.
  • the preset condition may be set.
  • the corresponding application power consumption abnormality may be determined, which is further described in the following embodiments.
  • the wake-up statistics information of the application during the lock screen can be acquired, and the application program for the power consumption abnormality is obtained according to the wake-up statistics information, and the active period during the lock screen is realized.
  • the application's power consumption is counted to accurately measure whether the application consumes power abnormally.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, thereby avoiding misoperation and improving the user experience.
  • the application acquisition method of the power consumption abnormality includes the following steps.
  • the preset time threshold and the preset number of thresholds may be set by the user or may be set by the system by default. For example, obtaining an application capable of playing music during the lock screen, the application may determine that the wake-up statistics time during the lock screen is greater than the preset time threshold, or the wake-up statistics are greater than the preset number of thresholds The application consumes power abnormally.
  • the method for acquiring the power consumption abnormality is determined by using the wake-up statistics time or the wake-up statistics in the wake-up statistics information, when the wake-up statistics time is greater than the preset time threshold, or the wake-up statistics times are greater than the pre- When the threshold is set, it is judged that the corresponding application consumes power abnormally, which makes the acquisition result more accurate.
  • FIG. 3 is a flow chart of a method for acquiring an application of a power consumption abnormality according to still another embodiment of the present invention.
  • the application of the power consumption abnormality can be displayed to the user, and after the mobile terminal enters the lock screen period, The application that the user has annotated can be cleaned up.
  • the application acquisition method of the power consumption abnormality includes the following steps.
  • 5304 Display the application of the power consumption abnormality to the user, and receive the user's annotation of the power consumption abnormal application. Specifically, the application of the power consumption abnormality during the lock screen is displayed to the user, and the user's annotation of the power consumption abnormality application is received and recorded, for example, the user can select and mark the application of the power consumption abnormality, wherein , marked as "can be cleaned up", or "not cleaned up”.
  • the application that has been marked "can be cleaned” during the lock screen is cleaned according to the user selection, and the background activity is not allowed. If the user marks "not cleaned up", After the mobile terminal enters the lock screen period, the wake-up statistics or statistics of the active application are not counted but the user is not prompted to clean up the power-hungry application.
  • an application program for acquiring an abnormal power consumption is displayed to the user, and the user selects and marks the application of the power consumption abnormality, and after the mobile terminal enters the lock screen state, the user is The marked application is cleaned up, so that the user can more intuitively understand the power consumption of the mobile terminal during the lock screen, and provide a better power saving strategy for the user, thereby further improving the user experience.
  • the application acquisition method of the power consumption abnormality includes the following steps. 5401. Obtain at least one application in the mobile terminal.
  • S403 Obtain resource consumption information of at least one application during a preset time period during a lock screen.
  • the resource consumption information may include one or more of a CPU usage of the CPU, a memory usage, wireless transmission interface usage information, GPS usage information, sensor usage information, and the like.
  • the start time point is obtained, and the active application in the mobile terminal is counted, and when the screen is locked, a snapshot of the resource consumption of each running application in the system is obtained, and the snapshot may include The consumption of each system resource by the running application, such as CPU usage, memory usage, etc. If the application has a higher CPU usage, the application consumes more power.
  • Get the end time point, stop the statistics of the active application and thus, statistics can be used to obtain the resource consumption information between the start time point and the end time point of each active application within the preset time period.
  • the preset time period is one day, and the application can perform cumulative statistics on the resource consumption in the system during the multiple lock screen period in one day to obtain the corresponding resource consumption information.
  • S404 Acquire an application for at least one power consumption abnormality in the application according to the wakeup statistics and the resource consumption information.
  • each application may consume different system resources in the mobile terminal.
  • the navigation application consumes a large amount of GPS for the global positioning system
  • the game application consumes a large amount of CPU for the central processing unit.
  • the consumption information of different system resources needs to be classified in detail, so that the corresponding power consumption abnormality application can be obtained according to the wakeup statistics information and the resource consumption information. Thereby, the accuracy is improved.
  • 5405 Display the application of the power consumption abnormality to the user, and receive the user's annotation of the power consumption abnormal application.
  • the application acquisition method of the power consumption abnormality improves the accuracy by acquiring the resource consumption information of the application during the lock screen and acquiring the application program of the power consumption abnormality according to the wakeup statistics information and the resource consumption information.
  • the present invention also provides an application acquisition apparatus that consumes power abnormalities.
  • FIG. 5 is a structural block diagram of an application acquisition apparatus for power consumption abnormality according to an embodiment of the present invention.
  • the application device for power consumption abnormality includes: a first acquisition module 10, a second acquisition module 20, and a third acquisition module 30.
  • the first obtaining module 10 is configured to acquire at least one application in the mobile terminal. For example, get all the installed applications in the mobile terminal, which can include running applications and non-running applications.
  • the second obtaining module 20 is configured to obtain wake-up statistics of at least one application during a preset time period during a lock screen.
  • the wake-up statistics may include a wake-up statistics time and/or a wake-up statistics, etc., and the wake-up time may be a time after the application is awakened, and the number of wake-ups may be the number of times the application is woken up.
  • mobile terminal lock screen After going to sleep, ideally, after the mobile terminal is in hibernation, there is no active application, but some special cases usually cause the mobile terminal to fail to enter hibernation. If the wakelock is used by the application at this time, the mobile terminal cannot be normal. Sleep, the application is still active.
  • the start time point is obtained, and the active application in the mobile terminal is counted, and when the screen is locked, a snapshot of the resource consumption of each active application in the system is obtained, and the snapshot may include Information such as wake-up time (eg, wakelock time) and wake-up times (eg, wakelock count) of the running application.
  • the end time point is acquired, and the statistics of the active application are stopped. In this way, statistics can be obtained to obtain wake-up statistics between the start time point and the end time point of the preset application for each active application.
  • the preset time period is one day, and the accumulated wake-up time and the wake-up time of the application during the multiple lock screen period may be accumulated in one day to obtain corresponding wake-up statistics.
  • the third obtaining module 30 is configured to acquire an application of the power consumption abnormality in the at least one application according to the wakeup statistics. In order to make the result of the acquisition more accurate, it is necessary to determine the wakeup statistics to determine whether the power consumption of the corresponding application is abnormal.
  • the third The obtaining module is further configured to determine, when the wake-up statistics time or the wake-up statistics number is greater than the preset time threshold or the preset number of thresholds, determine that the corresponding at least one application consumes power abnormality.
  • the preset time threshold and the preset number of thresholds may be set by the user or may be set by the system by default.
  • the application may determine that the wake-up statistics time during the lock screen is greater than the preset time threshold, or the wake-up statistics are greater than the preset number of thresholds The application consumes power abnormally.
  • the application program for acquiring power consumption abnormality can acquire the wake-up statistics information of the application during the lock screen, and obtain the application program of the power consumption abnormality according to the wake-up statistics information, thereby realizing the active during the lock screen period.
  • the application's power consumption is counted to accurately measure whether the application consumes power abnormally.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, thereby avoiding misoperation and improving the user experience.
  • the application device for power consumption abnormality includes: a first acquisition module 10, a second acquisition module 20, a third acquisition module 30, a display module 40, and a cleaning module 50.
  • the display module 40 is configured to display an application of the power consumption abnormality to the user, and receive an annotation of the user's application for the power consumption abnormality. More specifically, the display module 40 displays the application of the power consumption abnormality during the lock screen to the user, and receives and records the user's annotation of the power consumption abnormal application, for example, the user can select the application with the power consumption abnormality. And marked, where, marked as "can be cleaned up", or "not cleaned up”.
  • the cleaning module 50 is configured to clean the application marked by the user after the mobile terminal enters the lock screen state. More specifically, after the mobile terminal enters the lock screen state, the cleaning module 50 may mark the user according to the user selection. To clean up the application during the lock screen, it is not allowed to perform background activities. If the user marks "not cleaned up", after the mobile terminal enters the lock screen period, the wake-up statistics or statistics of the active application are not counted. However, the user is not prompted to clean up the application that consumes power.
  • the application program for the power consumption abnormality can be displayed to the user through the display module, and the user selects and labels the power consumption abnormality application program, and the mobile terminal enters the lock screen state.
  • the cleaning module cleans up the user-labeled application, so that the user can more intuitively understand the power consumption of the mobile terminal during the lock screen, and provide a better power-saving strategy for the user, thereby further improving the user experience.
  • FIG. 7 is a block diagram showing the structure of an application acquisition apparatus for power consumption abnormality according to still another embodiment of the present invention.
  • the application device for power consumption abnormality includes: a first acquisition module 10, a second acquisition module 20, a third acquisition module 30, a display module 40, a cleaning module 50, and a fourth acquisition module 60.
  • the fourth obtaining module 60 is configured to acquire resource consumption information of the at least one application during the preset time period during the lock screen.
  • the resource consumption information may include one or more of a CPU usage of the CPU, a memory usage, wireless transmission interface usage information, GPS usage information, sensor usage information, and the like. More specifically, when the user locks the screen, the start time point is obtained, and the active application in the mobile terminal is counted, and when the screen is locked, a snapshot of the resource consumption of each active application in the system is obtained, and the snapshot may include The consumption of various system resources by the active application, such as CPU usage, memory usage, etc. If the application has a higher CPU usage, the application consumes more power when the user unlocks the mobile terminal.
  • the end time point is obtained, and the statistics of the active application are stopped, and thus, the resource consumption information between the start time point and the end time point in the preset time period of each active application can be obtained by statistics.
  • the preset time period is one day, and the application can perform cumulative statistics on the resource consumption in the system during the multiple lock screen period in one day to obtain the corresponding resource consumption.
  • the third obtaining module 30 is further configured to acquire an application of the power consumption abnormality in the at least one application according to the wakeup statistics information and the resource consumption information. More specifically, each application may consume different system resources in the mobile terminal, for example, the navigation application consumes a large amount of GPS, and the game application consumes the CPU of the central processing unit. Large, it is necessary to classify the consumption information of different system resources according to each application in detail, so that the corresponding power consumption abnormality application can be obtained according to the wakeup statistics information and the resource consumption information.
  • the resource consumption information of the application during the lock screen can be acquired, and the application program for the power consumption abnormality is obtained according to the wakeup statistical information and the resource consumption information, thereby improving the accuracy.
  • the present invention further proposes a mobile terminal.
  • a mobile terminal includes: a casing, a screen, a processor and a circuit board; the screen is disposed on the casing, the circuit board is disposed inside the space enclosed by the casing, and the processor is disposed on the circuit board; the processor is configured to process data, specifically Execute the following Steps:
  • Sior obtain at least one application in the mobile terminal.
  • get all installed applications in the mobile terminal which can include running applications and non-running applications.
  • S102' Acquire wake-up statistics of at least one application during a preset time period during a lock screen.
  • the wake-up statistics may include wake-up statistics time and/or wake-up statistics, etc.
  • the wake-up time may be the time after the application wakes up, and the wake-up time may be the number of times the application is woken up.
  • the mobile terminal After the mobile terminal locks the screen, it will go to sleep. Ideally, after the mobile terminal is in the sleep state, there is no active application, but some special cases usually cause the mobile terminal to fail to enter the sleep, such as when the wakelock is used by the application. , the mobile terminal cannot sleep normally, and the application is still in an active state.
  • the start time point is obtained, and the active application in the mobile terminal is counted, and when the screen is locked, a snapshot of the resource consumption of each active application in the system is obtained, and the snapshot may include Information such as the wake-up time of the active application (eg, wakelock time) and the number of wake-ups (eg, wakelock count), when the user unlocks the mobile terminal, acquires the end time point, and stops counting the active application.
  • Statistics can be used to obtain wake-up statistics between the start time point and the end time point of the application for each activity within a preset time period. For example, the preset time period is one day, and the accumulated wake-up time and the wake-up time of the application during the multiple lock screen period may be accumulated in one day to obtain corresponding wake-up statistics.
  • the processor when the wakeup statistics include the wakeup statistics time or the wakeup statistics, the processor The method is further configured to: when the wake-up statistics time or the wake-up statistics is greater than the preset time threshold or the preset number of thresholds, determine that the corresponding at least one application consumes power abnormality.
  • the preset time threshold and the preset number of thresholds may be set by the user or may be set by the system by default.
  • the application may determine that the wake-up statistics time during the lock screen is greater than the preset time threshold, or the wake-up statistics are greater than the preset number of thresholds The application consumes power abnormally.
  • the mobile terminal can acquire the wake-up statistics information of the application during the lock screen, and acquire the application program of the power consumption abnormality according to the wake-up statistics information, thereby realizing the power consumption of the active application during the lock screen.
  • Statistics are performed to accurately measure whether the application consumes power abnormally.
  • it provides a reference for the user to use the battery power of the mobile terminal reasonably, and saves power as much as possible without affecting the normal use of the user, avoids misoperation, and improves the user experience.
  • the processor is further configured to: acquire at least one application to lock the screen in a preset time period.
  • the resource consumption information during the period, to acquire an application of the power consumption abnormality in at least one application according to the wakeup statistical information and the resource consumption information.
  • the resource consumption information may include one or more of a CPU usage of the central processing unit, a memory usage, wireless transmission interface usage information, global positioning system GPS usage information, sensor usage information, and the like. Specifically, when the user locks the screen, the start time point is obtained, and the active application in the mobile terminal is counted.
  • a snapshot of the resource consumption of each running application in the system is obtained, and the snapshot may include The consumption of various system resources by the running application, such as CPU usage, memory usage, etc. If the application consumes more CPU, the more power the application consumes, when the user unlocks the mobile terminal. After that, the end time point is obtained, and the statistics of the active application are stopped, and thus, the resource consumption information between the start time point and the end time point in the preset time period of each active application can be obtained by statistics. For example, the preset time period is one day, and the application may perform cumulative statistics on the resource consumption in the system during the multiple lock screen period in one day to obtain corresponding resource consumption information. However, each application may consume different system resources in the mobile terminal.
  • the navigation application consumes a large amount of GPS for the GPS, and the game application consumes a large amount of CPU for the CPU.
  • the consumption information of different system resources is classified in detail, so that the corresponding power consumption abnormality application can be obtained according to the wakeup statistics information and the resource consumption information.
  • the processor is also specifically used to: display the application with abnormal power consumption to the user And receiving the user's annotation of the application of the power consumption abnormality, and cleaning the application marked by the user after the mobile terminal enters the lock screen state. Among them, marked as "can be cleaned up", or "not cleaned up”. Specifically, the application of the power consumption abnormality during the lock screen is displayed to the user, and according to the user selection, the application marked during the "can be cleaned” lock screen is cleaned. Further, the user's selection can be recorded and the user is reminded.
  • the application marked by the user is automatically cleaned, and the background activity is not allowed. If the user marks "not cleaned up", after the mobile terminal enters the lock screen period, the corresponding correspondence is not counted.
  • the application wakes up statistics or statistics but does not prompt the user to clean up the application that consumes power.
  • the present invention further provides a storage medium for storing an application, the application being used to execute the power consumption abnormality application acquisition method according to any one of the embodiments of the present invention.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种耗电异常的应用程序获取方法、装置和移动终端,其中该方法包括以下步骤:获取移动终端中的至少一个应用程序;获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息;以及根据唤醒统计信息获取预设时间段内在耗电异常的应用程序。可获取应用程序在锁屏期间的唤醒统计信息,并根据唤醒统计信息获取耗电异常的应用程序,实现了对锁屏期间的正在活动的应用程序耗电情况进行统计,从而为用户合理的使用移动终端的电池电量提供参考,在不影响用户正常使用的状态下,尽量省电,避免误操作,提升了用户体验。

Description

耗电异常的应用程序获取方法、 装置和移动终端
技术领域
本发明涉及移动终端技术领域, 尤其涉及一种耗电异常的应用程序获取方法、 装置和 移动终端。 背景技术
移动终端的飞速发展给人们带来极大方便的同时, 也出现了技术问题: 小而精的移动终 端的发展局限于电池的电池容量, 例如, 锂电池的容量等。移动终端耗电的原因主要包括大 屏幕高亮显示、 操作系统运行以及应用程序 (Application, APP) 后台运行耗电等。 目前, 针对大屏幕高亮显示高亮显示的问题, 用户可以通过操作调低大屏幕的亮度显示, 不用移动 终端时及时锁屏; 针对操作系统运行时的耗电问题, 用户可以减少对相关系统功能的使用时 间, 如尽量少使用 3G Ord-generation, 第三代移动通信技术)、 Wi-Fi (wireless fidelity, 无 线电高保真) 等等, 然而应用程序后台运行耗电的问题, 目前是非常难以克服的。
目前存在的问题是, 在应用程序后台运行时, 例如移动终端锁屏之后, 应用程序会消耗 大量的电能, 而在移动终端锁屏状态下衡量应用程序耗电是否异常是非常困难的。 发明内容
本发明旨在至少解决上述技术问题之一。
为此, 本发明的第一个目的在于提出一种耗电异常的应用程序获取方法。 该方法实现了 对锁屏期间的正在活动的应用程序耗电情况进行统计,从而能够准确地衡量应用程序耗电是 否异常。进而为用户合理的使用移动终端的电池电量提供参考, 在不影响用户正常使用的状 态下, 尽量省电, 避免误操作, 提升了用户体验。
本发明的第二个目的在于提出一种耗电异常的应用程序获取装置。
本发明的第三个目的在于提出一种移动终端。
本发明的第四个目的在于提出一种存储介质。
为了实现上述目的,本发明第一方面实施例的耗电异常的应用程序获取方法包括以下步 骤: 获取移动终端中的至少一个应用程序; 获取所述至少一个应用程序在预设时间段内在锁 屏期间的唤醒统计信息; 以及根据所述唤醒统计信息获取所述至少一个应用程序中耗电异常 的应用程序。
根据本发明实施例的耗电异常的应用程序获取方法,可获取应用程序在锁屏期间的唤醒 统计信息, 并根据唤醒统计信息获取耗电异常的应用程序, 实现了对锁屏期间的正在活动的 应用程序耗电情况进行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理 的使用移动终端的电池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误 操作, 提升了用户体验。
为了实现上述目的, 本发明第二方面实施例的耗电异常的应用程序获取装置, 包括: 第 一获取模块, 用于获取移动终端中的至少一个应用程序; 第二获取模块, 用于获取所述至少 一个应用程序在预设时间段内在锁屏期间的唤醒统计信息; 以及第三获取模块, 用于根据所 述唤醒统计信息获取所述至少一个应用程序中耗电异常的应用程序。
根据本发明实施例的耗电异常的应用程序获取装置,可获取应用程序在锁屏期间的唤醒 统计信息, 并根据唤醒统计信息获取耗电异常的应用程序, 实现了对锁屏期间的正在活动的 应用程序耗电情况进行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理 的使用移动终端的电池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误 操作, 提升了用户体验。
为了实现上述目的, 本发明第三方面实施例的移动终端, 包括: 外壳, 屏幕, 处理器和 电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上; 所述处理器用于处理数据, 具体用于: 获取移动终端中的至少一 个应用程序; 获取所述至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息; 以及 根据所述唤醒统计信息获取所述至少一个应用程序中耗电异常的应用程序。
根据本发明实施例的移动终端, 可获取应用程序在锁屏期间的唤醒统计信息, 并根据唤 醒统计信息获取耗电异常的应用程序,实现了对锁屏期间的正在活动的应用程序耗电情况进 行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理的使用移动终端的电 池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误操作, 提升了用户体 验。
为了实现上述目的, 本发明第四方面实施例的存储介质用于存储应用程序, 所述应用 程序用于执行本发明第一方面实施例所述的耗电异常的应用程序获取方法。
本发明附加的方面和优点将在下面的描述中部分给出, 部分将从下面的描述中变得明 显, 或通过本发明的实践了解到。 附图说明
本发明上述的和 /或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和 容易理解, 其中,
图 1是根据本发明一个实施例的耗电异常的应用程序获取方法的流程图;
图 2是根据本发明另一个实施例的耗电异常的应用程序获取方法的流程图; 图 3是根据本发明又一个实施例的耗电异常的应用程序获取方法的流程图; 图 4是根据本发明再一个实施例的耗电异常的应用程序获取方法的流程图;
图 5是根据本发明一个实施例的耗电异常的应用程序获取装置的结构框图;
图 6是根据本发明另一个实施例的耗电异常的应用程序获取装置的结构框图; 图 7是根据本发明再一个实施例的耗电异常的应用程序获取装置的结构框图。 具体实施方式
下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至终相同或 类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的 实施例是示例性的, 仅用于解释本发明, 而不能理解为对本发明的限制。 相反, 本发明的实 施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、 修改和等同物。
在本发明的描述中, 需要理解的是, 术语"第一"、 "第二"等仅用于描述目的, 而不能理 解为指示或暗示相对重要性。 在本发明的描述中, 需要说明的是, 除非另有明确的规定和限 定, 术语 "相连"、 "连接 "应做广义理解, 例如, 可以是固定连接, 也可以是可拆卸连接, 或一体地连接; 可以是机械连接, 也可以是电连接; 可以是直接相连, 也可以通过中间媒介 间接相连。对于本领域的普通技术人员而言, 可以具体情况理解上述术语在本发明中的具体 含义。 此外, 在本发明的描述中, 除非另有说明, "多个"的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或 更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分, 并且 本发明的优选实施方式的范围包括另外的实现, 其中可以不按所示出或讨论的顺序, 包括根 据所涉及的功能按基本同时的方式或按相反的顺序, 来执行功能, 这应被本发明的实施例所 属技术领域的技术人员所理解。
目前, 大约有 25%的应用程序存在过度耗电问题, 移动终端的操作系统拥有一套电源管 理机制, 该机制可以让处在休眠状态下的移动终端结束一切进程, 保证在待机情况下耗电最 低, 但是, 在特殊情况下比如连续播放音乐, 这时候会有一种特殊的应用程序编程接口 (Application Programming Interface, API) 打破这种默认的电源管理模式, 例如, 名为唤醒 锁 wakelock (—种可控制屏幕的背光开关的锁机制), 可导致移动终端无法进入休眠状态, 从而成为耗电 "元凶", 这也是移动终端在待机情况下耗电过快的原因。
为了解决如何获取在锁屏期间耗电异常的应用程序的问题, 以及为了解决用户在使用移 动终端时, 对应用程序进行清理会导致误操作的问题, 本发明提出一种耗电异常的应用程序 获取方法、装置和移动终端, 下面参考附图描述根据本发明实施例的耗电异常的应用程序获 取方法、 装置和移动终端。 图 1是根据本发明一个实施例的耗电异常的应用程序获取方法的流程图。 如图 1所示, 耗电异常的应用程序获取方法包括以下步骤。
5101 , 获取移动终端中的至少一个应用程序。
例如, 获取移动终端中所有已安装的应用程序, 其中, 可包括正在运行的应用程序和未 运行的应用程序。
5102, 获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息。
其中, 唤醒统计信息可包括唤醒统计时间和 /或唤醒统计次数等, 唤醒时间可以为应用 程序被唤醒后活动的时间, 唤醒次数可以为应用程序被唤醒的次数。
例如, 移动终端锁屏之后会进入休眠, 理想状态下, 移动终端处于休眠状态后, 没有活 动的应用程序, 但是一些特殊的情况通常导致移动终端无法进入休眠, 如这个时候有 wakelock被应用程序使用,则移动终端不能正常的休眠,此时该应用程序仍处于活动的状态。 具体地, 当用户锁屏后, 获取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获 取每个正在活动的应用程序在系统内的资源消耗的快照,这个快照可包含正在活动的应用程 序的唤醒时间 (如, wakelock time)和唤醒次数(如, wakelock count)等信息, 当用户对移 动终端解锁后, 获取结束时间点, 停止对正在活动的应用程序的统计, 由此, 可通过统计以 获取每个活动的应用程序在预设时间段内在开始时间点和结束时间点之间的唤醒统计信息。 例如, 预设时间段为一天, 可以在一天之中对应用程序在多次锁屏期间中的唤醒时间和唤醒 次数进行累计统计, 以获取对应的唤醒统计信息。
5103 , 根据唤醒统计信息获取至少一个应用程序中耗电异常的应用程序。
具体地, 可设定预设条件, 当唤醒统计信息满足预设条件时, 可判断对应的应用程序耗 电异常, 具体在后续的实施例中将进一步叙述。
根据本发明实施例的耗电异常的应用程序获取方法,可获取应用程序在锁屏期间的唤醒 统计信息, 并根据唤醒统计信息获取耗电异常的应用程序, 实现了对锁屏期间的正在活动的 应用程序耗电情况进行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理 的使用移动终端的电池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误 操作, 提升了用户体验。
图 2是根据本发明另一个实施例的耗电异常的应用程序获取方法的流程图。为了使得获 取结果更加准确,需对唤醒统计信息中的唤醒统计时间或唤醒统计次数进行判断以确定对应 的应用程序耗电是否异常。 具体地, 如图 2所示, 耗电异常的应用程序获取方法包括以下步 骤。
5201 , 获取移动终端中的至少一个应用程序。
5202, 获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息。 S203 , 当唤醒统计时间或唤醒统计次数大于预设时间阈值或预设次数阀值时, 判断对应 的至少一个应用程序耗电异常。
其中,预设时间阀值和预设次数阀值可以为用户自己设定的,也可以为系统默认设定的。 例如, 获取到在锁屏期间活动的可播放音乐的应用程序, 该应用程序在锁屏期间的唤醒 统计时间大于预设时间阀值, 或者唤醒统计次数大于预设次数阀值时, 可判断该应用程序耗 电异常。
根据本发明实施例的耗电异常的应用程序获取方法,通过对唤醒统计信息中的唤醒统计 时间或唤醒统计数次进行判断, 当唤醒统计时间大于预设时间阀值, 或者唤醒统计次数大于 预设次数阀值时, 判断对应的应用程序耗电异常, 使得获取结果更加准确。
图 3是根据本发明又一个实施例的耗电异常的应用程序获取方法的流程图。为了使得用 户更加直观地了解移动终端在锁屏期间的电量消耗情况, 为用户提出更好的省电策略, 可将 耗电异常的应用程序显示给用户, 在移动终端进入锁屏期间之后, 还可对用户标注过的应用 程序进行清理。 具体地, 如图 3所示, 耗电异常的应用程序获取方法包括以下步骤。
5301 , 获取移动终端中的至少一个应用程序。
5302, 获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息。
5303 , 根据唤醒统计信息获取至少一个应用程序中耗电异常的应用程序。
5304, 将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用程序的标注。 具体地, 将在锁屏期间的耗电异常的应用程序显示给用户, 接收并记录用户对耗电异常 的应用程序的标注,例如,用户可对耗电异常的应用程序进行选择并标注,其中,标注为 "可 以清理", 也可以为 "不清理"。
5305, 当移动终端进入锁屏状态之后, 对用户标注过的应用程序进行清理。
具体地, 当移动终端进入锁屏状态之后, 可根据用户选择, 对用户标注过 "可以清理" 锁屏期间的应用程序进行清理, 不允许其进行后台活动, 如果用户标注 "不清理", 则在移 动终端进入锁屏期间之后,不予统计活动的应用程序的唤醒统计信息或者统计但不提示用户 对耗电异常的应用程序进行清理。
根据本发明实施例的耗电异常的应用程序获取方法, 将耗电异常的应用程序显示给用 户, 用户对耗电异常的应用程序进行选择并标注, 在移动终端进入锁屏状态之后, 对用户标 注过的应用程序进行清理, 使得用户更加直观地了解移动终端在锁屏期间的电量消耗情况, 为用户提出更好的省电策略, 进一步提升用户体验。
图 4是根据本发明再一个实施例的耗电异常的应用程序获取方法的流程图。为了提高准 确度, 需获取应用程序在锁屏期间的资源消耗信息, 并根据唤醒统计信息和资源消耗信息获 取耗电异常的应用程序。具体地,如图 4所示,耗电异常的应用程序获取方法包括以下步骤。 5401 , 获取移动终端中的至少一个应用程序。
5402, 获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息。
5403, 获取至少一个应用程序在预设时间段内在锁屏期间的资源消耗信息。
其中, 资源消耗信息可包括中央处理器 CPU的占用率、 内存占用率、 无线传输接口使 用信息、 全球定位系统 GPS使用信息、 传感器使用信息等中的一种或多种。
具体地, 当用户锁屏后, 获取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获取每个正在运行的应用程序在系统内的资源消耗的快照,这个快照可包含正在运行的应用 程序对各个系统资源的消耗情况, 如, CPU的占用率、 内存占用率等, 如果应用程序对 CPU 的占用率越大, 则该应用程序越耗电, 当用户对移动终端解锁后, 获取结束时间点, 停止对 正在活动的应用程序的统计, 由此, 可通过统计以获取每个活动的应用程序在预设时间段内 在开始时间点和结束时间点之间的资源消耗信息。 例如, 预设时间段为一天, 可以在一天之 中对应用程序在多次锁屏期间中对系统内的资源消耗量进行累计统计, 以获取对应的资源消 耗 息
应当理解, S402、 S403的执行不分先后顺序。
5404, 根据唤醒统计信息和资源消耗信息获取至少一个应用程序中耗电异常的应用程 序。
具体地, 每个应用程序对移动终端中不同的系统资源的消耗情况可能不同, 例如, 导航 类应用程序对全球定位系统 GPS的消耗量大, 游戏类应用程序对中央处理器 CPU的消耗量 大, 需要根据每个应用程序对不同的系统资源的消耗信息进行详细分类, 从而可根据唤醒统 计信息和资源消耗信息以获取对应的耗电异常的应用程序。 由此, 提高了准确度。
5405, 将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用程序的标注。
5406, 当移动终端进入锁屏状态之后, 对用户标注过的应用程序进行清理。
根据本发明实施例的耗电异常的应用程序获取方法,通过获取应用程序在锁屏期间的资 源消耗信息,并根据唤醒统计信息和资源消耗信息获取耗电异常的应用程序,提高了准确度。
为了实现上述实施例, 本发明还提出一种耗电异常的应用程序获取装置。
图 5是根据本发明一个实施例的耗电异常的应用程序获取装置的结构框图。如图 5所示, 耗电异常的应用程序获取装置包括:第一获取模块 10、第二获取模块 20和第三获取模块 30。
具体地, 第一获取模块 10用于获取移动终端中的至少一个应用程序。 例如, 获取移动 终端中所有已安装的应用程序, 其中, 可包括正在运行的应用程序和未运行的应用程序。
第二获取模块 20用于获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信 息。 其中, 唤醒统计信息可包括唤醒统计时间和 /或唤醒统计次数等, 唤醒时间可以为应用 程序被唤醒后活动的时间, 唤醒次数可以为应用程序被唤醒的次数。 例如, 移动终端锁屏之 后会进入休眠, 理想状态下, 移动终端处于休眠状态后, 没有活动的应用程序, 但是一些特 殊的情况通常导致移动终端无法进入休眠, 如这个时候有 wakelock被应用程序使用, 则移 动终端不能正常的休眠, 此时该应用程序仍处于活动的状态。 更具体地, 当用户锁屏后, 获 取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获取每个正在活动的应用程序 在系统内的资源消耗的快照,这个快照可包含正在运行的应用程序的唤醒时间(如, wakelock time)和唤醒次数(如, wakelock count)等信息, 当用户对移动终端解锁后, 获取结束时间 点, 停止对正在活动的应用程序的统计, 由此, 可通过统计以获取每个活动的应用程序在预 设时间段内在开始时间点和结束时间点之间的唤醒统计信息。 例如, 预设时间段为一天, 可 以在一天之中对应用程序在多次锁屏期间中的唤醒时间和唤醒次数进行累计统计,以获取对 应的唤醒统计信息。
第三获取模块 30用于根据唤醒统计信息获取至少一个应用程序中耗电异常的应用程序。 为了使得获取结果更加准确, 需对唤醒统计信息进行判断以确定对应的应用程序耗电是 否异常, 在本发明的一个实施例中, 当唤醒统计信息包括唤醒统计时间或唤醒统计次数时, 第三获取模块还具体用于在唤醒统计时间或唤醒统计次数大于预设时间阀值或预设次数阀 值时, 判断对应的至少一个应用程序耗电异常。 其中, 预设时间阀值和预设次数阀值可以为 用户自己设定的, 也可以为系统默认设定的。 例如, 获取到在锁屏期间活动的可播放音乐的 应用程序, 该应用程序在锁屏期间的唤醒统计时间大于预设时间阀值, 或者唤醒统计次数大 于预设次数阀值时, 可判断该应用程序耗电异常。
根据本发明实施例的耗电异常的应用程序获取装置,可获取应用程序在锁屏期间的唤醒 统计信息, 并根据唤醒统计信息获取耗电异常的应用程序, 实现了对锁屏期间的正在活动的 应用程序耗电情况进行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理 的使用移动终端的电池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误 操作, 提升了用户体验。
图 6是根据本发明另一个实施例的耗电异常的应用程序获取装置的结构框图。如图 6所 示, 耗电异常的应用程序获取装置包括: 第一获取模块 10、 第二获取模块 20、 第三获取模 块 30、 显示模块 40和清理模块 50。
具体地, 显示模块 40用于将耗电异常的应用程序显示给用户, 并接收用户对耗电异常 的应用程序的标注。 更具体地, 显示模块 40将在锁屏期间的耗电异常的应用程序显示给用 户, 接收并记录用户对耗电异常的应用程序的标注, 例如, 用户可对耗电异常的应用程序进 行选择并标注, 其中, 标注为 "可以清理", 也可以为 "不清理"。
清理模块 50用于在移动终端进入锁屏状态之后, 对用户标注过的应用程序进行清理。 更具体地, 当移动终端进入锁屏状态之后,清理模块 50可根据用户选择,对用户标注过 "可 以清理"锁屏期间的应用程序进行清理, 不允许其进行后台活动, 如果用户标注 "不清理", 则在移动终端进入锁屏期间之后,不予统计活动的应用程序的唤醒统计信息或者统计但不提 示用户对耗电异常的应用程序进行清理。
根据本发明实施例的耗电异常的应用程序获取装置,可通过显示模块将耗电异常的应用 程序显示给用户, 用户对耗电异常的应用程序进行选择并标注, 在移动终端进入锁屏状态之 后, 清理模块对用户标注过的应用程序进行清理, 使得用户更加直观地了解移动终端在锁屏 期间的电量消耗情况, 为用户提出更好的省电策略, 进一步提升用户体验。
图 7是根据本发明再一个实施例的耗电异常的应用程序获取装置的结构框图。如图 7所 示, 耗电异常的应用程序获取装置包括: 第一获取模块 10、 第二获取模块 20、 第三获取模 块 30、 显示模块 40、 清理模块 50和第四获取模块 60。
具体地, 第四获取模块 60用于获取至少一个应用程序在预设时间段内在锁屏期间的资 源消耗信息。 其中, 资源消耗信息可包括中央处理器 CPU的占用率、 内存占用率、 无线传 输接口使用信息、 全球定位系统 GPS使用信息、 传感器使用信息等中的一种或多种。 更具 体地, 当用户锁屏后, 获取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获取 每个正在活动的应用程序在系统内的资源消耗的快照,这个快照可包含正在活动的应用程序 对各个系统资源的消耗情况, 如, CPU的占用率、 内存占用率等, 如果应用程序对 CPU的 占用率越大, 则该应用程序越耗电, 当用户对移动终端解锁后, 获取结束时间点, 停止对正 在活动的应用程序的统计, 由此, 可通过统计以获取每个活动的应用程序在预设时间段内在 开始时间点和结束时间点之间的资源消耗信息。 例如, 预设时间段为一天, 可以在一天之中 对应用程序在多次锁屏期间中对系统内的资源消耗量进行累计统计,以获取对应的资源消耗 自
在本实施例中, 为了提高准确度, 第三获取模块 30还用于根据唤醒统计信息和资源消 耗信息获取至少一个应用程序中耗电异常的应用程序。更具体地, 每个应用程序对移动终端 中不同的系统资源的消耗情况可能不同, 例如, 导航类应用程序对全球定位系统 GPS 的消 耗量大, 游戏类应用程序对中央处理器 CPU的消耗量大, 需要根据每个应用程序对不同的 系统资源的消耗信息进行详细分类,从而可根据唤醒统计信息和资源消耗信息以获取对应的 耗电异常的应用程序。
根据本发明实施例的耗电异常的应用程序获取装置,可获取应用程序在锁屏期间的资源 消耗信息, 并根据唤醒统计信息和资源消耗信息获取耗电异常的应用程序, 提高了准确度。
为了实现上述实施例, 本发明又提出一种移动终端。
一种移动终端, 包括: 外壳, 屏幕, 处理器和电路板; 屏幕安置在外壳上, 电路板安置 在外壳围成的空间内部, 处理器设置在电路板上; 处理器用于处理数据, 具体用于执行以下 步骤:
sior, 获取移动终端中的至少一个应用程序。
例如, 获取移动终端中所有已安装的应用程序, 其中, 可包括正在运行的应用程序和未 运行的应用程序。
S102' , 获取至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息。
其中, 唤醒统计信息可包括唤醒统计时间和 /或唤醒统计次数等, 唤醒时间可以为应用 程序被唤醒后活动的时间, 唤醒次数可以为应用程序被唤醒的次数。
例如, 移动终端锁屏之后会进入休眠, 理想状态下, 移动终端处于休眠状态后, 没有活 动的应用程序, 但是一些特殊的情况通常导致移动终端无法进入休眠, 如这个时候有 wakelock被应用程序使用,则移动终端不能正常的休眠,此时该应用程序仍处于活动的状态。 具体地, 当用户锁屏后, 获取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获 取每个正在活动的应用程序在系统内的资源消耗的快照,这个快照可包含正在活动的应用程 序的唤醒时间 (如, wakelock time)和唤醒次数(如, wakelock count)等信息, 当用户对移 动终端解锁后, 获取结束时间点, 停止对正在活动的应用程序的统计, 由此, 可通过统计以 获取每个活动的应用程序在预设时间段内在开始时间点和结束时间点之间的唤醒统计信息。 例如, 预设时间段为一天, 可以在一天之中对应用程序在多次锁屏期间中的唤醒时间和唤醒 次数进行累计统计, 以获取对应的唤醒统计信息。
S103 ' , 根据唤醒统计信息获取至少一个应用程序中耗电异常的应用程序。
为了使得获取结果更加准确, 需对唤醒统计信息进行判断以确定对应的应用程序耗电是 否异常, 在本发明的一个实施例中, 当唤醒统计信息包括唤醒统计时间或唤醒统计次数时, 处理器还具体用于: 在唤醒统计时间或唤醒统计次数大于预设时间阀值或预设次数阀值时, 判断对应的至少一个应用程序耗电异常。其中, 预设时间阀值和预设次数阀值可以为用户自 己设定的, 也可以为系统默认设定的。 例如, 获取到在锁屏期间活动的可播放音乐的应用程 序, 该应用程序在锁屏期间的唤醒统计时间大于预设时间阀值, 或者唤醒统计次数大于预设 次数阀值时, 可判断该应用程序耗电异常。
根据本发明实施例的移动终端, 可获取应用程序在锁屏期间的唤醒统计信息, 并根据唤 醒统计信息获取耗电异常的应用程序,实现了对锁屏期间的正在活动的应用程序耗电情况进 行统计, 从而能够准确地衡量应用程序耗电是否异常。进而为用户合理的使用移动终端的电 池电量提供参考, 在不影响用户正常使用的状态下, 尽量省电, 避免误操作, 提升了用户体 验。
为了提高准确度, 需获取应用程序对系统资源的消耗信息, 根据资源消耗情况判断该应 用程序的耗电是否异常, 处理器还具体用于: 获取至少一个应用程序在预设时间段内在锁屏 期间的资源消耗信息, 以根据唤醒统计信息和资源消耗信息获取至少一个应用程序中耗电异 常的应用程序。 其中, 资源消耗信息可包括中央处理器 CPU的占用率、 内存占用率、 无线 传输接口使用信息、 全球定位系统 GPS使用信息、 传感器使用信息等中的一种或多种。 具 体地, 当用户锁屏后腰, 获取开始时间点, 统计移动终端中活动的应用程序, 在锁屏时, 获 取每个正在运行的应用程序在系统内的资源消耗的快照,这个快照可包含正在运行的应用程 序对各个系统资源的消耗情况, 如, CPU的占用率、 内存占用率等, 如果应用程序对 CPU 的占用率越大, 则该应用程序越耗电, 当用户对移动终端解锁后, 获取结束时间点, 停止对 正在活动的应用程序的统计, 由此, 可通过统计以获取每个活动的应用程序在预设时间段内 在开始时间点和结束时间点之间的资源消耗信息, 例如, 预设时间段为一天, 可以在一天之 中对应用程序在多次锁屏期间中对系统内的资源消耗量进行累计统计, 以获取对应的资源消 耗信息。然而每个应用程序对移动终端中不同的系统资源的消耗情况可能不同, 例如, 导航 类应用程序对全球定位系统 GPS的消耗量大, 游戏类应用程序对中央处理器 CPU的消耗量 大, 需要根据每个应用程序对不同的系统资源的消耗信息进行详细分类, 从而可根据唤醒统 计信息和资源消耗信息以获取对应的耗电异常的应用程序。
为了使得用户更加直观地了解移动终端在锁屏期间的电量消耗情况,为用户提出更好的 省电策略, 进一步提升用户体验, 处理器还具体用于: 将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用程序的标注, 以及当移动终端进入锁屏状态之后, 对用户标注 过的应用程序进行清理。 其中, 标注为 "可以清理", 也可以为 "不清理"。 具体地, 将在锁 屏期间的耗电异常的应用程序显示给用户, 根据用户选择, 对标注 "可以清理"锁屏期间的 应用程序进行清理, 进一步的, 可记录用户的选择并提醒用户, 当下次移动终端进入锁屏状 态之后, 自动对用户标注过的应用程序进行清理,不允许其进行后台活动,如果用户标注 "不 清理", 则在移动终端进入锁屏期间之后, 不予统计对应的应用程序的唤醒统计信息或者统 计但不提示用户对耗电异常的应用程序进行清理。
为了实现上述实施例, 本发明还提出一种存储介质, 用于存储应用程序, 应用程序用于 执行本发明任一项实施例所述的耗电异常的应用程序获取方法。
应当理解, 本发明的各部分可以用硬件、 软件、 固件或它们的组合来实现。 在上述实施 方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件 来实现。 例如, 如果用硬件来实现, 和在另一实施方式中一样, 可用本领域公知的下列技术 中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻 辑电路, 具有合适的组合逻辑门电路的专用集成电路, 可编程门阵列 (PGA), 现场可编程 门阵列 (FPGA) 等。
在本说明书的描述中, 参考术语"一个实施例"、 "一些实施例"、 "示例"、 "具体示例"、 或"一些示例"等的描述意指结合该实施例或示例描述的具体特征、 结构、 材料或者特点包含 于本发明的至少一个实施例或示例中。在本说明书中, 对上述术语的示意性表述不一定指的 是相同的实施例或示例。 而且, 描述的具体特征、 结构、 材料或者特点可以在任何的一个或 多个实施例或示例中以合适的方式结合。
尽管已经示出和描述了本发明的实施例, 本领域的普通技术人员可以理解: 在不脱离本 发明的原理和宗旨的情况下可以对这些实施例进行多种变化、 修改、 替换和变型, 本发明的 范围由权利要求及其等同物限定。

Claims

权 利 要 求 书
1、 一种耗电异常的应用程序获取方法, 其特征在于, 包括以下步骤:
获取移动终端中的至少一个应用程序;
获取所述至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息; 以及 根据所述唤醒统计信息获取所述至少一个应用程序中耗电异常的应用程序。
2、 如权利要求 1 所述的方法, 其特征在于, 所述唤醒统计信息包括唤醒统计时间 和 /或唤醒统计次数。
3、 如权利要求 2所述的方法, 其特征在于, 所述根据所述唤醒统计信息获取耗电 异常的应用程序具体包括:
当所述唤醒统计时间或唤醒统计次数大于预设时间阈值或预设次数阈值时, 判断对 应的所述至少一个应用程序耗电异常。
4、 如权利要求 1-3 中任一项所述的方法, 其特征在于, 在所述根据唤醒统计信息 获取耗电异常的应用程序之后, 还包括:
将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用程序的标注; 以 及
当所述移动终端进入锁屏状态之后, 对所述用户标注过的应用程序进行清理。
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 还包括:
获取所述至少一个应用程序在所述预设时间段内在所述锁屏期间的资源消耗信息, 以根据所述唤醒统计信息和所述资源消耗信息获取所述至少一个应用程序中耗电异常 的应用程序。
6、如权利要求 5所述的方法,其特征在于,所述资源消耗信息包括中央处理器 CPU 的占用率、 内存占用率、 无线传输接口使用信息、 全球定位系统 GPS 使用信息、 传感 器使用信息中的一种或多种。
7、 一种耗电异常的应用程序获取装置, 其特征在于, 包括:
第一获取模块, 用于获取移动终端中的至少一个应用程序;
第二获取模块, 用于获取所述至少一个应用程序在预设时间段内在锁屏期间的唤醒 统计信息; 以及
第三获取模块, 用于根据所述唤醒统计信息获取所述至少一个应用程序中耗电异常 的应用程序。
8、 如权利要求 7所述的装置, 其特征在于, 所述唤醒统计信息包括唤醒统计时间 和 /或唤醒统计次数。
9、 如权利要求 8所述的装置, 其特征在于, 当所述唤醒统计信息包括唤醒统计时 间或唤醒统计次数时, 所述第三获取模块还具体用于: 在所述唤醒统计时间或唤醒统计 次数大于预设时间阀值或预设次数阀值时, 判断对应的所述至少一个应用程序耗电异 常。
10、 如权利要求 7-9中任一项所述的装置, 其特征在于, 还包括:
显示模块, 用于将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用 程序的标注; 以及
清理模块, 用于在所述移动终端进入锁屏状态之后, 对所述用户标注过的应用程序 进行清理。
11、 如权利要求 7-10任一项所述的装置, 其特征在于, 还包括:
第四获取模块, 用于获取所述至少一个应用程序在所述预设时间段内在所述锁屏期 间的资源消耗信息; 其中,
所述第三获取模块还用于根据所述唤醒统计信息和所述资源消耗信息获取所述至 少一个应用程序中耗电异常的应用程序。
12、 如权利要求 11 所述的装置, 其特征在于, 所述资源消耗信息包括中央处理器 CPU的占用率、 内存占用率、 无线传输接口使用信息、 全球定位系统 GPS使用信息、 传感器使用信息中的一种或多种。
13、 一种移动终端, 其特征在于, 包括: 外壳, 屏幕, 处理器和电路板; 所述屏幕安置在所述外壳上, 所述电路板安置在所述外壳围成的空间内部, 所述处 理器设置在所述电路板上;
所述处理器用于处理数据, 具体用于:
获取移动终端中的至少一个应用程序;
获取所述至少一个应用程序在预设时间段内在锁屏期间的唤醒统计信息; 以及 根据所述唤醒统计信息获取所述至少一个应用程序中耗电异常的应用程序。
14、 如权利要求 13所述的移动终端, 其特征在于, 所述唤醒统计信息包括唤醒统 计时间和 /或唤醒统计次数。
15、 如权利要求 14所述的移动终端, 其特征在于, 当所述唤醒统计信息包括唤醒 统计时间或唤醒统计次数时, 所述处理器还具体用于: 在所述唤醒统计时间或唤醒统计 次数大于预设时间阀值或预设次数阀值时, 判断对应的所述至少一个应用程序耗电异 常。
16、 如权利要求 13-15中任一项所述的移动终端, 其特征在于, 所述处理器还具体 用于: 将耗电异常的应用程序显示给用户, 并接收用户对耗电异常的应用程序的标注, 以及当所述移动终端进入锁屏状态之后, 对所述用户标注过的应用程序进行清理。
17、 如权利要求 13-16任一项所述的移动终端, 其特征在于, 所述处理器还具体用 于: 获取所述至少一个应用程序在所述预设时间段内在所述锁屏期间的资源消耗信息, 以根据所述唤醒统计信息和所述资源消耗信息获取所述至少一个应用程序中耗电异常 的应用程序。
18、 如权利要求 17 所述的移动终端, 其特征在于, 所述资源消耗信息包括中央处 理器 CPU的占用率、 内存占用率、 无线传输接口使用信息、 全球定位系统 GPS使用信 息、 传感器使用信息中的一种或多种。
19、 一种存储介质, 其特征在于, 用于存储应用程序, 所述应用程序用于执行权利 要求 1至 6中任一项所述的耗电异常的应用程序获取方法。
PCT/CN2014/082631 2013-07-19 2014-07-21 耗电异常的应用程序获取方法、装置和移动终端 WO2015007247A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310306441.X 2013-07-19
CN201310306441.XA CN104298584A (zh) 2013-07-19 2013-07-19 耗电异常的应用程序获取方法、装置和移动终端

Publications (1)

Publication Number Publication Date
WO2015007247A1 true WO2015007247A1 (zh) 2015-01-22

Family

ID=52318319

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082631 WO2015007247A1 (zh) 2013-07-19 2014-07-21 耗电异常的应用程序获取方法、装置和移动终端

Country Status (2)

Country Link
CN (1) CN104298584A (zh)
WO (1) WO2015007247A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326069A (zh) * 2016-08-19 2017-01-11 北京小米移动软件有限公司 功耗检测方法、装置、设备及系统
CN110008007A (zh) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 应用程序冻结方法、装置、存储介质和终端
CN113220354A (zh) * 2021-05-28 2021-08-06 深圳掌酷软件有限公司 锁屏解锁的应用唤醒方法、装置、设备及存储介质

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102311817B1 (ko) * 2015-02-26 2021-10-13 삼성전자주식회사 전자 장치 및 전자 장치의 전원관리 방법
CN105354491B (zh) * 2015-10-12 2018-10-16 广东小天才科技有限公司 智能终端待机状态检测方法及装置
CN105867578A (zh) * 2015-12-07 2016-08-17 乐视移动智能信息技术(北京)有限公司 一种耗电应用的监测方法、装置及用户终端
CN105867581A (zh) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 一种实现功耗优化的方法、装置及移动终端
CN105589546A (zh) * 2015-12-21 2016-05-18 北京金山安全软件有限公司 一种信息检测方法及装置
CN106933323B (zh) * 2015-12-30 2020-06-26 北京金山安全软件有限公司 一种优化应用程序耗电的方法、装置及电子设备
CN105955441B (zh) * 2016-04-21 2019-08-06 北京小米移动软件有限公司 应用管理方法及装置
CN107391348A (zh) * 2016-05-16 2017-11-24 广州市动景计算机科技有限公司 用于应用程序的耗电情况的处理方法及装置
CN107436672B (zh) * 2016-05-26 2021-01-08 中兴通讯股份有限公司 一种应用的处理方法及终端
CN106126209A (zh) * 2016-06-15 2016-11-16 广东欧珀移动通信有限公司 一种终端系统的唤醒统计方法及终端
CN106227321B (zh) * 2016-07-11 2018-01-26 广东欧珀移动通信有限公司 一种终端系统的唤醒监控方法及终端
CN107894902B (zh) * 2016-09-30 2021-01-01 北京小米移动软件有限公司 设备控制方法及装置
CN106774806A (zh) * 2016-12-18 2017-05-31 滁州昭阳电信通讯设备科技有限公司 一种省电的方法及移动终端
CN107133172A (zh) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 应用程序的耗电检测方法及装置
CN107145425B (zh) * 2017-05-08 2019-02-05 Oppo广东移动通信有限公司 信息处理方法、装置和移动终端
CN107506019A (zh) * 2017-08-07 2017-12-22 北京小米移动软件有限公司 应用程序的管理方法及装置、终端、存储介质
CN107832190B (zh) * 2017-10-31 2020-09-22 维沃移动通信有限公司 一种耗电异常的诊断方法、移动终端和存储介质
CN108541013B (zh) * 2018-03-29 2022-06-10 Oppo广东移动通信有限公司 信息处理方法、装置、移动终端和计算机可读存储介质
CN108668016B (zh) * 2018-04-16 2020-01-10 Oppo广东移动通信有限公司 信息处理方法、装置、移动终端和计算机可读存储介质
CN109901697A (zh) * 2019-03-04 2019-06-18 上海卓易科技股份有限公司 一种降低系统功耗的方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102498739A (zh) * 2009-08-14 2012-06-13 谷歌公司 向用户提供关于电池操作的电子设备中的功耗的反馈
CN102841672A (zh) * 2012-07-10 2012-12-26 上海果壳电子有限公司 一种休眠拦截方法及系统
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端
CN103823543A (zh) * 2012-11-16 2014-05-28 三星电子株式会社 便携式电子设备和在其中操作的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306118A (zh) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Android终端应用程序功耗监控的方法和装置
CN103019777A (zh) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 一种自动清理移动终端后台应用程序的方法及系统
CN103037108A (zh) * 2012-12-10 2013-04-10 乐蛙科技(上海)有限公司 一种智能移动终端的省电方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102498739A (zh) * 2009-08-14 2012-06-13 谷歌公司 向用户提供关于电池操作的电子设备中的功耗的反馈
CN102841672A (zh) * 2012-07-10 2012-12-26 上海果壳电子有限公司 一种休眠拦截方法及系统
CN103823543A (zh) * 2012-11-16 2014-05-28 三星电子株式会社 便携式电子设备和在其中操作的方法
CN103324519A (zh) * 2013-06-17 2013-09-25 华为技术有限公司 一种恶意耗电应用的清理方法、装置及用户终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326069A (zh) * 2016-08-19 2017-01-11 北京小米移动软件有限公司 功耗检测方法、装置、设备及系统
CN110008007A (zh) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 应用程序冻结方法、装置、存储介质和终端
CN110008007B (zh) * 2017-12-29 2021-08-17 Oppo广东移动通信有限公司 应用程序冻结方法、装置、存储介质和终端
CN113220354A (zh) * 2021-05-28 2021-08-06 深圳掌酷软件有限公司 锁屏解锁的应用唤醒方法、装置、设备及存储介质
CN113220354B (zh) * 2021-05-28 2024-04-26 特讯法务(深圳)有限公司 锁屏解锁的应用唤醒方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN104298584A (zh) 2015-01-21

Similar Documents

Publication Publication Date Title
WO2015007247A1 (zh) 耗电异常的应用程序获取方法、装置和移动终端
TWI576692B (zh) 可攜式電子設備
WO2014201945A1 (zh) 一种恶意耗电应用的清理方法、装置及用户终端
EP2658231B1 (en) Energy-saving device and method for portable terminal
WO2015007244A1 (zh) 移动终端及其应用程序的控制方法和装置
WO2016054957A1 (zh) 应用程序异常的检测方法、装置和移动终端
US9247502B2 (en) Method and apparatus for power management on mobile devices and associated mobile devices
CN106959386B (zh) 一种漏电流检测方法及移动终端
CN106055079B (zh) 一种中央处理器的管理方法、及装置
CN104298335A (zh) 移动终端的应用程序进程清理方法、装置和移动终端
US20140067293A1 (en) Power sub-state monitoring
CN110058889A (zh) 一种应用唤醒方法及装置
KR20120085724A (ko) 배터리 동작형 전자 디바이스에서 전력 소비에 따른 피드백을 사용자에게 제공하는 방법
CN106557407A (zh) 一种设备负载的监控方法和装置
CN104184884B (zh) 一种移动终端功耗的管控装置及方法、移动终端
CN110572868B (zh) 降低电子设备功耗的方法与设备
CN109040467A (zh) 界面电量确定方法、装置、存储介质及移动终端
CN104375929A (zh) 一种信息处理方法及电子设备
CN111479016A (zh) 终端使用时长提醒方法及装置、终端及存储介质
CN106293709A (zh) 应用程序的管理方法、管理装置及终端
WO2015010624A1 (zh) 应用程序耗电信息的获取方法、装置和移动终端
US20160098339A1 (en) Smart power scheduling for user-directed battery duration
CN106686709A (zh) 屏幕唤醒方法及移动终端
WO2016198003A1 (zh) 一种移动终端电源管理方法、装置和移动终端
CN107277255A (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: 14825972

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC, (EPO FORM 1205N DATED 30.05.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14825972

Country of ref document: EP

Kind code of ref document: A1