CN105718028A - Power-saving method and device based on power consumption application recognition - Google Patents

Power-saving method and device based on power consumption application recognition Download PDF

Info

Publication number
CN105718028A
CN105718028A CN201610042558.5A CN201610042558A CN105718028A CN 105718028 A CN105718028 A CN 105718028A CN 201610042558 A CN201610042558 A CN 201610042558A CN 105718028 A CN105718028 A CN 105718028A
Authority
CN
China
Prior art keywords
application
resource
party application
duration
list
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.)
Granted
Application number
CN201610042558.5A
Other languages
Chinese (zh)
Other versions
CN105718028B (en
Inventor
修平
冯质干
俞茂学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610042558.5A priority Critical patent/CN105718028B/en
Publication of CN105718028A publication Critical patent/CN105718028A/en
Application granted granted Critical
Publication of CN105718028B publication Critical patent/CN105718028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Abstract

The embodiment of the invention provides a power-saving method and a power-saving device based on power consumption application recognition. The power-saving method comprises the following steps: acquiring an application program list of third party application programs installed in a mobile terminal; based on a power quantity counting file read at a preset period interval, analyzing to obtain the resource use time of a third party application, and calculating the resource use time of a former period of the third party application so as to obtain the resource use increment of the third party application; determining whether the application is an abnormal power consumption application or not according to the use state and the resource use increment of the third party application, if yes, closing the third party application. By adopting the embodiment of the invention, whether one application is an abnormal power consumption application or not can be determined according to the calculated resource use increment and the present use state, then filtration on applications operated at the background can be completed, abnormal power consumption applications of the applications operated at the background can be eliminated without affecting use of a user, and the cruising ability of a battery of the mobile terminal can be improved.

Description

A kind of based on the electricity saving method and the device that identify power consumption application
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of based on the electricity saving method and the device that identify power consumption application.
Background technology
Existing mobile terminal can support that multi-task parallel processes, user can open multiple third party application simultaneously, currently used third party application is at front stage operation, the third party application not used is at running background, even if third party application remains at running background can take central processing unit, internal memory etc., cause electric quantity consumption.Discovery is analyzed through inventor, existing third party application substantially can be divided into power consumption application and the non-essential power consumption application of necessity, wherein, necessary power consumption application is application program that is that be currently running and that be likely again started up, such as the wechat being currently in use, QQ, browser etc., non-essential power consumption application is the application program having dropped out, such as the video playback client having logged out, browser, shopping client etc., but to be not the third party application of whole running background be all unnecessary power consumption application program, therefore to do not affect the normal use of user, need identify unnecessary power consumption application program and close, to save the electricity of mobile terminal.
But conventional electricity saving of mobile terminal method is to adopt a key cleaning pattern, by the application information that acquisition system is currently running, directly the third party application of whole running backgrounds is carried out forced liquidation, reduce the electricity that third party application running background consumes, but necessary power consumption application is easily cleared up by the method on the one hand in the lump, as when user wants the QQ application being switched to running background from the wechat application being currently in use, need to reopen QQ application, affect the normal use of user;A key cleaning needs manual operation on the other hand, it is impossible to realize automatically and selectively cleaning power consumption application.
Summary of the invention
Embodiments of the invention provide a kind of based on the electricity saving method and device, the problem big in order to solve mobile terminal power consumption that identify power consumption application.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
A kind of based on the electricity saving method identifying power consumption application program, including:
Obtain the application list belonging to third party application installed in mobile terminal;
Based on the electricity statistics file read every predetermined period, resolve the resource obtaining third party application in described the application list and use duration;
Resource use increment according to the described third party application that the resource use duration of third party application in described the application list obtained with the resource use duration calculation in a upper cycle of described third party application, uses the third party application in duration chained list to travel through the abnormal power consumption application to determine in described the application list to described resource.
A kind of based on the electricity saving method identifying power consumption application program, including:
Obtain the application list belonging to third party application in mobile terminal;
Based on the electricity statistics file read every predetermined period, the resource obtaining the third party application in described the application list uses duration, to use the resource that duration calculation obtains the third party application in described the application list to use increment with the resource of the third party application in the application list described in the upper cycle;
Resource according to the third party application in described the application list uses increment, it is determined that go out the abnormal power consumption application in described the application list.
A kind of based on the electricity saver identifying power consumption application program, including:
Acquisition module, for obtaining the application list belonging to third party application installed in mobile terminal;
Parsing module, for based on the electricity statistics file read every predetermined period, resolving the resource obtaining third party application in described the application list and use duration;
Judge module, the resource of the described third party application for obtaining with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, and described resource uses the third party application in duration chained list travel through the abnormal power consumption application to determine in described the application list.
In order to overcome the deficiencies in the prior art, embodiments provide a kind of based on the electricity saving method and the device that identify power consumption application, first the application list belonging to third party application in mobile terminal is obtained, and based on the electricity statistics file read every predetermined period, resolve the resource obtaining third party application in described the application list and use duration, the resource of the described third party application then obtained with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, described resource is used the abnormal power consumption application to determine in described the application list of the third party application traversal in duration chained list.Therefore, whole third party applications use increment to determine whether abnormal power consumption application such as through the resource calculating gained, and when user's screen is lighted, remind whether user closes abnormal power consumption application, to reach the purpose that the application of running background is filtered, thus when not affecting user and using, cleaning out the abnormal power consumption application in the application of running background, increasing the flying power of battery of mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of electricity saving method schematic flow sheet based on identification power consumption application that Fig. 1 provides for one embodiment of the invention;
A kind of electricity saving method schematic flow sheet based on identification power consumption application that Fig. 2 provides for another embodiment of the present invention;
A kind of electricity saver structural representation based on identification power consumption application that Fig. 3 provides for one embodiment of the invention;
A kind of electricity saver structural representation based on identification power consumption application that Fig. 4 provides for another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
On the mobile terminal with Android operation system, user can run multiple third party application simultaneously, such as application programs such as wechat, navigation, music.After user exits these third party applications, it remains in backstage and runs, although this can the accelerating application speed when next time starts, but the third party application of not all running background all can be again started up, the third party application not being again started up can consume the electricity of mobile terminal at running background always, thus have impact on the normal use of user.Therefore, the present invention is not when affecting user and normally using, there is provided a kind of based on the electricity saving method identifying power consumption application, the method uses the running status of increment and current application to determine whether abnormal power consumption application according to the resource of the third party application calculating gained, filter out those application having dropped out not being again started up with this, reduce the electric quantity consumption of the application not being again started up.
One embodiment of the invention provides a kind of based on the electricity saving method identifying power consumption application, Fig. 1 is a kind of schematic flow sheet based on the electricity saving method identifying power consumption application of one embodiment of the invention, Fig. 2 is a kind of idiographic flow schematic diagram based on the electricity saving method identifying power consumption application of another embodiment of the present invention, including:
Step 101, obtains the application list belonging to third party application installed in mobile terminal.
Concrete, processor reads the flag of whole third party applications and the part system application program installed in mobile terminal, to filter out whole third party applications that mobile terminal is installed, wherein said whole third party applications include the third party application that is currently in use and untapped third party application.Wherein flag value is for identification application attribute, if system application then can represent with system_flag, when the flag of the application judged is system_flag, then skips continuation and judges that next is applied.Include system application and third-party application due to the application program of mobile terminal, therefore filtering out the application of whole system remaining is third party application, finally gives whole third party application.
Step 102, based on the electricity statistics file read every predetermined period, resolves the resource obtaining third party application in described the application list and uses duration.
Wherein, predetermined period is be as the criterion with five minutes and mobile terminal electricity that condition arrived first in lattice that declines.Such as: arrive first than the electricity lattice that decline if mobile terminal works five minutes, then with five minutes for predetermined period;If mobile terminal electricity declines, lattice arrived first than five minutes, then decline lattice for predetermined period with electricity.
Concrete, before this step, first pre-set resource and use delta threshold, for the judgement of follow-up abnormal power consumption application.
In one embodiment of the invention, step 102 comprises the following steps:
Step 1021, every the electricity statistics file that predetermined period reads in described mobile terminal in DATA subregion.
Wherein, electricity statistics file includes identification information (UserIdentification, UID) and the electricity service condition of all application programs in mobile terminal.
Step 1022, the UID of third party application passing through to obtain resolves corresponding resource in electricity statistics file and uses duration.
Step 1023, it is the resource use duration chained list that index forms a current period with the identification information UID of application that the resource of each third party application uses duration.
Wherein, resource uses duration to include one or more in the number of times using duration and mobile terminal to be waken up after the screen that goes out of central processor CPU, GPS, network.Namely electricity statistics file can record each application and use time started and the end time of above four kinds of resources, in this predetermined period, the use duration of above four kinds of resources will be sued for peace respectively, just can obtain the use duration of above four kinds of resources of each application.Such as: a certain being applied in this predetermined period uses GPS twice altogether, the duration every time used is 1 minute, then this is applied in the use duration using GPS in predetermined period is 2 minutes.
Step 103, resource use increment according to the described third party application that the resource use duration of third party application in described the application list obtained with the resource use duration calculation in a upper cycle of described third party application, uses the third party application in duration chained list to travel through the abnormal power consumption application to determine in described the application list to described resource.
In one embodiment of the invention, step 102 comprises the following steps:
Step 1031, (i is 1 ~ n to read i-th in the resource use duration chained list of current period, n is total number that this resource uses the third party application in duration chained list) resource of individual third party application uses duration, and the resource of this third party application in the upper cycle in memory module uses duration.
Step 1032, used duration and the resource in a upper cycle to use duration poor by the resource of the current period of this third party application, obtains this third party application current period and used increment relative to the resource in a upper cycle.
It should be noted that, in the present embodiment, owing to the resource in a upper cycle uses the buffer memory of duration to be empty, so the resource for first cycle whole third party application uses duration, the present embodiment is to use duration directly to store the resource of whole third party applications of this period 1, to be ready for use on the calculating in next cycle.
Step 1033, it is judged that the resource calculating this third party application of gained uses whether increment exceedes default resource use delta threshold.
Concrete, if the resource of this application uses increment to use delta threshold not less than default resource, then the resource directly reacquiring current period uses the resource of next application in duration chained list and i+1 third party application to use duration to be calculated, judge;If the resource of this application uses increment to exceed default resource and uses delta threshold, then assert that this application is for abnormal power consumption application.
Step 1034, it is judged that whether abnormal power consumption application is the third party application that user is currently in use.
Concrete, the priority list that all application programs are current is obtained from ActivityManager, wherein each item in priority list is all a project, each project comprises the UID of application program, priority value and other property values, and the application priority switching to backstage can more than 2, the priority of the application being being currently used is then 0, and the priority of system service is typically less than 0.
Further, UID according to this exception power consumption application searches the priority of its correspondence, judge that whether this exception power consumption applies for untapped application with this, if the priority of this third party application is more than 2, then for being switched to the third party application of running background, the third party application not namely being currently in use.
Step 1035, if the third party application not being currently in use, then records the UID of this third party application.
Further, the resource continuing to obtain next third party application uses duration to be calculated, judge, until having judged whole third party application.Then duration is used to be stored as a static file with the form of java data the resource of whole third party applications, in order to for the judgement in next cycle.
Further, when detecting that user lights mobile phone, remove to resolve the UID of acquired abnormal power consumption application by packageManager, obtain the abnormal power consumption application program corresponding to this UID, the title of this exception power consumption application program is shown to informing and reminds whether user can terminate this application.If user selects to be then to close this application, and the notice that ejection terminates is prompted to user.Such as: finish certain application for you.If you select No, then continue to run with this application or judge that the use duration of which resource of this application exceedes threshold value, and the function exceeded corresponding to the resource of threshold value is closed (except the use duration of CPU).Such as: the use duration of the GPS of this application program exceedes threshold value, then the GPS function of this application program is closed, but so have no effect on the use of user, when next time, user used, this application program at running background can be directly initiated, consuming time short, and after startup, application program becomes the application program being currently in use, the GPS function that it has also is recovered accordingly.
Further, owing to the resource in the present invention uses duration to include one or more in the number of times using duration and mobile terminal to be waken up after the screen that goes out of central processor CPU, GPS, network, therefore above four kinds of resources use corresponding four resources of duration to use delta threshold, when judging abnormal power consumption application, as long as what above four kinds of resources used that the resource corresponding to duration uses in increment at least one exceed corresponding resource and use delta threshold, apply it is assumed that this application be abnormal power consumption.Such as: in an application CPU, GPS and wake terminal up use increment all not less than CPU, GPS and the use delta threshold waken up, although only the Web vector graphic duration of this application current period and the Web vector graphic duration of upper this application of a cycle are made the Web vector graphic increment that after the recovery tries to achieve and are exceeded Web vector graphic delta threshold, but still assert that this application is for abnormal power consumption application.
Embodiments provide a kind of based on the electricity saving method identifying power consumption application, first the application list belonging to third party application in mobile terminal is obtained, and based on the electricity statistics file read every predetermined period, resolve the resource obtaining third party application in described the application list and use duration, the resource of the described third party application then obtained with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, described resource is used the abnormal power consumption application to determine in described the application list of the third party application traversal in duration chained list, and the UID of recording exceptional power consumption application.When detecting that user's screen is lighted, remind whether user closes abnormal power consumption application, to reach the purpose that the application of running background is filtered, and each application program only can be alerted once, thus when not affecting user and using, clean out the abnormal power consumption application in the application of running background, increase the flying power of battery of mobile terminal.
In order to realize above-described embodiment, the invention allows for a kind of based on the electricity saver identifying power consumption application, as it is shown on figure 3, include:
Acquisition module 301, for obtaining the application list belonging to third party application installed in mobile terminal.
Parsing module 302, for based on the electricity statistics file read every predetermined period, resolving the resource obtaining third party application in described the application list and use duration.
Judge module 303, the resource of the described third party application for obtaining with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, and described resource uses the third party application in duration chained list travel through the abnormal power consumption application to determine in described the application list.
Memory module 304, the resource for storing the described third party application in current period and a upper cycle uses duration.
Fig. 4 is the structural representation based on the electricity saver identifying power consumption application of another embodiment of the present invention, including: acquiring unit 3011, screens unit 3012, parsing module 302, it is judged that module 303, memory module 304.
Concrete, acquiring unit 3011 is for obtaining the whole third party applications and part system application program installed in mobile terminal.In embodiments of the present invention, processor can read the flag of the application program in electricity statistics file, and wherein flag value is for identification application attribute.
Screening unit 3012 is for filtering out, by flag, whole third party applications that mobile terminal is installed, and wherein said whole third party applications include the third party application that is currently in use and untapped third party application.Concrete, if system application then can represent with system_flag, when the flag of the application judged is system_flag, then skips continuation and judge that next is applied.Include system application and third-party application due to the application program of mobile terminal, therefore filtering out the application of whole system remaining is third party application, finally gives whole third party application.
The electricity saver based on identification power consumption application of another embodiment of the present invention, including: acquiring unit 3011, screens unit 3012, reads unit 3021, resolution unit 3022, linked list units 3023, and read unit 3031, computing unit 3032, Traversal Unit 3033, memory module 304.
Concrete, read the unit 3021 electricity statistics file for reading in described mobile terminal in DATA subregion every predetermined period.Wherein, electricity statistics file includes identification information (UserIdentification, UID) and the electricity service condition of all application programs in mobile terminal.
Resolution unit 3022 resolves corresponding resource in electricity statistics file for the UID of third party application passing through to obtain and uses duration.
Linked list units 3023 is that the resource indexing one current period of composition uses duration chained list for the resource of each third party application uses duration with the identification information UID of application.
Wherein, resource uses duration to include one or more in the number of times using duration and mobile terminal to be waken up after the screen that goes out of central processor CPU, GPS, network.Namely electricity statistics file can record each application and use time started and the end time of above four kinds of resources, in this predetermined period, the use duration of above four kinds of resources will be sued for peace respectively, just can obtain the use duration of above four kinds of resources of each application.Such as: a certain being applied in this predetermined period uses GPS twice altogether, the duration every time used is 1 minute, then this is applied in the use duration using GPS in predetermined period is 2 minutes.
Reading unit 3031 uses i-th in duration chained list for the resource reading current period, and (i is 1 ~ n, n is total number that this resource uses the third party application in duration chained list) resource of individual third party application uses duration, and the resource of this third party application in the upper cycle in memory module uses duration.
Computing unit 3032, for using duration and the resource in a upper cycle to use duration poor the resource of the current period of this third party application, is obtained this third party application current period and was used increment relative to the resource in a upper cycle.
It should be noted that, in the present embodiment, owing to the resource in a upper cycle uses the buffer memory of duration to be empty, so the resource for first cycle whole third party application uses duration, the present embodiment is to use duration directly to store the resource of whole third party applications of this period 1, to be ready for use on the calculating in next cycle.
Traversal Unit 3033 uses increment to use the whole third party applications in duration chained list to travel through the resource of described current period for the resource according to described third party application, to determine that resource uses increment to exceed default resource and uses the third party application of delta threshold, i.e. abnormal power consumption application.
Concrete, it is judged that the resource of the third party application in described the application list uses increment to exceed default resource and uses delta threshold.If the resource of the third party application in described the application list uses increment to exceed default resource and uses delta threshold, then assert that described third party application is for abnormal power consumption application, and continue to judge next third party application.If the resource of the third party application in described the application list uses increment to use delta threshold not less than default resource, then directly judge next third party application, until judging to terminate, the resource storing described current period uses the resource of the whole third party applications in duration chained list to use duration.
Further, it is judged that whether this third party application is the third party application that user is currently in use.Concrete, the priority list that all application programs are current is obtained from ActivityManager, wherein each item in priority list is all a project, each project comprises the UID of application program, priority value and other property values, and the application priority switching to backstage can more than 2, the priority of the application being being currently used is then 0, and the priority of system service is typically less than 0.UID according to this third party application searches the priority of its correspondence, judge that whether this third party application is for untapped application with this, if the priority of this third party application is more than 2, then for being switched to the third party application of running background, the third party application not namely being currently in use.
Embodiments provide a kind of based on the electricity saver identifying power consumption application, first the application list belonging to third party application in mobile terminal is obtained, and based on the electricity statistics file read every predetermined period, resolve the resource obtaining third party application in described the application list and use duration, the resource of the described third party application then obtained with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, described resource is used the abnormal power consumption application to determine in described the application list of the third party application traversal in duration chained list, and the UID of recording exceptional power consumption application.When detecting that user's screen is lighted, remind whether user closes abnormal power consumption application, to reach the purpose that the application of running background is filtered, and each application program only can be alerted once, thus when not affecting user and using, clean out the abnormal power consumption application in the application of running background, increase the flying power of battery of mobile terminal.
The application describes with reference to flow chart and/or the block diagram according to the method for the embodiment of the present application, equipment (system) and computer program.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the application, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.
Obviously, the application can be carried out various change and modification without deviating from spirit and scope by those skilled in the art.So, if these amendments of the application and modification belong within the scope of the application claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (15)

1. the electricity saving method based on identification power consumption application, it is characterised in that the method includes:
Obtain the application list belonging to third party application installed in mobile terminal;
Based on the electricity statistics file read every predetermined period, resolve the resource obtaining third party application in described the application list and use duration;
Resource use increment according to the described third party application that the resource use duration of third party application in described the application list obtained with the resource use duration calculation in a upper cycle of described third party application, uses the third party application in duration chained list to travel through the abnormal power consumption application to determine in described the application list to described resource.
2. electricity saving method according to claim 1, it is characterised in that the application list belonging to third party application installed in described acquisition mobile terminal, specifically includes:
Obtain the whole third party applications and part system application program installed in mobile terminal;
Filtering out the application list belonging to third party application that mobile terminal is installed, wherein said the application list includes the third party application that is currently in use and untapped third party application.
3. the electricity saving method according to described claim 1, it is characterised in that described based on the electricity statistics file read every predetermined period, resolves the resource obtaining third party application in described the application list and uses duration, specifically include:
The electricity statistics file of mobile terminal is read every predetermined period;
Resolve the resource obtaining each third party application in described the application list according to described electricity statistics file and use duration, and use duration chained list with the resource that the UID of each third party application is index composition current period.
4. the electricity saving method according to described claim 1, it is characterised in that described resource uses duration to include one or more in the number of times using duration and mobile terminal to be waken up after the screen that goes out of central processor CPU, network, global position system GPS.
5. electricity saving method according to claim 1, it is characterized in that, the resource use increment of the described described third party application using the resource in a upper cycle of duration and described third party application to use duration calculation to obtain according to the resource of third party application in described the application list, described resource uses the third party application traversal in duration chained list with the abnormal power consumption application determining in described the application list, specifically includes:
Use the resource being successively read third party application duration chained list to use duration from the resource of current period, and the resource use duration calculation of the described third party application with the upper cycle read from memory module, the resource obtaining described third party application uses increment;
Resource according to described third party application uses increment to use the whole third party applications in duration chained list to travel through the resource of described current period, to determine that resource uses increment to exceed default resource and uses the third party application of delta threshold, and the resource storing described current period uses the resource of the whole third party applications in duration chained list to use duration.
6. the electricity saving method based on identification power consumption application, it is characterised in that the method includes:
Obtain the application list belonging to third party application in mobile terminal;
Based on the electricity statistics file read every predetermined period, the resource obtaining the third party application in described the application list uses duration, to use the resource that duration calculation obtains the third party application in described the application list to use increment with the resource of the third party application in the application list described in the upper cycle;
Resource according to the third party application in described the application list uses increment, it is determined that go out the abnormal power consumption application in described the application list.
7. electricity saving method according to claim 6, it is characterised in that the application list belonging to third party application installed in described acquisition mobile terminal, specifically includes:
Obtain the whole third party applications and part system application program installed in mobile terminal;
Filtering out the application list belonging to third party application that mobile terminal is installed, wherein said the application list includes the third party application that is currently in use and untapped third party application.
8. electricity saving method according to claim 6, it is characterized in that, described based on the electricity statistics file read every predetermined period, the resource obtaining the third party application in described the application list uses duration, to use the resource that duration calculation obtains the third party application in described the application list to use increment with the resource of the third party application in the application list described in the upper cycle, specifically include:
The electricity statistics file of mobile terminal is read every predetermined period;
Resolve the resource obtaining each third party application in described the application list according to described electricity statistics file and use duration, and use duration chained list with the resource that the UID of each third party application is index composition current period;
Use the resource being successively read third party application duration chained list to use duration from the resource of current period, and the resource use duration calculation of the described third party application with the upper cycle read from memory module, the resource obtaining described third party application uses increment.
9. the electricity saving method according to described claim 6, it is characterised in that described resource uses duration to include one or more in the number of times using duration and mobile terminal to be waken up after the screen that goes out of central processor CPU, network, global position system GPS.
10. electricity saving method according to claim 6, it is characterised in that the described resource according to the third party application in described the application list uses increment, it is determined that go out the abnormal power consumption application in described the application list, specifically include:
Judge that the resource of the third party application in described the application list uses increment to exceed default resource and uses delta threshold;
If the resource of the third party application in described the application list uses increment to exceed default resource and uses delta threshold, then assert that described third party application is for abnormal power consumption application, and continue to judge next third party application;
If the resource of the third party application in described the application list uses increment to use delta threshold not less than default resource, then directly judge next third party application, until judging to terminate, the resource storing described current period uses the resource of the whole third party applications in duration chained list to use duration.
11. the electricity saver identifying abnormal power consumption application, it is characterised in that this device includes:
Acquisition module, for obtaining the application list belonging to third party application installed in mobile terminal;
Parsing module, for based on the electricity statistics file read every predetermined period, resolving the resource obtaining third party application in described the application list and use duration;
Judge module, the resource of the described third party application for obtaining with the resource use duration calculation in a upper cycle of described third party application according to the resource use duration of third party application in described the application list uses increment, and described resource uses the third party application in duration chained list travel through the abnormal power consumption application to determine in described the application list.
12. electricity saver according to claim 11, it is characterised in that described acquisition module, including:
Acquiring unit, for obtaining the whole third party applications and part system application program installed in mobile terminal;
Screening unit, for filtering out the application list belonging to third party application that mobile terminal is installed, wherein said the application list includes the third party application that is currently in use and untapped third party application.
13. electricity saver according to claim 11, it is characterised in that described parsing module includes:
Read unit, for reading the electricity statistics file of mobile terminal every predetermined period;
Resolution unit, uses duration for resolving the resource obtaining each third party application in described the application list according to described electricity statistics file;
Linked list units, for using duration chained list with the UID of each third party application resource being index composition current period.
14. electricity saver according to claim 11, it is characterised in that described judge module, including:
Read unit, use from the resource of current period the resource being successively read third party application duration chained list to use duration;
Computing unit, for the resource of current period uses the resource use duration calculation of duration and the described third party application in the upper cycle read from memory module, the resource obtaining described third party application uses increment;
Traversal Unit, increment is used to use the whole third party applications in duration chained list to travel through the resource of described current period for the resource according to described third party application, to determine that resource uses increment to exceed default resource and uses the third party application of delta threshold, i.e. abnormal power consumption application.
15. electricity saver according to claim 11, it is characterised in that described electricity saver also includes:
Memory module, the resource for storing the described third party application in current period and a upper cycle uses duration.
CN201610042558.5A 2016-01-22 2016-01-22 A kind of electricity saving method and device based on identification power consumption application Active CN105718028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610042558.5A CN105718028B (en) 2016-01-22 2016-01-22 A kind of electricity saving method and device based on identification power consumption application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610042558.5A CN105718028B (en) 2016-01-22 2016-01-22 A kind of electricity saving method and device based on identification power consumption application

Publications (2)

Publication Number Publication Date
CN105718028A true CN105718028A (en) 2016-06-29
CN105718028B CN105718028B (en) 2019-11-05

Family

ID=56154823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610042558.5A Active CN105718028B (en) 2016-01-22 2016-01-22 A kind of electricity saving method and device based on identification power consumption application

Country Status (1)

Country Link
CN (1) CN105718028B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326069A (en) * 2016-08-19 2017-01-11 北京小米移动软件有限公司 Method, device and system for detecting power consumption as well as equipment
CN106535311A (en) * 2016-11-22 2017-03-22 珠海市魅族科技有限公司 Power consumption control method and apparatus
CN107133172A (en) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 The power consumption detection method and device of application program
WO2017156676A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Processing method and device for application, and smart terminal
CN107231434A (en) * 2017-07-10 2017-10-03 北京小米移动软件有限公司 The control method and device of terminal device
WO2020052472A1 (en) * 2018-09-14 2020-03-19 中兴通讯股份有限公司 Method and device for detecting and controlling abnormal application, terminal, and storage medium
WO2020093888A1 (en) * 2018-11-09 2020-05-14 中兴通讯股份有限公司 Power saving method and apparatus, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2749988A1 (en) * 2011-08-25 2014-07-02 Tencent Technology (Shenzhen) Company Limited Method and device for application program operation, mobile terminal
CN104166615A (en) * 2014-08-08 2014-11-26 可牛网络技术(北京)有限公司 Method, device, server and mobile terminal for determining power consumption condition of third party application program
CN104239179A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Terminal and method for achieving application management thereof
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2749988A1 (en) * 2011-08-25 2014-07-02 Tencent Technology (Shenzhen) Company Limited Method and device for application program operation, mobile terminal
CN104239179A (en) * 2013-06-13 2014-12-24 中兴通讯股份有限公司 Terminal and method for achieving application management thereof
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN104166615A (en) * 2014-08-08 2014-11-26 可牛网络技术(北京)有限公司 Method, device, server and mobile terminal for determining power consumption condition of third party application program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017156676A1 (en) * 2016-03-14 2017-09-21 华为技术有限公司 Processing method and device for application, and smart terminal
CN106326069A (en) * 2016-08-19 2017-01-11 北京小米移动软件有限公司 Method, device and system for detecting power consumption as well as equipment
CN106535311A (en) * 2016-11-22 2017-03-22 珠海市魅族科技有限公司 Power consumption control method and apparatus
CN107133172A (en) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 The power consumption detection method and device of application program
CN107231434A (en) * 2017-07-10 2017-10-03 北京小米移动软件有限公司 The control method and device of terminal device
WO2020052472A1 (en) * 2018-09-14 2020-03-19 中兴通讯股份有限公司 Method and device for detecting and controlling abnormal application, terminal, and storage medium
WO2020093888A1 (en) * 2018-11-09 2020-05-14 中兴通讯股份有限公司 Power saving method and apparatus, and storage medium
CN111176420A (en) * 2018-11-09 2020-05-19 中兴通讯股份有限公司 Power saving method, device and storage medium

Also Published As

Publication number Publication date
CN105718028B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN105718028A (en) Power-saving method and device based on power consumption application recognition
CN104335175B (en) The method and system of thread is identified and migrated between system node based on system performance metric
CN107239339B (en) System performance optimization parameter determination method, system performance optimization method and device
CN104166542A (en) Method and device for detecting electricity consumption of application
CN109918141A (en) Thread execution method, device, terminal and storage medium
CN104636240B (en) A kind of acquisition methods and terminal of information report
CN104932963B (en) The method and device of management terminal
CN102981944B (en) A kind of log storing method based on file system
EP4195149A1 (en) Target detection and tracking method and apparatus, electronic device, and storage medium
CN104731301A (en) Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN110515795A (en) A kind of monitoring method of big data component, device, electronic equipment
CN103064925A (en) Method and device for regularly processing webpage
CN104184884A (en) Device and method for managing and controlling power consumption of mobile terminal and mobile terminal
WO2020211253A1 (en) Elastic scaling method and apparatus for number of hosts in distributed system, and computer device
CN106201688A (en) The control method of a kind of application program and device
CN106293709A (en) The management method of application program, managing device and terminal
CN105025365B (en) A kind of intelligent television platform offline download method and system
CN103809955B (en) The method and apparatus of end process
CN111221890A (en) Automatic monitoring and early warning method and device for general indexes
CN109284193A (en) A kind of distributed data processing method and server based on multithreading
CN105677487A (en) Method and device for controlling resource occupancy
CN104699224A (en) Power-saving control method
CN115118615B (en) Network monitoring data processing method and device
US20160259762A1 (en) Webpage layout method and apparatus, computer storage medium and terminal
CN104699223A (en) Terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant