CN104199731B - The method and device being managed to the process of application program - Google Patents
The method and device being managed to the process of application program Download PDFInfo
- Publication number
- CN104199731B CN104199731B CN201410466754.6A CN201410466754A CN104199731B CN 104199731 B CN104199731 B CN 104199731B CN 201410466754 A CN201410466754 A CN 201410466754A CN 104199731 B CN104199731 B CN 104199731B
- Authority
- CN
- China
- Prior art keywords
- application
- priority
- application program
- dormancy
- management
- 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
- 238000000034 method Methods 0.000 title claims abstract description 200
- 230000008569 process Effects 0.000 title claims abstract description 173
- 230000005059 dormancy Effects 0.000 claims abstract description 42
- 230000000284 resting effect Effects 0.000 claims abstract description 16
- 238000012800 visualization Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 3
- 230000006399 behavior Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 3
- 230000007958 sleep Effects 0.000 description 5
- 230000003068 static effect Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Abstract
The invention discloses the method and device that a kind of process to application program is managed, method therein includes:Reception system broadcasts the message, and determines whether terminal is in screen closed mode;When it is determined that screen is closed, the Procession information of application programme object being currently running by application call interface acquisition system, the numerical value of importance attribute is obtained by the Procession information of application programme object being currently running, it is determined that the process priority of each application program;According to preset management of process rule, resting state is closed or be arranged to the relatively low process of priority.The embodiment of the present invention is used as foundation by process priority, and the process relatively low to priority is closed or dormancy, and preferably process relatively low to priority after screen locking carries out dormancy processing, so as to save memory headroom, reduces electric quantity consumption.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of method that process to application program is managed
And device.
Background technology
Android system during use, operation or application program (software) due to user itself set out certainly for,
Substantial amounts of running background process and service can be produced.In these background process and service, some are user's needs, such as IMU
News, protection capacity of safety protection software;Other are mostly nonessential existing process and service, for helper applications itself sending out notice, prompting.
These processes and service can also exist for a long time after mobile phone screen locking, take mobile phone EMS memory, consumption battery electric quantity, mobile phone is made
With causing inconvenience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the method and device being managed to the process of application program of problem.
According to one aspect of the present invention, there is provided a kind of method that process to application program is managed, including:Receive
System broadcast message, determines whether terminal is in screen closed mode;When it is determined that screen is closed, by using journey
Sequence calling interface obtains the priority that each application program corresponds to process;The each application program of acquisition corresponds to the preferential of process
Level includes:The Procession information of application programme object that acquisition system is currently running, pass through the program process being currently running
Information object obtains the numerical value of importance attribute, it is determined that the process priority of each application program;According to preset management of process
Rule, resting state is closed or be arranged to the relatively low process of priority.
Preferably, the Procession information of application programme object being currently running refers in Android operation system
RunningAppProcessInfo objects.
Preferably, the importance attribute refers to the constant inside RunningAppProcessInfo objects
IMOPORTANCE。
Preferably, the management of process rule includes:After terminal reaches the scheduled time by screen locking, priority is less than
Process corresponding to the user application and system application of priority lowest threshold is arranged to resting state.
Preferably, in addition to:Visualization interface is provided a user, receives manual calibration of the user to management of process.
Preferably, the manual calibration to management of process includes:According to the priority of each process, process is performed temporary
The operation of dormancy or direct dormancy after not dormancy, screen locking;Or selected according to user, the process of application-specific is performed
Screen locking dormancy keeps background operation state.
Preferably, in addition to:Judge whether application program corresponding to process is included in preset application program white list,
If it is, the process is remained into running status.
Preferably, in addition to:Judge whether application program corresponding to process is included in preset application program blacklist,
If it is, the process is arranged to resting state.
According to another aspect of the present invention, there is provided the device that a kind of process to application program is managed, including:Extensively
Message reception units are broadcast, is broadcast the message for reception system, determines whether terminal is in screen closed mode;Process priority obtains
Unit is taken, for when it is determined that screen is closed, it is corresponding to obtain each application program by application call interface
The priority of process;The priority that each application program of acquisition corresponds to process includes:The application that acquisition system is currently running
Program process information object, the numerical value of importance attribute is obtained by the Procession information of application programme object being currently running,
It is determined that the process priority of each application program;Administrative unit, it is for regular according to preset management of process, priority is relatively low
Process close or be arranged to resting state.
Preferably, the Procession information of application programme object being currently running refers in Android operation system
RunningAppProcessInfo objects.
Preferably, the importance attribute refers to the constant inside RunningAppProcessInfo objects
IMOPORTANCE。
Preferably, the management of process rule includes:After terminal reaches the scheduled time by screen locking, priority is less than
Process corresponding to the user application and system application of priority lowest threshold is arranged to resting state.
Preferably, in addition to:Manual calibration unit, for providing a user visualization interface, receive user to process pipe
The manual calibration of reason.
Preferably, the manual calibration unit is specifically used for:According to the priority of each process, process, which is performed, to stop
Sleep, the operation of dormancy or direct dormancy after screen locking;Or selected according to user, screen locking is performed to the process of application-specific
Dormancy keeps background operation state.
Preferably, in addition to:List judging unit, judges whether application program corresponding to process is included in preset application
In program white list, if it is, indicating that the process is remained running status by the management of process unit.
Preferably, in addition to:List judging unit, for judging it is preset whether application program corresponding to process is included in
In application program blacklist, if it is, indicating that the process is arranged to resting state by the management of process unit.
It can be seen that the embodiment of the present invention is used as foundation by process priority, the process relatively low to priority closed or
Person's dormancy, preferably process relatively low to priority after screen locking progress dormancy processing, so as to save memory headroom, reduces electricity
Consumption.In addition, under the dual decision logic of automatic intelligent identification and user's manual calibration, it is ensured that useful needed for user
Background process is never by auto sleep, and other unwanted background process of user are all by auto sleep.Android hand is kept with this
Long-term low EMS memory occupation and the low battery consumption of machine system.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the method flow diagram that the process according to an embodiment of the invention to application program is managed;
And
Fig. 2 shows the schematic device that the process according to an embodiment of the invention to application program is managed.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
The present invention discloses a kind of process to application program and is managed method, and its scheme is by monitoring application program
The operation of background process, the priority of process is determined, close the relatively low process of priority, so as to releasing memory space, optimization is eventually
Hold running environment.
Referring to Fig. 1, the method flow diagram being managed to the process of application program provided for one embodiment of the invention.
This method comprises the following steps:
S101:Reception system broadcasts the message, and determines whether terminal is in screen closed mode.
It will be appreciated by those skilled in the art that operating system includes application layer (app layers) and system framework layer
(framework layers).A kind of preferred implementation of the present invention is that app layers and framework layers are improved, so as to utilize
This two layers coordinated is realized to be managed to the process of application program.Specifically, registering reception system first closes screen
Broadcast message, when system screen blackening, application layer can be broadcast the message with receiving the pass screen of system, then, application program
Layer realizes the process priority for traveling through each application program by interface interchange.
S102:When it is determined that screen is closed, each application program is obtained by API and corresponds to the preferential of process
Level.
Traversal to process priority can be realized by the API of operating system.API(Application
Programming Interface, application programming interface) it is the calling interface that operating system leaves application program for,
Application program makes operating system go to perform the order (action) of application program by the API of call operation system.In can using
Off line system, which is realized, to be monitored API.
Interacting between app layers and framework layers can be understood as in the embodiment of the present invention:Injected system services journey
Sequence, the handle (variable) for being used to receive Inter-Process Communication data in replacement system service are the false handle (variable) of app layers, that
False handle (variable) will receive the control data from third party's program, false handle (memory variable) prior to system service
The logic of meeting executive process control when being called, and the rule that can be set according to user, perform corresponding operating.
Specifically, determine process priority mode can have it is a variety of.
(1) first way is:By the process identification (PID) of each application program, the process weight of each application program is found
Sex index is wanted, according to process significance index, it is determined that the process priority of each application program.
Specifically, in Android system, by the PID of program, corresponding PROC/PID/oom_adj files are found, are read
Numerical value in file, as the standard and threshold values for judging priority.Wherein, PID (Process Identifier) is respectively to enter
The identity of journey, it is unique that the runtime of program one will be automatically assigned to process one.Application program can be passed through
PID, find oom_adj corresponding to application program.
Skilled in the art realises that Android is a multitask system, that is to say, that can run multiple journeys simultaneously
Sequence.In general, one program of startup optimization has regular hour expense, therefore in order to accelerate the speed of service, when exiting
During one program, Android can't kill immediately (kill) it, during the program of reruning such next time, can be quickly open
It is dynamic.As the program retained in system is more and more, deficiency occurs in internal memory certainly, and low memory killer are exactly to be
When system internal memory is less than certain value, the program of correlation is removed, safeguards system keeps possessing a number of free memory.Low memory
Killer is according to two principles, the importance and the release retrievable free memory quantity of this process of process, to determine to discharge
Process.Process importance is determined by significance index oom_adj.Wherein, OOM (out of memory, internal memory overflow) refers to
Inside system, due to Installed System Memory pressure, system can select to protect some system process, and by some other process kill
Fall, releasing memory.The file related to OOM is exactly the oom_adj under catalogue/proc/pid/oom_adj.Oom_adj can be with
Understand the factor of position one, scope is -17 to 15.0 expression is arranged to never by kill, the more big easier quilt of remaining case values
kill。
Program is divided into following a few classes by Android, for example, the order reduced successively according to importance:
FOREGROUD_APP, oom_adj=0, represent foreground program, it can be understood as the program being used;
VISIBLE_APP, oom_adj=1, represent the visible program of user;
SECONDARY_SERVER, oom_adj=2, background service is represented, such as QQ can be in running background service;
HOME_APP, oom_adj=4, HOME is represented, is exactly main interface;
HIDDEN_APP, oom_adj=7, represent the program being hidden;
CONTENT_PROVIDER, oom_adj=14, represent content provider;
EMPTY_APP, oom_adj=15, dummy routine is represented, service is neither provided, content is not also provided.
(2) second way is:The Procession information of application programme that acquisition system is currently running, pass through the application being currently running
The numerical value of importance attribute in program process information, it is determined that the process priority of each application program.
Specifically, by obtaining the program being currently running in Android program, pass through what is got
RunningAppProcessInfo objects, by the numerical value of its importance attribute, as the standard for judging priority and
Threshold values.
In Android system, inside RunningAppProcessInfo (Procession information of application programme being currently running)
Constant IMOPORTANCE (importance attribute) represents the importance of this app process, because when system reclaims, can basis
IMOPORTANCE carrys out collection process.Such as:
Public static final int IMPORTANCE_BACKGROUND=400 represent background program;
Public static final int IMPORTANCE_EMPTY=500 represent null process;
Public static final int IMPORTANCE_FOREGROUND=100 represent screen front end, can
Get the program of focus;
Public static final int IMPORTANCE_SERVICE=300 represent the program in service;
Public static final int IMPORTANCE_VISIBLE=200 are represented to hold before screen, obtained not
To the program of focus.
Specifically, the example for obtaining the importance property values of RunningAppProcessInfo objects is as follows:
First have to obtain ActivityManager object instance, by calling getSystemService
(ACTIVITY_SERVICE) ActivityManager example will, be returned;After the example is obtained, it is called
GetRunningAppProcesses () method, can return to a List, and the data type deposited in the List is
ActivityManager.RunningAppProcessInfo.So, the List is traveled through, from each in List
The information for enjoying correlation can be obtained in RunningAppProcessInfo.
For example, being shown using a ListAdapter to be tied among a ListView, realize code such as
Under:
It can be seen that " public int importance " (severity level of process in systems) are exactly this in above-mentioned code
The importance property values to be obtained in inventive embodiments.
S103:According to preset management of process rule, dormancy shape is closed or be arranged to the relatively low process of priority
State.
Wherein, management of process rule can have various ways, such as:The entering less than priority lowest threshold directly by priority
Journey is closed;Or after terminal reaches the scheduled time by screen locking, user of the priority less than priority lowest threshold is applied
Process corresponding to program and system application is arranged to resting state.For example, after user's screen locking 1 minute, priority is low
User software, system software and user be set to the software of forced dormancy manually and all terminate process, do not influenceing critical software
Mobile phone EMS memory is significantly reduced on the premise of process and service to take and the electric quantity consumption during screen locking.
In addition, the mode that the embodiment of the present invention can also provide user's manual calibration is supplemented management of process.Specifically
, visualization interface is provided a user, receives manual calibration of the user to management of process.To the manual calibration bag of management of process
Include:According to the priority of each process, process is performed wouldn't the operation of dormancy or direct dormancy after dormancy, screen locking;Or root
Selected according to user, screen locking dormancy is performed to the process of application-specific or keeps background operation state.
For example, user can check which software level priority higher (wouldn't dormancy), which software according to visualization interface
Priority relatively low (can be by dormancy after screen locking), which software (dormancy) not in running background.And can will be because of error in judgement
The software for being included in " dormancy after screen locking " ignores dormancy, it is remained background operation state.Also can will be because of error in judgement
The software forced dormancy of " dormancy after screen locking " is not included in, it is all moved to end process after each screen locking.
Also, scheme can be optimized in a manner of application program white list and application program blacklist.A kind of situation
It is to judge whether application program corresponding to process is included in preset application program white list, if it is, the process is kept
For running status.Such case can ensure that the application program that priority is relatively low but is paid special attention to by user or system remains on
State, such as the application program of a viewing video, if the user desired that being continued to run with after screen locking so as to complete to download offline
Operation, then this application program can be added in application program white list, so, even if to correspond to process excellent for the application program
First level is relatively low, also will not be by dormancy.Another situation is to judge whether application program corresponding to process is included in preset answer
With in program blacklist, if it is, the process is arranged into resting state.Such case can ensure priority may it is higher still
The application program that dormancy is particularly configured to by user or system is not take up internal memory.
It can be seen that the embodiment of the present invention is used as foundation by process priority, the process relatively low to priority closed or
Person's dormancy, preferably process relatively low to priority after screen locking progress dormancy processing, so as to save memory headroom, reduces electricity
Consumption.In addition, under the dual decision logic of automatic intelligent identification and user's manual calibration, it is ensured that useful needed for user
Background process is never by auto sleep, and other unwanted background process of user are all by auto sleep.Android hand is kept with this
Long-term low EMS memory occupation and the low battery consumption of machine system.
Corresponding with the above method, the present invention also provides the device that a kind of process to application program is managed.The dress
Putting can be realized by hardware, software or software and hardware combining mode.The device can refer to the functional module of terminal inner, also may be used
To refer to terminal in itself, as long as terminal includes the function of realizing the device.Wherein, the operating system of terminal includes ccf layer
And application layer.
Fig. 2 shows the schematic device that the process according to an embodiment of the invention to application program is managed.
The device includes:
Broadcast message reception unit 201, broadcast the message for reception system, determine terminal whether in screen closing shape
State;
Process priority acquiring unit 202, for when it is determined that screen is closed, being connect by application call
Mouth obtains the priority that each application program corresponds to process;
Management of process unit 203, for according to preset management of process rule, the relatively low process of priority being closed or being set
It is set to resting state.
Preferably, the process priority acquiring unit 202 is specifically used for:By the process identification (PID) of each application program,
The process significance index of each application program is found, according to the process significance index, it is determined that each application program
Process priority.
Preferably, the process priority acquiring unit 202 is specifically used for:The application program that acquisition system is currently running is entered
Journey information, by the numerical value of the importance attribute in the Procession information of application programme being currently running, it is determined that each applying journey
The process priority of sequence.
Preferably, the management of process rule includes:After terminal reaches the scheduled time by screen locking, priority is less than
Process corresponding to the user application and system application of priority lowest threshold is arranged to resting state.
Preferably, in addition to manual calibration unit 204, for providing a user visualization interface, user is received to process
The manual calibration of management.
Preferably, the manual calibration unit 204 is specifically used for:According to the priority of each process, process is performed temporary
The operation of dormancy or direct dormancy after not dormancy, screen locking;Or selected according to user, the process of application-specific is performed
Screen locking dormancy keeps background operation state.
Preferably, the device also includes:List judging unit 205, judges whether application program corresponding to process is included in
In preset application program white list, if it is, indicating that the process is remained running status by the management of process unit 203.
Preferably, the device also includes:List judging unit 205, for judging whether application program corresponding to process wraps
It is contained in preset application program blacklist, if it is, indicating that the process is arranged to dormancy shape by the management of process unit 203
State.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize that the process according to embodiments of the present invention to application program carries out pipe
The some or all functions of some or all parts in the device of reason.The present invention is also implemented as being used to perform here
The some or all equipment or program of device of described method are (for example, computer program and computer program production
Product).Such program for realizing the present invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint
What other forms provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (16)
1. a kind of method that process to application program is managed, it is characterised in that the behaviour of terminal where the application program
Making system includes application layer and system framework layer, and by injected system service routine, replace the system framework layer is
The variable for being used to receive Inter-Process Communication data in system service is the memory variable of the application layer so that memory variable
Methods described is performed prior to system service, methods described includes:
Reception system broadcasts the message, and determines whether terminal is in screen closed mode;
When it is determined that screen is closed, the application layer is by application call interface from the system framework
Layer obtains the priority that each application program corresponds to process;The priority that each application program of acquisition corresponds to process includes:
The Procession information of application programme object that acquisition system is currently running, pass through the Procession information of application programme object being currently running
The numerical value of importance attribute is obtained, it is determined that the process priority of each application program;
Dormancy shape is closed or be arranged to the relatively low process of priority by the application layer according to preset management of process rule
State.
2. the method as described in claim 1, it is characterised in that the Procession information of application programme object being currently running refers to
RunningAppProcessInfo objects in Android operation system.
3. method as claimed in claim 2, it is characterised in that the importance attribute refers to
Constant IMOPORTANCE inside RunningAppProcessInfo objects.
4. the method as described in claim 1, it is characterised in that the management of process rule includes:Reached in terminal by screen locking
After the scheduled time, by priority less than process corresponding to the user application and system application of priority lowest threshold
It is arranged to resting state.
5. the method as described in claim 1, it is characterised in that also include:Visualization interface is provided a user, receives user couple
The manual calibration of management of process.
6. method as claimed in claim 5, it is characterised in that the manual calibration to management of process includes:
According to the priority of each process, process is performed wouldn't the operation of dormancy or direct dormancy after dormancy, screen locking;Or
Selected according to user, screen locking dormancy is performed to the process of application-specific or keeps background operation state.
7. the method as described in claim 1, it is characterised in that also include:
Judge whether application program corresponding to process is included in preset application program white list, if it is, the process is protected
Hold as running status.
8. the method as described in claim 1, it is characterised in that also include:
Judge whether application program corresponding to process is included in preset application program blacklist, if it is, the process is set
It is set to resting state.
9. the device that a kind of process to application program is managed, wherein, the operating system of terminal where the application program
Including application layer and system framework layer, by injected system service routine, the system service of the system framework layer is replaced
It is interior be used to receiving Inter-Process Communication data variable be the application layer memory variable so that memory variable prior to
System service is performed, it is characterised in that described device includes:
Broadcast message reception unit, broadcast the message for reception system, determine whether terminal is in screen closed mode;
Process priority acquiring unit, for when it is determined that screen is closed, passing through application in the application layer
Routine call interface corresponds to the priority of process from each application program of system framework layer acquisition;It is described to obtain each application
The priority that program corresponds to process includes:The Procession information of application programme object that acquisition system is currently running, by it is described
The Procession information of application programme object of operation obtains the numerical value of importance attribute, it is determined that the process priority of each application program;
Administrative unit, for, according to preset management of process rule, the relatively low process of priority being closed in the application layer
Close or be arranged to resting state.
10. device as claimed in claim 9, it is characterised in that the Procession information of application programme object that is currently running is
Refer to the RunningAppProcessInfo objects in Android operation system.
11. device as claimed in claim 10, it is characterised in that the importance attribute refers to
Constant IMOPORTANCE inside RunningAppProcessInfo objects.
12. device as claimed in claim 9, it is characterised in that the management of process rule includes:Reached in terminal by screen locking
After the scheduled time, by priority less than process corresponding to the user application and system application of priority lowest threshold
It is arranged to resting state.
13. device as claimed in claim 9, it is characterised in that also include:Manual calibration unit, can for providing a user
Depending on changing interface, receive manual calibration of the user to management of process.
14. device as claimed in claim 13, it is characterised in that the manual calibration unit is specifically used for:According to it is each enter
The priority of journey, process is performed wouldn't the operation of dormancy or direct dormancy after dormancy, screen locking;Or selected according to user, it is right
The process of application-specific performs screen locking dormancy or keeps background operation state.
15. device as claimed in claim 9, it is characterised in that also include:List judging unit, judging should corresponding to process
Whether it is included in program in preset application program white list, if it is, indicating that the management of process unit protects the process
Hold as running status.
16. device as claimed in claim 9, it is characterised in that also include:List judging unit, for judging that process is corresponding
Application program whether be included in preset application program blacklist in, if it is, indicating that the management of process unit enters this
Journey is arranged to resting state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410466754.6A CN104199731B (en) | 2014-09-12 | 2014-09-12 | The method and device being managed to the process of application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410466754.6A CN104199731B (en) | 2014-09-12 | 2014-09-12 | The method and device being managed to the process of application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104199731A CN104199731A (en) | 2014-12-10 |
CN104199731B true CN104199731B (en) | 2018-02-06 |
Family
ID=52085028
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410466754.6A Active CN104199731B (en) | 2014-09-12 | 2014-09-12 | The method and device being managed to the process of application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104199731B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486510A (en) * | 2014-12-16 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal |
JP6445718B2 (en) * | 2015-04-14 | 2018-12-26 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Process management method, apparatus, and device |
CN105159776B (en) * | 2015-08-03 | 2019-02-19 | 中科创达软件股份有限公司 | Process handling method and device |
CN105278370B (en) * | 2015-09-30 | 2018-03-20 | 小米科技有限责任公司 | Energy-saving mode open method and device |
CN106201684A (en) * | 2016-06-30 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method managing application and terminal |
CN107239354B (en) * | 2017-06-06 | 2021-01-26 | 深圳天珑无线科技有限公司 | Method and terminal for notifying screen-off event |
CN107479954B (en) * | 2017-07-31 | 2019-10-29 | Oppo广东移动通信有限公司 | Process management method, device, storage medium and electronic equipment |
CN107450709B (en) * | 2017-07-31 | 2019-09-24 | Oppo广东移动通信有限公司 | Application processing method, device, storage medium and electronic equipment |
CN107544847A (en) * | 2017-08-16 | 2018-01-05 | 惠州Tcl移动通信有限公司 | Terminal discharges method, storage medium and the terminal that background process takes resource automatically |
CN107741864A (en) * | 2017-09-20 | 2018-02-27 | 维沃移动通信有限公司 | The progress control method and mobile terminal of a kind of application program |
CN108509263A (en) * | 2018-03-28 | 2018-09-07 | 深圳酷泰丰科技有限公司 | A kind of background process management method and system |
CN110955512B (en) * | 2018-09-27 | 2023-05-30 | 阿里巴巴集团控股有限公司 | Cache processing method, device, storage medium, processor and computing equipment |
CN111352710B (en) * | 2018-12-24 | 2024-02-06 | 三六零科技集团有限公司 | Process management method and device, computing equipment and storage medium |
CN111027055A (en) * | 2019-03-19 | 2020-04-17 | 哈尔滨安天科技集团股份有限公司 | Method and device for hiding android system process and storage device |
CN110096347A (en) * | 2019-03-29 | 2019-08-06 | 努比亚技术有限公司 | A kind of process back-stage management method, terminal and computer readable storage medium |
CN110086932B (en) * | 2019-04-24 | 2021-05-25 | 努比亚技术有限公司 | Process starting control method, wearable device and storage medium |
CN111984538A (en) * | 2020-08-24 | 2020-11-24 | 深圳市捷诚技术服务有限公司 | System information output method and device, computer readable storage medium and terminal |
CN112256171A (en) * | 2020-10-20 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Method, device, terminal and storage medium for presenting information in screen locking interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103345397A (en) * | 2013-07-11 | 2013-10-09 | 北京奇虎科技有限公司 | Method and device for cleaning processes of mobile terminal |
CN103744585A (en) * | 2014-02-14 | 2014-04-23 | 贝壳网际(北京)安全技术有限公司 | Information displaying method applied to screen locking state and device thereof |
CN104010230A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Video playing method and system in screen-locked state |
-
2014
- 2014-09-12 CN CN201410466754.6A patent/CN104199731B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092691A (en) * | 2013-01-23 | 2013-05-08 | 广东欧珀移动通信有限公司 | Process management method and management unit of Android system |
CN103345397A (en) * | 2013-07-11 | 2013-10-09 | 北京奇虎科技有限公司 | Method and device for cleaning processes of mobile terminal |
CN103744585A (en) * | 2014-02-14 | 2014-04-23 | 贝壳网际(北京)安全技术有限公司 | Information displaying method applied to screen locking state and device thereof |
CN104010230A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Video playing method and system in screen-locked state |
Also Published As
Publication number | Publication date |
---|---|
CN104199731A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104199669B (en) | The method and device being managed to the process of application program | |
CN104199731B (en) | The method and device being managed to the process of application program | |
CN104572141B (en) | The online updating method of the bootstrap of automobile electric control unit ECU | |
CN104750550B (en) | Mobile terminal application management system, method and access times record generation method | |
CN110221921A (en) | EMS memory management process, terminal and computer readable storage medium | |
CN103595867B (en) | The application program implementation method identified based on many cards and device | |
CN104484223B (en) | A kind of Android system application method for closing and device | |
EP2597814A1 (en) | Abnormality alarm method and service node for intelligent home system | |
CN108228210A (en) | A kind of resource regeneration method and system | |
US10592566B2 (en) | Intelligent edge device for filtering internet of things (IoT) data | |
CN103226491B (en) | A kind of method and device that Application Status are set | |
CN103209439A (en) | Method, apparatus and device for monitoring data traffic | |
CN106484509A (en) | A kind of output intent of pop-up, device and terminal | |
CN105095749A (en) | Status bar notification takeover method and device | |
CN104503831B (en) | Equipment optimization method and device | |
CN104317373A (en) | Method and device for cooling mobile terminal | |
CN107482709A (en) | A kind of charging management method, device, electronic equipment and readable storage medium storing program for executing | |
CN105786519B (en) | Android device program management method and android device | |
CN108196899B (en) | Method and device for creating multiple users | |
CN105224421B (en) | Data backup method and device and electronic equipment | |
CN106533763A (en) | Method and device for downloading application update package and user terminal | |
CN106843977B (en) | A kind of processing method, device and the mobile terminal of application program self-starting | |
CN104580267A (en) | A resource downloading method, device, server and corresponding system | |
CN106874086A (en) | A kind of processing method of application program self-starting, device and mobile terminal | |
CN109257255A (en) | A kind of flux monitoring method, phone wrist-watch, server and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220711 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co., Ltd |
|
TR01 | Transfer of patent right |