CN107506019A - Management method and device, terminal, the storage medium of application program - Google Patents

Management method and device, terminal, the storage medium of application program Download PDF

Info

Publication number
CN107506019A
CN107506019A CN201710666038.6A CN201710666038A CN107506019A CN 107506019 A CN107506019 A CN 107506019A CN 201710666038 A CN201710666038 A CN 201710666038A CN 107506019 A CN107506019 A CN 107506019A
Authority
CN
China
Prior art keywords
application program
power consumption
duration
resource
preset time
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.)
Pending
Application number
CN201710666038.6A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710666038.6A priority Critical patent/CN107506019A/en
Publication of CN107506019A publication Critical patent/CN107506019A/en
Pending legal-status Critical Current

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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure is directed to a kind of management method of application program and device, terminal, storage medium, belong to application of electronic technology field.Methods described includes:History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics includes the service data for the application program run in the preset time period;According to the history power consumption statistics, judge in the preset time period with the presence or absence of the abnormal application program that power consumption is abnormal;When the abnormal abnormal application program of power consumption in the preset time period being present, being terminated at current time and running the abnormal application program.The disclosure solves the problems, such as that application program misuse of system resources causes terminal power consumption to be accelerated.The disclosure is used for the management of application program.

Description

Management method and device, terminal, the storage medium of application program
Technical field
This disclosure relates to application of electronic technology field, the management method and device of more particularly to a kind of application program, terminal, Storage medium.
Background technology
With the development of science and technology, the terminal such as such as mobile phone, computer, tablet personal computer has become the necessity of people's life.
In daily life, user can install various application programs in terminal, application program can in front stage operation, Can be in running background, user often occurs that the resource in some application programs abuse terminal causes end in using terminal The problem of holding power consumption to accelerate, have impact on the continuation of the journey duration of terminal.
The content of the invention
In order to solve the problems, such as that prior art is present, the embodiment of the present disclosure provide a kind of application program management method and Device, terminal, storage medium.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of management method of application program, including:
History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics is included in institute State the service data of the application program of operation in preset time period;
According to the history power consumption statistics, judging should with the presence or absence of the abnormal exception of power consumption in the preset time period Use program;
When the abnormal abnormal application program of power consumption in the preset time period be present, it is described different to terminate operation at current time Normal application program.
Optionally, the history power consumption statistics for obtaining terminal in preset time period, including:
A power consumption statistics, the consumption that each demarcation moment obtains are obtained at each demarcation moment pre-set Electric statistics is from the start moment of the terminal to the power consumption statistics at the demarcation moment;
Period between two newest demarcation moment is defined as the preset time period;
The differential data for the power consumption statistics that the finish time of the preset time period and start time are obtained determines For the history power consumption statistics.
Optionally, the period by between two newest demarcation moment is defined as the preset time period, including:
Judge whether the duration between two newest demarcation moment is more than default statistical-reference duration;
, will be described newest when the duration between newest two demarcation moment is more than default statistical-reference duration Period between two demarcation moment is defined as the preset time period;
Methods described also includes:
, will be from inverse when the duration between two newest demarcation moment is not more than default statistical-reference duration Second newest demarcation moment to period of object time is defined as the preset time period, the object time with it is described fall The time difference at the newest demarcation moment of number second is the statistical-reference duration.
Optionally, the electricity of the terminal includes more lattice electricity, at the time of the demarcation moment is that a lattice electricity exhausts.
Optionally, described terminated at current time runs the abnormal application program, including:
Detect whether the abnormal application program is default to enliven application program;
When the abnormal application program does not enliven application program to be default, the operation exception is terminated at current time should Use program.
Optionally, the application program of enlivening is multimedia application or the application program in downloading process.
Optionally, the abnormal application program is background application.
Optionally, the service data includes resource occupation duration, and/or, resource access times.
Optionally, the resource occupation duration includes the resource occupation duration of central processor CPU, and/or, system resource Resource occupation duration,
The power consumption includes extremely:
The resource occupation duration is more than default occupancy duration threshold value;Or the resource occupation duration is preset with described The ratio of the duration of period is more than default occupancy fractional threshold.
Optionally, the resource occupation duration includes the resource occupation duration for specifying resource, and the resource access times Include the resource access times of the specified resource, the specified resource includes:WLAN resource, and/or, global location System GPS resources, and/or, wake up lock resource;
The power consumption includes extremely:
The resource occupation duration be more than it is default take duration threshold value, and the resource access times be more than it is default using time Number threshold value;
Or the ratio of the resource occupation duration and the duration of the preset time period is more than default occupancy ratio threshold Value, and the resource access times are more than default access times threshold value.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of managing device of application program, including:
Acquisition module, for obtaining history power consumption statistics of the terminal in preset time period, the history power consumption system Count the service data for being included in the application program of operation in the preset time period;
Judge module, for according to the history power consumption statistics, judging in the preset time period with the presence or absence of consumption The abnormal application program of electrical anomaly;
Module is terminated, for when the abnormal abnormal application program of power consumption in the preset time period be present, at current time Terminate and run the abnormal application program.
Optionally, the acquisition module, including:
Acquisition submodule, it is each described for obtaining a power consumption statistics at each demarcation moment pre-set The power consumption statistics for demarcating moment acquisition is from the start moment of the terminal to the power consumption statistics at the demarcation moment;
First determination sub-module, for the period between two newest demarcation moment to be defined as into the preset time Section;
Second determination sub-module, the power consumption for the finish time of the preset time period and start time to be obtained count The differential data of data is defined as the history power consumption statistics.
Optionally, first determination sub-module, is used for:
Judge whether the duration between two newest demarcation moment is more than default statistical-reference duration;
, will be described newest when the duration between newest two demarcation moment is more than default statistical-reference duration Period between two demarcation moment is defined as the preset time period;
Described device also includes:
Determining module, for when the duration between two newest demarcation moment is not more than default statistical-reference When long, the preset time period, the mesh will be defined as from penultimate newest demarcation moment to the period of object time It is the statistical-reference duration that timestamp, which was carved with the time difference at the penultimate newest demarcation moment,.
Optionally, the electricity of the terminal includes more lattice electricity, at the time of the demarcation moment is that a lattice electricity exhausts.
Optionally, the termination module, is used for:
Detect whether the abnormal application program is default to enliven application program;
When the abnormal application program does not enliven application program to be default, the operation exception is terminated at current time should Use program.
Optionally, the application program of enlivening is multimedia application or the application program in downloading process.
Optionally, the abnormal application program is background application.
Optionally, the service data includes resource occupation duration, and/or, resource access times.
Optionally, the resource occupation duration includes the resource occupation duration of central processor CPU, and/or, system resource Resource occupation duration,
The power consumption includes extremely:
The resource occupation duration is more than default occupancy duration threshold value;Or the resource occupation duration is preset with described The ratio of the duration of period is more than default occupancy fractional threshold.
Optionally, the resource occupation duration includes the resource occupation duration for specifying resource, and the resource access times Include the resource access times of the specified resource, the specified resource includes:WLAN resource, and/or, global location System GPS resources, and/or, wake up lock resource;
The power consumption includes extremely:
The resource occupation duration be more than it is default take duration threshold value, and when the resource access times are more than default take Long threshold value.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics is included in institute State the service data of the application program of operation in preset time period;
According to the history power consumption statistics, judging should with the presence or absence of the abnormal exception of power consumption in the preset time period Use program;
When the abnormal abnormal application program of power consumption in the preset time period be present, it is described different to terminate operation at current time Normal application program.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of storage medium, instruction is stored with the storage medium, When the instruction in the storage medium is being run on processing component so that processing component is performed as described in first aspect is any Method;
The technical scheme provided by this disclosed embodiment can include the following benefits:
The management method and device, terminal, storage medium for the application program that the embodiment of the present disclosure provides, in preset time period When the abnormal application program of power consumption exception inside be present, it can terminate and run the abnormal application program, avoid abnormal application program To the occupancy of the resource in terminal, solve the problems, such as that the terminal power consumption caused by application program misuse of system resources is accelerated, phase Answer, add the continuation of the journey duration of terminal.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
In order to illustrate more clearly of embodiment of the disclosure, the required accompanying drawing used is made in being described below to embodiment Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present disclosure, common for this area For technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the management method of application program according to an exemplary embodiment.
Fig. 2-1 is the flow chart of the management method of another application program according to an exemplary embodiment.
Fig. 2-2 is history power consumption system of a kind of acquisition terminal in preset time period according to an exemplary embodiment The flow chart counted.
Fig. 2-3 is a kind of stream that operation exception application program is terminated at current time according to an exemplary embodiment Cheng Tu.
Fig. 3-1 is a kind of block diagram of the managing device 300 of application program according to an exemplary embodiment.
Fig. 3-2 is a kind of block diagram of acquisition module according to an exemplary embodiment.
Fig. 3-3 is the block diagram of the managing device 300 of another application program according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of managing device 400 for application program according to an exemplary embodiment.
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Embodiment
In order that the purpose, technical scheme and advantage of the disclosure are clearer, the disclosure is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that described embodiment is only disclosure some embodiments, rather than whole implementation Example.Based on the embodiment in the disclosure, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belong to the scope of disclosure protection.
With the development of science and technology, the terminal such as such as mobile phone, computer, tablet personal computer has become the necessity of people's life. In daily life, user can install various application programs in terminal, and application program can be in front stage operation, can also be rear Platform is run, wherein, foreground is the terminal interface that user is used at current time, be cannot see that at current time for user from the background Terminal interface, for example, user's current time is playing a game, while a certain chat software is also logged in, then the game is soft Part is in front stage operation, and in running background, the chat software can receive respective server hair in running background for the chat software The information sent.
User often occurs that the resource in some application programs abuse terminal causes terminal power consumption to add in using terminal The problem of fast.
In order to solve this problem, the embodiment of the present disclosure provides a kind of management method of application program, and Fig. 1 is according to one A kind of flow chart of the management method of application program shown in exemplary embodiment, applied to terminal, the terminal can be intelligence Mobile phone, computer, multimedia player, electronic reader, wearable device etc..As shown in figure 1, including:
Step 101, obtain history power consumption statistics of the terminal in preset time period, the history power consumption statistical data packet Include the service data for the application program run in preset time period;
Step 102, according to history power consumption statistics, judging should with the presence or absence of the abnormal exception of power consumption in preset time period Use program;
Step 103, when the abnormal abnormal application program of power consumption in preset time period be present, it is different to terminate operation at current time Normal application program.
Wherein, abnormal application program can be foreground application, or background application, due in abuse terminal The application program of resource is usually background application, and therefore, in the disclosed embodiments, abnormal application program is mainly backstage Application program.
In summary, power consumption in preset time period be present in the management method for the application program that the embodiment of the present disclosure provides During the abnormal application program of exception, it can terminate and run the abnormal application program, avoid abnormal application program in terminal The occupancy of resource, solve the problems, such as that the terminal power consumption caused by the resource in application program abuse terminal is accelerated, accordingly, increase The continuation of the journey duration of terminal is added.
Fig. 2-1 is a kind of flow chart of the management method of application program according to an exemplary embodiment, is applied to Terminal, as shown in Fig. 2-1, including:
Step 201, obtain history power consumption statistics of the terminal in preset time period.
The embodiment of the present disclosure assumes that the management method of the application program is applied to android terminal, can be set in android terminal Put a set of power consumption statistical mechanism (English:Battery stats), the power consumption statistical mechanism be used for record terminal every time it is fully charged simultaneously Duration and number of resource in power consumption information and terminal during power-off in each application program using terminal etc..Then can be with Application program management is carried out by the related data of the power consumption of detection terminal, specifically, terminal can be obtained in preset time History power consumption statistics in section is to carry out follow-up application program management.
Wherein, history power consumption statistics is including in preset time period, (preset time period is terminal in power up Period) in operation application program service data, the service data includes resource occupation duration, and/or, resource use Number.The resource occupation duration refers to the duration of the resource in application program occupied terminal, and the resource access times refer to The number of resource in application requests occupied terminal.
Specifically, the step of obtaining history power consumption statistics of the terminal in preset time period can as shown in Fig. 2-2, Including:
Step 2011, at each demarcation moment for pre-setting obtain a power consumption statistics.
In the embodiment of the present disclosure, the demarcation moment is pre-set at the time of meeting certain requirements.For example, opening from terminal The machine moment (also deserving to be called the electric moment) starts, and is a demarcation moment at the time of at interval of preset duration, it is assumed that during the start of mobile phone Carve as 9:00, preset duration is 10 minutes, then it is 9 to demarcate the moment:10、9:20 and 9:30 etc..
In another example the electricity of the terminal includes more lattice electricity, it that is to say and electricity is divided into more lattice, it is each to demarcate the moment and be At the time of one lattice electricity exhausts.Assuming that the electricity of the fully charged battery of mobile phone is 1440 milliamperes, 5 lattice are divided into by 1440 milliamperes, The electricity of every 1 lattice is 288 milliamperes, during due to user's using terminal, runs application program different in terminal, and power consumption is different, Therefore the duration consumed per lattice electricity is also different, for example, exhausting for the first lattice electricity is 10 constantly:00, the consumption of the second lattice electricity The moment is 10 to the greatest extent:10, exhausting for the 3rd lattice electricity is 12 constantly:00, then it is 10 to demarcate the moment:00、10:10 and 12:00.
Step 2012, the period between newest two demarcation moment is defined as preset time period.
It should be noted that two newest demarcation moment are two demarcation moment apart from current time recently.At this In open embodiment, the period between two newest demarcation moment directly can be defined as preset time period, for example, from end At the start moment at end, it is a demarcation moment at the time of at interval of preset duration, or, it is each that to demarcate the moment be lattice electricity At the time of amount exhausts, the period between two newest demarcation moment can be defined as preset time period.
But if using a lattice electricity exhaust at the time of as the demarcation moment, in practical application, it is understood that there may be terminal power consumption compared with Fast situation, for example, user using terminal play play, now the most duration of a lattice power consumption is shorter, that is to say preset time period compared with It is short, and abnormal application program is to need the history power consumption statistics based on certain time length to judge, if preset time period It is shorter, then easily there is situation about judging by accident, for example, a lattice power consumption it is most when a length of 3 minutes, and the resource in occupied terminal when The long application program more than 5 minutes is possible to as the abnormal abnormal application program of power consumption, then the history power consumption statistics of 3 minutes Data deficiencies is to determine abnormal application program.Therefore, first can be counted according to mass data sets a statistical-reference duration (to use History power consumption statistics more than or equal to the statistical-reference duration can be as the base for effectively judging abnormal application program Plinth), then by by two demarcate the moment between duration and statistical-reference time length ratio relatively determine final preset time period. Example, the step of period between newest two demarcation moment is defined as into preset time period is:Judge newest two Whether the duration between the demarcation moment is more than default statistical-reference duration;When between newest two demarcation moment when grow up In default statistical-reference duration, the period between two newest demarcation moment is defined as preset time period.
In actual applications, when the duration between two newest demarcation moment is not more than default statistical-reference duration When, without the period between two newest demarcation moment is defined as into preset time period, but will be newest from penultimate Demarcation moment to the period of object time be defined as preset time period, the object time and the newest mark of above-mentioned penultimate The time difference that timing is carved is statistical-reference duration.It can so ensure that the duration of preset time period sufficiently accurately determines exception Application program.
For example, it is assumed that a length of 10 minutes during statistical-reference, when between two newest demarcation moment when a length of 12 minutes When, then the period between two newest demarcation moment is defined as preset time period;Assuming that two newest demarcation moment Respectively 9:10 and 9:13, then between newest two demarcation moment when a length of 3 minutes when, just will be newest from penultimate The demarcation moment 9:The period of 10 processes cut-off in 10 minutes is defined as preset time period, and the preset time period is 9:10-9: 20。
The differential data of step 2013, the power consumption statistics for obtaining the finish time of preset time period and start time It is defined as history power consumption statistics.
Because terminal can be stored in the power consumption statistics accessed by each demarcation moment pre-set, and it is each The power consumption statistics for demarcating moment acquisition is from the start moment of terminal to the power consumption statistics at demarcation moment, therefore, eventually The power consumption statistics that the finish time of preset time period and start time obtain can be done subtraction by end, and subtraction is transported Obtained differential data is defined as history power consumption statistics.
It refer to table 1, it is assumed that preset time period 9:10-9:20, its start time obtain power consumption statistics be:Should With program A:Take cpu resource when a length of 100 minutes, request is 15 times using the number of cpu resource, takes GPS resources Shi Changwei 50 minutes, request are 10 times using the number of GPS resources;Application program B:Take cpu resource when a length of 50 minutes, Request using cpu resource number be 6 times, take GPS resources when a length of 30 minutes, request using GPS resources number be 7 It is secondary;Finish time obtain power consumption statistics be:Application program A:Take cpu resource when a length of 105 minutes, request use The number of cpu resource be 16 times, take GPS resources when a length of 52 minutes, request using GPS resources number be 12 times;Should With program B:Take cpu resource when a length of 55 minutes, request using cpu resource number be 7 times, take GPS resources when A length of 33 minutes, request was 8 times using the number of GPS resources.Then corresponding power consumption statistics is:Application program A:Take Cpu resource when a length of 5 minutes, request using cpu resource number be 1 time, take GPS resources when a length of 2 minutes, request Number using GPS resources is 2 times;Application program B:Take cpu resource when a length of 5 minutes, request using cpu resource time Number be 1 time, take GPS resources when a length of 3 minutes, request using GPS resources number be 1 time
Table 1
It should be noted that in table 1 simply using cpu resource take the service data such as duration and GPS resource occupation durations as Example illustrates, and the calculation of the acquisition modes of other service datas and corresponding power consumption statistics may be referred to table 1 and remember The mode of record, the embodiment of the present disclosure are not repeated this.
Step 202, according to history power consumption statistics, judging should with the presence or absence of the abnormal exception of power consumption in preset time period Use program.When abnormal application program in preset time period be present, step 203 is performed, should when exception is not present in preset time period With program, step 204 is performed.
In practical application, history power consumption statistics includes the operation number for the application program run in preset time period According to, the service data includes resource occupation duration, and/or, resource access times, due to the resource in terminal may have it is a variety of, For example, central processing unit (English:Central Processing Unit;Referred to as:CPU) resource, system resource or global location System (English:Global Positioning System;Referred to as:GPS) resource etc., for different resources, the operation of acquisition The type of data is also different, accordingly, judges that application program is also different in the standard of preset time period in-fighting electrical anomaly, the disclosure Embodiment illustrates by taking following two aspects as an example.
In a first aspect, due to for cpu resource or system resource, being based primarily upon resource occupation of the application program to the resource Duration judges whether the application program is abnormal application program, then the operation obtained for cpu resource or system resource, terminal Data include resource occupation duration, and the resource occupation duration includes CPU resource occupation duration, and/or, the resource of system resource Duration is taken, then the abnormal criterion of power consumption is:Resource occupation duration is more than default occupancy duration threshold in preset time period Value.The default duration threshold value that takes is the predetermined threshold value of characteristic according to cpu resource and system resource.
Example, for cpu resource, if the default duration threshold value that takes is 1 minute, and it is a certain in preset time period should With program take cpu resource when a length of 2 minutes, then the application program grown up in preset time period during CPU resource occupation Take duration threshold value in default, thus the transition that exists in preset time period to cpu resource of the application program occupy it is caused Power consumption it is abnormal, it is abnormal application program.
It should be noted that the criterion of above-mentioned power consumption exception can also be:Resource occupation duration and preset time period Duration ratio be more than it is default take fractional threshold, the default ratio that takes is more than 0, and less than 1.
Example, for system resource, if the default fractional threshold that takes is 0.5, preset time period when a length of 10 points Clock, and in preset time period a certain application program take cpu resource when a length of 2 minutes, then the resource occupation duration:2 points The duration of clock and preset time period:The ratio of 5 minutes be less than 0.5, therefore the application program in preset time period be not present pair It is abnormal that the transition of system resource occupies caused power consumption.
Second aspect, due to specifying resource for some, these specify attribute and the cpu resource and system resource of resources Attribute is different, and every kind of resource generally has a kind of specific function, such as GPS resources, is based primarily upon application program to the resource Resource occupation duration and resource access times judge whether the application program is abnormal application program, then for specifying resource, The resource occupation duration that terminal obtains includes the resource occupation duration for specifying resource, and the resource access times obtained refer to including this Determine the resource access times of resource, this specifies resource to include:WLAN resource, and/or, GPS resources, and/or, wake up lock (English:WakeLock) resource.Wherein, WLAN resource includes Wireless Fidelity (English:WIreless-FIdelity;Letter Claim:WI-FI) resource.The default duration threshold value and resource access times of taking is that basis specifies the characteristic of resource predetermined Threshold value.The occupancy duration threshold value and resource access times of different specified resources can be the same or different.
Then the abnormal criterion of power consumption is:Resource occupation duration is more than default occupancy duration threshold in preset time period Value, and resource access times are more than default access times threshold value in preset time period, the default access times threshold value is user The numerical value pre-set.
Example, for WI-FI resources, if the default duration threshold value that takes is 1 minute, it is 2 to preset access times threshold value It is secondary, and a length of 2 minutes and resource access times when a certain application program is to the resource occupation of WI-FI resources in preset time period For 3 times (above-mentioned 2 minutes are 3 summations using resource occupation duration during WI-FI resources), then should be answered in preset time period Default occupancy duration threshold value is more than to the resource occupation duration of WI-FI resources with program and WI-FI resources access times are more than in advance If access times threshold value, therefore power consumption exception in preset time period be present in the application program.
It should be noted that a kind of mechanism of lock in the power-supply management system that lock is android terminal is waken up, should as long as having Hold wake-up lock (namely take and wake up lock resource) with program, the system of terminal cannot propagate into dormancy.For example gone out screen in terminal Afterwards, a certain application program holds wake-up lock for a long time, then cause terminal can not dormancy, so as to which power consumption is larger.
Understood based on the abnormal criterion of above-mentioned power consumption, locked for waking up, if the default duration threshold value that takes is 3 points Clock, it is 5 times to preset access times threshold values, and when a certain application program locks the resource occupation of resource to waking up in preset time period A length of 2 minutes and resource access times are 3 times, then the application program is locked the resource of resource to the wake-up and accounted in preset time period Used time length is more than default occupancy duration threshold value and wake-up lock resource access times are more than default access times threshold value, therefore should answer Power consumption exception in preset time period with program be present, then determine that it is abnormal application program.Refer to subsequent step 203 can Know, for the scene, terminal, which can terminate, runs the abnormal application program, is led so as to reduce the long-term wake-up lock of holding of a certain application The power consumption of cause is abnormal.
It should be noted that the criterion of above-mentioned power consumption exception can also be:Resource occupation duration and preset time period Duration ratio be more than it is default take fractional threshold, and resource access times are more than default access times threshold value, and this is default to account for It is more than 0 with ratio, and less than 1.
Example, for GPS resources, if the default fractional threshold that takes is 0.5, it is 5 times to preset access times threshold value, in advance If the period when a length of 10 minutes, and in preset time period a certain application program take GPS resources when a length of 2 minutes and Resource access times are 3 times, then the resource occupation duration:2 minutes with the duration of preset time period:The ratio of 5 minutes is less than Be less than 5 times for 0.5,3 time, thus the application program be not present in preset time period transition to GPS resources occupy it is caused Power consumption is abnormal.
Step 203, terminated at current time and run the abnormal application program.
Optionally, terminal can directly terminate abnormal application program after abnormal application program is detected.
But in actual applications, because the abnormal application program detected may be to enliven application program, the active application Program is the application program that user is used, and it may be multimedia application or the application journey in downloading process Sequence, for example, present terminal is in, the screen that goes out listens song or backstage is downloaded and is easy for occurring in the scene such as TV play above-mentioned actively applying journey Sequence, it is above-mentioned to enliven that application program be pre-set by user or system is set, make in order to avoid application program will be enlivened For the erroneous judgement of abnormal program, therefore, can be wrapped as Figure 2-3 in the step of current time termination operation exception application program Include:
Whether step 2031, the abnormal application program of detection are default to enliven application program.
For example, default application program can be application plays device, download application program etc..
Step 2032, application program is not enlivened to be default when abnormal application program, terminating operation at current time, this is different Normal application program.
Because the abnormal application program does not enliven application program and in preset time period in-fighting electrical anomaly to be default, because This, it should terminated at current time and run the abnormal application program.
It should be noted that work as abnormal application program enlivens application program to be default, subsequent step 204 can be performed.
Step 204, keep terminal in application program operation.
In actual applications, terminal can keep the operation of the application program in terminal, both of these case in both cases Respectively:
The first situation:Refer to step 202, according to history power consumption statistics, judge in preset time period whether After the abnormal abnormal application program of power consumption being present, it is determined that abnormal application program is not present in preset time period, then in terminal not In the presence of abnormal application program, the operation of the application program in terminal is kept.
Second of situation:Step 2031 is refer to, is detecting whether abnormal application program is default to enliven application program Afterwards, determine that the abnormal application program enlivens application program to be default, then illustrate that the predetermined abnormal application program is actual It is upper that exception is not present, then abnormal application program is not actually existed in terminal, keeps the operation of the application program in terminal.
It should be noted that the sequencing of the management method step for the application program that the embodiment of the present disclosure provides can enter The appropriate adjustment of row, step according to circumstances can also accordingly be increased and decreased, and any one skilled in the art is in this public affairs Open in the technical scope of exposure, the method that change can be readily occurred in, should all cover within the protection domain of the disclosure, therefore not Repeat again.
In summary, the management method for the application program that the embodiment of the present disclosure provides, because terminal may determine that pre- If with the presence or absence of the abnormal application program that power consumption is abnormal in the period, when the abnormal application that power consumption exception in preset time period be present During program, then when it is not to preset to enliven application program to judge the abnormal application program, it can terminate and run the exception application journey Sequence, avoid the terminal that abnormal application program is solved to the occupancy of system resource caused by application program misuse of system resources and consume The problem of electricity is accelerated, accordingly, adds the continuation of the journey duration of terminal.
For example, above-mentioned terminal is mobile phone, when using mobile phone, mobile phone can be sentenced user according to acquired history power consumption data Machine of cutting off the hands whether there is the abnormal abnormal application program of power consumption in preset time period, and these abnormal application programs can be long-term Hold the application program for waking up lock, either occupy application program of cpu resource or system resource etc. for a long time, if it is present When it is not to preset to enliven application program to judge the abnormal application program, it can terminate and run the abnormal application program, avoid Abnormal application program solves what the mobile phone power consumption caused by application program misuse of system resources was accelerated to the occupancy of system resource Problem, accordingly, add the continuation of the journey duration of mobile phone.
Fig. 3-1 is a kind of block diagram of the managing device 300 of application program according to an exemplary embodiment, as Fig. 3- Shown in 1, the device includes:Acquisition module 301, judge module 302 and termination module 303.
Acquisition module 301, for obtaining history power consumption statistics of the terminal in preset time period, the history power consumption Statistics includes the service data for the application program run in the preset time period;
Judge module 302, for according to the history power consumption statistics, judging to whether there is in the preset time period The abnormal abnormal application program of power consumption;
Module 303 is terminated, for when the abnormal abnormal application program of power consumption in the preset time period being present, when current Carve to terminate and run the abnormal application program.
In summary, the managing device for the application program that the embodiment of the present disclosure provides, consumed when existing in preset time period During the abnormal application program of electrical anomaly, the abnormal application program is run because termination module can terminate, avoids abnormal application Program is to the occupancy of the resource in terminal, therefore the terminal power consumption solved caused by the resource in application program abuse terminal adds The problem of fast, accordingly, add the continuation of the journey duration of terminal.
Optionally, Fig. 3-2 is a kind of block diagram of acquisition module according to an exemplary embodiment, as shown in figure 3-2, The acquisition module 301, including:Acquisition submodule 3011, the first determination sub-module 3012 and the second determination sub-module 3013.
Acquisition submodule 3011, for obtaining a power consumption statistics at each demarcation moment pre-set, each The power consumption statistics that the demarcation moment obtains is from the start moment of the terminal to the power consumption statistics at the demarcation moment Data;
First determination sub-module 3012, during for the period between newest two demarcation moment to be defined as into described default Between section;
Second determination sub-module 3013, for the power consumption for obtaining the finish time of the preset time period and start time The differential data of statistics is defined as the history power consumption statistics.
Optionally, first determination sub-module 3012, is used for:
Judge whether the duration between two newest demarcation moment is more than default statistical-reference duration;
, will be described newest when the duration between newest two demarcation moment is more than default statistical-reference duration Period between two demarcation moment is defined as the preset time period.
Fig. 3-3 is the block diagram of the managing device 300 of another application program according to an exemplary embodiment, is such as schemed Shown in 3-3, the device includes:Acquisition module 301, judge module 302, terminate module 303 and determining module 304.
Acquisition module 301, for obtaining history power consumption statistics of the terminal in preset time period, the history power consumption Statistics includes the service data for the application program run in the preset time period;
Judge module 302, for according to the history power consumption statistics, judging to whether there is in the preset time period The abnormal abnormal application program of power consumption;
Module 303 is terminated, for when the abnormal abnormal application program of power consumption in the preset time period being present, when current Carve to terminate and run the abnormal application program.
Determining module 304, for joining when the duration between two newest demarcation moment no more than default statistics When examining duration, the preset time period, institute will be defined as from penultimate newest demarcation moment to the period of object time It is the statistical-reference duration to state object time and the time difference at the penultimate newest demarcation moment.
Optionally, the electricity of the terminal includes more lattice electricity, at the time of the demarcation moment is that a lattice electricity exhausts.
Optionally, the termination module 303, is used for:
Detect whether the abnormal application program is default to enliven application program;
When the abnormal application program does not enliven application program to be default, the operation exception is terminated at current time should Use program.
Optionally, the application program of enlivening is multimedia application or the application program in downloading process.
Optionally, the abnormal application program is background application.
Optionally, the service data includes resource occupation duration, and/or, resource access times.
Optionally, the resource occupation duration includes the resource occupation duration of central processor CPU, and/or, system resource Resource occupation duration,
The power consumption includes extremely:
The resource occupation duration is more than default occupancy duration threshold value;Or the resource occupation duration is preset with described The ratio of the duration of period is more than default occupancy fractional threshold.
Optionally, the resource occupation duration includes the resource occupation duration for specifying resource, and the resource access times Include the resource access times of the specified resource, the specified resource includes:WLAN resource, and/or, global location System GPS resources, and/or, wake up lock resource;
The power consumption includes extremely:
The resource occupation duration be more than it is default take duration threshold value, and when the resource access times are more than default take Long threshold value.
In summary, the managing device for the application program that the embodiment of the present disclosure provides, because judge module may determine that With the presence or absence of the abnormal application program that power consumption is abnormal in preset time period, when the exception that power consumption exception in preset time period be present During application program, then when it is not to preset to enliven application program to terminate module to judge the abnormal application program, fortune can be terminated The row abnormal application program, avoids occupancy of the abnormal application program to system resource, therefore solves application program abuse system The problem of terminal power consumption caused by resource of uniting is accelerated, accordingly, adds the continuation of the journey duration of terminal.
The embodiment of the present disclosure provides a kind of terminal, including:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics is included in institute State the service data of the application program of operation in preset time period;
According to the history power consumption statistics, judging should with the presence or absence of the abnormal exception of power consumption in the preset time period Use program;
When the abnormal abnormal application program of power consumption in the preset time period be present, it is described different to terminate operation at current time Normal application program.
Fig. 4 is a kind of block diagram of managing device 400 for application program according to an exemplary embodiment.Example Such as, device 400 can be mobile phone, computer, digital broadcast terminal, messaging device, game console, flat board dress Put, medical treatment device, body-building device, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or Nonvolatile memory devices or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor cluster 414 can be with 400 1 components of detection means 400 or device Position change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and device 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other devices.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing device (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
The embodiment of the present disclosure also provides a kind of storage medium, and the storage medium is non-transitory computer-readable storage medium Matter, when the instruction in the storage medium is being run on processing component so that processing component performs the embodiment of the present disclosure and provided The shared vehicles application method, this method be above-mentioned first client performed by method.
Above-mentioned storage medium can be the storage medium in device 400.
The embodiment of the present disclosure provides a kind of terminal, and the terminal includes the management dress of the application program shown in Fig. 3-1 or Fig. 3-3 Put.Or the terminal includes the managing device of the application program shown in Fig. 4.
In summary, the management method for the application program that the present embodiment provides, because terminal may determine that when default Between in section with the presence or absence of the abnormal application program that power consumption is abnormal, when the abnormal abnormal application program of power consumption in preset time period being present When, then when it is not to preset to enliven application program to judge the abnormal application program, it can terminate and run the abnormal application program, keep away Exempt from the terminal power consumption that abnormal application program solves caused by application program misuse of system resources the occupancy of system resource to add The problem of fast, accordingly, add the continuation of the journey duration of terminal.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit will by right Ask and point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (22)

  1. A kind of 1. management method of application program, it is characterised in that including:
    History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics is included described pre- If the service data of the application program of operation in the period;
    According to the history power consumption statistics, judge in the preset time period with the presence or absence of the exception application journey that power consumption is abnormal Sequence;
    When the abnormal abnormal application program of power consumption in the preset time period be present, the operation exception is terminated at current time should Use program.
  2. 2. according to the method for claim 1, it is characterised in that
    The history power consumption statistics that terminal is obtained in preset time period, including:
    A power consumption statistics, the power consumption system that each demarcation moment obtains are obtained at each demarcation moment pre-set Count as from the start moment of the terminal to the power consumption statistics at the demarcation moment;
    Period between two newest demarcation moment is defined as the preset time period;
    The differential data for the power consumption statistics that the finish time of the preset time period and start time are obtained is defined as institute State history power consumption statistics.
  3. 3. according to the method for claim 2, it is characterised in that
    The period by between two newest demarcation moment is defined as the preset time period, including:
    Judge whether the duration between two newest demarcation moment is more than default statistical-reference duration;
    When the duration between newest two demarcation moment is more than default statistical-reference duration, by described newest two Period between the demarcation moment is defined as the preset time period;
    Methods described also includes:
    , will be from second from the bottom when the duration between newest two demarcation moment is not more than default statistical-reference duration Individual newest demarcation moment to the period of object time is defined as the preset time period, the object time and described reciprocal the The time difference at two newest demarcation moment is the statistical-reference duration.
  4. 4. according to the method for claim 3, it is characterised in that the electricity of the terminal includes more lattice electricity, the demarcation At the time of moment is that a lattice electricity exhausts.
  5. 5. according to the method for claim 1, it is characterised in that
    Described terminated at current time runs the abnormal application program, including:
    Detect whether the abnormal application program is default to enliven application program;
    When the abnormal application program does not enliven application program to be default, at current time, termination runs the exception application journey Sequence.
  6. 6. according to the method for claim 5, it is characterised in that the application program of enlivening is multimedia application or place Application program in downloading process.
  7. 7. according to the method for claim 1, it is characterised in that the abnormal application program is background application.
  8. 8. method according to any one of claims 1 to 7, it is characterised in that
    The service data includes resource occupation duration, and/or, resource access times.
  9. 9. according to the method for claim 8, it is characterised in that
    The resource occupation duration includes the resource occupation duration of central processor CPU, and/or, the resource occupation of system resource Duration,
    The power consumption includes extremely:
    The resource occupation duration is more than default occupancy duration threshold value;Or the resource occupation duration and the preset time The ratio of the duration of section is more than default occupancy fractional threshold.
  10. 10. according to the method for claim 8, it is characterised in that
    The resource occupation duration includes the resource occupation duration for specifying resource, and the resource access times include described specify The resource access times of resource, the specified resource include:WLAN resource, and/or, global position system GPS resource, And/or wake up lock resource;
    The power consumption includes extremely:
    The resource occupation duration is more than default occupancy duration threshold value, and the resource access times are more than default access times threshold Value;
    Or the ratio of the resource occupation duration and the duration of the preset time period is more than default occupancy fractional threshold, and The resource access times are more than default access times threshold value.
  11. A kind of 11. managing device of application program, it is characterised in that including:
    Acquisition module, for obtaining history power consumption statistics of the terminal in preset time period, the history power consumption statistical number The service data for the application program run according to being included in the preset time period;
    Judge module, for according to the history power consumption statistics, judging different with the presence or absence of power consumption in the preset time period Normal abnormal application program;
    Module is terminated, for when the abnormal abnormal application program of power consumption in the preset time period be present, being terminated at current time Run the abnormal application program.
  12. 12. device according to claim 11, it is characterised in that
    The acquisition module, including:
    Acquisition submodule, for obtaining a power consumption statistics, each demarcation at each demarcation moment pre-set The power consumption statistics that moment obtains is from the start moment of the terminal to the power consumption statistics at the demarcation moment;
    First determination sub-module, for the period between two newest demarcation moment to be defined as into the preset time period;
    Second determination sub-module, for the power consumption statistics for obtaining the finish time of the preset time period and start time Differential data be defined as the history power consumption statistics.
  13. 13. device according to claim 12, it is characterised in that
    First determination sub-module, is used for:
    Judge whether the duration between two newest demarcation moment is more than default statistical-reference duration;
    When the duration between newest two demarcation moment is more than default statistical-reference duration, by described newest two Period between the demarcation moment is defined as the preset time period;
    Described device also includes:
    Determining module, for being not more than default statistical-reference duration when the duration between two newest demarcation moment When, the preset time period, the target will be defined as from penultimate newest demarcation moment to the period of object time The time difference at moment and the penultimate newest demarcation moment is the statistical-reference duration.
  14. 14. device according to claim 13, it is characterised in that the electricity of the terminal includes more lattice electricity, the mark At the time of timing quarter exhausts for a lattice electricity.
  15. 15. device according to claim 11, it is characterised in that
    The termination module, is used for:
    Detect whether the abnormal application program is default to enliven application program;
    When the abnormal application program does not enliven application program to be default, at current time, termination runs the exception application journey Sequence.
  16. 16. device according to claim 15, it is characterised in that it is described enliven application program for multimedia application or Application program in downloading process.
  17. 17. device according to claim 11, it is characterised in that the abnormal application program is background application.
  18. 18. according to any described device of claim 11 to 17, it is characterised in that
    The service data includes resource occupation duration, and/or, resource access times.
  19. 19. device according to claim 18, it is characterised in that
    The resource occupation duration includes the resource occupation duration of central processor CPU, and/or, the resource occupation of system resource Duration,
    The power consumption includes extremely:
    The resource occupation duration is more than default occupancy duration threshold value;Or the resource occupation duration and the preset time The ratio of the duration of section is more than default occupancy fractional threshold.
  20. 20. device according to claim 18, it is characterised in that
    The resource occupation duration includes the resource occupation duration for specifying resource, and the resource access times include described specify The resource access times of resource, the specified resource include:WLAN resource, and/or, global position system GPS resource, And/or wake up lock resource;
    The power consumption includes extremely:
    The resource occupation duration is more than default occupancy duration threshold value, and the resource access times take duration threshold more than default Value.
  21. A kind of 21. terminal, it is characterised in that including:
    Processor;
    For the memory for the executable instruction for storing the processor;
    Wherein, the processor is configured as:
    History power consumption statistics of the terminal in preset time period is obtained, the history power consumption statistics is included described pre- If the service data of the application program of operation in the period;
    According to the history power consumption statistics, judge in the preset time period with the presence or absence of the exception application journey that power consumption is abnormal Sequence;
    When the abnormal abnormal application program of power consumption in the preset time period be present, the operation exception is terminated at current time should Use program.
  22. 22. a kind of storage medium, it is characterised in that instruction is stored with the storage medium, the finger in the storage medium Order on processing component when running so that processing component performs the method as described in claim 1 to 10 is any.
CN201710666038.6A 2017-08-07 2017-08-07 Management method and device, terminal, the storage medium of application program Pending CN107506019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710666038.6A CN107506019A (en) 2017-08-07 2017-08-07 Management method and device, terminal, the storage medium of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710666038.6A CN107506019A (en) 2017-08-07 2017-08-07 Management method and device, terminal, the storage medium of application program

Publications (1)

Publication Number Publication Date
CN107506019A true CN107506019A (en) 2017-12-22

Family

ID=60690022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710666038.6A Pending CN107506019A (en) 2017-08-07 2017-08-07 Management method and device, terminal, the storage medium of application program

Country Status (1)

Country Link
CN (1) CN107506019A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108541013A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109521865A (en) * 2018-10-31 2019-03-26 北京小米移动软件有限公司 Detection method, device, storage medium and the mobile terminal of power consumption application
WO2019128546A1 (en) * 2017-12-29 2019-07-04 Oppo广东移动通信有限公司 Application program processing method, electronic device, and computer readable storage medium
CN110046030A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110908851A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Abnormal application detection and control method, device, terminal and storage medium
CN110908494A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Method, device, terminal and storage medium for detecting and controlling to-be-managed application
CN111190476A (en) * 2019-12-30 2020-05-22 秒针信息技术有限公司 Method and device for determining operating state, storage medium and electronic device
CN113268131A (en) * 2020-02-14 2021-08-17 北京小米移动软件有限公司 Method, apparatus and medium for predicting endurance information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
US20150121383A1 (en) * 2013-01-25 2015-04-30 Huawei Device Co., Ltd. Application Heartbeat Period Adjusting Method and Apparatus, and Terminal
CN105955441A (en) * 2016-04-21 2016-09-21 北京小米移动软件有限公司 Method and device for application management
CN106095478A (en) * 2016-05-31 2016-11-09 刘华英 Mode control method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150121383A1 (en) * 2013-01-25 2015-04-30 Huawei Device Co., Ltd. Application Heartbeat Period Adjusting Method and Apparatus, and Terminal
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN105955441A (en) * 2016-04-21 2016-09-21 北京小米移动软件有限公司 Method and device for application management
CN106095478A (en) * 2016-05-31 2016-11-09 刘华英 Mode control method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128546A1 (en) * 2017-12-29 2019-07-04 Oppo广东移动通信有限公司 Application program processing method, electronic device, and computer readable storage medium
CN110046030A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN108541013A (en) * 2018-03-29 2018-09-14 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN108541013B (en) * 2018-03-29 2022-06-10 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN110908851A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Abnormal application detection and control method, device, terminal and storage medium
CN110908494A (en) * 2018-09-14 2020-03-24 中兴通讯股份有限公司 Method, device, terminal and storage medium for detecting and controlling to-be-managed application
CN109521865A (en) * 2018-10-31 2019-03-26 北京小米移动软件有限公司 Detection method, device, storage medium and the mobile terminal of power consumption application
CN111190476A (en) * 2019-12-30 2020-05-22 秒针信息技术有限公司 Method and device for determining operating state, storage medium and electronic device
CN113268131A (en) * 2020-02-14 2021-08-17 北京小米移动软件有限公司 Method, apparatus and medium for predicting endurance information
CN113268131B (en) * 2020-02-14 2024-01-09 北京小米移动软件有限公司 Method, device and medium for predicting endurance information

Similar Documents

Publication Publication Date Title
CN107506019A (en) Management method and device, terminal, the storage medium of application program
CN104239094B (en) Control method, device and the terminal device of background application
CN104298547B (en) terminal setting method and device
CN105653323B (en) Application management method and device
CN104618218B (en) Message prompt method and device
CN105095345B (en) The reminding method and device of PUSH message
CN105933539B (en) audio playing control method and device and terminal
CN104951335B (en) The processing method and processing device of application program installation kit
US20170055221A1 (en) Method and apparatus for starting energy saving mode
CN105512545B (en) Access rights management method and device
CN106371643B (en) Touch chip crash handling method and device
CN106488335A (en) Live-broadcast control method and device
CN107608853A (en) Control method, device, storage medium and the intelligent terminal of terminal usage time
CN104394137B (en) A kind of method and device of prompting voice call
CN107666540B (en) Terminal control method, device and storage medium
CN105807894B (en) Using the treating method and apparatus for holding lock
KR20170035829A (en) Method and device for managing alarm clock, electronic device
CN106371831A (en) Awakening control method and device and terminal
CN105163189B (en) Preengage method, server and the terminal of multimedia programming
CN107438811A (en) One kind breath screen shows method and device
CN103905442B (en) Awakening method and device in a kind of data syn-chronization
CN106125899A (en) Method and device for stopping process and mobile terminal
CN106941572A (en) Incoming call reminding method and device
CN107783790A (en) terminal awakening method and device
CN109547633A (en) A kind of based reminding method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171222