CN106020426B - A kind of method for releasing and device waking up lock - Google Patents
A kind of method for releasing and device waking up lock Download PDFInfo
- Publication number
- CN106020426B CN106020426B CN201610379891.5A CN201610379891A CN106020426B CN 106020426 B CN106020426 B CN 106020426B CN 201610379891 A CN201610379891 A CN 201610379891A CN 106020426 B CN106020426 B CN 106020426B
- Authority
- CN
- China
- Prior art keywords
- application process
- lock
- wake
- associated application
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of method for releasing and device for waking up lock;This method comprises: when closing application process, the wake-up lock that release application process is held, determines associated application process associated with the application process, judges whether above-mentioned associated application process holds wake-up lock, if so, discharging the wake-up lock that the associated application process is held;This programme can be when closing application process, the wake-up lock that application process associated with the application process is held further is discharged while dischargeing the wake-up lock of the application process, to reduce the consumption of electricity in terminal, the electricity of terminal is saved, and then the cruising ability of terminal can be improved.
Description
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of method for releasing and device for waking up lock.
Background technique
With the development in telecommunications field, the function of mobile terminal such as smart phone is stronger and stronger, and user is not only
It made a phone call, sent short messages by smart phone, user can also install the application journey of various functions in the terminal according to demand
Sequence, to meet oneself the different aspect the needs of (such as game, reading, music, video playing, shopping etc.).
Currently, it is other using journey that some application programs are often associated with starting in the process using smart phone
Sequence and after running background such as opens Alipay can be associated with the application programs such as starting Taobao, day cat, and application process is being moved back
Backstage is arrived out and discharges its wake-up lock held later, and the wake-up lock that background application associated with the application process is held is not
Have and be released immediately, it is also necessary to systematic wake-up lock a period of time is held, to guarantee its normal operation, but if for a long time
This cannot be discharged and wake up lock, mobile phone is will lead to and be unable to normal depth sleep, it appears that mobile phone no longer works, actually hand
For machine when standby, the equipment such as the CPU on backstage are constantly in working condition, increase disappearing for unnecessary standby battery electricity
Consumption.If user mobile phone is mounted with that more such application process in running background, just will appear more associated application
Process is in running background and holds wake-up lock, to cause the waste of terminal power.
From the foregoing, it will be observed that in existing terminal application process close after its associated application process will continue to running background simultaneously
Hold wake-up lock, to cause the waste of terminal power.
Summary of the invention
The embodiment of the present invention provides a kind of method for releasing and device for waking up lock, can discharge this while closing application
The wake-up lock held using associated background application, to save the electricity of terminal.
The embodiment of the present invention provides a kind of method for releasing for waking up lock, comprising the following steps:
When closing application process, the wake-up lock that the application process is held is discharged;
Determine associated application process associated with the application process;
Judge whether the associated application process holds wake-up lock;
If so, discharging the wake-up lock that the associated application process is held.
Further, after determination associated application process associated with the application process, judge the pass
Before whether connection application process holds wake-up lock, the method also includes:
Judge the associated application process whether just in terminal front stage operation;
The step of whether the associated application process holds wake-up lock judged if it is not, then executing.
In embodiments of the present invention, after determining associated application process associated with the application process, judge institute
State whether associated application process is held before waking up lock, the method also includes:
Judge whether the associated application process is default application process;
The step of whether the associated application process holds wake-up lock judged if it is not, then executing.
Further, the step of determination associated with application process associated application process specifically includes:
Obtain the user identity information in the application process of the closing;
The process with the identical user identity information is searched in terminal system;
Determine that the process is the associated application process.
Further, the step of determination associated with application process associated application process specifically includes:
Obtain the process identity information of the application process;
Associated application process is determined according to the process identity information.
The embodiment of the invention also provides it is a kind of wake up lock release device, comprising: the first release module, determining module,
First judgment module and the second release module;
First release module when for closing application process, discharges the wake-up lock that the application process is held;
The determining module, for determining associated application process associated with the application process;
The first judgment module, for judging whether the associated application process holds wake-up lock;
Second release module, for when the first judgment module is judged as YES, discharge the associated application into
The wake-up of Cheng Chiyou is locked.
Further, described device further include: the second judgment module;
Second judgment module, for determining associated application associated with the application process in the determining module
After process, before the first judgment module judges whether the associated application process holds wake-up lock, the association is judged
Whether application process is just in terminal front stage operation;
The first judgment module, specifically for judging that the association is answered when second judgment module is judged as NO
Whether hold wake-up lock with process.
In the embodiment of the present invention, described device further include: third judgment module;
The third judgment module, for determining associated application associated with the application process in the determining module
After process, before the first judgment module judges whether the associated application process holds wake-up lock, the association is judged
Whether application process is default application process;
The first judgment module, specifically for judging that the association is answered when the third judgment module is judged as NO
Whether hold wake-up lock with process.
Further, the determining module specifically includes: acquisition submodule searches submodule and the first determining submodule
Block;
The acquisition submodule, the user identity information in application process for obtaining the closing;
The lookup submodule, for searching the process with the identical user identity information in terminal system;
Described first determines submodule, for determining that the process is the associated application process.
Further, the determining module specifically includes: the second acquisition submodule and second determines submodule;
Second acquisition submodule, for obtaining the process identity information of the application process;
Described second determines submodule, for determining associated application process according to the process identity information.
The embodiment of the present invention first when closing application process, answer with this by the wake-up lock that release application process is held, determination
With the associated associated application process of process, judge whether above-mentioned associated application process holds wake-up lock, if so, discharging the pass
The wake-up lock that connection application process is held;This programme when closing application process, can discharge the wake-up lock of the application process
The wake-up lock that further release application process associated with the application process is held simultaneously, to reduce electricity in terminal
Consumption, save the electricity of terminal, and then the cruising ability of terminal can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow diagram of the method for releasing for wake-up lock that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of method for releasing for waking up lock provided by Embodiment 2 of the present invention;
The flow diagram of release cpu lock in a kind of smart phone that Fig. 3 provides for the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of the release device for wake-up lock that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram of the release device for second of wake-up lock that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of method for releasing and device for waking up lock.It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle for the release device for waking up lock, which specifically can integrate in terminal
In, which can be mobile internet device (such as smart phone, tablet computer), intelligent wearable device (such as smartwatch)
Each class of electronic devices.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the method for releasing for wake-up lock that the embodiment of the present invention one provides,
The present embodiment wake-up lock method for releasing include:
Step S101, when closing application process, the wake-up that release application process is held is locked.
Specifically, can receive the out code of user, which includes the identification information of application process, according to above-mentioned pass
Instruction is closed, application process is closed and discharges the wake-up lock that the application process is held simultaneously.
In embodiments of the present invention, above-mentioned before the wake-up lock for discharging application process after closing above-mentioned application process
Method can also include: to judge whether the application process holds wake-up lock, if so, discharging the wake-up that the application process is held
Lock.Wherein, judge the application process whether hold wake up lock method can there are many, such as detection terminal in whether there is
In running order wake-up lock, if so, further judging to answer in above-mentioned in running order wake-up lock with the presence or absence of this
The wake-up lock held with process, and if it exists, then determine that the application process holds wake-up lock.Wherein it is possible to the frame for passing through system
Layer locks corresponding application process title come the title for obtaining in running order wake-up lock and in running order wake-up,
It should be noted that above-mentioned in running order wake-up lock may have one, it is also possible to have it is multiple, when detecting in work
The wake-up lock of state then obtains multiple wake-up locks corresponding application process title when having multiple respectively, it is determined whether exist with it is upper
State the corresponding wake-up lock of application process.Judge that the step of whether above-mentioned application process holds wake-up lock can specifically include:
It detects in terminal and is locked with the presence or absence of in running order wake-up;
If so, judging whether above-mentioned in running order wake-up lock is wake-up corresponding with above-mentioned application process
Lock;
If so, determining that above-mentioned application process holds wake-up lock.
Step S102 determines associated application process associated with the application process closed.
In practical application, by taking the smart machine based on Android system as an example, all are all the touchings of software process event
Caused by the starting of row backstage.Because the management of process mechanism of Android system is event-triggered, for example, when booting, open certain
When application process, when network connection change, when not enough power supply, time change, when plugging in, these shapes when disconnecting power supply etc.
The change of state can all regard an event as, and after Android system allows program to be associated with these events, such as association power-on event, just
It is equivalent to our starting up generally.But Android system can permit a program and be associated with multiple events, with
Google Maps citing, its associated trigger event have " after booting, installation procedure, Uninstaller, more new procedures, plugging in " etc.
Deng, any one of these events state changes, system will AutoBackground run Google Maps, say opening for another example
When Alipay APP, which can be associated with the application processes such as starting day cat APP, Taobao APP as a trigger event.Very
Self-starting item caused by after more software installations are complete, can voluntarily start the process of itself according to different trigger conditions.In addition,
In the numerous application processes installed on user terminal, there are relation of interdependence between some application processes, for example, using into
When journey A and application process B are run simultaneously, if forcibly closing application process A, application process B will be unable to run, it may be considered that
Application process A and application process B belong to association process.
In the embodiment of the present invention, the identification information of the application process of available above-mentioned closing, which can
Think the characteristic information in the application process, such as the uid of the application process (User Identifier, user identity prove)
Information, uid are a marks for describing business association point process, and identical services difference process generally will use identical uid, from
And the application process for searching system background operation uses the application process of the uid in the middle, which is that above-mentioned association is answered
Use process.I.e. above-mentioned the step of determining associated application process associated with its process according to the application process of closing, can be specific
Include:
Obtain the identification information in the application process closed;
The process with same identification information is searched in terminal system;
Determine that the process is associated application process.
In the other embodiment of the present invention, it can also be searched in preset associated application process list and closing
The associated application process of application process, wherein the associated application process list can be pre- to download from server in advance
It may include the letter of application process and application process associated with the application process if list, in the associated application process list
Breath.
Optionally, the identification information (such as title of application process) for the application process that user closes can also be first determined,
The identification information is sent to server so that server searched in preset associated application process list with this application into
Journey identifies corresponding application process mark, and the corresponding application process mark is sent to the user terminal, so that it is determined that association
Application process.
Step S103, judges whether associated application process holds wake-up lock.If so, S104 is thened follow the steps, if it is not, then holding
Row step S105.
For example, the identification information of the available associated application process, searches in systems and is somebody's turn to do according to the identification information
The corresponding and in running order wake-up lock of identification information, and if it exists, then determine that the associated application process holds wake-up lock.
Step S104, the wake-up lock that release associated application process is held.
For example, if judging, above-mentioned associated application process holds wake-up lock, wake-up lock is discharged, so that the cpu of terminal
It is able to enter deep sleep, to reduce the consumption of unnecessary battery when on standby electricity, increases stand-by time.
Optionally, before discharging the wake-up lock that the associated application process is held, the confirmation message that user issues is received, so
It discharges above-mentioned wake-up according to the confirmation message afterwards to lock, for example, a prompt window is generated in mobile phone screen, in the prompt window
It may include associated application progress information, remind whether user discharges the wake-up lock of these application processes, if user clicks " really
Recognize " button, then the wake-up lock that above-mentioned associated application process is held is discharged;If user clicks the " Cancel " button, above-mentioned
Lock is waken up not to be further processed.
Step S105 determines that its associated application process does not hold wake-up lock.
In embodiments of the present invention, it is contemplated that the flexibility of user's using terminal, the embodiment of the present invention can increase by one
Control switch, the open and close of the delivery mode for controlling wake-up lock.
Optionally, the delivery mode provided in an embodiment of the present invention for waking up lock can reduce the power consumption of terminal, and then increase
Stand-by time, therefore a remaining capacity threshold value can also be arranged in the processing method in the terminal in advance, when terminal power is lower than
When the preset threshold, the function is automatically opened, for example, mobile phone enters battery saving mode and beats automatically when mobile phone electricity is lower than 20%
The function is opened, wherein the preset threshold of remaining capacity can be according to user demand come sets itself.
From the foregoing, it will be observed that the embodiment of the present invention is used when closing application process, the wake-up lock that release application process is held, really
Fixed associated application process associated with the application process, judges whether above-mentioned associated application process holds wake-up lock, if so,
Discharge the wake-up lock that the associated application process is held;This programme can discharge the application process when closing application process
The wake-up lock that application process associated with the application process is held further is discharged while waking up lock, to reduce end
The consumption of electricity in end, saves the electricity of terminal, and then the cruising ability of terminal can be improved.
Embodiment two,
On the basis of the method that the present embodiment will be described in embodiment one, processing method of the invention is described further,
With reference to Fig. 2, the method for releasing provided in an embodiment of the present invention for waking up lock includes:
Step S201, when closing application process, the wake-up that release application process is held is locked.
Step S202 obtains the user identity information in the application process of closing.
Specifically, the uid of the available application process, by taking the terminal based on Android system as an example, in order to realize number
According to sharing, android is that each application is nearly all assigned with different uid, and identical services difference process generally will use identical
Uid, specifically, the attribute information of the available application process, wherein in above-mentioned attribute information including the application process
uid。
Step S203 searches the process with same subscriber identification information in systems;
Step S204 determines that the process is associated application process;
Above-mentioned steps S202-S204 is the process for determining associated application process, in practical application process, it is contemplated that have
It can mutually be bound between a little application processes, at this point, the application process for determining binding is associated application process, which can be specific
Are as follows: obtain the process identity information of the application process;
Associated application process is determined according to the process identity information.
Whether step S205, judge associated application process just in terminal front stage operation, if so, then follow the steps S208, if
It is no, then follow the steps S206.
In this step, it is contemplated that user may open associated with it answer on foreground after closing an application process
With process, does not need to discharge the wake-up lock that the associated application process is held at this time, judge that associated application process is so increasing
It is no just the terminal front stage operation the step of, increase convenience.
Step S206 judges whether associated application process is default application process, if so, S208 is thened follow the steps, if it is not,
Then follow the steps S207.
In embodiments of the present invention, default application process set can be pre-established, which can be
Common application process, or can permit the application process that backstage holder lock is not released, thus judge associated application into
The step of whether journey is default application process can specifically include:
Obtain the identification information of the associated application process;
It whether there is sample corresponding with the identification information in default application process set search;
If it does not exist, it is determined that the associated application process is not default application process.
Step S207, judges whether associated application process holds wake-up lock, if so, S209 is thened follow the steps, if it is not, then holding
Row step S209.
In embodiments of the present invention, judge above-mentioned associated application process whether hold wake up lock method can there are many,
Such as terminal can be carried out having detected whether waking up lock it is in running order, if so, judge wake-up lock whether be with it is upper
State the lock of wake-up corresponding to associated application process.
Step S208 allows associated application process to hold wake-up lock.
For example, when front stage operation of the associated application process just in terminal, or judge that the associated application process is pre-
If when application process, it is allowed to hold wake-up lock.
Step S209, the wake-up lock that release associated application process is held.
Optionally, when discharging the wake-up lock that the associated application process is held, prompt information can be generated, to notify user
Those wake up lock and are released.
Step S210 determines that associated application process does not hold wake-up lock.
In the embodiment of the present invention, above-mentioned terminal can be, but not limited to the intelligence such as smart phone, tablet computer, laptop
Terminal, wherein the operating system of the terminal can be Android operation system, IOS operating system, Black Berry operation system
System etc., the present invention is without limitation.
From the foregoing, it will be observed that the embodiment of the present invention is used when closing application process, the wake-up lock that release application process is held, really
Fixed associated application process associated with the application process, judges whether above-mentioned associated application process holds wake-up lock, if so,
Discharge the wake-up lock that the associated application process is held;This programme can discharge the application process when closing application process
The wake-up lock that application process associated with the application process is held further is discharged while waking up lock, to reduce end
The consumption of electricity in end, saves the electricity of terminal, and then the cruising ability of terminal can be improved, and in addition scheme does not need to increase
Any device and Material Cost implement relatively simple.
Embodiment three,
The present embodiment will be by taking smart phone as an example, and above-mentioned wake-up lock is that cpu locks, and describes this programme in practical application
Specific implementation step, referring to Fig. 3, the following steps are included:
Step S301 when smart phone closes application process, discharges the cpu lock that the application process is held.
For example, when closing using A, system can find it is corresponding with A in the in running order cpu lock in backstage,
And cpu lock is discharged.
Step S302, smart phone obtain the uid in the application process of the closing;
Step S303, smart phone search the process with identical uid in systems;
Step S304, smart phone determine that the process is associated application process.
For example, using identical uid in the process of application process A and application process B, then after application A is closed, acquisition is answered
With the uid in A process, then further searches for other processes in the process of system equally with above-mentioned uid namely answer
With process B, determine that application process B is associated application process.
Step S305, smart phone judge associated application process whether just in mobile phone front stage operation, if so, thening follow the steps
S308, if it is not, thening follow the steps S306.
For example, judging whether current mobile phone foreground is currently running the application process after determining that associated application process is B
B。
Step S306, smart phone judges associated application process whether in white list, if so, thening follow the steps
S308, if it is not, thening follow the steps S307.
Specifically, can establish white list previously according to user instruction, the application process for including in the white list can be
Some common application processes, or can permit the application process that backstage holder lock is not released;Specifically, can should
Associated application process is matched with the application process in white list, if the application process in the application process and white list
Successful match, the i.e. application process are in white list, so the application process is allowed to hold cpu lock;If the application process with
It fails to match for application process in white list, i.e. the application process is not in white list, so not allowing the application process
Hold cpu lock.
Step S307, smart phone judge whether associated application process holds cpu lock, if so, S309 is thened follow the steps, if
It is no, then follow the steps S310.
By taking above-mentioned associated application process B as an example, specifically, with the presence or absence of in running order in detection smart phone
Cpu lock, and if it exists, then further judge whether the in running order cpu lock is cpu lock corresponding with application process B,
If so then execute step S309, if it is not, thening follow the steps S310.
Step S308, smart phone allow the associated application process to hold cpu lock.
By taking above-mentioned associated application process B as an example, if smart phone currently just in front stage operation application process B, or really
Fixed application process B then allows application process B to hold cpu lock in white list.
Step S309, the cpu lock that smart phone release associated application process is held.
Optionally, when discharging the cpu lock that the application process is held, prompt information can be generated, to prompt the user cpu
Lock is released.
Step S310, smart phone determine that associated application process does not hold cpu lock, are not further processed.
From the foregoing, it will be observed that the embodiment of the present invention is used when smart phone closes application process, release application process is held
Cpu lock, determines associated application process associated with the application process, judges whether above-mentioned associated application process holds cpu lock,
If so, discharging the cpu lock that the associated application process is held;This programme can discharge this when mobile phone closes application process
The cpu lock that application process associated with the application process is held further is discharged while the cpu lock of application process, thus
The consumption for reducing electricity in terminal, saves the electricity of terminal, and then the cruising ability of terminal can be improved, and promotes user's body
It tests.
Example IV,
In order to better implement above method embodiment, the present invention also provides a kind of release device for waking up lock, the dresses
Setting can integrate in the terminal, which can set for mobile internet device (such as smart phone, tablet computer), intelligence wearing
Standby (such as smartwatch) all kinds of intelligent electronic devices.
As shown in figure 4, the release device of wake-up lock specifically includes: the first release module 401, determining module 402, first
Judgment module 403 and the second release module 404;
First release module 401, when for closing application process, the wake-up that release application process is held is locked;
The determining module 402, for determining associated application process associated with the application process of closing;
The first judgment module 403, for judging whether associated application process holds wake-up lock;
Second release module 404, for when first judgment module 403 is judged as YES, release associated application process to be held
Some wake-up locks.
Preferably, as shown in figure 5, the release device provided in an embodiment of the present invention for waking up lock can also include: second to sentence
Disconnected module 405 and third judgment module 406;
Second judgment module 405, for determining that association associated with the application process closed is answered in determining module 402
After process, before first judgment module 403 judges whether associated application process holds wake-up lock, associated application process is judged
Whether just in terminal front stage operation;
First judgment module 403, specifically for judging associated application process when the second judgment module 405 is judged as NO
Whether wake-up lock is held;
The third judgment module 406, for determining that association associated with the application process closed is answered in determining module 402
After process, before first judgment module 403 judges whether associated application process holds wake-up lock, associated application process is judged
It whether is default application process;
First judgment module 403, specifically for judging associated application process when third judgment module 406 is judged as NO
Whether wake-up lock is held.
In the embodiment of the present invention, the determining module 402 in above-mentioned apparatus can be specifically included: first obtains submodule
Block searches submodule and the first determining submodule;
First acquisition submodule, for obtaining the user identity information in the application process closed;
The lookup submodule, for searching the process with same subscriber identification information in terminal system;
The first determining submodule, for determining that the process is associated application process.
Optionally, determining module 402 can also specifically include: the second acquisition submodule and second determines submodule;
Second acquisition submodule, for obtaining the process identity information of application process;
The second determining submodule, for determining associated application process according to process identity information.
From the foregoing, it will be observed that the embodiment of the present invention is used when closing application process, the first release module 401 discharges application process
The wake-up lock held, determining module 402 determine associated application process associated with the application process, first judgment module 403
Judge whether above-mentioned associated application process holds wake-up lock, if so, discharging the associated application process by the second release module 404
The wake-up lock held;This programme when closing application process, can discharge further while the wake-up lock of the application process
The wake-up lock that application process associated with the application process is held is discharged to save to reduce the consumption of electricity in terminal
The electricity of terminal has been saved, and then the cruising ability of terminal can be improved.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not
It repeats again.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium
It in matter, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, can be wrapped in the process of implementation
Include the process of the embodiment such as information issuing method.Wherein, storage medium may include: read-only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of method for releasing for waking up lock provided in an embodiment of the present invention and device are described in detail above, it is each
Functional module can integrate in a processing chip, is also possible to modules and physically exists alone, can also be two or two
It is a to be integrated in a module with upper module.Above-mentioned integrated module both can take the form of hardware realization, can also use
The form of software function module is realized.Specific case used herein explains the principle of the present invention and embodiment
It states, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for this field
Technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion
The contents of this specification are not to be construed as limiting the invention.
Claims (9)
1. a kind of method for releasing for waking up lock, which comprises the following steps:
When closing application process, the wake-up lock that the application process is held is discharged;
Judge whether terminal power is lower than remaining capacity threshold value;
If being lower than, it is determined that associated application process associated with the application process, the association process include other application
The process of process;
Judge whether the associated application process is default application process;
If it is not, then judging whether the associated application process holds wake-up lock;
If so, discharging the wake-up lock that the associated application process is held.
2. method for releasing as described in claim 1, which is characterized in that in determination pass associated with the application process
After joining application process, before judging whether the associated application process holds wake-up lock, the method also includes:
Judge the associated application process whether just in terminal front stage operation;
The step of whether the associated application process holds wake-up lock judged if it is not, then executing.
3. method for releasing as described in claim 1, which is characterized in that determination association associated with the application process
The step of application process, specifically includes:
Obtain the user identity information in the application process of the closing;
The process with the identical user identity information is searched in terminal system;
Determine that the process is the associated application process.
4. method for releasing as described in claim 1, which is characterized in that determination association associated with the application process
The step of application process, specifically includes:
Obtain the process identity information of the application process;
Associated application process is determined according to the process identity information.
5. it is a kind of wake up lock release device, which is characterized in that including the first release module, determining module, first judgment module,
Third judgment module and the second release module;
First release module when for closing application process, discharges the wake-up lock that the application process is held;
The determining module, for judging whether terminal power is lower than remaining capacity threshold value, if being lower than, it is determined that with the application
The associated associated application process of process, the association process include the process of other application process;
The third judgment module, for judging whether the associated application process is default application process;
The first judgment module, for when the third judgment module is judged as NO, judging that the associated application process is
It is no to hold wake-up lock;
Second release module is held for when the first judgment module is judged as YES, discharging the associated application process
Some wake-up locks.
6. the release device as claimed in claim 5 for waking up lock, which is characterized in that described device further include: second judges mould
Block;
Second judgment module, for determining associated application process associated with the application process in the determining module
Later, before the first judgment module judges whether the associated application process holds wake-up lock, judge the associated application
Whether process is just in terminal front stage operation;
The first judgment module, specifically for when second judgment module is judged as NO, judge the associated application into
Whether journey holds wake-up lock.
7. the release device as claimed in claim 5 for waking up lock, which is characterized in that the determining module specifically includes: first
Acquisition submodule searches submodule and the first determining submodule;
First acquisition submodule, the user identity information in application process for obtaining the closing;
The lookup submodule, for searching the process with the identical user identity information in terminal system;
Described first determines submodule, for determining that the process is the associated application process.
8. the release device as claimed in claim 5 for waking up lock, which is characterized in that the determining module specifically includes: second
Acquisition submodule and second determines submodule;
Second acquisition submodule, for obtaining the process identity information of the application process;
Described second determines submodule, for determining associated application process according to the process identity information.
9. a kind of storage medium, it is characterised in that the storage medium is stored with instruction, and described instruction is executed by processor realization
Such as the step of any one of claim 1-3 the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379891.5A CN106020426B (en) | 2016-05-31 | 2016-05-31 | A kind of method for releasing and device waking up lock |
PCT/CN2017/086474 WO2017206877A1 (en) | 2016-05-31 | 2017-05-29 | Wakeup lock releasing method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379891.5A CN106020426B (en) | 2016-05-31 | 2016-05-31 | A kind of method for releasing and device waking up lock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106020426A CN106020426A (en) | 2016-10-12 |
CN106020426B true CN106020426B (en) | 2018-12-11 |
Family
ID=57092094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379891.5A Active CN106020426B (en) | 2016-05-31 | 2016-05-31 | A kind of method for releasing and device waking up lock |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106020426B (en) |
WO (1) | WO2017206877A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020426B (en) * | 2016-05-31 | 2018-12-11 | 广东欧珀移动通信有限公司 | A kind of method for releasing and device waking up lock |
CN110018885B (en) * | 2017-12-29 | 2021-06-01 | Oppo广东移动通信有限公司 | Application program freezing method and device, storage medium and terminal |
CN109375959B (en) * | 2018-09-28 | 2022-03-25 | 北京小米移动软件有限公司 | Method and device for directionally pulling up application |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808767A (en) * | 2015-03-31 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal control method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306118A (en) * | 2011-08-31 | 2012-01-04 | 中兴通讯股份有限公司 | Method and device for monitoring power consumption of application program at Android terminal |
CN104166542B (en) * | 2013-05-17 | 2018-01-05 | 腾讯科技(深圳)有限公司 | The method and apparatus that power consumption is applied in detection |
CN104503841A (en) * | 2014-12-15 | 2015-04-08 | 北京奇虎科技有限公司 | Process clearing method and process clearing device |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
CN106020426B (en) * | 2016-05-31 | 2018-12-11 | 广东欧珀移动通信有限公司 | A kind of method for releasing and device waking up lock |
-
2016
- 2016-05-31 CN CN201610379891.5A patent/CN106020426B/en active Active
-
2017
- 2017-05-29 WO PCT/CN2017/086474 patent/WO2017206877A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808767A (en) * | 2015-03-31 | 2015-07-29 | 深圳市金立通信设备有限公司 | Terminal control method |
Also Published As
Publication number | Publication date |
---|---|
CN106020426A (en) | 2016-10-12 |
WO2017206877A1 (en) | 2017-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055073B (en) | A kind for the treatment of method and apparatus based on bright screen lock | |
CN104221445B (en) | A kind of method and terminal waking up terminal system | |
CN103324500B (en) | A kind of method and device reclaiming internal memory | |
CN102238595B (en) | Method and equipment for processing cell outage | |
KR101641174B1 (en) | Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock | |
CN106102141B (en) | A kind of processing method and processing device based on packet | |
CN103019521B (en) | A kind of mobile terminal puts out screen method and device | |
CN103973875B (en) | Mobile terminal notice center PUSH message processing method and device | |
CN106055077A (en) | Wake-up lock-based processing method and device | |
CN106256116A (en) | A kind of method controlling application program and terminal | |
KR101503628B1 (en) | Method and system for managing sleep states of interrupt controllers in a portable computing device | |
CN103713886A (en) | Reminding device in data processing equipment and reminding processing method implemented by reminding device | |
CN103336572A (en) | Intelligent terminal and power saving method thereof | |
CN106020426B (en) | A kind of method for releasing and device waking up lock | |
CN104503828A (en) | Process management method and terminal | |
CN106102142B (en) | terminal data processing method and device | |
CN106168902A (en) | Awakening control method, device and equipment | |
CN105704785A (en) | Network searching method, device and mobile terminal | |
CN104038632A (en) | Method and device for managing intelligent terminal | |
CN106055074A (en) | Method and device for processing application program | |
CN105487635A (en) | Management method of applications running in background, and terminal | |
CN106095288A (en) | A kind of based on the treating method and apparatus waking up lock up | |
CN105704758A (en) | Method and device of closing social applications based on flow monitoring | |
CN103902011A (en) | Electronic device controlling method and electronic device | |
CN104866782A (en) | Data processing method and apparatus |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |