CN107450709B - Application processing method, device, storage medium and electronic equipment - Google Patents
Application processing method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107450709B CN107450709B CN201710643041.6A CN201710643041A CN107450709B CN 107450709 B CN107450709 B CN 107450709B CN 201710643041 A CN201710643041 A CN 201710643041A CN 107450709 B CN107450709 B CN 107450709B
- Authority
- CN
- China
- Prior art keywords
- application
- priority
- service
- background application
- self
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
Abstract
The embodiment of the invention discloses a kind of application processing method, device, storage medium and electronic equipments.The application processing method, the second service set started by the first service set and foreground application that obtain in front stage operation, from filtering out the destination service being not present in second service set in first service set, obtain destination service set, then it obtains and applies white list, it include the application of preset kind using white list, then it binds and is not present in using the related background application in white list to destination service from being determined in background application set, finally adjust the priority of background application, make the priority of related background application lower than the priority of other background applications in background application set.The program can filter out the malicious application in foreground initiation service, and its priority is turned down, so that these malicious applications are easier to be recovered, so as to reduce powder consumption of electronic equipment according to the operating condition of service and using white list from background application.
Description
Technical field
The present invention relates to fields of communication technology more particularly to a kind of application processing method, device, storage medium and electronics to set
It is standby.
Background technique
With the development of internet with the development of mobile communications network, while also along with the processing capacity of electronic equipment and
The application of the fast development of storage capacity, magnanimity has obtained rapid propagation and use.
In the related technology, rogue program realizes keep-alive using system vulnerability starting foreground service, and without interface display, uses
Family can not realize that such process is being run, and actually it is in front stage operation, and its priority is higher with respect to background process, so that
More difficult recycling malicious process, causes power consumption of terminal larger.
Summary of the invention
The embodiment of the present invention provides a kind of application processing method, device, storage medium and electronic equipment, can reduce electronics
Equipment power dissipation.
In a first aspect, the embodiment of the present invention provides a kind of application processing method, it is applied to electronic equipment, the method packet
It includes:
Obtaining first service set and second service set, wherein first service set includes the service in front stage operation,
Second service set includes the service that foreground application is started;
From the destination service being not present in second service set is filtered out in first service set, destination service collection is obtained
It closes;
It obtains and applies white list, described includes the application of preset kind using white list;
From in background application set determine in destination service set destination service bind and be not present in it is described apply it is white
Related background application in list;
The priority for adjusting background application makes the priority of the related background application lower than its in background application set
The priority of his background application.
Second aspect applies processing unit the embodiment of the invention provides a kind of, is applied to electronic equipment, described device packet
It includes:
First obtains module, for obtaining first service set and second service set, wherein first service set includes
In the service of front stage operation, second service set includes the service that foreground application is started;
Screening module, for from filtering out the destination service being not present in second service set in first service set,
Obtain destination service set;
Second obtains module, applies white list for obtaining, and described includes the application of preset kind using white list;
Determining module, for binding and being not present with destination service in destination service set from determining in background application set
In the related background application using in white list;
Adjustment module makes the priority of the related background application lower than backstage for adjusting the priority of background application
The priority of other background applications in set of applications.
The third aspect is stored with a plurality of finger the embodiment of the invention also provides a kind of storage medium in the storage medium
It enables, described instruction is suitable for being loaded by processor to execute above-mentioned application processing method.
Fourth aspect, the embodiment of the invention also provides a kind of electronic equipment, including processor and memory, the processing
Device and the memory are electrically connected, and the memory is for storing instruction and data;Processor is for executing above-mentioned application
Processing method.
The embodiment of the invention discloses a kind of application processing method, device, storage medium and electronic equipments.The application processing
Method, the second service set started by the first service set and foreground application that obtain in front stage operation, from the first clothes
The destination service being not present in second service set is filtered out in business set, obtains destination service set, then obtains application
White list includes the application of preset kind using white list, then from background application set it is determining with destination service binding and
It is not present in finally adjusting the priority of background application using the related background application in white list, making related background application
Priority of the priority lower than other background applications in background application set.The program can according to the operating condition of service with
And white list is applied, the malicious application in foreground initiation service is filtered out from background application, and its priority is turned down, so that
These malicious applications are easier to be recovered, so as to reduce powder consumption of electronic equipment.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the schematic diagram of a scenario of application processing method provided in an embodiment of the present invention.
Fig. 2 is a kind of flow diagram of application processing method provided in an embodiment of the present invention.
Fig. 3 is another flow diagram provided in an embodiment of the present invention using processing unit.
Fig. 4 is another schematic diagram of a scenario of application processing method provided in an embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram provided in an embodiment of the present invention using processing unit.
Fig. 6 is another structural schematic diagram provided in an embodiment of the present invention using processing unit.
Fig. 7 is another structural schematic diagram provided in an embodiment of the present invention using processing unit.
Fig. 8 is a kind of structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Fig. 9 is another structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of application processing method, device, storage medium and electronic equipment.Below will respectively into
Row is described in detail.
Referring to Fig. 1, Fig. 1 is the schematic diagram of a scenario of application processing method provided in an embodiment of the present invention.
Such as figure, electronic equipment (such as smart phone, tablet computer) is interior to be equipped with different application: APP1~APP16.It is first
First, the second service set that the first service set and foreground application for obtaining front stage operation are started.Then, from first service collection
The destination service being not present in second service set is filtered out in conjunction, obtains destination service set, and obtain using white list
(such as APP1~APP3), it includes the application of preset kind that this, which applies white list,.Then, from background application set (such as APP1~
APP9) the determining background application (such as APP3~APP5) with destination service binding in destination service set, then from the backstage of binding
Using determining to be not belonging in (such as APP3~APP5) to make using the related background application (such as APP4 and APP5) in white list
For malicious application.Then, the priority of background application (APP1~APP9) is adjusted, make the correlation background application (such as APP4 with
APP5 priority) is preferential lower than other background applications (such as APP1~APP3, APP6~APP9) in background application set
Grade, so that malicious application priority reduces and is easier to be recovered.
In one embodiment, a kind of application processing method is provided, as shown in Fig. 2, process can be such that
S110, first service set and second service set are obtained, wherein first service set includes in front stage operation
Service, second service set includes the service that foreground application is started.
Wherein, service is the Service of one of four big components, does not have user interface, is played the part of using account at each
The important role of person.Service can be allowed to continue to remain operational state, such as sound on foreground when application retreats to running background when necessary
It is happy to play application, when music application retreats to running background, it still music can be played on foreground, be opened on foreground
The service of having opened is to continue to play music.
In some embodiments, all services having turned in available system, when it is implemented, task pipe can be passed through
Reason device checks that the relevant information of respective services obtains first service set to be screened out from it the service of front stage operation.Then,
Can determine whether, which currently whether there is, applies in front stage operation, and if it exists, then triggers acquisition of information instruction, is instructed according to this acquisition of information
The service that this foreground application is started is obtained, to obtain second service set.Wherein, first service set may include foreground application
And/or the service of background application occupied foreground, include in second service set the occupied foreground service of foreground application and/or
Background service.
It may include service identifiers number in above-mentioned first service set, second service set.In addition, it may further comprise Service name
Title, service describing etc..
S120, from the destination service being not present in second service set is filtered out in first service set, obtain target
Set of service.
Specifically, first service set can be matched with second service set, obtains first service set and second
Then common service in set of service filters out the service entry in addition to the common service from first set, using as target
Service.
For example, including servicing in first service set: Seevice1, Seevice2, Seevice3, Seevice4, second
Set of service includes service: Seevice1, Seevice6.Then, it is filtered out from first service set and is not present in second service
Destination service in set, i.e. Seevice2, Seevice3, Seevice4.
S130, it obtains and applies white list, it includes the application of preset kind that this, which applies white list,.
Wherein, it can be configured by those skilled in the art or production firm using white list, generally, using white name
Application in list can be the application of audio broadcast message class, such as various music players.
S140, it binds and is not present in using white with destination service in destination service set from determination in background application set
Related background application in list.
Specifically, the corresponding User ID of available destination service (i.e. UID) is determined by UID and uses this destination service
Application, as destination service binding application.Then, it from the application that destination service is bound, filters out except using white list
Except background application, using as related background application.In embodiments of the present invention, which is to operate in backstage
And in the application of foreground initiation service, therefore, to a certain extent it is believed that such application is malicious application.
S150, the priority for adjusting background application, make the priority of the correlation background application lower than in background application set
Other background applications priority.
Specifically, the priority of above-mentioned related background application (i.e. malicious application) is turned down, so that being closed executing application
When closing, such application can be preferentially closed.Wherein, other background applications in background application set include above-mentioned and target
Service binding and in using the background application in white list, and the not background application with destination service binding.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of application processing method, by obtaining the first of front stage operation
The second service set that set of service and foreground application are started, filters out from first service set and is not present in second service
Destination service in set obtains destination service set, then obtains and applies white list, includes preset kind using white list
Using then with destination service binding and being not present in answering from the background using related in white list from determining in background application set
With finally adjusting the priority of background application, make the priority of related background application lower than after other in background application set
The priority of platform application.The program can be filtered out from background application according to the operating condition of service and using white list
It is turned down in the malicious application of foreground initiation service, and by its priority, so that these malicious applications are easier to be recovered, so as to
Reduce powder consumption of electronic equipment.
In one embodiment, another application processing method is also provided, as shown in figure 3, process can be such that
S210, first service set and second service set are obtained, wherein first service set includes in front stage operation
Service, second service set includes the service that foreground application is started.
In some embodiments, all services having turned in available system, when it is implemented, task pipe can be passed through
Reason device checks that the relevant information of respective services obtains first service set to be screened out from it the service of front stage operation.Then,
Can determine whether, which currently whether there is, applies in front stage operation, and if it exists, then triggers acquisition of information instruction, is instructed according to this acquisition of information
The service that this foreground application is started is obtained, to obtain second service set.Wherein, first service set may include foreground application
And/or the service of background application occupied foreground, include in second service set the occupied foreground service of foreground application and/or
Background service.
It may include service identifiers number in above-mentioned first service set, second service set.In addition, it may further comprise Service name
Title, service describing etc..
S220, from the destination service being not present in second service set is filtered out in first service set, obtain target
Set of service.
Specifically, first service set can be matched with second service set, obtains first service set and second
Then common service in set of service filters out the service entry in addition to the common service from first set, using as target
Service.
For example, including servicing in first service set: Seevice1, Seevice2, Seevice3, Seevice4, second
Set of service includes service: Seevice1, Seevice6.Then, it is filtered out from first service set and is not present in second service
Destination service in set, i.e. Seevice2, Seevice3, Seevice4.
S230, it obtains and applies white list, it includes the application of preset kind that this, which applies white list,.
Wherein, it can be configured by those skilled in the art or production firm using white list, generally, using white name
Application in list can be the application of audio broadcast message class, such as various music players.
S240, it binds and is not present in using white with destination service in destination service set from determination in background application set
Related background application in list.
Specifically, the corresponding UID of available destination service determines the application for using this destination service by UID, as
The application of destination service binding.Then, it from the application that destination service is bound, filters out the backstage in addition to application white list and answers
With using as related background application.In embodiments of the present invention, which is to operate in from the background and in foreground initiation
The application of service, therefore, to a certain extent it is believed that such application is malicious application.
250, different levels are divided, related background application are distributed to the first level, by other in background application set
Background application is distributed to the second level.
In some embodiments, above-mentioned related background application (i.e. malicious application) can be divided into same level, it will backstage
In other background applications (bound with destination service and in using the background application in white list, and not with mesh
Mark the background application of service binding) it is divided into same level.
260, different levels are arranged with different priority, so that the priority of the first level is preferential lower than the second level
Grade.
Specifically, the priority of (i.e. malicious application) will be applied to turn down in the first level, so that closing executing application
When, such application can be preferentially closed.
In some embodiments, priority can be indicated with numerical value.And in different operating system, represented by numerical values recited
Priority height may not be identical.For example, the smaller expression priority of numerical value is higher in Linux system, numerical value is bigger to indicate preferential
Grade is lower;And in windows system, the smaller expression priority of numerical value is lower, and numerical value is bigger, and expression priority is higher.Therefore exist
When it is implemented, can be according to the operating system of electronic equipment actual installation, the setting rule based on the operating system, setting is used for
Indicate the numerical values recited of priority.
In some embodiments, after different priority being set to the first level and the second level, this method further include:
Obtain self-starting information of each correlation background application in the first historical time section, self-starting information in the first level
It include: self-starting frequency and self-starting operation duration;
According to self-starting frequency and the self-starting operation duration, the corresponding self-starting parameter of correlation background application is obtained
Value;
According to the size of self-starting parameter value, the priority of each related background application in the first level is adjusted, wherein open certainly
The more big corresponding priority of dynamic parameter value is lower.
Specifically, self-starting refers to using voluntarily triggering starting rather than is triggered and started by user.Wherein, when self-starting is run
Duration after length refers to after related background application self-starting, between the closing of its first time.
In some embodiments, step " according to self-starting frequency and self-starting operation duration, obtains related background application pair
The self-starting parameter value answered ", may include following below scheme:
It is obtained from corresponding first weighted value of initiation culture and corresponding second weighted value of self-starting operation duration;
According to the first weighted value and second weighted value, self-starting frequency and the self-starting operation duration are added
Power processing, obtains weighted value;
Using weighted value as the corresponding self-starting parameter value of related background application.
Wherein, corresponding first weighted value of self-starting frequency and corresponding second weighted value of self-starting operation duration are equal
Can based on actual demand set, such as the first weighted value can be 30%, 40%, 50%, the second weighted value can be 70%,
60%, 50% etc..
Correspondingly, in some embodiments, after to the first level and the second level, different priority is set, the party
Method can also include:
Obtain each background application in the second level enlivens parameter value, this enlivens parameter value according to background application
Operation information in two historical time sections generates;
According to the size for enlivening parameter value, the priority of each background application in the second level is adjusted, wherein enliven parameter value
More big corresponding priority is higher.
Wherein, which may include the information such as operation duration, access times, the initiation culture of application.This is actively joined
Numerical value can then be in advance based on the operation informations such as operation duration, access times, initiation culture, calculated and obtained using correlation model algorithm
It arrives, uses each data using frequent degree to be characterized in user in certain time interval.It is bigger to enliven parameter value, then using getting over
Frequently, it correspondingly just should more remain.Therefore, application to enliven its bigger corresponding priority setting of parameter value higher,
It then indicates to be more difficult to be recovered.
270, it when detecting that CPU usage is greater than preset threshold, receives and applies out code.
Wherein, CPU usage, that is, the cpu resource that the application run occupies indicate the operation journey of machine at some time point
The case where sequence.Utilization rate is higher, illustrates that machine has run many programs on this time, otherwise less.The height of utilization rate
There is direct relation with CPU power.Modern time-interval control is all that time-slotting is used to CPU, such as: A program
10ms is occupied, B program occupies 30ms, idle 60ms, then is again that A program accounts for 10ms, and B program accounts for 30ms, idle 60ms;If
It is not always the case in a period of time, then the occupancy in this period is 40%.
Wherein, default frequency of use can be hardware performance based on CPU itself, other hardware configurations in electronic equipment,
The multiple factors such as electronic device system and software optimization, the conjunction obtained after those skilled in the art repeatedly test
Manage a reference value of the CPU usage upper limit.For example, may be configured as 70%, 80% etc..
When it is implemented, can be in electronic equipment installation capability monitor to monitoring CPU utilization rate.When detecting that CPU makes
When being higher than default utilization rate with rate, load will be regarded as reaching the upper limit, can trigger receive out code at this time.
280, it according to out code is applied, by the sequence of each background application priority from low to high, successively closes corresponding
Background application, until CPU usage is equal to or less than preset threshold.
It specifically, can be according to the sequence of priority from low to high, included in the corresponding each process group of background application
In process, the application for choosing corresponding number is freezed.
For example, with reference to Fig. 4, the sequence of the priority of background application APP1~APP5 from high to low if it exists are as follows: APP6 >
APP1 > APP2 > APP3 > APP5 > APP4 can be then first shut off using APP4, followed by process APP5 is freezed, then can freeze into
Journey APP3, and so on.
In order to guarantee not cause excessive influence to background application, it can ensure that CPU usage is reduced to default utilization rate
Under the premise of, need to only freeze operation be carried out to suitable process, temporarily cease the operation of certain processes.
It still by taking above-mentioned APP1~APP6 as an example, is first shut off using APP4, then judgement is closed uses using CPU after APP6
Whether rate is lower than default utilization rate, if be not down to default frequency of use or hereinafter, if continue from remaining background application (i.e.
APP1~APP3, APP5, APP6) in, next application (i.e. APP1) that need to be closed is chosen, until CPU usage is lower than default
Utilization rate, or until all background applications are closed.
From the foregoing, it will be observed that application processing method provided in an embodiment of the present invention, by obtaining the first service in front stage operation
The second service set that set and foreground application are started, filters out from first service set and is not present in second service set
In destination service, obtain destination service set, then obtain apply white list, include answering for preset kind using white list
With then with destination service binding and being not present in answering from the background using related in white list from determining in background application set
With finally adjusting the priority of background application, make the priority of related background application lower than after other in background application set
The priority of platform application.The program can be filtered out from background application according to the operating condition of service and using white list
It is turned down in the malicious application of foreground initiation service, and by its priority, so that these malicious applications are easier to be recovered, so as to
Reduce powder consumption of electronic equipment.
In still another embodiment of the process, also provide it is a kind of using processing unit, this using processing unit can with software or
The form of hardware is integrated in the electronic device, which can specifically include mobile phone, tablet computer, laptop etc. and set
It is standby.As shown in figure 5, this may include the first acquisition module 301, the acquisition mould of screening module 302, second using processing unit 300
Block 303, determining module 304 and adjustment module 305, in which:
First obtains module 301, for obtaining first service set and second service set, wherein first service set
Including the service in front stage operation, second service set includes the service that foreground application is started;
Screening module 302, for from filtered out in first service set be not present in second service set target clothes
Business, obtains destination service set;
Second obtains module 303, applies white list for obtaining, includes the application of preset kind using white list;
Determining module 304, for being bound from determination in background application set with destination service in destination service set and not
It is present in using the related background application in white list;
Adjustment module 305 answers the priority of related background application lower than backstage for adjusting the priority of background application
With the priority of other background applications in set.
In some embodiments, with reference to Fig. 6, adjustment module 305 includes:
It divides submodule 3051 to distribute related background application to the first level for dividing different levels, will answer from the background
It is distributed with other background applications in set to the second level;
Submodule 3052 is set, for different levels to be arranged with different priority, so that the priority of the first level is low
In the priority of the second level.
With reference to Fig. 7, in some embodiments, device further include:
Third obtains mould 306, for receiving and applying out code when detecting that CPU usage is greater than preset threshold;
Closedown module 307, for according to out code is applied, by the sequence of each background application priority from low to high, according to
It is secondary to close corresponding background application, until CPU usage is equal to or less than preset threshold.
From the foregoing, it will be observed that provided in an embodiment of the present invention apply processing unit, by obtaining the first service in front stage operation
The second service set that set and foreground application are started, filters out from first service set and is not present in second service set
In destination service, obtain destination service set, then obtain apply white list, include answering for preset kind using white list
With then with destination service binding and being not present in answering from the background using related in white list from determining in background application set
With finally adjusting the priority of background application, make the priority of related background application lower than after other in background application set
The priority of platform application.The program can be filtered out from background application according to the operating condition of service and using white list
It is turned down in the malicious application of foreground initiation service, and by its priority, so that these malicious applications are easier to be recovered, so as to
Reduce powder consumption of electronic equipment.
A kind of electronic equipment is also provided in still another embodiment of the process, which can be smart phone, plate
Apparatus such as computer.As shown in figure 8, electronic equipment 400 includes processor 401 and memory 402.Wherein, processor 401 and storage
Device 402 is electrically connected.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the entire electronic equipment of connection
Various pieces by the application of operation or load store in memory 402, and call the number being stored in memory 402
According to, execute electronic equipment various functions and processing data, thus to electronic equipment carry out integral monitoring.
In the present embodiment, processor 401 in electronic equipment 400 can according to following step, by one or one with
On the corresponding instruction of process of application be loaded into memory 402, and run by processor 401 and be stored in memory 402
In application, to realize various functions:
Obtaining first service set and second service set, wherein first service set includes the service in front stage operation,
Second service set includes the service that foreground application is started;
From the destination service being not present in second service set is filtered out in first service set, destination service collection is obtained
It closes;
It obtains and applies white list, include the application of preset kind using white list;
It binds and is not present in using white list with destination service in destination service set from determination in background application set
Interior related background application;
The priority for adjusting background application makes the priority of related background application lower than after other in background application set
The priority of platform application.
In some embodiments, processor 401 executes following steps:
Different levels are divided, related background application is distributed to the first level, by other backstages in background application set
Using distribution to the second level;
Different levels are arranged with different priority, so that the priority of the first level is lower than the priority of the second level.
In some embodiments, after different priority being arranged to the first level and the second level, processor 401 can be held
Row following steps:
Obtain self-starting information of each correlation background application in the first historical time section, self-starting information in the first level
It include: self-starting frequency and self-starting operation duration;
According to self-starting frequency and self-starting operation duration, the corresponding self-starting parameter value of correlation background application is obtained;
According to the size of self-starting parameter value, the priority of each related background application in the first level is adjusted, wherein open certainly
The more big corresponding priority of dynamic parameter value is lower.
In some embodiments, processor 401 further performs the step of:
It is obtained from corresponding first weighted value of initiation culture and corresponding second weighted value of self-starting operation duration;
According to the first weighted value and the second weighted value, processing is weighted to self-starting frequency and self-starting operation duration,
Obtain weighted value;
Using weighted value as the corresponding self-starting parameter value of related background application.
In some embodiments, after different priority being arranged to the first level and the second level, processor 401 is also held
Row following steps:
Obtain each background application in the second level enlivens parameter value, enlivens parameter value according to background application second
Operation information in historical time section generates;
According to the size for enlivening parameter value, the priority of each background application in the second level is adjusted, wherein enliven parameter value
More big corresponding priority is higher.
In some embodiments, processor 401 also executes following steps:
When detecting that CPU usage is greater than preset threshold, receives and apply out code;
According to out code is applied, by the sequence of each background application priority from low to high, corresponding backstage is successively closed
Using until CPU usage is equal to or less than preset threshold.
Memory 402 can be used for storing application and data.Including in the application that memory 402 stores can be in the processor
The instruction of execution.Using various functional modules can be formed.Processor 401 is stored in the application of memory 402 by operation, from
And perform various functions application and data processing.
In some embodiments, as shown in figure 9, electronic equipment 400 further include: display screen 403, control circuit 404, radio frequency
Circuit 405, input unit 406, voicefrequency circuit 407, sensor 408 and power supply 409.Wherein, processor 401 respectively with display
Screen 403, control circuit 404, radio circuit 405, input unit 406,409 electricity of voicefrequency circuit 407, sensor 408 and power supply
Property connection.
Display screen 403 can be used for showing information input by user or be supplied to user information and electronic equipment it is each
Kind graphical user interface, these graphical user interface can be made of image, text, icon, video and any combination thereof.
Control circuit 404 and display screen 403 are electrically connected, and show information for controlling display screen 403.
Radio circuit 405 is used for transceiving radio frequency signal, to build by wireless communication with the network equipment or other electronic equipments
Vertical wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
Input unit 406 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Wherein,
Input unit 406 may include fingerprint recognition mould group.
Voicefrequency circuit 407 can provide the audio interface between user and electronic equipment by loudspeaker, microphone.
Sensor 408 is for acquiring external environmental information.Sensor 408 may include ambient light sensor, acceleration
Sensor, optical sensor, motion sensor and other sensors.
All parts of the power supply 409 for electron equipment 400 are powered.In some embodiments, power supply 409 can pass through
Power-supply management system and processor 401 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
Although being not shown in Fig. 9, electronic equipment 400 can also include camera, bluetooth module etc., and details are not described herein.
From the foregoing, it will be observed that electronic equipment provided in an embodiment of the present invention, by obtaining the first service set in front stage operation
The second service set started with foreground application, is not present in second service set from filtering out in first service set
Destination service obtains destination service set, then obtains and applies white list, includes the application of preset kind using white list, connect
With destination service binding and be not present in applying the related background application in white list from determining in background application set, finally
The priority for adjusting background application makes the priority of related background application lower than other background applications in background application set
Priority.The program can be filtered out from background application and be opened on foreground according to the operating condition of service and using white list
The malicious application of dynamic service, and its priority is turned down, so that these malicious applications are easier to be recovered, so as to reduce electronics
Equipment power dissipation.
In some embodiments, a kind of storage medium is additionally provided, a plurality of instruction is stored in the storage medium, the instruction
Suitable for being loaded by processor to execute any of the above-described application processing method.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Term " one " and " described " and similar word have been used during describing idea of the invention (especially
In the appended claims), it should be construed to not only cover odd number by these terms but also cover plural number.In addition, unless herein
In be otherwise noted, otherwise herein narration numberical range when referred to merely by quick method and belong to the every of relevant range
A independent value, and each independent value is incorporated into this specification, just as these values have individually carried out statement one herein
Sample.In addition, unless otherwise stated herein or context has specific opposite prompt, otherwise institute described herein is methodical
Step can be executed by any appropriate order.Change of the invention is not limited to the step of description sequence.Unless in addition
Advocate, is otherwise all only using any and all example or exemplary language presented herein (for example, " such as ")
Idea of the invention is better described, and not the range of idea of the invention limited.Spirit and model are not being departed from
In the case where enclosing, those skilled in the art becomes readily apparent that a variety of modifications and adaptation.
Application processing method, device, storage medium and electronic equipment is provided for the embodiments of the invention above to carry out
It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments
Illustrate to be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to this
The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as limitation of the present invention.
Claims (11)
1. a kind of application processing method is applied to electronic equipment, which is characterized in that the described method includes:
Obtaining first service set and second service set, wherein first service set includes the service in front stage operation, and second
Set of service includes the service that foreground application is started;
From the destination service being not present in second service set is filtered out in first service set, destination service set is obtained;
It obtains and applies white list, described includes the application of preset kind using white list;
It binds and is not present in described using white list with destination service in destination service set from determination in background application set
Interior related background application;
The priority for adjusting background application makes the priority of the related background application lower than after other in background application set
The priority of platform application.
2. if application processing method described in claim 1, which is characterized in that the priority for adjusting background application makes the phase
The priority of pass background application is lower than the step of priority of other background applications in background application set, comprising:
Different levels are divided, the related background application are distributed to the first level, by other in the background application set
Background application is distributed to the second level;
Different levels are arranged with different priority, so that the priority of the first level is lower than the priority of the second level.
3. application processing method as claimed in claim 2, which is characterized in that the first level and the second level are arranged different
After priority, the method also includes:
Obtain self-starting information of each correlation background application in the first historical time section, the self-starting information in the first level
It include: self-starting frequency and self-starting operation duration;
According to the self-starting frequency and the self-starting operation duration, the corresponding self-starting ginseng of the related background application is obtained
Numerical value;
According to the size of the self-starting parameter value, the priority of each related background application in the first level is adjusted, wherein open certainly
The more big corresponding priority of dynamic parameter value is lower.
4. application processing method as described in claim 3, which is characterized in that described according to the self-starting frequency and described
Self-starting operation duration, the step of obtaining the related background application corresponding self-starting parameter value, comprising:
Obtain corresponding first weighted value of the self-starting frequency and corresponding second weight of the self-starting operation duration
Value;
According to the first weighted value and second weighted value, the self-starting frequency and the self-starting operation duration are added
Power processing, obtains weighted value;
Using the weighted value as the corresponding self-starting parameter value of the correlation background application.
5. application processing method as claimed in claim 2, which is characterized in that the first level and the second level are arranged different
After priority, the method also includes:
Obtain each background application in the second level enlivens parameter value, and the parameter value that enlivens exists according to the background application
Operation information in second historical time section generates;
According to the size for enlivening parameter value, the priority of each background application in the second level is adjusted, wherein enliven parameter value
More big corresponding priority is higher.
6. application processing method as described in any one in claim 1-5, which is characterized in that the method also includes:
When detecting that CPU usage is greater than preset threshold, receives and apply out code;
Out code is applied according to described, by the sequence of each background application priority from low to high, successively closes corresponding backstage
Using until CPU usage is equal to or less than the preset threshold.
7. a kind of apply processing unit, it is applied to electronic equipment, which is characterized in that described device includes:
First obtains module, for obtaining first service set and second service set, wherein before first service set is included in
The service of platform operation, second service set includes the service that foreground application is started;
Screening module, for obtaining from the destination service being not present in second service set is filtered out in first service set
Destination service set;
Second obtains module, applies white list for obtaining, and described includes the application of preset kind using white list;
Determining module, for being bound from determination in background application set with destination service in destination service set and being not present in institute
It states using the related background application in white list;
Adjustment module makes the priority of the related background application lower than background application for adjusting the priority of background application
The priority of other background applications in set.
8. processing unit the use as claimed in claim 7, which is characterized in that the adjustment module includes:
Submodule is divided, for dividing different levels, the related background application is distributed to the first level, the backstage is answered
It is distributed with other background applications in set to the second level;
Submodule is set, for different levels to be arranged with different priority, so that the priority of the first level is lower than the second layer
The priority of grade.
9. applying processing unit as claimed in claim 7 or 8, which is characterized in that described device further include:
Third obtains module, for receiving and applying out code when detecting that CPU usage is greater than preset threshold;
Closedown module, for successively being closed using out code by the sequence of each background application priority from low to high according to described
Corresponding background application is closed, until CPU usage is equal to or less than the preset threshold.
10. a kind of storage medium, which is characterized in that be stored with a plurality of instruction in the storage medium, described instruction be suitable for by
Device load is managed to execute such as application processing method of any of claims 1-6.
11. a kind of electronic equipment, which is characterized in that including processor and memory, the processor and the memory are electrical
Connection, the memory is for storing instruction and data;The processor is for executing as described in any one of claim 1-6
Application processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710643041.6A CN107450709B (en) | 2017-07-31 | 2017-07-31 | Application processing method, device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710643041.6A CN107450709B (en) | 2017-07-31 | 2017-07-31 | Application processing method, device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107450709A CN107450709A (en) | 2017-12-08 |
CN107450709B true CN107450709B (en) | 2019-09-24 |
Family
ID=60489324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710643041.6A Active CN107450709B (en) | 2017-07-31 | 2017-07-31 | Application processing method, device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450709B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328316B (en) * | 2019-08-02 | 2023-01-24 | Tcl科技集团股份有限公司 | APP optimization method, mobile terminal and storage medium |
CN112463350A (en) * | 2019-09-09 | 2021-03-09 | 珠海市魅族科技有限公司 | Background application optimization method and device, storage medium and electronic device |
CN110795240A (en) * | 2019-10-18 | 2020-02-14 | Oppo(重庆)智能科技有限公司 | Task management method and device, electronic equipment and computer readable storage medium |
CN111488207B (en) * | 2020-03-11 | 2023-10-27 | 中移(杭州)信息技术有限公司 | Application process keep-alive method and device, network equipment and storage medium |
CN114003913B (en) * | 2021-12-28 | 2022-05-06 | 支付宝(杭州)信息技术有限公司 | Operation control method and device for application program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199731A (en) * | 2014-09-12 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device for managing application program processes |
CN105138402A (en) * | 2015-08-25 | 2015-12-09 | 海信集团有限公司 | Method and device for adjusting priority of application process memory release |
CN106792165A (en) * | 2016-12-02 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of resource dynamic regulation method and device |
CN106897125A (en) * | 2015-12-18 | 2017-06-27 | 联发科技(新加坡)私人有限公司 | Smart machine and its management method of service or application |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9489236B2 (en) * | 2012-10-31 | 2016-11-08 | Microsoft Technology Licensing, Llc | Application prioritization |
-
2017
- 2017-07-31 CN CN201710643041.6A patent/CN107450709B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199731A (en) * | 2014-09-12 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device for managing application program processes |
CN105138402A (en) * | 2015-08-25 | 2015-12-09 | 海信集团有限公司 | Method and device for adjusting priority of application process memory release |
CN106897125A (en) * | 2015-12-18 | 2017-06-27 | 联发科技(新加坡)私人有限公司 | Smart machine and its management method of service or application |
CN106792165A (en) * | 2016-12-02 | 2017-05-31 | 武汉斗鱼网络科技有限公司 | A kind of resource dynamic regulation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107450709A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107450709B (en) | Application processing method, device, storage medium and electronic equipment | |
CN109213539B (en) | Memory recovery method and device | |
CN107463403B (en) | Process control method, device, storage medium and electronic equipment | |
EP2749988B1 (en) | Method and device for application program operation, mobile terminal | |
CN107678858B (en) | Application processing method, device, storage medium and electronic equipment | |
CN107463437B (en) | Application control method and device, storage medium and electronic equipment | |
CN102890628B (en) | The display packing of destination object and device | |
CN107943534B (en) | Background application program closing method and device, storage medium and electronic equipment | |
CN107423127B (en) | Application program control method and device, storage medium and electronic equipment | |
CN107450711B (en) | Application processing method and device, storage medium and terminal | |
CN110032266B (en) | Information processing method, information processing device, computer equipment and computer readable storage medium | |
CN106055408A (en) | Application control method and mobile terminal | |
US10824213B2 (en) | Sensor processing method of mobile terminal, non-transitory storage medium, and electronic device | |
CN107402791B (en) | Application processing method and device, storage medium and terminal | |
CN106022108A (en) | Synchronous management method and terminal device | |
CN108345478A (en) | application processing method, device, storage medium and electronic equipment | |
CN107402808A (en) | process management method, device, storage medium and electronic equipment | |
WO2007119550A1 (en) | System management apparatus | |
CN104636233B (en) | Mobile terminal power consumption condition control method and system | |
CN108089970A (en) | Predict method, terminal and the storage medium of remaining capacity up time | |
CN108038050B (en) | Performance adjusting method and device, storage medium and electronic equipment | |
CN107832131B (en) | Application program closing method and device, storage medium and electronic equipment | |
CN106776040A (en) | A kind of resource allocation methods and device | |
CN107908273B (en) | Application management method and device, storage medium and electronic equipment | |
CN107450951B (en) | Application processing method and device, storage medium and terminal |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |