CN106125882A - The management method of a kind of application program and electronic equipment - Google Patents

The management method of a kind of application program and electronic equipment Download PDF

Info

Publication number
CN106125882A
CN106125882A CN201610423786.7A CN201610423786A CN106125882A CN 106125882 A CN106125882 A CN 106125882A CN 201610423786 A CN201610423786 A CN 201610423786A CN 106125882 A CN106125882 A CN 106125882A
Authority
CN
China
Prior art keywords
application program
conditioned
electronic equipment
satisfied
backstage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610423786.7A
Other languages
Chinese (zh)
Other versions
CN106125882B (en
Inventor
刘惠盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201610423786.7A priority Critical patent/CN106125882B/en
Publication of CN106125882A publication Critical patent/CN106125882A/en
Application granted granted Critical
Publication of CN106125882B publication Critical patent/CN106125882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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 embodiment of the invention discloses management method and the electronic equipment of a kind of application program, described method includes determining satisfied first pre-conditioned application program, described satisfied first pre-conditioned application program is the application program that need not the running background at electronic equipment, freeze signal is sent, so that described satisfied first pre-conditioned application program freezes according to described freeze signal to the described process group meeting the first pre-conditioned application program.Use the management method of the application program shown in the present embodiment, satisfied first pre-conditioned application program can be freezed, thus reduce the power consumption of electronic equipment, save electricity, extend the standby time of electronic equipment, and freeze without the application program at running background, thus improve the utilization ratio of electronic equipment resource, effectively avoid the situation that electronic equipment occurs that randomness card pauses.

Description

The management method of a kind of application program and electronic equipment
Technical field
The present invention relates to a kind of electronic equipment that can reduce and occur that randomness card pauses and reduces electronic equipment power consumption The management method of application program and electronic equipment.
Background technology
Existing calculating equipment (such as mobile intelligent terminal) supports that multiple utility program is run simultaneously, and these run simultaneously In application program, the foreground running on calculating equipment having, can be directly viewable by user and operate, we term it foreground application Program;The backstage running on calculating equipment the most dumbly having, without interference with user's operation to foreground application, we claim For background application.
Generally, background application can take the resource that calculating equipment is certain, such as memory source, electric power resource or net Network resource etc., and influence whether the operational efficiency of calculating equipment.
In the technical scheme calculating the management of equipment background application that prior art is provided, background application can not be allowed Program receives the operation such as broadcast message, release GPS resource.
But, some background application is running background when, it is not necessary to receive broadcast message or GPS resource , so, even if controlling this background application cannot receive broadcast message and release GPS resource, this background application Still may proceed to take the resource of electronic equipment, thus randomness card pauses and reduces the continuation of the journey of equipment to cause equipment easily to occur Time.
Summary of the invention
Embodiments provide management method and the electronic equipment of a kind of application program, to reduce the application on backstage Resource shared by program, reduces the consumption of electricity.
Embodiments provide the management method of a kind of application program, wherein, including:
Determining satisfied first pre-conditioned application program, described satisfied first pre-conditioned application program is for need not Application program at the running background of electronic equipment;
Send freeze signal to the described process group meeting the first pre-conditioned application program, meet first so that described Pre-conditioned application program freezes according to described freeze signal.
Optionally, described determine satisfied first pre-conditioned application program before, described method also includes:
Judge that whether the application program operation time on the backstage of described electronic equipment is more than or equal to preset duration;
If described application program is more than or equal to described preset duration in the operation time on the backstage of described electronic equipment, then Perform the described step determining satisfied first pre-conditioned application program.
Optionally, described determine that satisfied first pre-conditioned application program includes:
Judge that the application program being more than or equal to described preset duration in the operation time on the backstage of described electronic equipment is No meet described first pre-conditioned;
If meeting more than or equal to the application program of described preset duration in the time of running on the backstage of described electronic equipment Described first pre-conditioned, then perform described transmission to the described process group meeting the first pre-conditioned application program and freeze letter Number step;
Described method also includes:
If being discontented with more than or equal to the application program of described preset duration in the time of running on the backstage of described electronic equipment Foot is the most described first pre-conditioned, it is determined that is unsatisfactory for described first pre-conditioned application program and is made without freezing.
It is optionally, described after the described process group meeting the first pre-conditioned application program sends freeze signal, Described method also includes:
Determine that satisfied second pre-conditioned application program, described satisfied second pre-conditioned application program solve for needs The application program on the backstage frozen;
Defrosting signal is sent so that described satisfied second to the described process group meeting the second pre-conditioned application program Pre-conditioned application program thaws.
Optionally, described satisfied second pre-conditioned application program is:
The application interface that Activity assembly is provided receives the operational order of user's input and/or needs to receive extensively Broadcast information and/or need start Service assembly and/or need access data base and/or need to the foreground of electronic equipment Interface pushing application program is without response dialogue.
Embodiments provide a kind of electronic equipment, wherein, including:
First determines unit, and for determining satisfied first pre-conditioned application program, described to meet first pre-conditioned Application program be the application program that need not the running background at electronic equipment;
First transmitting element, freezes letter for sending to the described process group meeting the first pre-conditioned application program Number, so that described satisfied first pre-conditioned application program freezes according to described freeze signal.
Optionally, described electronic equipment also includes:
First judging unit, for judge application program the backstage of described electronic equipment the operation time whether more than or Equal to preset duration;
Described first determines that unit is additionally operable to, if the operation time that described application program is on the backstage of described electronic equipment is big In or equal to described preset duration, it is determined that meet the first pre-conditioned application program.
Optionally, described first determines that unit is additionally operable to, it is judged that be more than in the operation time on the backstage of described electronic equipment Or whether meet described first pre-conditioned equal to the application program of described preset duration;
Described first transmitting element is additionally operable to, if being more than or equal to described in the operation time on the backstage of described electronic equipment The application program of preset duration meets described first pre-conditioned, then meet entering of the first pre-conditioned application program to described Journey group sends freeze signal;
Described electronic equipment also includes:
Second determines unit, if for the backstage of described electronic equipment the operation time more than or equal to described default time Long application program is unsatisfactory for described first pre-conditioned, it is determined that is unsatisfactory for described first pre-conditioned application program and is not required to Freeze.
Optionally, described electronic equipment also includes:
3rd determines unit, and for determining satisfied second pre-conditioned application program, described to meet second pre-conditioned Application program be the application program on backstage needing to thaw;
Second transmitting element, for sending, to the described process group meeting the second pre-conditioned application program, the letter that thaws Number so that described satisfied second pre-conditioned application program thaws.
Optionally, described satisfied second pre-conditioned application program is:
The application interface that Activity assembly is provided receives the operational order of user's input and/or needs to receive extensively Broadcast information and/or need start Service assembly and/or need access data base and/or need to the foreground of electronic equipment Interface pushing application program is without response dialogue.
Use the management method of the application program shown in the present embodiment, need not the running background at electronic equipment determining Application program after, can to described application program send freeze signal so that described meet the first pre-conditioned application journey Sequence is freezed according to described freeze signal so that this application program at the running background of electronic equipment, thus will not reduce The power consumption of electronic equipment, saves electricity, extends the standby time of electronic equipment, and freezes without answering at running background By program, thus improve the utilization ratio of electronic equipment resource, effectively avoid electronic equipment and occur what randomness card paused Situation.
Accompanying drawing explanation
Fig. 1 is a kind of embodiment flow chart of steps of the management method of application program provided by the present invention;
Fig. 2 is a kind of example structure schematic diagram of electronic equipment provided by the present invention.
Detailed description of the invention
The management method of the application program that embodiment is provided for a better understanding of the present invention, first the most real to the present invention The electronic equipment that executing example is provided illustrates.
The electronic equipment that the embodiment of the present invention is provided can be smart mobile phone (Android phone, iOS mobile phone etc.), flat board Computer, palm PC and mobile internet device (English full name: Mobile Internet Devices, English abbreviation: MID), the terminal unit such as PC, be not construed as limiting the most in embodiments of the present invention.
The application program on foreground and the application program on backstage to electronic equipment illustrate below.
It is said that in general, the application program in electronic equipment is divided into two classes, a class to be the third-party application that user independently installs Program, the application program such as such as " wechat ", " mobile phone QQ ", " microblogging ";Another kind of is the built-in system of electronic device system The application programs such as application program, such as " phone ", " setting ", " information ", " photograph album ".
When user not in use by operate in foreground application program or or when needing to use other application programs, then use Family can be closed not in use by the application program operating in foreground.Quick loading to application program for convenience, electronics sets Standby all have the function that application program is placed in backstage, i.e. user can close this application program, but by this application journey Sequence is placed in electronic equipment backstage, when user reuses this application program, only need to be somebody's turn to do by dispatching out from electronic equipment backstage Application program.
Such as user uses application program " wechat " to talk with good friend, after pressing navigation key " wechat " in smart mobile phone Display interface be closed, but, " wechat " is not thoroughly closed, and " wechat " now is exactly the application journey on a backstage Sequence.When next time, user needed to use application program " wechat ", directly dispatch out application program " wechat ".
In the present embodiment, the application program on described backstage, refer to electronic equipment is currently at the third party of running status Application program and system application.
So, this application program, without reopening operation, saves the time that application program loads.But, work as application When program is placed in backstage, this application program still can continue to run with by occupying system resources, so can cause the waste of resource, such as The waste of power consumption, the waste of flow and the waste etc. of CPU scheduling, so general, user be not intended to be placed in backstage and Need not the application program still occupying system resources at running background.
Management method below in conjunction with the application program shown in Fig. 1 provided the embodiment of the present invention is described in detail, Wherein, Fig. 1 show a kind of embodiment flow chart of steps of management method of application program provided by the present invention.
Step 101, judge the application program operation time on the backstage of electronic equipment whether more than or equal to preset duration, The most then perform step 102.
In the present embodiment, described preset duration can be systemic presupposition, and the present embodiment is to the occurrence of described preset duration not Be construed as limiting, the present embodiment by described preset duration be as a example by 1 minute illustrative.
The present embodiment sets the purpose of described preset duration, is during actually used electronic equipment, when application journey Sequence is when the operation time on the backstage of electronic equipment is less than described preset duration, then this application program of user's re invocation is to electronics It is relatively big that the foreground of equipment carries out the probability that uses again, then be the waste avoiding system resource, then electronic equipment have only to right The operation time on the backstage of electronic equipment performs the need of the step freezed more than or equal to the application program of preset duration Suddenly.
Need it is clear that the step 101 shown in the present embodiment is optional step, if perform not limit Fixed, the present embodiment is illustrative as a example by performing step 101.
Step 102, judge the backstage of described electronic equipment run the time more than or equal to described preset duration should Whether meet by program described first pre-conditioned, the most then perform step 103, if it is not, then perform step 104.
In the present embodiment, described first pre-conditioned has data for not application program with the foreground of described electronic equipment Alternately.Pre-conditioned it is not construed as limiting, as long as meeting described first pre-conditioned application program for need not described first The application program of the running background of electronic equipment.
For the data interaction being better understood between the application program on backstage and the application program on foreground, first to electricity The assembly of subset system illustrates.
Need it is clear that the present embodiment is exemplary illustration to the explanation of the assembly of described electronic apparatus system, the most not It is construed as limiting.
The present embodiment is as a example by described electronic apparatus system is as android system, and electronic apparatus system includes four big assemblies, Movable (Activity) assembly, service (Service) assembly, content provide (Content Provider) assembly and broadcast to connect Receive device (Broadcast Receiver) assembly.
In one application program, Activity assembly is exactly generally a single operation interface, permissible on operation interface Show that some controls can also be monitored and process the event of user and respond.One Service assembly is segment length's Life Cycle Phase, there is no the program of user interface, can be used to develop and such as monitor class method.Content Provider assembly makes one to answer Being supplied to other application programs with the appointment data set of program, these data can be stored in file system, at one SQLite data base or with any other reasonable manner.Broadcast Receiver assembly can receive outside transmission Broadcast message also responds, and Broadcast Receiver assembly does not has user interface, but, Broadcast Receiver Assembly can start an Activity assembly or Service assembly to respond the broadcast message that they receive.
Shown in the present embodiment first pre-conditioned be backstage application program not with the foreground of described electronic equipment The service Service assembly of application program and/or content provide Content Provider assembly to have data interaction.
Visible, the freezing method shown in the present embodiment can by not with the Service assembly of the application program on foreground and/or interior The application program holding the backstage providing Content Provider assembly to have data interaction freezes.
And for example, described first pre-conditioned lock (wakelock) is waken up up for not having.
The application program with the backstage waking up lock up can stop electronic equipment to enter sleep pattern.
Visible, the freezing method shown in the present embodiment can will can stop answering of the backstage of electronic equipment entrance sleep pattern Freeze by program.
And for example, described first pre-conditioned be not to the push operation interface, interface, foreground of described electronic equipment.
The present embodiment can be used for receiving the operational order of user's input to described operation interface, and the present embodiment is to described operation Instruction is not construed as limiting, and such as, starts or close the operational order of application program.
The present embodiment is particularly shown pattern to described operation interface and is not construed as limiting, and such as, described operation interface can be Form, button, icon or the ejection form at interface, described foreground.
Visible, the freezing method shown in the present embodiment will can not push institute to the interface, described foreground of described electronic equipment The application program on the backstage stating operation interface freezes.
And for example, described first pre-conditioned is input method application program.
If the application program on backstage is input method application program, then the application program on this backstage is in the actually used mistake of user Cheng Zhong, calls to the probability on foreground very big, wastes power consumption for avoiding repeatedly starting input method application program, promote and call institute State the efficiency of input method application program, then described input method application program is not frozen by the freezing method shown in the present embodiment Knot.
And for example, described first pre-conditioned for not use GPS positioning function.
If the application program on backstage uses GPS positioning function, then illustrate that the application program on this backstage may provide and lead Boat function, then the freezing method shown in the present embodiment can not freeze to use the application program on the backstage of GPS positioning function.
And for example, the described first pre-conditioned application program being not play audio frequency at current time.
Visible, the application program playing the backstage of audio frequency at current time is not carried out by the freezing method shown in the present embodiment Freeze.
And for example, described first pre-conditioned be download in Preset Time the downloading flow of behavior less than predetermined threshold value, And/or the flow of uploading uploading behavior in described Preset Time is less than predetermined threshold value.
Electronic equipment shown in the present embodiment can pre-set Preset Time and predetermined threshold value.
When the application program on backstage downloads the downloading flow of behavior more than or equal to predetermined threshold value in Preset Time, then say The application program on this backstage bright is from the Internet download data, then the present embodiment will not download behavior in Preset Time Downloading flow is freezed more than or equal to the application program on the backstage of predetermined threshold value.
Upload flow more than or equal to predetermined threshold value when what the application program on backstage uploaded behavior in Preset Time, then say The application program on this backstage bright uploads data to the Internet, then the present embodiment will not upload the upper of behavior in Preset Time The amount of spreading is freezed more than or equal to the application program on the backstage of predetermined threshold value.
Step 103, by described meet the first pre-conditioned application program process group freeze.
Electronic equipment shown in the present embodiment can travel through the entering of application program meeting described first pre-conditioned backstage Journey group, and send freeze signal to this process group, such as, with the system of the electronic equipment shown in the present embodiment for Android system As a example by system, then the bottom of this system is Linux system, then this freeze signal can be SIGSTOP signal, when answering of this backstage When all receiving described freeze signal with the process group of program, then all processes of this application program are all without reruning, now, and should Application program is then in frozen state.
When described application program is in frozen state, described application program will not continue to take cpu resource, not receive Broadcast message, is not responding to Action Events, not by other application calls etc., so that the application program freezed can save electronics The resource of device systems, it is to avoid the waste of electronic apparatus system resource, reduces power consumption, when improving electronic equipment standby Long, effectively avoid electronic equipment that the situation that randomness card pauses occurs.
Described broadcast message shown in the present embodiment includes but not limited to that application program Installation Events, application program unload thing Part, network change event, receive short message event, receive incoming call event, date and/or time-event are set.
Such as, in the present embodiment, the system of electronic equipment can be pre-created file, puts in each file created Application program so that each application program and the file one_to_one corresponding respectively created, created the title of file can be sys or fs or Cgroup or freezer, by monitoring the content of each file, it is possible to determine whether to freeze the application program in this document Knot, however, it is determined that need freeze, then directly in the file being placed with this application program, send described freeze signal, described in freeze letter Number can include FROZEN character string.
Step 104, determine that being unsatisfactory for described first pre-conditioned application program is made without freezing.
If being discontented with more than or equal to the application program of described preset duration in the time of running on the backstage of described electronic equipment Foot is the most described first pre-conditioned, then illustrate that this application program is to need the application programs at running background, such as this application program Need to scan for GPS resource and/or need the application program with electronic equipment foreground to carry out data interaction and/or have to call out Wake up lock resource and/or need to the push operation interface, interface, foreground of described electronic equipment and/or be input method application program, And/or current time play audio frequency application program and/or download in Preset Time the downloading flow of behavior more than or etc. In predetermined threshold value and/or in described Preset Time, upload behavior upload flow more than or equal to the situation such as predetermined threshold value.
Step 105, to judge whether frozen application program meets second pre-conditioned, the most then perform step 106, If it is not, then perform step 107.
Described electronic equipment can be set up and freeze list, after the application program on backstage is freezed by described electronic equipment, and can be by The mark of this application program is freezed in list described in leaving in.
Visible, be positioned at described in freeze in list all of application program be frozen application program.
Described electronic equipment can travel through described in freeze in list all frozen application program, and one by one judge application Whether program meets described second pre-conditioned.
Meeting described second pre-conditioned application program is the application program that needs carry out thawing, and is unsatisfactory for described second Pre-conditioned application program is the application program being made without thawing.
Such as, the second pre-conditioned movable Activity assembly institute for frozen application program shown in the present embodiment The application interface provided receives the operational order of user's input.
The application interface that the movable Activity assembly of the application program on the backstage shown in the present embodiment is provided is used for connecing Receiving the operational order of user's input, described operational order is not construed as limiting by the present embodiment, and such as, described operational order can be user The instruction etc. of this application program of re invocation of input.
And for example, described second pre-conditioned can be also frozen application program need receive broadcast message.
The system of the electronic equipment shown in the present embodiment can cycle or real-time detect whether frozen application program needs Broadcast message to be received, however, it is determined that frozen application program needs to receive broadcast message, i.e. can determine that this application program meets Described second pre-conditioned.
And for example, described second pre-conditioned can be also frozen application program need to start described service Service group Part.
The system of the electronic equipment shown in the present embodiment can cycle or real-time detect whether frozen application program needs Start described service Service assembly, however, it is determined that frozen application program needs to start described service Service assembly, I.e. can determine that this application program meets described second pre-conditioned.
And for example, described second pre-conditioned can be also frozen application program need access data base.
The system of the electronic equipment shown in the present embodiment can cycle or real-time detect whether frozen application program needs Will be by accessing the storage action of data base's acquisition or data to carry out data, however, it is determined that frozen application program needs to visit Ask data base, i.e. can determine that this application program meets described second pre-conditioned.
And for example, described second pre-conditioned can be also that frozen application program needs to the foreground circle of described electronic equipment Face pushing application program is without response ANR dialog box.
The system of the electronic equipment shown in the present embodiment can cycle or real-time detect whether frozen application program needs Will be to interface, the foreground pushing application program of described electronic equipment without response ANR dialog box, wherein, if described electronic equipment is System determines that application program exceedes predetermined duration and do not responds to, then can determine that this application program needs before described electronic equipment Platform interface pushing application program is without response ANR dialog box.If the system of electronic equipment determine frozen application program need to Interface, the foreground pushing application program of described electronic equipment, without response ANR dialog box, i.e. can determine that this application program meets described Second is pre-conditioned.
And for example, described second pre-conditioned can be also frozen application program when occur abnormal, in the present embodiment, As long as it is abnormal that the system of electronic equipment determines that frozen application program occurs, i.e. can determine that this application program meets second and presets Condition.
Step 106, to described meet the second pre-conditioned application program process group send defrosting signal.
Electronic equipment shown in the present embodiment can travel through the entering of application program meeting described second pre-conditioned backstage Journey group, and send defrosting signal to this process group, such as, with the system of the electronic equipment shown in the present embodiment for Android system As a example by system, then the bottom of this system is Linux system, then this defrosting signal can be SIGstart signal, when this backstage When the process group of application program all receives described defrosting signal, then all processes of this application program can start the most voluntarily and transport OK, now, this application program is then in thawed state.
Such as, in the present embodiment, the system of electronic equipment can be by monitoring the content of each file, it is possible to determines whether this Application program in file thaws, however, it is determined that needs to thaw, then directly sends in the file being placed with this application program Described defrosting signal, described freeze signal can include THAWED character string.
Step 107, control described application program and be in frozen state.
When electronic equipment, to determine that frozen application program is unsatisfactory for second pre-conditioned, it is determined that is unsatisfactory for described second Pre-conditioned electronic equipment is without thawing, and the most described electronic equipment can control to be unsatisfactory for described second pre-conditioned electronics Equipment keeps frozen state.
Visible, use the management method of the application program shown in the present embodiment, need not after electronic equipment determining After the application program that platform runs, freeze signal can be sent to described application program so that described meet first pre-conditioned Application program freezes according to described freeze signal so that this application program will not at the running background of electronic equipment, thus Reduce the power consumption of electronic equipment, save electricity, extend the standby time of electronic equipment, and freeze without transporting on backstage The application program of row, thus improve the utilization ratio of electronic equipment resource, improve the operational efficiency of system, effectively avoid There is the situation that randomness card pauses in electronic equipment.
Structure below in conjunction with the electronic equipment shown in Fig. 2 provided the embodiment of the present invention illustrates, the present embodiment Shown electronic equipment is capable of the flow process of the management method of the application program shown in Fig. 1, and the concrete flow process that performs please refer to Fig. 1 Shown in, repeat no more the most in the present embodiment.
Described electronic equipment includes:
First judging unit 201, for judging that the application program operation time on the backstage of described electronic equipment is the biggest In or equal to preset duration;
First determines unit 202, and for determining satisfied first pre-conditioned application program, described satisfied first presets bar The application program of part is the application program that need not the running background at electronic equipment;
Described first determines that unit 202 is additionally operable to, if described application program is when the operation on the backstage of described electronic equipment Between more than or equal to described preset duration, it is determined that meet the first pre-conditioned application program.
Wherein, described satisfied first pre-conditioned application program is:
Not the application program with the foreground of described electronic equipment have data interaction and/or do not have wake up up lock resource and/ Or not to the push operation interface, interface, foreground of described electronic equipment and/or for input method application program and/or be not take up Global position system GPS resource and/or not current time play audio frequency application program and/or in Preset Time download The downloading flow of behavior less than predetermined threshold value and/or upload in described Preset Time behavior upload flow less than preset threshold Value.
Described not application program with the foreground of described electronic equipment has data interaction to include:
Service Service assembly and/or content with the application program on the foreground of described electronic equipment do not provide Content Provider assembly has data interaction.
Described first determines that unit 202 is additionally operable to, it is judged that the backstage of described electronic equipment the operation time more than or etc. Whether the application program in described preset duration meets described first pre-conditioned;
First transmitting element 203, freezes for sending to the described process group meeting the first pre-conditioned application program Signal, so that described satisfied first pre-conditioned application program freezes according to described freeze signal.
Described first transmitting element 203 is additionally operable to, if being more than or equal in the operation time on the backstage of described electronic equipment The application program of described preset duration meets described first pre-conditioned, then meet the first pre-conditioned application program to described Process group send freeze signal;
Second determines unit 204, if for the operation time on the backstage of described electronic equipment more than or equal to described pre- If the application program of duration is unsatisfactory for described first pre-conditioned, it is determined that be unsatisfactory for described first pre-conditioned application program It is made without freezing.
3rd determines unit 205, and for determining satisfied second pre-conditioned application program, described satisfied second presets bar The application program of part is the application program on the backstage needing defrosting;
Second transmitting element 206, thaws for sending to the described process group meeting the second pre-conditioned application program Signal so that described satisfied second pre-conditioned application program thaws.
Described satisfied second pre-conditioned application program is:
The application interface that movable Activity assembly is provided receives the operational order of user's input and/or needs to connect Receive broadcast message and/or need start described service Service assembly and/or need access data base and/or need to institute State interface, the foreground pushing application program of electronic equipment without response ANR dialog box.
Employing electronic equipment shown in the present embodiment performs the beneficial effect tool of the management method of the application program shown in Fig. 1 Body the most as shown in Figure 1, does not repeats.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description, The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.Such as, device embodiment described above is only schematically, such as, and described unit Dividing, be only a kind of logic function and divide, actual can have other dividing mode, the most multiple unit or assembly when realizing Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that: it still can be to front State the technical scheme described in each embodiment to modify, or wherein portion of techniques feature is carried out equivalent;And these Amendment or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the management method of an application program, it is characterised in that including:
Determining satisfied first pre-conditioned application program, described satisfied first pre-conditioned application program is for need not at electricity The application program of the running background of subset;
Freeze signal is sent, so that described satisfied first presets to the described process group meeting the first pre-conditioned application program The application program of condition freezes according to described freeze signal.
Method the most according to claim 1, it is characterised in that described determine satisfied first pre-conditioned application program it Before, described method also includes:
Judge that whether the application program operation time on the backstage of described electronic equipment is more than or equal to preset duration;
If described application program is more than or equal to described preset duration in the operation time on the backstage of described electronic equipment, then perform The described step determining satisfied first pre-conditioned application program.
Method the most according to claim 2, it is characterised in that described determine satisfied first pre-conditioned application package Include:
Judge that the time of running on the backstage of described electronic equipment is the fullest more than or equal to the application program of described preset duration Foot is the most described first pre-conditioned;
If meeting described in the time of running on the backstage of described electronic equipment more than or equal to the application program of described preset duration First is pre-conditioned, then perform the described process group to described satisfied first pre-conditioned application program and send freeze signal Step;
Described method also includes:
If being unsatisfactory for institute in the operation time on the backstage of described electronic equipment more than or equal to the application program of described preset duration State first pre-conditioned, it is determined that be unsatisfactory for described first pre-conditioned application program and be made without freezing.
Method the most according to claim 1, it is characterised in that described to described satisfied first pre-conditioned application program Process group send after freeze signal, described method also includes:
Determine that satisfied second pre-conditioned application program, described satisfied second pre-conditioned application program are that needs thaw The application program on backstage;
Defrosting signal is sent so that described satisfied second presets to the described process group meeting the second pre-conditioned application program The application program of condition thaws.
Method the most according to claim 4, it is characterised in that described satisfied second pre-conditioned application program is:
The application interface that Activity assembly is provided receives the operational order of user's input and/or needs to receive broadcast letter Cease and/or need start Service assembly and/or need access data base and/or need to the interface, foreground of electronic equipment Pushing application program is without response dialogue.
6. an electronic equipment, it is characterised in that including:
First determines unit, for determining satisfied first pre-conditioned application program, and described satisfied first pre-conditioned answering It is to need not the application program of the running background at electronic equipment by program;
First transmitting element, for sending freeze signal to the described process group meeting the first pre-conditioned application program, with Described satisfied first pre-conditioned application program is made to freeze according to described freeze signal.
Electronic equipment the most according to claim 6, it is characterised in that described electronic equipment also includes:
First judging unit, for judging whether application program was more than or equal in the operation time on the backstage of described electronic equipment Preset duration;
Described first determines that unit is additionally operable to, if described application program the backstage of described electronic equipment the operation time more than or Equal to described preset duration, it is determined that meet the first pre-conditioned application program.
Electronic equipment the most according to claim 7, it is characterised in that described first determines that unit is additionally operable to, it is judged that in institute Whether the operation time on the backstage stating electronic equipment meets described first pre-more than or equal to the application program of described preset duration If condition;
Described first transmitting element is additionally operable to, if presetting more than or equal to described in the operation time on the backstage of described electronic equipment The application program of duration meets described first pre-conditioned, then to the described process group meeting the first pre-conditioned application program Send freeze signal;
Described electronic equipment also includes:
Second determines unit, if for the time of running on the backstage of described electronic equipment more than or equal to described preset duration Application program is unsatisfactory for described first pre-conditioned, it is determined that be unsatisfactory for described first pre-conditioned application program need not into Row freezes.
Electronic equipment the most according to claim 6, it is characterised in that described electronic equipment also includes:
3rd determines unit, for determining satisfied second pre-conditioned application program, and described satisfied second pre-conditioned answering With the application program that program is the backstage needing defrosting;
Second transmitting element, for sending defrosting signal to the described process group meeting the second pre-conditioned application program, makes Obtain described satisfied second pre-conditioned application program to thaw.
Electronic equipment the most according to claim 9, it is characterised in that described satisfied second pre-conditioned application program For:
The application interface that Activity assembly is provided receives the operational order of user's input and/or needs to receive broadcast letter Cease and/or need start Service assembly and/or need access data base and/or need to the interface, foreground of electronic equipment Pushing application program is without response dialogue.
CN201610423786.7A 2016-06-15 2016-06-15 A kind of management method and electronic equipment of application program Active CN106125882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610423786.7A CN106125882B (en) 2016-06-15 2016-06-15 A kind of management method and electronic equipment of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610423786.7A CN106125882B (en) 2016-06-15 2016-06-15 A kind of management method and electronic equipment of application program

Publications (2)

Publication Number Publication Date
CN106125882A true CN106125882A (en) 2016-11-16
CN106125882B CN106125882B (en) 2019-04-26

Family

ID=57270806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610423786.7A Active CN106125882B (en) 2016-06-15 2016-06-15 A kind of management method and electronic equipment of application program

Country Status (1)

Country Link
CN (1) CN106125882B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681768A (en) * 2016-12-29 2017-05-17 努比亚技术有限公司 Process control method and electronic equipment
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106713490A (en) * 2017-01-19 2017-05-24 努比亚技术有限公司 Network application-based process freezing and unfreezing apparatus and method
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN106933684A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of broadcast recipients, device and mobile terminal
CN107066320A (en) * 2017-01-19 2017-08-18 努比亚技术有限公司 The device and method that a kind of Android processes are freezed and thawed
CN107239354A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 A kind of method and terminal for notifying to cease screen event
CN107479952A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 background process management method, device, storage medium and electronic equipment
CN107670276A (en) * 2017-10-20 2018-02-09 广东欧珀移动通信有限公司 Game application control method and equipment
CN107728769A (en) * 2017-09-21 2018-02-23 深圳Tcl新技术有限公司 Background application management method, device and computer-readable recording medium
CN107783858A (en) * 2017-10-31 2018-03-09 努比亚技术有限公司 Terminal freezes solution method, terminal and the computer-readable recording medium of screen
CN107894916A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 A kind of method, mobile terminal and storage device for freezing application
CN107894917A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 Terminal and its method for closing background application, storage device
CN107957771A (en) * 2017-11-20 2018-04-24 珠海市魅族科技有限公司 A kind of control method of application program, device, mobile terminal and storage medium
CN108021220A (en) * 2017-10-25 2018-05-11 努比亚技术有限公司 A kind of terminal applies control method, terminal and computer-readable recording medium
WO2018176245A1 (en) * 2017-03-29 2018-10-04 深圳市卓希科技有限公司 Method for controlling application program, and terminal
WO2018227355A1 (en) * 2017-06-13 2018-12-20 上海传英信息技术有限公司 Application program management system and management method for smart terminal
WO2019024646A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Application management and control method, apparatus, and electronic device
CN109388487A (en) * 2018-10-16 2019-02-26 Oppo广东移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN109600409A (en) * 2017-09-30 2019-04-09 华为终端(东莞)有限公司 The method for managing resource and terminal of application
CN109992371A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method, device, electronic equipment, computer readable storage medium
CN109992361A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, terminal and computer readable storage medium
CN110007968A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN110008008A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032266A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN110427092A (en) * 2019-08-02 2019-11-08 Oppo(重庆)智能科技有限公司 Battery switching method, device, terminal and computer readable storage medium
CN110691401A (en) * 2019-08-28 2020-01-14 华为技术有限公司 System application management method and device
WO2020133441A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program management method and apparatus, storage medium, and electronic device
CN112433831A (en) * 2020-11-17 2021-03-02 珠海格力电器股份有限公司 Application freezing method, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105975347A (en) * 2016-05-26 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184885A1 (en) * 2014-11-19 2015-12-10 中兴通讯股份有限公司 Method and device for closing background application of mobile terminal, and mobile terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105975347A (en) * 2016-05-26 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and system

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN106681768A (en) * 2016-12-29 2017-05-17 努比亚技术有限公司 Process control method and electronic equipment
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN106713490A (en) * 2017-01-19 2017-05-24 努比亚技术有限公司 Network application-based process freezing and unfreezing apparatus and method
CN107066320A (en) * 2017-01-19 2017-08-18 努比亚技术有限公司 The device and method that a kind of Android processes are freezed and thawed
CN107066320B (en) * 2017-01-19 2021-06-15 努比亚技术有限公司 Android process freezing and unfreezing device and method
CN106933684A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 A kind of control method of broadcast recipients, device and mobile terminal
WO2018176245A1 (en) * 2017-03-29 2018-10-04 深圳市卓希科技有限公司 Method for controlling application program, and terminal
CN107239354A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 A kind of method and terminal for notifying to cease screen event
WO2018227355A1 (en) * 2017-06-13 2018-12-20 上海传英信息技术有限公司 Application program management system and management method for smart terminal
CN107479952A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 background process management method, device, storage medium and electronic equipment
WO2019024646A1 (en) * 2017-07-31 2019-02-07 Oppo广东移动通信有限公司 Application management and control method, apparatus, and electronic device
CN107728769A (en) * 2017-09-21 2018-02-23 深圳Tcl新技术有限公司 Background application management method, device and computer-readable recording medium
CN109600409B (en) * 2017-09-30 2022-08-19 华为终端有限公司 Resource management method and terminal for application
CN109600409A (en) * 2017-09-30 2019-04-09 华为终端(东莞)有限公司 The method for managing resource and terminal of application
CN107670276A (en) * 2017-10-20 2018-02-09 广东欧珀移动通信有限公司 Game application control method and equipment
WO2019076254A1 (en) * 2017-10-20 2019-04-25 Oppo广东移动通信有限公司 Game application control method, and device
CN108021220A (en) * 2017-10-25 2018-05-11 努比亚技术有限公司 A kind of terminal applies control method, terminal and computer-readable recording medium
CN107783858A (en) * 2017-10-31 2018-03-09 努比亚技术有限公司 Terminal freezes solution method, terminal and the computer-readable recording medium of screen
CN107894917A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 Terminal and its method for closing background application, storage device
CN107894916A (en) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 A kind of method, mobile terminal and storage device for freezing application
CN107957771A (en) * 2017-11-20 2018-04-24 珠海市魅族科技有限公司 A kind of control method of application program, device, mobile terminal and storage medium
CN110008008A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110007968A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN109992361A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, terminal and computer readable storage medium
CN109992371A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method, device, electronic equipment, computer readable storage medium
CN110007968B (en) * 2017-12-29 2022-07-12 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN110032266A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
CN109388487A (en) * 2018-10-16 2019-02-26 Oppo广东移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
WO2020133441A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program management method and apparatus, storage medium, and electronic device
CN110427092A (en) * 2019-08-02 2019-11-08 Oppo(重庆)智能科技有限公司 Battery switching method, device, terminal and computer readable storage medium
CN110691401A (en) * 2019-08-28 2020-01-14 华为技术有限公司 System application management method and device
CN110691401B (en) * 2019-08-28 2021-04-09 华为技术有限公司 System application management method and device
CN112433831A (en) * 2020-11-17 2021-03-02 珠海格力电器股份有限公司 Application freezing method, storage medium and electronic device

Also Published As

Publication number Publication date
CN106125882B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN106125882A (en) The management method of a kind of application program and electronic equipment
CN105159776B (en) Process handling method and device
EP2286315B1 (en) Aggregating recurrent schedules to optimize resource consumption
CN104298335B (en) Application program process cleaning method and device of mobile terminal and mobile terminal
CN105190555B (en) Centralized task schedule
EP3502878B1 (en) Method for preloading application and terminal device
CN105468426A (en) Application freezing method and terminal
CN106921506B (en) Data acquisition reporting method and system for mobile equipment
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN107122032A (en) Terminal, crash reset control circuit and method
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN104008027A (en) Data backup method and device for mobile terminal and mobile terminal
WO2020052471A1 (en) Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
CN106844026A (en) A kind of method and system for clearing up terminal device process
CN110018905B (en) Information processing method, information processing apparatus, computer device, and computer-readable storage medium
CN105550007A (en) Control method and device for mobile terminal and mobile terminal
CN109992380B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109992323B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN109992309B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN111052083A (en) Method and apparatus for managing scheduling of services during startup
CN108011860A (en) A kind of method and device for handling broadcast message
CN110086835B (en) Application program control method, terminal, server and system
CN111045507B (en) List management and control method, device, mobile terminal and storage medium
CN108228192A (en) A kind of implementation method of the dynamic management of service-oriented Airborne Software
CN110045812B (en) Information processing method, information processing device, computer equipment and computer readable storage medium

Legal Events

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