WO2014201945A1 - 一种恶意耗电应用的清理方法、装置及用户终端 - Google Patents
一种恶意耗电应用的清理方法、装置及用户终端 Download PDFInfo
- Publication number
- WO2014201945A1 WO2014201945A1 PCT/CN2014/078623 CN2014078623W WO2014201945A1 WO 2014201945 A1 WO2014201945 A1 WO 2014201945A1 CN 2014078623 W CN2014078623 W CN 2014078623W WO 2014201945 A1 WO2014201945 A1 WO 2014201945A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- power consumption
- application
- user terminal
- background
- malicious
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/56—Computer malware detection or handling, e.g. anti-virus arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/52—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/03—Indexing scheme relating to G06F21/50, monitoring users, programs or devices to maintain the integrity of platforms
- G06F2221/033—Test or assess software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2143—Clearing memory, e.g. to prevent the data from being stolen
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of user terminal equipment, and in particular, to a method, a device, and a user terminal for cleaning a malicious power consumption application.
- many user terminals especially smart terminals, have higher processing power, larger screens, higher resolution, and high-speed wireless networks such as WIFI, 3G, and LTE.
- WIFI wireless fidelity
- 3G 3G
- LTE high-speed wireless networks
- the maximum standby time of many smartphones or tablets is usually less than one day. It is very inconvenient for the user to charge frequently to ensure normal use.
- smart terminals can support a variety of applications, and some open application markets are filled with some bad applications. After users download and install, these applications will unreasonably occupy the system resources of the smart terminal, including long-term CPU occupation and long-term use.
- the system is active, the background steals traffic, secretly uses various sensors (SENSOR), etc., so that after installing these applications, users will increase the power consumption due to the malicious power consumption of these applications, and further reduce the power consumption.
- the battery's battery life reduces the user experience.
- the power consumption of all applications of the smart terminal is often counted, and the applications that consume large power are ranked, thereby guiding the user to stop or uninstall the more power-consuming applications.
- the application covered in the ranking may be the application that the user really wants to use, such as a frequently used video, which is often used by users, because the video decoding itself uses the CPU highly, and the video is watched online. It requires networking and consumes a lot of network resources. When users watch videos, the screen brightness is relatively high. For this application, high power consumption is a natural situation. According to the prior art, the ranking is often ranked high in power consumption applications. From another perspective, the ranking method in the prior art cannot accurately locate bad applications that are maliciously power-consuming. It is also impossible to avoid the damage of the poor terminal battery life of these smart terminals.
- the embodiment of the invention provides a method, a device and a user terminal for cleaning a malicious power consumption application, which are used for accurately locating and cleaning a malicious power consumption application, and improving the battery life capability of the intelligent terminal.
- a method for cleaning a malicious power consumption application includes: calculating, according to a first period, a background work power consumption of each application running in a user terminal, when the background power consumption is Not less than the power consumption threshold, determine that the application is a malicious power consumption application; and / or
- the time that the running user uses the wake-up lock when the screen is closed is counted, and when the time for occupying the wake-up lock is not less than the time threshold, and the application is the background working application, determining the The application is a malicious power consumption application;
- the determined malicious power consumption application is cleaned up or notified to the user for cleaning.
- the background work power consumption of each application running in the statistics user terminal includes:
- calculating, by using the running, each application, the power consumption of the user terminal CPU when working in the background specifically includes:
- Calculating the power consumption of the wake-up locks when the respective applications work in the background specifically: calculating, for each application, the accumulated duration of the IDLE generated by the user terminal CPU during the background work of the application and the power consumption per unit time when the IDLE occurs Product of the power consumption of the wake-up lock when the application works in the background;
- Calculating the power consumption of the data traffic generated when the respective applications work in the background specifically: calculating, for each application, the number of bytes of data traffic generated by the application in the background work and the power consumption of a single byte.
- the product is the power consumption of the data traffic that occurs when the application is working in the background.
- the system framework Framework layer detects, by the system framework, a time when the user terminal occupies the wake lock in the case that the screen is closed.
- the first period and the second period are timed according to a working period excluding the sleep period of the CPU.
- the method further includes:
- the background application that uses the background work power consumption not less than the power consumption threshold and/or the user terminal to occupy the wake lock when the screen is closed is not less than the time threshold is determined to be a malicious power consumption application;
- the determined malicious power consumption applications are sorted according to the power consumption amount or the length of time the wake lock is used to generate a list of malicious power consumption applications, and the user is sent to carry the malicious power consumption. Use the list's notification message.
- the embodiment of the present invention provides a device for cleaning a malicious power consumption application, including: a statistics module, configured to count, according to a first cycle, a background work power consumption of each application running in a user terminal; The second period is to count the time when the user running the application locks the wake lock when the screen is closed;
- a determining module configured to determine, by the statistic module, whether the background work power consumption of each application is not less than a power consumption threshold, and if yes, determining that the application is a malicious power consumption application; and determining that the statistics module collects each application occupation Whether the time of waking up the lock is not less than the time threshold, and if the application is a background work application, determining that the application is a malicious power consumption application;
- the cleaning module is used to clean up the determined malicious power consumption applications or notify the user to clean up.
- the statistic module is specifically configured to start from the end of the last charging of the user terminal, periodically, according to the first period, for each running application. Calculating the power consumption of the user terminal CPU, the power consumption of the awake lock, and the power consumption of the data traffic when the respective running applications are working in the background; calculating the power consumption of the occupied user terminal CPU The sum of the power consumption of the wake-up lock and the power consumption of the data traffic, as the background work power consumption of each running application.
- the statistics module is specifically configured to calculate, for each application, an accumulated working time of the CPU occupied by the application in the background work.
- the product of the power consumption per unit time of the frequency point is obtained, and the power consumption of the user terminal CPU is occupied when the application works in the background; for each application, the cumulative duration and occurrence of the IDLE of the user terminal CPU when the application works in the background is calculated.
- the product of the power consumption per unit time in IDLE the power consumption of the application holding the wake-up lock when working in the background; and calculating the number of bytes of data traffic accumulated by the application in the background work for each application and The product of the power consumption of a single byte, the power consumption of the data traffic generated when the application works in the background.
- the statistic module is specifically used to Through the framework of the system framework, the time when the user terminal occupies the wake lock in the case that the screen is closed is detected.
- the statistic module is specifically configured to exclude the first period and the second period from sleeping of the CPU Timing of working hours outside the period.
- the statistic module is further configured to: when the user terminal is lower than the power threshold, or is sent by the user When the command of the background power consumption application list is viewed, the background power consumption of each application running in the current user terminal is triggered, and/or the time when the current user terminal is running the application in the case that the screen is closed is occupied by the wakeup lock. Operation
- the determining module is further configured to: when the user terminal is lower than the power consumption threshold, or when the user issues an instruction to view the background power consumption application list, the current power consumption is not less than the power consumption threshold.
- the background application that the application and/or the user terminal occupies the wake-up lock in the case that the screen is closed is not less than the time threshold is determined to be a malicious power-consuming application;
- the cleaning module is further configured to: when the user terminal is lower than the power consumption threshold, or when the user issues an instruction to view the background power consumption application list, determine the determined power consumption application according to the power consumption amount. Or sorting the length of the wake-up lock to generate a list of malicious power-consuming applications, and sending a notification message carrying the list of malicious power-consuming applications to the user.
- the embodiment of the present invention provides a device for cleaning a malicious power consumption application, including: a processor, configured to calculate, according to a first cycle, a background work power consumption of each application running in the user terminal; The second period is to count the time that each running application of the user terminal is running in the case that the screen is closed, and the wake-up lock wakelock is determined; and when the comparator determines that the background working power consumption of the application is not less than the first power consumption threshold, determining the The application is a malicious power consumption application, and when the comparator determines that the application takes up the wakelock time is not less than the time threshold, the application is determined to be a malicious power consumption application; and the determined power consumption application is cleaned; or sent to the user through the transceiver The notice is cleaned up; The comparator is configured to determine whether the processor calculates whether the background work power consumption of each application is not less than the first power consumption threshold, and whether the processor counts whether the time of each application occupying the wakelock is not less than a time threshold.
- the transceiver is configured to send a notification to the user to clean up the determined malicious power consumption application.
- an embodiment of the present invention provides a user terminal, where the user terminal includes the foregoing device for cleaning a malicious power consumption application provided by the embodiment of the present invention.
- the method, the device and the user terminal for cleaning the malicious power consumption application provided by the embodiment of the present invention periodically count the power consumption of the background work of each application running in the user terminal, and the power consumption of the background work is not less than the power consumption.
- the application of the threshold value is determined to be a malicious power consumption application, and periodically counts the time when the application terminal occupies a wakelock when the screen is closed, if an application occupies the wakelock time is not less than the time threshold and For the background work application, it is determined to be a malicious power-consuming application.
- These applications are applications that use resources in an unreasonable manner in the background, and are not applications that consume high power but are normally used by users, and implement malicious power consumption applications. Accurate positioning and detection, while ensuring the user experience, avoid unnecessary power consumption of the user terminal, save energy, and improve the battery life of the user terminal to a certain extent.
- FIG. 1 is a flowchart of a method for cleaning a malicious power consumption application according to an embodiment of the present invention
- FIG. 2 is a flow chart of an example provided by an embodiment of the present invention
- FIG. 3 is a schematic diagram of a UI interface of a high power consumption application according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of a first structure of a device for cleaning a malicious power consumption application according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of a second structure of a device for cleaning a malicious power consumption application according to an embodiment of the present invention.
- the cleaning method of the malicious power consumption application provided by the embodiment of the present invention is first described in detail. Starting from the application of malicious power consumption in existing user terminals, the inventors have found that malicious power consumption applications can generally consume the power of the user terminal in the following two ways:
- a background application continues to hold a wake lock (wakelock, Wakelock is a lock)
- the mechanism as long as the application holds Wakelock, the system can not enter hibernation) so that the system can not sleep, resulting in malicious power consumption.
- the method for cleaning the malicious power consumption application provided by the embodiment of the present invention, as shown in FIG. 1 , specifically includes the following steps. :
- step S105 Determine whether the background work power consumption of each application running in the user terminal is not less than a power consumption threshold (for convenience of description, hereinafter referred to as a first power consumption threshold), and if yes, perform the following step S105. If no, go to step S107 below;
- a power consumption threshold for convenience of description, hereinafter referred to as a first power consumption threshold
- the time for the running application to occupy the wakelock is calculated.
- S104 Determine whether the time of the wakelock time of each application of the statistics is not less than a time threshold, and the application is a background working application; if yes, proceed to step S105. If not, then proceed to the following step S107; 5105, determining that the application is a malicious power consumption application, and then performing the following step S106;
- S101 S102, and S103 S104 are two mutually independent methods for detecting malicious power consumption applications, and the two methods may be implemented alternatively or both. In specific implementation, if both are implemented , can be carried out at the same time, or in succession.
- the first period and the second period are not timed according to the physical time, and preferably, the time period is excluded according to the working period excluding the sleep period of the user terminal CPU.
- the method of malicious power consumption includes but is not limited to: the application frequently applies for RTC to wake up the CPU, and the data traffic occurs after the CPU is woken up, and the application is held for a long time when the screen is closed. There are wakelocks and so on. Therefore, in the embodiment of the present invention, the manner of malicious power consumption in the background of the applications may be started, and the statistical application consumes the power consumption of the CPU of the user terminal when working in the background.
- step S101 the background work power consumption of each application running in the user terminal is counted, which can be specifically implemented by:
- the user since many existing user terminals have the function of charging the user terminal through the USB interface when connecting with the PC, the user connects the user terminal to the PC to perform short-time operations on the user terminal (for example, downloading and/or When uploading multimedia files, updating applications, etc.), the PC can charge the user terminal through, for example, a USB interface, but at this time, the user may not need to charge the user terminal, and the amount of charging is also small, in order to avoid frequent statistics. After each application The accumulated power consumption during the work of the station affects the performance of the user terminal.
- the USB charging ends, if the USB charging amount is less than a certain threshold, or charging If the time is less than a certain set of time, it is not determined to be a "charging end" in the true sense. It does not trigger the calculation of the user terminal CPUs that are running in the background when the respective applications running in the user terminal are periodically calculated according to the first cycle. The power consumption, the power consumption of the wakelock, and the power consumption of data traffic.
- the foregoing calculation calculates the power consumption of the wakelock when each application works in the background, which is specifically implemented by the following steps:
- the product of the number of bytes of data traffic accumulated in the background work of the application and the power consumption of a single byte is calculated, and the power consumption of the data traffic generated when the application works in the background is obtained.
- the data generated by the application when working in the background is mainly generated by the user terminal through a wireless local area network such as Wireless Fidelity (WIFI).
- WIFI Wireless Fidelity
- Traffic and user terminal pass The sum of data traffic generated by carrier networks such as 2G and 3G.
- the time of occupying the wakelock of each application may be detected by the framework of the system (Framwork) layer, and if the time of occupying the wakelock is not less than the time threshold (for example, 15 minutes), the application is determined to be malicious. Power consumption application.
- the specific detection mode belongs to the prior art, and details are not described herein again.
- the processed application list is ignored, and it is determined whether the malicious power consumption application determined by steps S101 to S102 and S103 S104 has been previously ignored by the user; if not, the cleaning is not performed and the malicious power consumption application is not issued.
- the notification if not, performs the subsequent steps of cleaning up the determined malicious power consumption application or notifying the user to clean up.
- the value of the second power consumption threshold is higher than the value of the first power consumption threshold.
- the first power consumption value is lOmaH
- the second power consumption value is 50maH
- the foregoing step of determining whether the malicious power consumption application has been ignored by the user is performed. Further, in the above step S106, the determined malicious power consumption applications may be directly cleaned under the following conditions:
- the determined malicious power consumption application was found to be in the blacklist of the saved malicious power consumption application and was previously identified as manually cleaned up.
- the cleanup process includes shutting down malicious power-consuming applications and/or uninstalling malicious power-consuming applications.
- the process of notifying the user to perform the cleaning includes: sorting each determined malicious power consumption application according to the size of the power consumption or the length of the wakelock to generate a malicious power consumption application list, and sending the malicious consumption to the user Notification message of the electric application list;
- the user selected to ignore the malicious power consumption application updates the locally saved user selection to ignore the processed application list
- the malicious power application selected by the user is stopped or uninstalled, and the malicious power consumption application is identified as being manually cleaned up.
- the sending frequency of the notification may be reasonably reduced by the following conditions:
- Each list of malicious power consumption applications generated according to the first cycle detection saves the set time, and is deleted after the timeout;
- the notification message is suspended; if the time of transmitting the notification message carrying the malicious power consumption application list is the same as the time when the notification message carrying the malicious power consumption application list is sent last time, the time is lower than a certain time.
- the time interval (for example, 4 hours), the notification message is suspended.
- the frequency of sending the notification message of the malicious power consumption application can be appropriately reduced, thereby avoiding interference to the normal use of the user terminal by the user.
- detecting and discovering the malicious power consumption application of the user terminal in time is necessary to extend the normal usage time of the user terminal, for example, the power of the user terminal is lower than a certain low power threshold (for example, 20%).
- a certain low power threshold for example, 20%.
- a background application that consumes not less than the first power consumption threshold and/or the user terminal occupying wake 10 ck for a time not less than the time threshold when the screen is off is determined to be a malicious power consumption application;
- Each malicious power consumption application sorts the power consumption application list according to the power consumption amount or the length of the wakelock, and sends a notification message carrying the malicious power consumption application list to the user.
- the background power consumption detection engine that performs the malicious power consumption application detection in the user terminal starts from the last time the user terminal is charged (for example, the user terminal is unplugged from the charging power source), and counts the statistics of the background work of each application in the user terminal every hour. Power consumption; and when the user terminal power is less than 20%, the background work power consumption of each application running in the user terminal is counted; the malicious power consumption application is determined (if a particularly malicious power consumption application is found, the user is immediately notified to the user) Issue a notification message).
- the notification bar message notifies the detection of a number of malicious power consumption applications and lists abbreviated information such as the icon of each malicious power consumption application. If the user clicks on the message, the user interface (Userlnterface, UI) of the high power consumption application is jumped.
- the user interface Userlnterface, UI
- the interface After entering the UI interface of the high-power consumption application, as shown in FIG. 3, the interface presents a list of malicious power consumption applications sorted by the power consumption level (the default in the list is that the background power consumption is not less than the setting).
- the application of the power consumption value provides power consumption information related to each malicious power consumption application, and selects several applications whose power consumption is high by default.
- the user can tick the list according to his own needs and select "one-click end" to clean the power consumption application.
- the embodiment of the present invention further provides a cleaning device and a user terminal for a malicious power consumption application, and the principle of solving the problem between the device and the user terminal is similar to the cleaning method of the foregoing malicious power consumption application, and thus
- the implementation of the device and the user terminal reference may be made to the implementation of the foregoing cleaning method for the malicious power consumption application, and the repeated description is not repeated.
- a first possible implementation manner of the cleaning device for the malicious power consumption application provided by the embodiment of the present invention, as shown in FIG. 4, includes:
- the statistics module 401 is configured to calculate, according to the first period, the background work power consumption of each application running in the user terminal; and according to the second period, the statistics application terminal uses the wakelock for each application that is running when the screen is closed. Time
- the determining module 402 is configured to determine whether the background work power consumption of each application counted by the statistics module 401 is not less than a power consumption threshold (hereinafter referred to as a first power consumption threshold value for convenience of explanation), and if yes, determining that the application is The malicious power consumption application; and the judging statistics module 401, whether the time for each application to occupy the wakelock is not less than the time threshold, and if the application is a background work application, determining that the application is a malicious power consumption application;
- a power consumption threshold hereinafter referred to as a first power consumption threshold value for convenience of explanation
- the cleaning module 403 is configured to clean up the determined malicious power consumption applications or notify the user to clean up.
- the foregoing statistic module 401 is specifically configured to periodically calculate, according to the first cycle, periodically occupying, when the user terminal is the last charging end, occupying the user terminal when each running application works in the background.
- the power consumption of the CPU, the power consumption of the wakelock, and the power consumption of the data traffic Calculate the sum of the power consumption of the CPU of the user terminal, the power consumption of the wakelock, and the power consumption of the data traffic.
- the statistics module 401 is specifically configured to calculate, for each application, a product of the accumulated working time of the CPU occupied by the background work of the application and the power consumption of the corresponding frequency point unit time. Obtaining the power consumption of the user terminal CPU when the application works in the background; calculating, for each application, a product of the accumulated length of the IDLE generated by the user terminal CPU in the background work of the application and the power consumption per unit time when the IDLE occurs, The application holds the power consumption of the wakelock when working in the background; and for each application, calculates the product of the number of bytes of data traffic accumulated in the background work of the application and the power consumption of a single byte, The amount of power consumed by data traffic when the app is working in the background.
- the foregoing statistic module 401 is specifically configured to detect, by using the system framework Framework layer, a time when the user terminal occupies a wakelock in a case where the screen is closed.
- the foregoing statistics module 401 is specifically configured to time the first period and the second period according to a working period other than the sleep period of the CPU.
- the foregoing cleaning module 403 is further configured to: before the determined malicious power consumption application is cleaned or notify the user to clean up, according to the locally saved user, the user list is ignored, and whether the malicious power consumption application has been used by the user before is determined. Select ignore processing; if not, determine the steps to perform subsequent cleanup of the identified malicious power-consuming applications or notify the user to clean.
- the cleaning module 403 is further configured to: after determining whether the background working power consumption of the application is greater than the first power consumption threshold, determining whether the malicious power consumption application is ignored by the user, and determining whether it is not less than the setting
- the power consumption value in order to distinguish the difference, hereinafter referred to as the second power consumption threshold
- the second power consumption value is greater than the first power consumption threshold; if yes, notify the user to clean up the application; No, a step of determining whether the malicious power consumption application has been ignored by the user before is performed.
- the device for cleaning a malicious power consumption application provided by the embodiment of the present invention further includes: a storage module 404, configured to store a list of malicious power consumption applications selected by the user for ignoring processing;
- the cleaning module 403 is specifically configured to sort the determined malicious power consumption applications according to the size of the power consumption or the length of the wakelock to generate a malicious power consumption application list, and send a notification to the user that the malicious power consumption application list is carried.
- the cleaning module 403 when receiving an instruction returned by the user to ignore the malicious power consumption application, the malicious power consumption application updated by the user to ignore the update storage module 404 The stored user chooses to ignore the processed application list; when receiving the instruction returned by the user to clean up the malicious power consumption application, the malicious power consumption application selected by the user is stopped or uninstalled, and the malicious power consumption application is identified as being manually Clean up.
- the storage module 404 is further configured to save each of the malicious power consumption application lists generated according to the first period for a set time;
- the cleaning module 403 is further configured to: before the step of sending a notification message carrying the malicious power consumption application list to the user, the list of the malicious power consumption application generated by the storage module 404 and the saved last cycle.
- the malicious power consumption list is compared. If the malicious power consumption applications included in the two are the same, the notification message is suspended; if the malicious power consumption applications included in the two are different, the user is sent to the user to carry the malicious power generated by the current cycle.
- the steps to apply a list of notification messages are performed before the step of sending a notification message carrying the malicious power consumption application list to the user, the list of the malicious power consumption application generated by the storage module 404 and the saved last cycle. The malicious power consumption list is compared. If the malicious power consumption applications included in the two are the same, the notification message is suspended; if the malicious power consumption applications included in the two are different, the user is sent to the user to carry the malicious power generated by the current cycle. The steps to apply a list of notification messages.
- the foregoing statistics module 401 is further configured to: when the user terminal is lower than the power consumption threshold, or when the user issues an instruction to view the background power consumption application list, trigger statistics on the background work of each application running in the current user terminal. The operation of the power consumption and/or the time when the current user terminal takes up the wakelock in the case where the screen is closed;
- the determining module 402 is further configured to: when the user terminal is lower than the power consumption threshold, or when the user issues an instruction to view the background power consumption application list, the current background working power consumption is not less than the first power consumption.
- the application of the threshold value and/or the background application in which the user terminal takes up the wakelock time when the screen is closed is not less than the time threshold is determined to be a malicious power consumption application;
- the cleaning module 403 is further configured to: when the user terminal is lower than the power consumption threshold, or when the user issues an instruction to view the background power consumption application list, the determined malicious power consumption application is determined according to the power consumption amount. Or sorting the length of the wakelock to generate a list of malicious power-consuming applications, and sending a notification message to the user carrying a list of malicious power-consuming applications.
- a second possible implementation manner of the cleaning device for the malicious power consumption application provided by the embodiment of the present invention, as shown in FIG. 5, includes:
- the processor 501 is configured to calculate, according to the first cycle, a background work power consumption of each application running in the user terminal; and, according to the second cycle, the statistical user terminal is in a case where the screen is closed.
- Each of the running applications occupies the wake lock wakelock time; and when the comparator 502 determines that the background work power consumption of the application is not less than the first power consumption threshold, determining that the application is a malicious power consumption application, the comparator 502 determines When the application takes up the wakelock time is not less than the time threshold, it is determined that the application is a malicious power consumption application; and the determined power consumption application is cleaned; or the user is notified by the transceiver to clean up;
- the comparator 502 is configured to determine, by the processor 501, whether the background work power consumption of each application is not less than the first power consumption threshold, and whether the processor 501 counts whether the time occupied by each application by the wakelock is not less than a time threshold.
- the transceiver 503 is configured to send a notification to the user to clear the determined malicious power consumption application.
- the embodiment of the invention further provides a user terminal, which comprises the foregoing cleaning device for malicious power consumption application.
- the method, the device and the user terminal for cleaning the malicious power consumption application provided by the embodiment of the present invention periodically count the power consumption of the background work of each application in the user terminal, and the power consumption of the background work is not less than the power consumption value.
- the application is determined to be a malicious power consumption application, and periodically counts the time that the application terminal takes up the wakelock when the screen is closed. If an application occupies the wakelock time is not less than the time threshold and is used for the background work, then the determination is made.
- these applications are applications that use resources in an unreasonable manner in the background, and are not applications that consume high power but are normally used by users, and achieve accurate positioning and detection of malicious power-consuming applications.
- unnecessary power consumption of the user terminal is avoided, power is saved, and the battery life of the user terminal is improved to some extent.
- the embodiments of the present invention can be implemented by hardware, or can be implemented by means of software plus necessary general hardware platform.
- the technical solution of the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
- a computer device which may be a personal computer, server, or network device, etc.
- the drawings are only a schematic diagram of a preferred embodiment, and the modules or processes in the drawings are not necessarily required to implement the invention.
- modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or the corresponding changes may be located in one or more apparatuses different from the embodiment.
- the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Virology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Power Sources (AREA)
Abstract
一种恶意耗电应用的清理方法、装置及用户终端,周期性地统计用户终端中正在运行的各应用的后台工作耗电量,将后台工作耗电量不小于耗电量阈值的应用确定为恶意耗电应用,并且周期性地统计用户终端在屏幕关闭的情况下正在运行的各个应用占用wakelock的时间,若某个应用占用不小于设定的时间阈值且为后台工作应用,则确定为恶意耗电应用,这些应用正是在后台不合理占用资源的应用,而并非是耗电量较高但是用户正常使用的应用,实现了对恶意耗电应用的准确定位和检测,在保证用户使用体验的同时,避免了用户终端的不必要的功耗,节省了电能,从一定程度上提升了用户终端电池续航能力。
Description
一种恶意耗电应用的清理方法、 装置及用户终端 本申请要求于 2013 年 06 月 17 日提交中国专利局、 申请号为 201310239851.7、发明名称为"一种恶意耗电应用的清理方法、装置及用户终 端"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及用户终端设备领域, 尤其涉及一种恶意耗电应用的清理方 法、 装置及用户终端。
背景技术
目前许多用户终端特别是智能终端, 由于处理能力的提高、 屏幕越来越 大、分辨率越来越高,加上网络同时支持 WIFI、 3G和 LTE等高速无线网络, 而普遍存在耗电厉害的情况, 比如许多智能手机或者平板电脑的最长待机时 间通常不到一天, 对用户来说, 需要频繁充电才能保证正常使用, 非常不方 便。
并且, 目前智能终端由于能够支持多种应用, 有些开放式的应用市场上 充斥着一些不良应用, 用户下载安装后, 这些应用会不合理地占用智能终端 的系统资源, 包括长期占用 CPU、 长期让系统处于活动状态、后台偷偷跑流 量、偷偷使用各种传感器(SENSOR )等等, 使得用户在安装了这些应用后, 由于这些应用的恶意耗电, 会带来耗电量的上升, 进一步地削减电池的续航 能力, 降低用户的使用体验。
现有智能终端上, 往往通过对该智能终端所有应用的耗电情况进行统 计, 对耗电量大的应用进行排名的方式, 引导用户停止或者卸载比较耗电的 应用。
这种方式, 其排名中涵盖的应用, 也许是用户真正想使用的、 经常使用 的应用, 例如用户常使用的一个在线看视频的应用, 该应用因为视频解码本 身高度使用 CPU, 并且在线看视频需要联网并消耗大量的网络资源, 用户看 视频时往往屏幕亮度比较高, 对于这种应用, 耗电高是很自然的情况, 而这
种应用, 按照现有技术的做法, 常常在耗电应用中排名靠前, 从另一个角度 来说, 现有技术中这种排名的方式, 并不能准确地定位那些恶意耗电的不良 应用, 也就无法很好地避免这些不良应用对于智能终端电池续航能力的损 害。
发明内容
本发明实施例提供了一种恶意耗电应用的清理方法、 装置及用户终端, 用以对恶意耗电应用进行准确定位和清理, 提升智能终端的电池续航能力。
第一方面, 本发明实施例提供的一种恶意耗电应用的清理方法, 包括: 按照第一周期, 统计用户终端中正在运行的各个应用的后台工作耗电 量, 当所述后台耗电量不小于耗电量阔值时, 确定该应用为恶意耗电应用; 和 /或
按照第二周期, 统计用户终端在屏幕关闭的情况下正在运行的各个应用 占用唤醒锁的时间, 当所述占用唤醒锁的时间不小于时间阔值, 且该应用为 后台工作应用时, 确定该应用为恶意耗电应用;
对所述确定的恶意耗电应用进行清理或通知用户进行清理。
结合第一方面, 在第一种可能的实现方式中, 所述统计用户终端中正在 运行的各个应用的后台工作耗电量, 具体包括:
从所述用户终端最近一次充电结束开始, 针对每个正在运行的应用, 按 照第一周期, 周期性地分别计算所述正在运行的各个应用在后台工作时占用 用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的耗电量; 计算所述占用用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数 据流量的耗电量之和, 作为所述每个正在运行的应用的后台工作耗电量。
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 计算所述正在运行的各个应用在后台工作时占用用户终端 CPU的耗电量, 具体包括:
针对每个应用, 计算所述应用后台工作时占用 CPU的累计工作时长与
对应频点单位时间耗电量的乘积,得到所述应用在后台工作时占用用户终端
CPU的耗电量;
计算所述各个应用在后台工作时持有唤醒锁的耗电量, 具体包括: 针对每个应用 ,计算所述应用后台工作时用户终端 CPU发生 IDLE的累 计时长与发生 IDLE时单位时间耗电量的乘积, 得到所述应用在后台工作时 持有唤醒锁的耗电量;
计算所述各个应用在后台工作时发生数据流量的耗电量, 具体包括: 针对每个应用,计算所述应用后台工作时累计产生的数据流量的字节数 与单个字节的耗电量的乘积,得到所述应用在后台工作时发生数据流量的耗 电量。
结合第一方面, 在第三种可能的实现方式中, 通过系统框架 Framework 层检测用户终端在屏幕关闭的情况下中各个应用占用唤醒锁的时间。
结合第一方面的第一〜三种可能的实现方式, 在第四种可能的实现方式 中, 所述第一周期和第二周期按照排除所述 CPU的休眠期之外的工作时段 进行计时。
结合第一方面的第一〜三种可能的实现方式, 在第五种可能的实现方式 中, 还包括:
在所述用户终端电量低于设定的电量阔值时, 或者在用户发出查看后台 耗电应用列表的指令时,触发统计当前用户终端中正在运行的各个应用的后 台工作耗电量和 /或当前用户终端在屏幕关闭的情况下正在运行的各个应用 占用唤醒锁的时间的操作;
将所述后台工作耗电量不小于耗电量阔值的应用和 /或用户终端在屏幕 关闭的情况下占用唤醒锁的时间不小于时间阔值的后台应用确定为恶意耗 电应用;
将确定出的各恶意耗电应用按照耗电量的大小或者占用唤醒锁的时间 长短进行排序生成包含恶意耗电应用列表, 向用户发出携带所述恶意耗电应
用列表的通知消息。
第二方面, 本发明实施例提供了一种恶意耗电应用的清理装置, 包括: 统计模块, 用于按照第一周期, 统计用户终端中正在运行的各个应用的 后台工作耗电量; 以及按照第二周期, 统计用户终端在屏幕关闭的情况下正 在运行的各个应用占用唤醒锁的时间;
判定模块, 用于判断所述统计模块统计各个应用的后台工作耗电量是否 不小于耗电量阔值, 若是, 则确定该应用为恶意耗电应用; 以及判断所述统 计模块统计各个应用占用唤醒锁的时间是否不小于时间阔值, 若是, 且该应 用为后台工作应用, 则确定该应用为恶意耗电应用;
清理模块, 用于对确定的各恶意耗电应用进行清理或通知用户进行清 理。
结合第二方面, 在第一种可能的实现方式中, 所述统计模块, 具体用于 从所述用户终端最近一次充电结束开始, 针对每个正在运行的应用, 按照第 一周期, 周期性地分别计算所述正在运行的各个应用在后台工作时占用用户 终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的耗电量; 计算 所述占用用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的 耗电量之和, 作为所述每个正在运行的应用的后台工作耗电量。
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述统计模块, 具体用于针对每个应用,计算所述应用后台工作时占用 CPU 的累计工作时长与对应频点单位时间耗电量的乘积,得到所述应用在后台工 作时占用用户终端 CPU的耗电量; 针对每个应用, 计算所述应用后台工作 时用户终端 CPU发生 IDLE的累计时长与发生 IDLE时单位时间耗电量的乘 积, 得到所述应用在后台工作时持有唤醒锁的耗电量; 以及针对每个应用, 计算所述应用后台工作时累计产生的数据流量的字节数与单个字节的耗电 量的乘积, 得到所述应用在后台工作时发生数据流量的耗电量。
结合第二方面, 在第三种可能的实现方式中, 所述统计模块, 具体用于
通过系统框架 Framework层检测用户终端在屏幕关闭的情况下中各个应用 占用唤醒锁的时间。
结合第二方面的第一〜三种可能的实现方式, 在第五种可能的实现方式 中, 所述统计模块, 具体用于将所述第一周期和第二周期按照排除所述 CPU 的休眠期之外的工作时段计时。
结合第二方面的第一〜三种可能的实现方式, 在第六种可能的实现方式 中, 所述统计模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用 户发出查看后台耗电应用列表的指令时,触发统计当前用户终端中正在运行 的各个应用的后台工作耗电量和 /或当前用户终端在屏幕关闭的情况下正在 运行的各个应用占用唤醒锁的时间的操作;
所述判定模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用 户发出查看后台耗电应用列表的指令时,将所述当前耗电量不小于耗电量阔 值的应用和 /或用户终端在屏幕关闭的情况下占用唤醒锁的时间不小于时间 阔值的后台应用确定为恶意耗电应用;
所述清理模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用 户发出查看后台耗电应用列表的指令时,将确定出的各恶意耗电应用按照耗 电量的大小或者占用唤醒锁的时间长短进行排序生成包含恶意耗电应用列 表, 向用户发出携带所述恶意耗电应用列表的通知消息。
第三方面, 本发明实施例提供了一种恶意耗电应用的清理装置, 包括: 处理器, 用于按照第一周期, 统计用户终端中正在运行的各个应用的后 台工作耗电量; 以及按照第二周期, 统计用户终端在屏幕关闭的情况下正在 运行的各个应用占用唤醒锁 wakelock 的时间; 以及在比较器确定应用的后 台工作耗电量不小于第一耗电量阔值时, 确定该应用为恶意耗电应用, 在比 较器确定应用占用 wakelock 的时间不小于时间阔值时, 确定该应用为恶意 耗电应用; 以及对确定的各耗电应用进行清理; 或通过收发器向用户发出通 知进行清理;
比较器, 用于判断处理器统计各个应用的后台工作耗电量是否不小于第 一耗电量阔值, 以及判断处理器统计各个应用占用 wakelock 的时间是否不 小于时间阔值,
收发器, 用于向用户发送通知清理确定出的恶意耗电应用。
第四方面, 本发明实施例提供了一种用户终端, 该用户终端包括本发明 实施例提供的前述恶意耗电应用的清理装置。
本发明实施例的有益效果包括:
本发明实施例提供的一种恶意耗电应用的清理方法、 装置及用户终端, 周期性地统计用户终端中正在运行的各应用的后台工作耗电量,将后台工作 耗电量不小于耗电量阔值的应用确定为恶意耗电应用, 并且周期性地统计用 户终端在屏幕关闭的情况下各个应用占用唤醒锁 (wakelock ) 的时间, 若某 个应用占用 wakelock 的时间不小于时间阔值且为后台工作应用, 则确定为 恶意耗电应用, 这些应用正是在后台不合理占用资源的应用, 而并非是耗电 量较高但是是用户正常需要使用的应用, 实现了对恶意耗电应用的准确定位 和检测, 在保证用户使用体验的同时, 避免了用户终端的不必要的功耗, 节 省了电能, 从一定程度上提升了用户终端电池续航能力。
附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种恶意耗电应用的清理方法的流程图; 图 2为本发明实施例提供的实例的流程框图;
图 3为本发明实施例提供的高耗电应用 UI界面的示意图;
图 4为本发明实施例提供的恶意耗电应用的清理装置的第一种结构示意 图;
图 5为本发明实施例提供的恶意耗电应用的清理装置的第二种结构示意 图。
具体实施方式
下面结合说明书附图,对本发明实施例提供的一种恶意耗电应用的清理 方法、 装置及用户终端的具体实施方式进行说明。
首先对本发明实施例提供的恶意耗电应用的清理方法进行详细说明。 从现有用户终端中应用恶意耗电的方式出发, 发明人发现, 恶意耗电应 用通常可通过下述两种方式消耗用户终端的电量:
导致耗电量大;
另一种方式是, 在屏幕关闭的情形下(也就是用户不需要使用手机的情 形, 也称黑屏的情形), 某个后台的应用通过持续地持有唤醒锁 (wakelock, Wakelock是一种锁的机制, 只要应用程序持有 Wakelock, 则系统无法进入 休眠)使得系统无法休眠, 造成恶意耗电。
因此, 针对上述两种方式, 为了准确地检测出恶意耗电应用 (非用户需 求的正常应用), 本发明实施例提供的恶意耗电应用的清理方法, 如图 1 所 示, 具体包括以下步骤:
5101、 按照第一周期, 统计用户终端中正在运行的各个应用的后台工作 耗电量;
5102、判断用户终端中正在运行的各个应用的后台工作耗电量是否不小 于耗电量阔值(为了方便说明, 以下简称为第一耗电量阔值), 若是, 执行 下述步骤 S105 , 若否, 转向下述步骤 S107;
5103、 按照第二周期, 统计正在运行的各个应用占用 wakelock的时间; S104、 判断统计的各个应用占用 wakelock的时间是否不小于时间阔值, 且该应用为后台工作应用; 若是, 则转向步骤 S105; 若否, 则转向执行下 述步骤 S107;
5105、 确定该应用为恶意耗电应用, 然后执行下述步骤 S106;
5106、 对确定的各恶意耗电应用进行清理或通知用户进行清理;
5107、 结束流程。
上述流程中, S101 S102, 以及 S103 S104是两个相互独立的检测恶意 耗电应用的方式, 这两个方式可以择一实施, 也可以两者都实施, 在具体实 施时, 如果两者都实施, 可以同时进行, 也可以先后进行。
上述流程中,第一周期和第二周期,并非按照物理时间来计时,较佳地, 按照排除用户终端 CPU的休眠期之外的工作时段进行计时。
由于用户终端中的应用恶意耗电区别于用户正常使用耗电, 恶意耗电的 方式包括但不限于: 应用频繁申请 RTC唤醒 CPU, 唤醒 CPU后发生数据流 量, 应用在屏幕关闭的情况下长期持有 wakelock等等。 因此, 在本发明实 施例中, 可以从这几种应用后台恶意耗电的方式出发, 统计应用在后台工作 时累计占用用户终端 CPU的耗电量。
进一步地, 上述步骤 S101 中, 统计用户终端中正在运行的各个应用的 后台工作耗电量, 具体可以通过下述方式实现:
从用户终端最近一次充电结束开始, 针对每个正在运行的应用, 按照第 一周期, 周期性地分别计算正在运行的各个应用在后台工作时占用用户终端 CPU的耗电量、 持有 wakelock的耗电量和发生数据流量的耗电量;
计算占用用户终端 CPU的耗电量、 持有 wakelock的耗电量和发生数据 流量的耗电量之和, 作为用户终端中每个正在运行的应用的后台工作耗电 量。
对于一种特殊的情况, 由于现有许多用户终端具备与 PC机连接时通过 USB接口对用户终端进行充电的功能, 用户在将用户终端连接 PC机对用户 终端进行短时间操作(例如下载和 /或上传多媒体文件,更新应用程序等)时, PC机可通过例如 USB接口对用户终端进行充电, 但此时可能用户并不需要 对用户终端进行充电, 充电的电量也较少, 为了避免频繁统计各个应用在后
台工作时累计耗电量对用户终端性能带来影响, 在这种情况下, 即使用户结 束用户终端操作, USB充电随之结束, 如果此次 USB充电量小于某个设定 阔值, 或者充电时间小于某个设定的时长, 不判定为一次真正意义上的 "充 电结束", 不触发按照第一周期, 周期性地分别计算用户终端中正在运行的 各个应用在后台工作时占用用户终端 CPU的耗电量、 持有 wakelock的耗电 量和发生数据流量的耗电量的操作。
进一步地, 前述计算各个应用在后台工作时占用用户终端 CPU的耗电 量的步骤, 具体通过下述步骤实现:
针对每个应用, 计算该应用后台工作时占用 CPU的累计工作时长与对 应频点单位时间耗电量的乘积 (即: CPU耗电量=〇?11后台工作时间 *对应 频点单位时间耗电量 ), 得到该应用在后台工作时占用用户终端 CPU的耗电 量;
进一步地, 前述计算各个应用在后台工作时持有 wakelock 的耗电量, 具体通过下述步骤实现:
针对每个应用 ,计算该应用后台工作时用户终端 CPU发生 IDLE的时长 与发生 IDLE时单位时间耗电量的乘积(持有 wakelock的耗电量 CPU IDLE 的累计时长 *发生 IDLE时单位时间耗电量), 得到该应用在后台工作时持有 wakelock的耗电量;
进一步地, 计算各个应用在后台工作时发生数据流量的耗电量, 具体通 过下述步骤实现:
针对每个应用,计算该应用后台工作时累计产生的数据流量的字节数与 单个字节的耗电量的乘积, 得到该应用在后台工作时发生数据流量的耗电 量。
其中, 对于常见的用户终端例如手机、 具备连接无线网络的平板电脑来 说,应用在后台工作时累计产生的数据流量的来源主要是用户终端通过无线 保真(Wireless Fidelity, WIFI )等无线局域网产生的流量以及用户终端通过
2G、 3G等运营商网络产生的数据流量之和。
进一步地, 上述步骤 S103中, 可以通过系统的框架(Framwork )层对 各个应用占用 wakelock的时间进行检测, 一旦发现占用 wakelock的时间不 小于时间阔值(例如 15分钟), 则确定该应用为恶意耗电应用。 具体的检测 方式属于现有技术, 在此不再赘述。
进一步地, 在本发明实施例的一种可能的实施方式中, 在执行前述步骤 S 106之前, 还可以执行下述步骤:
根据本地保存的用户选择忽略处理的应用名单, 判断步骤 S101 S102, 以及 S103 S104确定出的恶意耗电应用是否之前曾被用户选择忽略处理; 如果是, 则不进行清理也不发出恶意耗电应用的通知, 如果否, 才执行 后续对确定的各恶意耗电应用进行清理或通知用户进行清理的步骤。
还有一种情况, 如果统计出的应用的后台工作耗电量特别大, 也就是特 别恶意的耗电应用, 则不需要判断其是否被忽略等条件, 直接向用户发出恶 意耗电应用的通知。 具体来说, 在统计出应用的后台工作耗电量大于第一耗 电量阔值后, 判断所述恶意耗电应用是否被用户选择忽略处理之前, 还可以 执行下述步骤:
判断是否不小于更高的耗电量阔值(为了以示区别, 以下简称第二耗电 量阔值), 第二耗电量阔值的数值高于第一耗电量阔值的数值, 例如第一耗 电量阔值为 lOmaH, 第二耗电量阔值为 50maH;
若是, 则立即通知用户对该应用进行清理;
若否, 则执行前述判断该恶意耗电应用是否曾被用户忽略处理的步骤。 进一步地, 上述步骤 S106 中, 可以在下述情况下, 对确定的各恶意耗 电应用直接进行清理:
发现确定出的恶意耗电应用在保存的恶意耗电应用的黑名单之中, 并且 之前曾被标识为手动清理过。
清理的过程包括关闭恶意耗电应用和 /或卸载恶意耗电应用的操作。
在上述步骤 S106中, 通知用户进行清理的过程, 包括: 将确定的各恶意耗电应用按照耗电量的大小或者占用 wakelock 的时间 长短进行排序生成恶意耗电应用列表, 向用户发出携带恶意耗电应用列表的 通知消息;
当接收到用户返回的忽略恶意耗电应用的指令时,使用用户选择忽略的 恶意耗电应用更新本地保存的用户选择忽略处理的应用名单;
当接收到用户返回的清理恶意耗电应用的指令时,对用户选择的恶意耗 电应用停止运行或卸载, 并将该恶意耗电应用标识为已被手动清理。
较佳地, 为了避免短时间内多次频繁通告用户恶意耗电应用列表, 影响 用户对用户终端正常应用的使用体验, 本发明实施例中, 可通过下述条件, 合理降低通知的发送频率:
每个按照第一周期检测生成的恶意耗电应用列表都保存设定的时间,超 时之后删掉;
并且, 在发送携带恶意耗电应用列表的通知消息之前, 将所保存的本周 期生成的恶意耗电应用列表与所保存的上个周期的恶意耗电列表进行比较, 若两者包含的恶意耗电应用相同 (排序可以不同), 则暂停发出通知消息; 若本次发送携带恶意耗电应用列表的通知消息的时间, 与最近一次发出 携带恶意耗电应用列表的通知消息的时间, 低于一定的时间间隔(例如 4个 小时), 则暂停发出通知消息。
这样, 可以在保证恶意耗电应用被有效检测出的前提下, 可适当降低发 送恶意耗电应用的通知消息的频率,避免对用户正常使用用户终端的过程带 来干扰。
较佳地, 在某些情形下, 及时检测并发现用户终端恶意耗电应用对延长 用户终端的正常使用时间十分必要, 例如用户终端的电量低于某个较低的电 量阔值(例如 20% ) 时, 或者在用户主动发出查看后台应用列表的指令时, 触发统计当前用户终端中正在运行的各个应用的后台工作耗电量和 /或当前
用户终端在屏幕关闭的情况下正在运行的各个应用占用 wakelock 的时间的 操作;
将耗电量不小于第一耗电量阔值的应用和 /或用户终端在屏幕关闭的情 况下占用 wake 10 ck的时间不小于时间阔值的后台应用确定为恶意耗电应用; 将确定出的各恶意耗电应用按照耗电量的大小或者占用 wakelock 的时 间长短进行排序生成包含恶意耗电应用列表, 向用户发出携带有该恶意耗电 应用列表的通知消息。
为了更好地说明本发明实施例提供的上述恶意耗电应用的清理方法, 下 面以图 2所示的一个实例的流程框图进行说明。
用户终端中执行恶意耗电应用检测的后台耗电检测引擎, 从最近一次用 户终端充电结束(例如用户终端被拔掉充电电源)开始, 每个小时统计一次 统计用户终端中各个应用的后台工作累计耗电量; 以及在用户终端电量低于 20%时, 统计用户终端中正在运行的各个应用的后台工作耗电量; 确定出恶 意耗电应用 (如果发现特别恶意耗电应用, 则立即向用户发出通知消息)。
在满足发出通知消息的条件时(例如与上次比较恶意耗电应用列表中的 恶意耗电应用发生了变化,且距离上次发送通知消息已经超过了 4个小时), 向用户发出相应的通知栏消息,通知栏消息中通知检测出若干恶意耗电应用 并列举出各恶意耗电应用的图标等简略信息, 如果用户点击该消息, 则跳转 至高耗电应用的用户界面 (Userlnterface, UI )上去, 用户如果在通知栏消 息中直接点击 "忽略此消息", 则进一步降低此后发送通知栏消息的频率, 避免频繁提示, 用户如果点击 "清理", 则直接结束确定出的恶意耗电应用 的运行。
进入高耗电应用的 UI界面后, 如图 3所示, 该界面中呈现了以耗电量 高低来排序的恶意耗电应用列表(该列表中默认都是后台工作耗电量不小于 设定的耗电量阔值的应用), 提供了每个恶意耗电应用相关的耗电量信息, 并且默认选中其中耗电量较高的若干个应用, 当然, 对列表中每个应用也提
供了对应勾选项, 用户可以根据自己的需求, 在列表中去勾选, 选择 "一键 结束" 来清理耗电应用。
基于同一发明构思, 本发明实施例还提供了一种恶意耗电应用的清理装 置和用户终端, 由于该装置和用户终端解决问题的原理与前述一种恶意耗电 应用的清理方法相似, 因此这些装置和用户终端的实施可以参见前述恶意耗 电应用的清理方法的实施, 重复之处不再赘述。
本发明实施例提供的恶意耗电应用的清理装置的第一种可能的实施方 式, 如图 4所示, 包括:
统计模块 401 , 用于按照第一周期, 统计用户终端中正在运行的各个应 用的后台工作耗电量; 以及按照第二周期, 统计用户终端在屏幕关闭的情况 下正在运行的各个应用占用 wakelock的时间;
判定模块 402 , 用于判断统计模块 401统计的各个应用的后台工作耗电 量是否不小于电量阔值(为了方便说明, 以下简称为第一耗电量阔值), 若 是, 则确定该应用为恶意耗电应用; 以及判断统计模块 401统计各个应用累 计占用 wakelock 的时间是否不小于时间阔值, 若是, 且该应用为后台工作 应用, 则确定该应用为恶意耗电应用;
清理模块 403 , 用于对确定的各恶意耗电应用进行清理或通知用户进行 清理。
进一步地, 上述统计模块 401 , 具体用于从用户终端最近一次充电结束 开始, 针对每个正在运行的应用, 按照第一周期, 周期性地分别计算正在运 行的各个应用在后台工作时占用用户终端 CPU的耗电量、 持有 wakelock的 耗电量和发生数据流量的耗电量; 计算占用用户终端 CPU的耗电量、 持有 wakelock的耗电量和发生数据流量的耗电量之和,作为用户终端中每个正在 运行的应用的后台工作耗电量。
进一步地, 上述统计模块 401 , 具体用于针对每个应用, 计算所述应用 后台工作时占用 CPU的累计工作时长与对应频点单位时间耗电量的乘积,
得到所述应用在后台工作时占用用户终端 CPU的耗电量; 针对每个应用, 计算所述应用后台工作时用户终端 CPU发生 IDLE的累计时长与发生 IDLE 时单位时间耗电量的乘积, 得到所述应用在后台工作时持有 wakelock 的耗 电量; 以及针对每个应用, 计算所述应用后台工作时累计产生的数据流量的 字节数与单个字节的耗电量的乘积,得到所述应用在后台工作时发生数据流 量的耗电量。
进一步地, 上述统计模块 401 , 具体用于通过系统框架 Framework层检 测用户终端在屏幕关闭的情况下中各个应用占用 wakelock的时间。
进一步地, 上述统计模块 401 , 具体用于将第一周期和第二周期按照排 除 CPU的休眠期之外的工作时段计时。
进一步地, 上述清理模块 403 , 还用于对确定的各恶意耗电应用进行清 理或通知用户进行清理之前, 根据本地保存的用户选择忽略处理的应用名 单, 判断恶意耗电应用之前是否曾被用户选择忽略处理; 若否, 确定执行后 续对确定的各恶意耗电应用进行清理或通知用户进行清理的步骤。
进一步地, 上述清理模块 403 , 还用于当统计出应用的后台工作耗电量 大于第一耗电量阔值后, 判断恶意耗电应用是否被用户选择忽略处理之前, 判断是否不小于设定耗电量阔值(为了以示区别, 以下简称为第二耗电量阔 值), 第二耗电量阔值大于第一耗电量阔值; 若是, 通知用户对该应用进行 清理; 若否, 则执行判断恶意耗电应用之前是否曾被用户忽略处理的步骤。
进一步地,如图 4所示,本发明实施例提供的恶意耗电应用的清理装置, 还包括: 存储模块 404, 用于存储用户选择的忽略处理的恶意耗电应用的名 单;
相应地, 清理模块 403 , 具体用于将确定的各恶意耗电应用按照耗电量 的大小或者占用 wakelock 的时间长短进行排序生成恶意耗电应用列表, 向 用户发出携带恶意耗电应用列表的通知消息; 当接收到用户返回的忽略恶意 耗电应用的指令时,使用用户选择忽略的恶意耗电应用更新存储模块 404保
存的用户选择忽略处理的应用名单; 当接收到用户返回的清理恶意耗电应用 的指令时, 对用户选择的恶意耗电应用停止运行或卸载, 并将该恶意耗电应 用标识为已被手动清理。
进一步地, 存储模块 404, 还用于将每个按照第一周期生成的恶意耗电 应用列表保存设定的时间;
相应地, 上述清理模块 403 , 还用于在向用户发出携带恶意耗电应用列 表的通知消息的步骤之前,将存储模块 404保存的本周期生成的恶意耗电应 用列表与所保存的上个周期的恶意耗电列表进行比较, 若两者包含的恶意耗 电应用相同, 则暂停发出通知消息; 若两者包含的恶意耗电应用不同, 则转 向向用户发出携带有本周期生成的恶意耗电应用列表的通知消息的步骤。
进一步地,上述统计模块 401 ,还用于在用户终端电量低于电量阔值时, 或者在用户发出查看后台耗电应用列表的指令时,触发统计当前用户终端中 正在运行的各个应用的后台工作耗电量和 /或当前用户终端在屏幕关闭的情 况下中各个应用占用 wakelock的时间的操作;
相应地, 判定模块 402, 还用于在所述用户终端电量低于电量阔值时, 或者在用户发出查看后台耗电应用列表的指令时,将当前后台工作耗电量不 小于第一耗电量阔值的应用和 /或用户终端在屏幕关闭的情况下占用 wakelock的时间不小于时间阔值的后台应用确定为恶意耗电应用;
相应地, 清理模块 403 , 还用于在用户终端电量低于电量阔值时, 或者 在用户发出查看后台耗电应用列表的指令时,将确定出的各恶意耗电应用按 照耗电量的大小或者占用 wakelock 的时间长短进行排序生成包含恶意耗电 应用列表, 向用户发出携带恶意耗电应用列表的通知消息。
本发明实施例提供的恶意耗电应用的清理装置的第二种可能的实施方 式, 如图 5所示, 包括:
处理器 501 , 用于按照第一周期, 统计用户终端中正在运行的各个应用 的后台工作耗电量; 以及按照第二周期, 统计用户终端在屏幕关闭的情况下
正在运行的各个应用占用唤醒锁 wakelock的时间; 以及在比较器 502确定 应用的后台工作耗电量不小于第一耗电量阔值时,确定该应用为恶意耗电应 用, 在比较器 502确定应用占用 wakelock的时间不小于时间阔值时, 确定 该应用为恶意耗电应用; 以及对确定的各耗电应用进行清理; 或通过收发器 向用户发出通知进行清理;
比较器 502, 用于判断处理器 501统计各个应用的后台工作耗电量是否 不小于第一耗电量阔值, 以及判断处理器 501 统计各个应用占用 wakelock 的时间是否不小于时间阔值,
收发器 503 , 用于向用户发送通知清理确定出的恶意耗电应用。
本发明实施例还提供了一种用户终端, 该用户终端包括前述恶意耗电应 用的清理装置。
本发明实施例提供的一种恶意耗电应用的清理方法、 装置及用户终端, 周期性地统计用户终端中各应用的后台工作耗电量,将后台工作耗电量不小 于耗电量阔值的应用确定为恶意耗电应用, 并且周期性地统计用户终端在屏 幕关闭的情况下各个应用占用 wakelock的时间, 若某个应用占用 wakelock 的时间不小于时间阔值且为后台工作应用, 则确定为恶意耗电应用, 这些应 用正是在后台不合理占用资源的应用, 而并非是耗电量较高但是用户正常使 用的应用, 实现了对恶意耗电应用的准确定位和检测, 在保证用户使用体验 的同时, 避免了用户终端的不必要的功耗, 节省了电能, 从一定程度上提升 了用户终端电池续航能力。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明实施例可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式 来实现。 基于这样的理解, 本发明实施例的技术方案可以以软件产品的形式 体现出来,该软件产品可以存储在一个非易失性存储介质(可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台计算机设备(可以是个 人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的 模块或流程并不一定是实施本发明所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述 进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一 个或多个装置中。 上述实施例的模块可以合并为一个模块, 也可以进一步拆 分成多个子模块。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。
Claims
1、 一种恶意耗电应用的清理方法, 其特征在于, 包括:
按照第一周期, 统计用户终端中正在运行的各个应用的后台工作耗电 量, 当所述后台耗电量不小于耗电量阔值时, 确定该应用为恶意耗电应用; 和 /或
按照第二周期, 统计用户终端在屏幕关闭的情况下正在运行的各个应用 占用唤醒锁的时间, 当所述占用唤醒锁的时间不小于时间阔值, 且该应用为 后台工作应用时, 确定该应用为恶意耗电应用;
对所述确定的恶意耗电应用进行清理或通知用户进行清理。
2、 如权利要求 1 所述的方法, 其特征在于, 所述统计用户终端中正在 运行的各个应用的后台工作耗电量, 具体包括:
从所述用户终端最近一次充电结束开始, 针对每个正在运行的应用, 按 照第一周期, 周期性地分别计算所述正在运行的各个应用在后台工作时占用 用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的耗电量; 计算所述占用用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数 据流量的耗电量之和, 作为所述每个正在运行的应用的后台工作耗电量。
3、 如权利要求 2所述的方法, 其特征在于, 计算所述正在运行的各个 应用在后台工作时占用用户终端 CPU的耗电量, 具体包括:
针对每个应用, 计算所述应用后台工作时占用 CPU的累计工作时长与 对应频点单位时间耗电量的乘积,得到所述应用在后台工作时占用用户终端 CPU的耗电量;
计算所述各个应用在后台工作时持有唤醒锁的耗电量, 具体包括: 针对每个应用 ,计算所述应用后台工作时用户终端 CPU发生 IDLE的累 计时长与发生 IDLE时单位时间耗电量的乘积, 得到所述应用在后台工作时 持有唤醒锁的耗电量;
计算所述各个应用在后台工作时发生数据流量的耗电量, 具体包括:
针对每个应用,计算所述应用后台工作时累计产生的数据流量的字节数 与单个字节的耗电量的乘积,得到所述应用在后台工作时发生数据流量的耗 电量。
4、 如权利要求 1 所述的方法, 其特征在于, 通过系统框架 Framework 层检测用户终端在屏幕关闭的情况下中各个应用占用唤醒锁的时间。
5、 如权利要求 1-4任一项所述的方法, 其特征在于, 所述第一周期和 第二周期按照排除所述 CPU的休眠期之外的工作时段进行计时。
6、 如权利要求 1-4任一项所述的方法, 其特征在于, 还包括: 在所述用户终端电量低于设定的电量阔值时, 或者在用户发出查看后台 耗电应用列表的指令时,触发统计当前用户终端中正在运行的各个应用的后 台工作耗电量和 /或当前用户终端在屏幕关闭的情况下正在运行的各个应用 占用唤醒锁的时间的操作;
将所述后台工作耗电量不小于耗电量阔值的应用和 /或用户终端在屏幕 关闭的情况下占用唤醒锁的时间不小于时间阔值的后台应用确定为恶意耗 电应用;
将确定出的各恶意耗电应用按照耗电量的大小或者占用唤醒锁的时间 长短进行排序生成包含恶意耗电应用列表, 向用户发出携带所述恶意耗电应 用列表的通知消息。
7、 一种恶意耗电应用的清理装置, 其特征在于, 包括:
统计模块, 用于按照第一周期, 统计用户终端中正在运行的各个应用的 后台工作耗电量; 以及按照第二周期, 统计用户终端在屏幕关闭的情况下正 在运行的各个应用占用唤醒锁的时间;
判定模块, 用于判断所述统计模块统计各个应用的后台工作耗电量是否 不小于耗电量阔值, 若是, 则确定该应用为恶意耗电应用; 以及判断所述统 计模块统计各个应用占用唤醒锁的时间是否不小于时间阔值, 若是, 且该应 用为后台工作应用, 则确定该应用为恶意耗电应用;
清理模块, 用于对确定的各恶意耗电应用进行清理或通知用户进行清 理。
8、 如权利要求 7所述的装置, 其特征在于, 所述统计模块, 具体用于 从所述用户终端最近一次充电结束开始, 针对每个正在运行的应用, 按照第 一周期, 周期性地分别计算所述正在运行的各个应用在后台工作时占用用户 终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的耗电量; 计算 所述占用用户终端 CPU的耗电量、 持有唤醒锁的耗电量和发生数据流量的 耗电量之和, 作为所述每个正在运行的应用的后台工作耗电量。
9、 如权利要求 8所述的装置, 其特征在于, 所述统计模块, 具体用于 针对每个应用, 计算所述应用后台工作时占用 CPU的累计工作时长与对应 频点单位时间耗电量的乘积,得到所述应用在后台工作时占用用户终端 CPU 的耗电量;针对每个应用,计算所述应用后台工作时用户终端 CPU发生 IDLE 的累计时长与发生 IDLE时单位时间耗电量的乘积, 得到所述应用在后台工 作时持有唤醒锁的耗电量; 以及针对每个应用, 计算所述应用后台工作时累 计产生的数据流量的字节数与单个字节的耗电量的乘积,得到所述应用在后 台工作时发生数据流量的耗电量。
10、 如权利要求 7所述的装置, 其特征在于, 所述统计模块, 具体用于 通过系统框架 Framework层检测用户终端在屏幕关闭的情况下中各个应用 占用唤醒锁的时间。
11、 如权利要求 7-10任一项所述的装置, 其特征在于, 所述统计模块, 具体用于将所述第一周期和第二周期按照排除所述 CPU的休眠期之外的工 作时段计时。
12、 如权利要求 7-10任一项所述的装置, 其特征在于, 所述统计模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用户发出查看后台耗电 应用列表的指令时,触发统计当前用户终端中正在运行的各个应用的后台工 作耗电量和 /或当前用户终端在屏幕关闭的情况下正在运行的各个应用占用
唤醒锁的时间的操作;
所述判定模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用 户发出查看后台耗电应用列表的指令时,将所述当前耗电量不小于耗电量阔 值的应用和 /或用户终端在屏幕关闭的情况下占用唤醒锁的时间不小于时间 阔值的后台应用确定为恶意耗电应用;
所述清理模块, 还用于在所述用户终端电量低于电量阔值时, 或者在用 户发出查看后台耗电应用列表的指令时,将确定出的各恶意耗电应用按照耗 电量的大小或者占用唤醒锁的时间长短进行排序生成包含恶意耗电应用列 表, 向用户发出携带所述恶意耗电应用列表的通知消息。
13、 一种用户终端, 其特征在于, 所述用户终端包括如权利要求 11-12 任一项所述的恶意耗电应用的清理装置。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP14814534.5A EP2977854B1 (en) | 2013-06-17 | 2014-05-28 | Method, apparatus, and user terminal for removing malicious power consuming application |
| US14/927,545 US20160048682A1 (en) | 2013-06-17 | 2015-10-30 | Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310239851.7 | 2013-06-17 | ||
| CN2013102398517A CN103324519A (zh) | 2013-06-17 | 2013-06-17 | 一种恶意耗电应用的清理方法、装置及用户终端 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US14/927,545 Continuation US20160048682A1 (en) | 2013-06-17 | 2015-10-30 | Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014201945A1 true WO2014201945A1 (zh) | 2014-12-24 |
Family
ID=49193283
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2014/078623 Ceased WO2014201945A1 (zh) | 2013-06-17 | 2014-05-28 | 一种恶意耗电应用的清理方法、装置及用户终端 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20160048682A1 (zh) |
| EP (1) | EP2977854B1 (zh) |
| CN (1) | CN103324519A (zh) |
| WO (1) | WO2014201945A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20180074762A (ko) * | 2015-10-29 | 2018-07-03 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 단말기 기반 웨이크록(wakelock)의 제어 방법, 장치, 및 단말기 |
Families Citing this family (94)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2495058B (en) * | 2010-07-26 | 2014-03-05 | Seven Networks Inc | Context aware traffic management for resource conservation in a wireless network |
| WO2013090212A1 (en) | 2011-12-14 | 2013-06-20 | Seven Networks, Inc. | Mobile network reporting and usage analytics system and method using aggregation of data in a distributed traffic optimization system |
| CN103324519A (zh) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | 一种恶意耗电应用的清理方法、装置及用户终端 |
| CN104298584A (zh) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | 耗电异常的应用程序获取方法、装置和移动终端 |
| CN103544435A (zh) * | 2013-10-18 | 2014-01-29 | 广东欧珀移动通信有限公司 | 防止偷拍的方法与装置 |
| CN104679637B (zh) * | 2013-12-02 | 2018-05-15 | 北京猎豹移动科技有限公司 | 一种确定移动终端待机状态下应用耗电的方法及系统 |
| CN103729052A (zh) * | 2013-12-31 | 2014-04-16 | 贝壳网际(北京)安全技术有限公司 | 一种应用程序耗电的处理方法、处理系统及移动终端 |
| US9351254B2 (en) | 2014-01-22 | 2016-05-24 | Seven Networks, Llc | Method for power saving in mobile devices by optimizing wakelocks |
| US9841802B2 (en) * | 2014-02-20 | 2017-12-12 | Qualcomm Incorporated | Wake lock management through application monitoring |
| CN103885871A (zh) * | 2014-03-10 | 2014-06-25 | 可牛网络技术(北京)有限公司 | 一种耗电显示方法、装置及移动终端 |
| CN104008036A (zh) * | 2014-03-31 | 2014-08-27 | 可牛网络技术(北京)有限公司 | 一种消息视图的设置方法及装置 |
| CN104023149A (zh) * | 2014-06-19 | 2014-09-03 | 深圳市中兴移动通信有限公司 | 一种移动终端及其共享电源资源状态异常提示方法 |
| CN104020837B (zh) * | 2014-06-19 | 2017-02-01 | 珠海全志科技股份有限公司 | 音频播放电源管理方法及电源管理装置 |
| CN104038635A (zh) * | 2014-06-25 | 2014-09-10 | 深圳市中兴移动通信有限公司 | 一种移动终端及其异常待机的提示方法 |
| CN104023147B (zh) * | 2014-06-27 | 2016-05-11 | 广东欧珀移动通信有限公司 | 一种可使移动终端稳定休眠的方法及系统 |
| CN104156053B (zh) * | 2014-07-29 | 2015-12-30 | 努比亚技术有限公司 | 一种异常耗电的控制方法、装置和移动终端 |
| CN104219746B (zh) * | 2014-09-03 | 2020-06-09 | 南京白下高新技术产业园区投资发展有限责任公司 | 一种自主调整唤醒时间的方法、装置及终端 |
| CN104219747B (zh) * | 2014-09-03 | 2020-05-29 | 湖北职升科技文化有限公司 | 一种根据电量信息调整唤醒时间的方法、装置及终端 |
| CN104239195B (zh) * | 2014-09-17 | 2017-07-28 | 可牛网络技术(北京)有限公司 | 一种处理电子设备耗电的方法及电子设备 |
| JP2017534958A (ja) | 2014-09-18 | 2017-11-24 | ブーズ−アレン アンド ハミルトン | 位置ベースのセキュリティのためのシステム及び方法 |
| KR102294180B1 (ko) * | 2014-10-31 | 2021-08-27 | 삼성전자주식회사 | 전자장치 및 전자장치의 전원제어 방법 |
| CN105676987A (zh) * | 2014-11-19 | 2016-06-15 | 中兴通讯股份有限公司 | 关闭移动终端后台应用的方法、装置及移动终端 |
| JP6487044B2 (ja) | 2014-11-25 | 2019-03-20 | ホアウェイ・テクノロジーズ・カンパニー・リミテッド | ユーザ機器のための電力管理方法および電力管理装置 |
| CN104461734A (zh) * | 2014-11-26 | 2015-03-25 | 北京奇虎科技有限公司 | 针对终端应用的处理方法和系统 |
| CN104468558B (zh) * | 2014-11-28 | 2018-01-09 | 东莞宇龙通信科技有限公司 | 数据安全管理的方法、装置及终端 |
| CN104375624B (zh) * | 2014-12-11 | 2017-04-26 | 深圳市奇虎智能科技有限公司 | 移动终端及其省电建议方法 |
| KR102311817B1 (ko) * | 2015-02-26 | 2021-10-13 | 삼성전자주식회사 | 전자 장치 및 전자 장치의 전원관리 방법 |
| WO2016165078A1 (zh) * | 2015-04-14 | 2016-10-20 | 华为技术有限公司 | 一种控制应用程序的方法及终端 |
| CN104915111B (zh) * | 2015-05-28 | 2018-08-14 | 努比亚技术有限公司 | 终端操作控制方法及装置 |
| CN104899153A (zh) * | 2015-06-04 | 2015-09-09 | 上海卓易科技股份有限公司 | 后台应用清理方法及系统 |
| CN104967741B (zh) * | 2015-06-17 | 2020-12-29 | 努比亚技术有限公司 | 清理终端服务的方法和装置 |
| CN106411828B (zh) * | 2015-08-03 | 2019-06-28 | 阿里巴巴集团控股有限公司 | 量化防御结果的方法、装置及系统 |
| CN105204908B (zh) * | 2015-09-30 | 2019-06-14 | 北京金山安全软件有限公司 | 一种应用程序停包方法、装置及电子设备 |
| CN105607920B (zh) * | 2015-09-30 | 2019-09-17 | 北京金山安全软件有限公司 | 一种应用程序停包方法、装置及电子设备 |
| CN105446776A (zh) * | 2015-11-20 | 2016-03-30 | 北京金山安全软件有限公司 | 一种应用程序关闭方法、装置及电子设备 |
| CN105892613A (zh) * | 2015-12-04 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | 一种清理后台应用程序的方法和装置 |
| CN106855826B (zh) * | 2015-12-08 | 2021-02-23 | 斑马智行网络(香港)有限公司 | 一种后台应用程序的控制方法及装置 |
| CN105373482A (zh) * | 2015-12-23 | 2016-03-02 | 北京金山安全软件有限公司 | 一种检测应用程序耗电异常的方法、装置及电子设备 |
| CN106897051B (zh) * | 2015-12-24 | 2022-01-25 | 北京奇虎科技有限公司 | 一种进程清理的方法及装置 |
| CN105677386A (zh) * | 2015-12-29 | 2016-06-15 | 北京金山安全软件有限公司 | 一种应用程序的管理方法、装置及电子设备 |
| KR102465543B1 (ko) * | 2016-02-19 | 2022-11-10 | 삼성전자 주식회사 | 어플리케이션 및 컴포넌트를 제어하는 방법 및 전자장치 |
| CN105808235A (zh) * | 2016-02-24 | 2016-07-27 | 北京奇虎科技有限公司 | 移动终端通知栏消息的管理方法、装置及移动终端 |
| CN105792335B (zh) * | 2016-02-26 | 2018-12-18 | 深圳天珑无线科技有限公司 | 一种提高续航时间的方法和终端设备 |
| CN107239131B (zh) * | 2016-03-28 | 2020-05-08 | 杭州海康威视数字技术股份有限公司 | 一种功耗调整方法及基于电池续航的视频分析系统 |
| CN105702232B (zh) * | 2016-04-26 | 2018-05-04 | 广东欧珀移动通信有限公司 | 亮度处理方法和系统 |
| CN106055077A (zh) * | 2016-05-31 | 2016-10-26 | 广东欧珀移动通信有限公司 | 一种基于唤醒锁的处理方法及装置 |
| CN106095414A (zh) * | 2016-06-01 | 2016-11-09 | 北京金山安全软件有限公司 | 一种管理应用程序的方法、装置及电子设备 |
| CN106095645A (zh) * | 2016-06-21 | 2016-11-09 | 广东欧珀移动通信有限公司 | 一种应用程序查找方法和装置 |
| CN106200880A (zh) * | 2016-07-27 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | 终端控制方法、终端控制装置和终端 |
| CN106292997A (zh) * | 2016-07-28 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | 一种应用程序冻结方法及装置 |
| KR102691293B1 (ko) | 2016-07-29 | 2024-08-05 | 삼성전자 주식회사 | 전자 장치의 전력 소모 감소를 위한 방법 및 장치 |
| CN106445582A (zh) * | 2016-08-30 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | 一种删除应用程序分身的方法及终端 |
| CN106484071A (zh) * | 2016-09-12 | 2017-03-08 | 惠州Tcl移动通信有限公司 | 一种智能终端的省电方法及系统 |
| CN107894902B (zh) * | 2016-09-30 | 2021-01-01 | 北京小米移动软件有限公司 | 设备控制方法及装置 |
| CN106569579A (zh) * | 2016-10-21 | 2017-04-19 | 宇龙计算机通信科技(深圳)有限公司 | 一种终端省电控制方法及装置 |
| US10169576B2 (en) * | 2016-11-15 | 2019-01-01 | International Business Machines Corporation | Malware collusion detection |
| US10298605B2 (en) * | 2016-11-16 | 2019-05-21 | Red Hat, Inc. | Multi-tenant cloud security threat detection |
| CN106792161B (zh) * | 2016-12-30 | 2020-02-11 | 上海敬邦机电设备有限公司 | 移动终端和数据传输方法 |
| CN108271237A (zh) * | 2017-01-03 | 2018-07-10 | 中兴通讯股份有限公司 | 用于控制终端执行业务的方法和装置 |
| CN106686633A (zh) * | 2017-02-20 | 2017-05-17 | 苏州蜗牛数字科技股份有限公司 | 一种阻止wifi恶意频繁唤醒的方法 |
| CN107145425B (zh) * | 2017-05-08 | 2019-02-05 | Oppo广东移动通信有限公司 | 信息处理方法、装置和移动终端 |
| US10685118B2 (en) | 2017-05-15 | 2020-06-16 | Ut-Battelle, Llc | System and method for monitoring power consumption to detect malware |
| CN107291212A (zh) * | 2017-06-16 | 2017-10-24 | 深圳天珑无线科技有限公司 | 电源锁处理方法及装置 |
| CN107506019A (zh) * | 2017-08-07 | 2017-12-22 | 北京小米移动软件有限公司 | 应用程序的管理方法及装置、终端、存储介质 |
| CN107563196A (zh) * | 2017-08-16 | 2018-01-09 | 深圳天珑无线科技有限公司 | 恶意应用程序的过滤方法、设备及可读存储介质 |
| CN107729236A (zh) * | 2017-09-30 | 2018-02-23 | 努比亚技术有限公司 | 应用程序的管理方法、装置、移动终端及存储介质 |
| CN111052040A (zh) | 2017-10-13 | 2020-04-21 | 华为技术有限公司 | 一种降低终端功耗的方法及终端 |
| CN107908271A (zh) * | 2017-10-19 | 2018-04-13 | 上海闻泰信息技术有限公司 | 预防应用影响智能终端耗电的方法、装置及智能终端 |
| CN107861855A (zh) * | 2017-10-30 | 2018-03-30 | 深圳市金立通信设备有限公司 | 一种降低异常耗电的方法、终端、系统及计算机可读存储介质 |
| CN110018885B (zh) * | 2017-12-29 | 2021-06-01 | Oppo广东移动通信有限公司 | 应用程序冻结方法、装置、存储介质和终端 |
| US10061933B1 (en) * | 2018-01-09 | 2018-08-28 | Booz Allen Hamilton Inc. | System and method for controlling the power states of a mobile computing device |
| CN108536546A (zh) * | 2018-03-29 | 2018-09-14 | 广东欧珀移动通信有限公司 | 信息处理方法、装置、移动终端和计算机可读存储介质 |
| CN108616653B (zh) * | 2018-03-30 | 2020-01-17 | Oppo广东移动通信有限公司 | 信息处理方法、装置、移动终端和计算机可读存储介质 |
| CN108650384B (zh) * | 2018-05-15 | 2020-07-07 | Oppo(重庆)智能科技有限公司 | 信息处理方法、装置、移动终端和计算机可读存储介质 |
| WO2019218299A1 (zh) * | 2018-05-17 | 2019-11-21 | 华为技术有限公司 | 一种耗电异常提示方法、服务器和终端 |
| US11662796B2 (en) * | 2018-06-01 | 2023-05-30 | Apple Inc. | User interfaces for indicating battery information on an electronic device |
| GB201812240D0 (en) | 2018-07-27 | 2018-09-12 | Ibm | Device, system and method for detection of compromise through automated power analysis |
| CN109271292A (zh) * | 2018-09-06 | 2019-01-25 | 北京小米移动软件有限公司 | 耗电信息获取方法及装置 |
| CN110908727A (zh) * | 2018-09-14 | 2020-03-24 | 中兴通讯股份有限公司 | 应用的冻结方法及装置, 存储介质及电子装置 |
| CN110908851A (zh) * | 2018-09-14 | 2020-03-24 | 中兴通讯股份有限公司 | 异常应用检测及控制方法、装置、终端及存储介质 |
| CN109413726B (zh) * | 2018-12-24 | 2021-05-07 | 维沃移动通信有限公司 | 功耗控制方法及移动终端 |
| CN109901692A (zh) * | 2019-03-04 | 2019-06-18 | 上海卓易科技股份有限公司 | 目标应用的执行方法、装置、终端及存储介质 |
| US11277120B2 (en) | 2019-03-12 | 2022-03-15 | International Business Machines Corporation | Dynamic signal processing |
| CN110134219B (zh) * | 2019-05-13 | 2024-03-19 | 深圳传音通讯有限公司 | 应用程序后台耗电处理方法及装置 |
| US20200372077A1 (en) * | 2019-05-20 | 2020-11-26 | Microsoft Technology Licensing, Llc | Interactive chart recommender |
| US11074345B2 (en) | 2019-05-30 | 2021-07-27 | Ut-Battelle, Llc | Rootkit detection system |
| CN111385859A (zh) * | 2020-02-28 | 2020-07-07 | 北京九州云动科技有限公司 | 终端耗电量检测优化方法和装置 |
| CN112860326A (zh) * | 2021-02-01 | 2021-05-28 | 读书郎教育科技有限公司 | 一种安卓设备灭屏待机省电处理方法 |
| CN112882762A (zh) * | 2021-03-25 | 2021-06-01 | 广州文石信息科技有限公司 | 一种墨水屏设备耗电优化方法、装置、设备和存储介质 |
| CN113778214B (zh) * | 2021-09-15 | 2024-07-05 | 广州点金石信息技术有限公司 | 一种省电优化方法、装置、移动终端和存储介质 |
| CN114115509B (zh) * | 2022-01-25 | 2022-07-26 | 荣耀终端有限公司 | 一种应用管理方法及终端 |
| CN114428546B (zh) * | 2022-01-25 | 2024-04-09 | 惠州Tcl移动通信有限公司 | 后台应用清理方法、装置、存储介质及终端设备 |
| TWI806664B (zh) * | 2022-06-16 | 2023-06-21 | 華碩電腦股份有限公司 | 異常耗電的應用程式版本偵測方法與系統 |
| CN118259738A (zh) * | 2022-12-28 | 2024-06-28 | 蔚来移动科技有限公司 | 用于控制Job执行的方法、系统和设备 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102498739A (zh) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | 向用户提供关于电池操作的电子设备中的功耗的反馈 |
| CN102495761A (zh) * | 2011-11-11 | 2012-06-13 | 中兴通讯股份有限公司 | 应用关闭方法及装置 |
| US20120210150A1 (en) * | 2011-02-10 | 2012-08-16 | Alcatel-Lucent Usa Inc. | Method And Apparatus Of Smart Power Management For Mobile Communication Terminals |
| CN102841672A (zh) * | 2012-07-10 | 2012-12-26 | 上海果壳电子有限公司 | 一种休眠拦截方法及系统 |
| CN103037108A (zh) * | 2012-12-10 | 2013-04-10 | 乐蛙科技(上海)有限公司 | 一种智能移动终端的省电方法 |
| CN103049319A (zh) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | 分时段管理后台应用程序的方法及其终端 |
| CN103324519A (zh) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | 一种恶意耗电应用的清理方法、装置及用户终端 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2390757A1 (en) * | 2010-05-25 | 2011-11-30 | Samsung Electronics Co., Ltd. | Method and apparatus for managing an application being executed in a portable terminal |
| US8655307B1 (en) * | 2012-10-26 | 2014-02-18 | Lookout, Inc. | System and method for developing, updating, and using user device behavioral context models to modify user, device, and application state, settings and behavior for enhanced user security |
| CN103092685A (zh) * | 2012-12-21 | 2013-05-08 | 广东欧珀移动通信有限公司 | 一种关闭应用程序的方法及装置 |
| CN104166542B (zh) * | 2013-05-17 | 2018-01-05 | 腾讯科技(深圳)有限公司 | 检测应用耗电的方法和装置 |
-
2013
- 2013-06-17 CN CN2013102398517A patent/CN103324519A/zh active Pending
-
2014
- 2014-05-28 WO PCT/CN2014/078623 patent/WO2014201945A1/zh not_active Ceased
- 2014-05-28 EP EP14814534.5A patent/EP2977854B1/en active Active
-
2015
- 2015-10-30 US US14/927,545 patent/US20160048682A1/en not_active Abandoned
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102498739A (zh) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | 向用户提供关于电池操作的电子设备中的功耗的反馈 |
| US20120210150A1 (en) * | 2011-02-10 | 2012-08-16 | Alcatel-Lucent Usa Inc. | Method And Apparatus Of Smart Power Management For Mobile Communication Terminals |
| CN102495761A (zh) * | 2011-11-11 | 2012-06-13 | 中兴通讯股份有限公司 | 应用关闭方法及装置 |
| CN102841672A (zh) * | 2012-07-10 | 2012-12-26 | 上海果壳电子有限公司 | 一种休眠拦截方法及系统 |
| CN103037108A (zh) * | 2012-12-10 | 2013-04-10 | 乐蛙科技(上海)有限公司 | 一种智能移动终端的省电方法 |
| CN103049319A (zh) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | 分时段管理后台应用程序的方法及其终端 |
| CN103324519A (zh) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | 一种恶意耗电应用的清理方法、装置及用户终端 |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20180074762A (ko) * | 2015-10-29 | 2018-07-03 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 단말기 기반 웨이크록(wakelock)의 제어 방법, 장치, 및 단말기 |
| EP3361348A4 (en) * | 2015-10-29 | 2018-11-07 | Huawei Technologies Co., Ltd. | Terminal-based wakelock control method and apparatus, and terminal |
| JP2019505031A (ja) * | 2015-10-29 | 2019-02-21 | 華為技術有限公司Huawei Technologies Co.,Ltd. | 端末ベースのウェイクロック制御の方法、装置及び端末 |
| KR102098581B1 (ko) * | 2015-10-29 | 2020-04-08 | 후아웨이 테크놀러지 컴퍼니 리미티드 | 단말기 기반 웨이크록(wakelock)의 제어 방법, 장치, 및 단말기 |
| US10788881B2 (en) | 2015-10-29 | 2020-09-29 | Huawei Technologies Co., Ltd. | Terminal-based wakelock control method and apparatus and terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103324519A (zh) | 2013-09-25 |
| EP2977854A4 (en) | 2016-06-08 |
| US20160048682A1 (en) | 2016-02-18 |
| EP2977854A1 (en) | 2016-01-27 |
| EP2977854B1 (en) | 2019-07-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103324519A (zh) | 一种恶意耗电应用的清理方法、装置及用户终端 | |
| CN104298335B (zh) | 移动终端的应用程序进程清理方法、装置和移动终端 | |
| CN104166542B (zh) | 检测应用耗电的方法和装置 | |
| CN106557407B (zh) | 一种设备负载的监控方法和装置 | |
| CN105159816B (zh) | 一种降低设备功耗的方法、移动终端及系统 | |
| CN103823543B (zh) | 便携式电子设备和在其中操作的方法 | |
| US8054192B2 (en) | Activity pattern based battery charging alerts for mobile devices | |
| CN109803359B (zh) | 一种唤醒终端系统的方法及终端 | |
| WO2015007247A1 (zh) | 耗电异常的应用程序获取方法、装置和移动终端 | |
| CN104298336A (zh) | 移动终端及其应用程序的控制方法和装置 | |
| WO2016054957A1 (zh) | 应用程序异常的检测方法、装置和移动终端 | |
| CN107577508B (zh) | 应用程序处理方法、装置、可读存储介质和移动终端 | |
| WO2018000508A1 (zh) | 应用程序冻结方法及移动终端 | |
| WO2014117653A1 (zh) | 内存清理方法、装置和终端设备 | |
| WO2013091561A1 (zh) | 一种节能方法、装置及通讯终端 | |
| CN104298515A (zh) | 移动终端中应用程序的唤醒控制方法、装置和移动终端 | |
| CN107943650A (zh) | 应用程序的控制方法、装置、存储介质及终端 | |
| CN107526637B (zh) | 应用程序处理方法、装置、移动终端及存储介质 | |
| WO2017156676A1 (zh) | 一种针对应用的处理方法、装置及智能终端 | |
| CN107526638B (zh) | 应用程序处理方法、装置、移动终端及存储介质 | |
| CN105830016A (zh) | 用户设备的电源管理方法和电源管理装置 | |
| CN110032431A (zh) | 应用处理方法和装置、电子设备、计算机可读存储介质 | |
| CN107436672B (zh) | 一种应用的处理方法及终端 | |
| CN110032397B (zh) | 应用处理方法和装置、电子设备、计算机可读存储介质 | |
| CN104866063A (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: 14814534 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2014814534 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |