CN106055073B - A kind for the treatment of method and apparatus based on bright screen lock - Google Patents
A kind for the treatment of method and apparatus based on bright screen lock Download PDFInfo
- Publication number
- CN106055073B CN106055073B CN201610379612.5A CN201610379612A CN106055073B CN 106055073 B CN106055073 B CN 106055073B CN 201610379612 A CN201610379612 A CN 201610379612A CN 106055073 B CN106055073 B CN 106055073B
- Authority
- CN
- China
- Prior art keywords
- application program
- bright screen
- screen lock
- terminal
- application
- 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
Abstract
The embodiment of the invention discloses a kind for the treatment of method and apparatus based on bright screen lock;The described method includes: terminal be in it is standby put out screen state when, the corresponding notification event of message is obtained, determines the corresponding application program of above-mentioned notification event, judges whether the application program holds bright screen lock, if so, the application program is prevented to pass through the screen that the bright screen lock held lights terminal;This programme is locked by discharging the bright screen that the corresponding application program of notification event is held in terminal standby, to make terminal screen keep extinguishing, reduce the consumption for lighting screen to terminal power, save the electricity of terminal, 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 for the treatment of method and apparatus based on bright screen 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, mobile terminal are already known to a part of people's life and work.
Currently, being analyzed in the process using smart phone for the power consumption condition of hardware each in mobile phone
It can be found that it is that screen is shown that power consumption is maximum, smart phone of today is in order to meet user to amusement, video, interaction
Visual demand, screen design is increasing, and the luminous needs of large screen consume a large amount of electricity, and with moving with large screen
State and touch-control effect are equally also required to a large amount of electricity and support.
However, in real life, it was found by the inventors of the present invention that the third party application installed in terminal is frequent
The message that the push of its service server can be received is reminded by way of notification event gives user (such as weather conditions, microblogging
Message, application program update push etc.), while cell phone system can be waken up and light screen, mobile phone screen is lighted to just standby
System for be the process for comparing power consumption, if user mobile phone backstage be mounted with more such application program backstage transport
Row just will appear more notification event by holding bright screen lock to wake up terminal screen, to cause the wave of terminal power
Take.
From the foregoing, it will be observed that all kinds of notification events often voluntarily wake up screen in existing terminal, to cause terminal electric
The waste of amount.
Summary of the invention
The embodiment of the present invention provides a kind for the treatment of method and apparatus based on bright screen lock, can solve and notifies in existing terminal
Event voluntarily wakes up screen, thus the technical issues of causing the waste of terminal power.
The embodiment of the present invention provides a kind of processing method based on bright screen lock, comprising the following steps:
Terminal be in it is standby put out screen state when, obtain the corresponding notification event of message;
Determine the corresponding application program of the notification event;
Judge whether the application program holds bright screen lock;
If so, the application program is prevented to pass through the screen that the bright screen lock held lights the terminal.
Further, the method also includes:
If judging, the application program does not hold bright screen lock, has detected whether the corresponding bright screen lock Shen of the application program
It please request;
If so, then refusal is to the bright screen lock application request processing, to prevent the bright screen lock of the application program.
Further, after the corresponding application program of the determination notification event, the judgement is described to apply journey
Before whether sequence holds bright screen lock, the method also includes:
Obtain the application identities of the application program;
Judge to whether there is sample application identities corresponding with the application program in default application identities set;
The step of whether application program holds bright screen lock judged if it is not, then executing.
Further, after judging that the application program holds bright screen lock, the application program is being prevented to hold by it
Before the bright screen lock having lights the screen of the terminal, the method also includes:
Whether the duration for judging that the application program holds the bright screen lock is more than preset duration;
If so, executing the step that the bright screen lock for preventing the application program from holding by it lights the screen of the terminal
Suddenly.
Further, before the corresponding notification event of the acquisition message, the method also includes:
The setting request of application program is received, the setting request carries the application identities of the application program;
It is requested according to the setting using the application identities of the application program as sample application identities, and is added to default
Application identities set.
The embodiment of the invention also provides it is a kind of based on bright screen lock processing unit, comprising: obtain module, determining module,
First judgment module and control module;
The acquisition module, for terminal be in it is standby put out screen state when, obtain the corresponding notification event of message;
The determining module, for determining the corresponding application program of the notification event;
The first judgment module, for judging whether the application program holds bright screen lock;
The control module, for when the first judgment module is judged as YES, preventing the application program by holding
The bright screen lock having lights the screen of the terminal.
Further, described device further include: detection module;
The detection module, for having detected whether the application program when the first judgment module is judged as NO
Corresponding bright screen lock application request;
The control module is also used to detect the corresponding bright screen lock application of the application program when the detection module
When request, refusal is to the bright screen lock application request processing, to prevent the bright screen lock of the application program.
Further, described device further include: the second judgment module;
Second judgment module, for the determining module determine the corresponding application program of the notification event it
Afterwards, before the first judgment module judges whether the application program holds bright screen lock, the application of the application program is obtained
Mark, and judge to whether there is default application identities corresponding with the application program in default application identities set, if it is not, then
Judge whether the application program holds bright screen lock by the first judgment module.
Further, described device further include: third judgment module;
The third judgment module, for after the first judgment module is judged as YES, the control module to be prevented
Before the bright screen lock that the application program is held by it lights the screen of the terminal, it is described to judge that the application program is held
Whether the duration of bright screen lock is more than preset duration, if so, preventing the application program from holding by it by the control module
Bright screen lock light the screen of the terminal.
Further, described device further include: request receiving module and adding module;
The request receiving module, for before the acquisition module obtains the corresponding notification event of message, reception to be answered
It is requested with the setting of program, the setting request carries the application identities of the application program;
The adding module, for being requested according to the setting using the application identities of the application program as sample application
Mark, and it is added to default application identities set.
The embodiment of the present invention first terminal be in it is standby put out screen state when, obtain the corresponding notification event of message, determine
The corresponding application program of above-mentioned notification event, judges whether the application program holds bright screen lock, if so, preventing the application program
The screen of terminal is lighted by the bright screen lock held;This programme is by dischargeing the corresponding application of notification event in terminal standby
The bright screen lock that program is held reduces the consumption for lighting screen to terminal power so that terminal screen be made to keep extinguishing, and saves
The electricity of terminal, and then can be improved the cruising ability of terminal.
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 for processing method based on bright screen lock that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of processing method based on bright screen lock provided by Embodiment 2 of the present invention;
Fig. 3 is that a kind of process for processing method based on bright screen lock in smart phone that the embodiment of the present invention three provides is shown
It is intended to;
Fig. 4 is a kind of structural schematic diagram for processing unit based on bright screen lock that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram for second of processing unit based on bright screen 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 for the treatment of method and apparatus based on bright screen lock.It will carry out respectively specifically below
It is bright.
Embodiment one,
The present embodiment will be described from the angle for the processing unit locked based on bright screen, the processing unit that should be locked based on bright screen
It specifically can integrate in the terminal, which can be mobile internet device (such as smart phone, tablet computer), intelligence wearing
Equipment (such as smartwatch) each class of electronic devices.
Referring to Fig. 1, Fig. 1 is a kind of process signal for processing method based on bright screen lock that the embodiment of the present invention one provides
Scheme, the processing method based on bright screen lock of the present embodiment includes:
Step S101, terminal be in it is standby put out screen state when, receive the corresponding notification event of message.
In this step the notification event can for webpage information, short message, QQ information, using pushed information etc.,
The notification informations such as its operating system that may come from webpage, the application program of installation or terminal.
In the embodiment of the present invention, above-mentioned intelligent terminal can use the accessibility in Android (android) frame
The accessibility case mechanism for servicing (Accessibility Service) obtains above-mentioned notification information.Certainly, in other implementations
The step can also be easy to combine understanding in those skilled in the art based on the Mac OS X operating system of Apple Inc. in example
In range, does not carefully state and limit herein.
Step S102 determines the corresponding application program of notification event.
Specifically, the notification message in the notification bar of terminal is received during terminal standby puts out screen, it then can be right
The notification message is analyzed and processed to obtain application program corresponding to the notification message, wherein it is right to obtain notification message institute
The step of application program answered can there are many, for example, processing is extracted to above-mentioned notification message, to obtain the notification message
Entrained application program identification information determines application journey corresponding to the notification message according to the application program identification information
Sequence.
Optionally, the present embodiment can also be detected by the notification bar management interface in the operating system to terminal,
When detecting that notification bar management interface receives the notification message of application program initiation, can be obtained from notification bar management interface
The notification message received.Wherein, in an embodiment of the present invention, application program can be the application program of short message types,
It can also be the application program of instant messaging IM (InstantMessaging) type, for example, above-mentioned application program can be and be
System information push, game etc., can also be the application program of the instant messagings IM type such as wechat, QQ, Skype, Facebook, this
Outside, which can be the application program in the operating system of terminal, or the third-party application journey of user installation
Sequence.
In a specific embodiment, it is assumed that the terminal is the smart phone based on android operating system, specifically
, the NotificationListenerService service interface in mobile phone can be detected, wherein need to illustrate
It is that in Android system, when system, which receives new notification message or notification message, to be deleted, can trigger
The callback method of NotificationListenerService interface, while being newly increased after android4.4
That is NotificationListenerService service interface can be used in Notification.extras field
The specifying information of acquisition system notice.After getting notification message, notification message can be analyzed, to determine the notice
Application program corresponding to message.That is, can analyze the notification message is which is answered after getting notification message
It is initiated with program.
Step S103, judges whether above-mentioned application program holds bright screen lock, if so, S104 is thened follow the steps, if it is not, then holding
Row step S105.
In embodiments of the present invention, after determining the corresponding application program of above-mentioned notification event, judge above-mentioned using journey
Sequence whether hold bright screen lock method can there are many, for example terminal can be carried out having detected whether bright screen lock in work shape
State, if so, judging whether the bright screen lock is to lock with bright screen corresponding to above-mentioned application program, wherein system can be passed through
Frame (framework) layer obtains the title that in running order bright screen is locked and in running order bright screen lock is corresponding
Application name, it should be noted that above-mentioned in running order bright screen lock may have one, it is also possible to have it is multiple, when
When detecting that in running order bright screen lock has multiple, then multiple bright screens are obtained respectively and lock corresponding application name, really
It is fixed to be locked with the presence or absence of bright screen corresponding with above-mentioned application program.The step of whether above-mentioned application program holds bright screen lock judged
It can specifically include:
It detects in terminal and is locked with the presence or absence of in running order bright screen;
If so, judging whether above-mentioned in running order bright screen lock is bright screen corresponding with above-mentioned application program
Lock;
If so, determining that above-mentioned application program holds bright screen lock.
Optionally, above-mentioned to judge that the step of whether application program holds bright screen lock include: that acquisition is above-mentioned using journey
The identification information of sequence is searched corresponding and in running order bright screen according to the identification information and is locked, in the terminal if depositing
, it is determined that the application program holds bright screen lock.
Step S104 prevents application program from passing through the screen that the bright screen lock held lights terminal.
For example, if judging, above-mentioned application program holds bright screen lock, the bright screen lock is discharged, to keep putting out for terminal screen
It goes out state, so as to avoid the unnecessary power consumption phenomenon of terminal.
Optionally, when user opens a terminal, the above-mentioned notification information received can be shown into the notification bar in terminal,
For notifying user to have received those notification informations in terminal standby, allows user to handle, increase flexibility.
Step S105, is not further processed, and keeps standby.
In the present embodiment, if the corresponding application program of above-mentioned notification event does not hold bright screen lock namely the application program
Will not make terminal it is standby put out screen when wake up screen, then it need not can be further processed, the standby of terminal is kept to put out screen
State.
In embodiments of the present invention, if judging, application program does not hold bright screen lock, has detected whether that application program is corresponding
Bright screen lock application request;
If so, then refusal locks application request processing to bright screen, to prevent the bright screen lock of application program.
Preferably, it is contemplated that the flexibility of user's using terminal, the embodiment of the present invention can increase a control switch, use
In the open and close for controlling the terminal processes mode.
Optionally, processing mode provided in an embodiment of the present invention can reduce the power consumption of terminal, and then increase stand-by time,
Therefore when terminal power can also be arranged in lower than a preset threshold in the processing method, the function is automatically opened, for example, working as hand
When electromechanics amount is lower than 30%, mobile phone enters battery saving mode and automatically opens the function, wherein above-mentioned preset threshold can be according to user
Demand carrys out sets itself.
From the foregoing, it will be observed that the embodiment of the present invention uses in the process that terminal standby puts out screen, notification event is received, is determined logical
The corresponding application program of county magistrate's part, judges whether the application program holds bright screen lock, if so, discharging what the application program was held
Bright screen lock, so that the screen of terminal keeps OFF state;By discharging in terminal standby, notification event is corresponding to answer this programme
Reduce the consumption for lighting screen to terminal power so that terminal screen be made to keep extinguishing with the bright screen lock that program is held, saves
The electricity of terminal has been saved, and then the cruising ability of terminal can be improved, has improved user experience.
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 processing method provided in an embodiment of the present invention based on bright screen lock includes:
Step S201 receives the setting request of application program.
Specifically, above-mentioned application program setting request carries the application identities of application program, wherein above-mentioned application program
Application identities can need commonly used application name for user, even if these application programs are needed in terminal standby
Hold bright screen lock, will not be forced to discharge, i.e., the bright screen lock that will not be occupied to it carries out release processing.
For example, set interface provides the application list installed in terminal, user can be in the application list
Common application program is chosen, the instant messagings IM class such as screen, such as wechat, QQ can be also waken up when being maintained at terminal standby
The application program etc. of type.
Step S202 is requested using the application identities of application program as sample application identities according to above-mentioned setting, and is added
To default application identities set.
It wherein, is the one or more application of user's permission wake-up screen in terminal standby in the application identities set
Program, the pool of applications are to apply white list.
Step S203 receives notification event in the process that terminal standby puts out screen, and determines that its is corresponding using journey
Sequence.
In this step the notification event can for webpage information, short message, QQ information, using pushed information etc.,
The notification informations such as its operating system that may come from webpage, the application program of installation or terminal.
Specifically, the notification message in the notification bar of terminal is received during terminal standby puts out screen, it then can be right
The notification message is analyzed and processed to obtain application program corresponding to the notification message, for example, to above-mentioned notification message into
Row extraction process, it is true according to the application program identification information to obtain application program identification information entrained by the notification message
Application program corresponding to the fixed notification message.
Step S204 obtains the application identities of above-mentioned application program.
Step S205, judgement, which is preset, whether there is sample application identities corresponding with application program in application identities set,
If so, S206 is thened follow the steps, if it is not, thening follow the steps S207.
Specifically, the application program can be matched with the application program in above-mentioned default application identities set,
If the application matches success in the application program and default application identities set, the i.e. application program are in default application mark
Know in set, so the application program is allowed to hold bright screen lock;If in the application program and default application identities set
Application matches failure, i.e., the application program is not in default application identities set, so the application program is not allowed to hold
There is bright screen to lock.
Optionally, in above-mentioned steps S201 setting request in include application program identification may be user not
Commonly, power consumption is higher, often holds the application program of bright screen lock, these application programs are not allowed in terminal standby
Hold and wakes up institute.The default application identities set established in step S102 at this time is to apply blacklist.So in step
In S205, judge with the presence or absence of default application identities corresponding with application program in the blacklist, if so, thening follow the steps
S207, if it is not, thening follow the steps S206.
Step S206, determining, which allows the application program to hold bright screen, locks and wakes up screen.
For example, the application program is an instant messaging class application, when receiving message, it can permit it and wake up screen
Curtain, and the message is shown in the notification bar of terminal to inform user.
Step S207, judges whether above-mentioned application program holds bright screen lock, if so, S208 is thened follow the steps, if it is not, then holding
Row step S209.
In embodiments of the present invention, after determining the corresponding application program of above-mentioned notification event, judge above-mentioned using journey
Sequence whether hold bright screen lock method can there are many, for example terminal can be carried out having detected whether bright screen lock in work shape
State, if so, judging whether the bright screen lock is to lock with bright screen corresponding to above-mentioned application program.
Step S208 prevents application program from passing through the screen that the bright screen lock held lights terminal.
Optionally, when user opens a terminal, the above-mentioned notification information received can be shown into the notification bar in terminal,
For notifying user to have received those notification informations in terminal standby, allows user to handle, increase flexibility.
Step S209, is not further processed, and keeps standby.
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 use terminal be in it is standby put out screen state when, obtain the corresponding notice of message
Event determines the corresponding application program of above-mentioned notification event, judges whether the application program holds bright screen lock, if so, preventing
The application program passes through the screen that the bright screen lock held lights terminal;This programme is by discharging notification event pair in terminal standby
The bright screen lock that the application program answered is held reduces so that terminal screen be made to keep extinguishing and lights screen to terminal power
Consumption, saves the electricity of terminal, and then the cruising ability of terminal can be improved, in addition scheme do not need to increase any device with
And Material Cost, implement also relatively simple.
Embodiment three,
The present embodiment will describe specific implementation step of this programme in practical application, reference by taking smart phone as an example
Fig. 3, comprising the following steps:
Request is arranged in step S301, the white list that smart phone receives user.
Wherein, above-mentioned white list setting request includes the title of at least one application program, even if these application programs exist
Hold bright screen lock when cell phone standby, will not forcible aborting fall, i.e., the bright screen lock that will not be occupied to it carries out release processing, can be with
It is set as " Sina weibo ", " Tencent QQ ", " wechat ".
Step S302, smart phone establish white list according to white list setting request.
For example, the application program for including in the white list is " Sina weibo ", " Tencent QQ " and " wechat ".
Step S303 receives notification message and determines corresponding application program during smart phone puts out screen.
The notification information can notify for system, or the PUSH message for the third-party application installed on mobile phone, than
Such as Baidu's discussion bar newly replys, the new bean vermicelli of Sina weibo, wechat message.
Specifically, can pass through such as in the smart phone based on android operating system
NotificationListenerService service interface is detected, when cell phone system receives new notification message or leads to
When knowing that message is deleted, the callback method of NotificationListenerService interface can be triggered, obtains the notification message
Specifying information.After smart phone gets notification message, notification message can be analyzed, to determine the notification message
Corresponding application program, for example it is that " Baidu's discussion bar ", QQ disappear that the discussion bar that receives, which replies message corresponding application program,
The corresponding application program of breath is " Tencent QQ ".
Step S304, smart phone obtain the application identities of the application program.
Step S305, smart phone judges the application identities whether in white list, if so, then follow the steps S306,
If it is not, thening follow the steps S307.
Specifically, the application program can be matched with the application program in white list, if the application program with
Application matches success in white list, i.e. the application program is in white list, so the application program is allowed to hold
Bright screen lock;If the application matches in the application program and white list fail, i.e. the application program not in white list,
So the application program is not allowed to hold bright screen lock.
Step S306, smart phone allow the application program to hold bright screen lock.
For example it is QQ message that mobile phone, which receives notification message, so that it is determined that the corresponding application program of the notification message is " to rise
QQ " is interrogated, and " Tencent QQ " so mobile phone allows " Tencent QQ " program to hold bright screen and locks, and lights screen in above-mentioned white list
Curtain shows the QQ message to user.
Step S307, smart phone judge whether the application program holds bright screen lock, if so, S308 is thened follow the steps, if
It is no, then follow the steps S309.
In the present embodiment, which is determined as not in above-mentioned white list, is " payment with above-mentioned application program
It is precious " for, whether judgement " Alipay " holds bright screen lock, specifically, with the presence or absence of in running order in detection smart phone
Bright screen lock, and if it exists, then further judge whether in running order bright screen lock is corresponding with " Alipay " bright
Screen lock, if so then execute step S308, if it is not, thening follow the steps S309.
Step S308, the bright screen lock that smart phone release application program is held, to keep the OFF state of mobile phone screen.
By taking the application program is " Alipay " as an example, after determining that it holds the bright screen lock in mobile phone, discharge what it was held
Bright screen lock, so that " Alipay " be avoided to light mobile phone screen.
Optionally, after mobile phone screen is lighted in user's unlock, the notification message that above-mentioned " Alipay " can be pushed is aobvious
Show on mobile phone desktop, so that user be allowed to handle.
Step S309, if judging, the application program does not hold bright screen lock, is not further processed, keeps smart phone
It is standby to put out screen state.
From the foregoing, it will be observed that the embodiment of the present invention use smart phone be in it is standby put out screen state when, obtain message it is corresponding
Notification event determines the corresponding application program of above-mentioned notification event, judges whether the application program holds bright screen lock, if so,
The application program is prevented to pass through the screen that the bright screen lock held lights smart phone;This programme when smart phone is standby by releasing
Bleeding off the bright screen lock that the corresponding application program of notification event is held reduces so that mobile phone screen be made to keep extinguishing and lights screen
Consumption of the curtain to battery capacity, saves the electricity of mobile phone, and then the cruising ability of mobile phone can be improved, and promotes user experience.
Example IV,
In order to better implement above method embodiment, the present invention also provides a kind of processing unit based on bright screen lock,
The device can integrate in the terminal, which can wear for mobile internet device (such as smart phone, tablet computer), intelligence
Wear equipment (such as smartwatch) all kinds of intelligent electronic devices.
As shown in figure 4, should may include: to obtain module 401, determining module 402, first based on the processing unit that bright screen is locked
Judgment module 403 and control module 404;
The acquisition module 401, for terminal be in it is standby put out screen state when, obtain the corresponding notification event of message;
The determining module 402, for determining the corresponding application program of notification event;
The first judgment module 403, for judging whether application program holds bright screen lock;
The control module 404 is prevented application program from passing through and held for when first judgment module 403 is judged as YES
Bright screen lock lights the screen of terminal.
Optionally, processing unit provided in an embodiment of the present invention can also include: detection module;
The detection module, for having detected whether that application program is corresponding bright when first judgment module 403 is judged as NO
Screen lock application request;
Control module 404 is also used to refuse when detection module has detected that the corresponding bright screen lock application of application program is requested
Absolutely bright screen lock application request processing, to prevent the bright screen lock of application program.
Preferably, as shown in figure 5, processing unit provided in an embodiment of the present invention can also include: the second judgment module
405;
Second judgment module 405 is used for after determining module 402 determines the corresponding application program of notification event, the
Before one judgment module 403 judges whether application program holds bright screen lock, the application identities of application program are obtained, and judge default
It whether there is sample application identities corresponding with application program in application identities set, if it is not, then being sentenced by first judgment module 403
Whether disconnected application program holds bright screen lock.
Preferably, processing unit provided in an embodiment of the present invention can also include: request receiving module 406 and adding module
407;
The request receiving module 406, for before obtaining module 401 and obtaining the corresponding notification event of message, reception to be answered
It is requested with the setting of program, setting request carries the application identities of the application program;
The adding module 407, for being requested according to setting using the application identities of application program as sample application identities, and
It is added to default application identities set.
Optionally, which can also include: third judgment module;
The third judgment module, for after first judgment module 403 is judged as YES, control module 404 to prevent application
Before bright screen that program is held by it lock lights the screen of terminal, judge application program hold bright screen lock duration whether be more than
Preset duration, if so, the bright screen lock for preventing application program from holding by it by control module lights the screen of terminal.
From the foregoing, it will be observed that the embodiment of the present invention use terminal be in it is standby put out screen state when, by acquisition module 401 acquisition disappear
Corresponding notification event is ceased, determining module 402 determines the corresponding application program of notification event, and the judgement of first judgment module 403 should
Whether application program holds bright screen lock, lights if so, preventing the application program from passing through the bright screen held lock by control module 404
The screen of terminal;This programme is locked by discharging the bright screen that the corresponding application program of notification event is held in terminal standby, from
And terminal screen is made to keep extinguishing, reduce the consumption for lighting screen to terminal power, save the electricity of terminal, and then can be with
The cruising ability of terminal is improved, user experience is 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..
Above to it is provided in an embodiment of the present invention it is a kind of based on bright screen lock treating method and apparatus be described in detail,
Its each functional module can integrate in a processing chip, is also possible to modules and physically exists alone, can also be two
Or more than two modules are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also be with
It is realized in the form of software function module.Specific case used herein carries out the principle of the present invention and embodiment
It illustrates, 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, to sum up institute
It states, the contents of this specification are not to be construed as limiting the invention.
Claims (11)
1. a kind of processing method based on bright screen lock, which comprises the following steps:
Terminal be in it is standby put out screen state when, the notification bar management interface in the operating system of the terminal is detected,
When detecting that notification bar management interface receives the notification message of application program initiation, obtains and connect from notification bar management interface
The notification message received;
Determine the corresponding application program of the notification message;
It detects in terminal and is locked with the presence or absence of in running order bright screen;
If it exists, then judge whether the in running order bright screen lock is bright screen lock corresponding with the application program;
If so, the application program is prevented to pass through the screen that the bright screen lock held lights the terminal.
2. processing method as described in claim 1, which is characterized in that the method also includes:
If judging, the application program does not hold bright screen lock, has detected whether that the corresponding bright screen lock of the application program is asked
It asks;
If so, then refusal is to the bright screen lock application request processing, to prevent the bright screen lock of the application program.
3. processing method as described in claim 1, which is characterized in that corresponding using journey in the determination notification message
After sequence, it is described judge whether the application program holds bright screen lock before, the method also includes:
Obtain the application identities of the application program;
Judge to whether there is sample application identities corresponding with the application program in default application identities set;
The step of whether application program holds bright screen lock judged if it is not, then executing.
4. processing method as described in claim 1, which is characterized in that after judging that the application program holds bright screen lock,
Before the bright screen lock for preventing the application program from holding by it lights the screen of the terminal, the method also includes:
Whether the duration for judging that the application program holds the bright screen lock is more than preset duration;
If so, executing the step of bright screen lock for preventing the application program from holding by it lights the screen of the terminal.
5. processing method as described in claim 1, which is characterized in that before obtaining the notification message received, the side
Method further include:
The setting request of application program is received, the setting request carries the application identities of the application program;
It is requested according to the setting using the application identities of the application program as sample application identities, and is added to default application
Logo collection.
6. a kind of processing unit based on bright screen lock characterized by comprising obtain module, determining module, first judgment module
And control module;
The acquisition module, for terminal be in it is standby put out screen state when, to the notification bar in the operating system of the terminal
Management interface is detected, when detecting that notification bar management interface receives the notification message of application program initiation, from notice
The notification message received is obtained in column management interface;
The determining module, for determining the corresponding application program of the notification message;
The first judgment module is locked for detecting in terminal with the presence or absence of in running order bright screen, and if it exists, then judge
Whether the in running order bright screen lock is bright screen lock corresponding with the application program;
The control module is held for when the first judgment module is judged as YES, preventing the application program from passing through
Bright screen lock lights the screen of the terminal.
7. processing unit as claimed in claim 6, which is characterized in that described device further include: detection module;
The detection module, for when the first judgment module is judged as NO, having detected whether that the application program is corresponding
Bright screen lock application request;
The control module is also used to detect the corresponding bright screen lock application request of the application program when the detection module
When, refusal is to the bright screen lock application request processing, to prevent the bright screen lock of the application program.
8. processing unit as claimed in claim 6, which is characterized in that described device further include: the second judgment module;
Second judgment module, for after the determining module determines the corresponding application program of the notification message, institute
It states before first judgment module judges whether the application program holds bright screen lock, obtains the application identities of the application program,
And judge to whether there is sample application identities corresponding with the application program in default application identities set, if it is not, then by institute
It states first judgment module and judges whether the application program holds bright screen lock.
9. processing unit as claimed in claim 6, which is characterized in that described device further include: third judgment module;
The third judgment module, described in after the first judgment module is judged as YES, the control module is prevented
Before the bright screen lock that application program is held by it lights the screen of the terminal, judge that the application program holds the bright screen
Whether the duration of lock is more than preset duration, if so, it is bright to prevent the application program from holding by it by the control module
Screen lock lights the screen of the terminal.
10. processing unit as claimed in claim 6, which is characterized in that described device further include: request receiving module and addition
Module;
The request receiving module, for receiving application program before the acquisition module obtains the notification message received
Setting request, the setting request carries the application identities of the application program;
The adding module, for being marked according to setting request using the application identities of the application program as sample application
Know, and is added to default application identities set.
11. 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-5 the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379612.5A CN106055073B (en) | 2016-05-31 | 2016-05-31 | A kind for the treatment of method and apparatus based on bright screen lock |
PCT/CN2017/086459 WO2017206862A1 (en) | 2016-05-31 | 2017-05-29 | Bright screen lock-based processing method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379612.5A CN106055073B (en) | 2016-05-31 | 2016-05-31 | A kind for the treatment of method and apparatus based on bright screen lock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106055073A CN106055073A (en) | 2016-10-26 |
CN106055073B true CN106055073B (en) | 2019-02-26 |
Family
ID=57171795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379612.5A Active CN106055073B (en) | 2016-05-31 | 2016-05-31 | A kind for the treatment of method and apparatus based on bright screen lock |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106055073B (en) |
WO (1) | WO2017206862A1 (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055073B (en) * | 2016-05-31 | 2019-02-26 | Oppo广东移动通信有限公司 | A kind for the treatment of method and apparatus based on bright screen lock |
CN106681474A (en) * | 2016-12-07 | 2017-05-17 | 上海传英信息技术有限公司 | Mobile communication terminal bright screen management and setting method thereof |
CN106778233A (en) * | 2016-12-26 | 2017-05-31 | 努比亚技术有限公司 | Control device and method that a kind of application is installed |
CN106648325B (en) * | 2016-12-28 | 2020-11-03 | 北京金山安全软件有限公司 | Method and device for playing video on screen locking interface and electronic equipment |
CN108268116B (en) * | 2017-01-03 | 2022-06-07 | 中兴通讯股份有限公司 | Method and device for solving abnormal power consumption of mobile terminal and mobile terminal |
CN107148073B (en) * | 2017-05-24 | 2020-10-30 | 北京珠穆朗玛移动通信有限公司 | Bright screen processing method, mobile terminal and device with storage function |
CN107682543A (en) * | 2017-09-28 | 2018-02-09 | 惠州Tcl移动通信有限公司 | A kind of method, storage medium and the terminal device of information output |
CN107592665A (en) * | 2017-10-27 | 2018-01-16 | 维沃移动通信有限公司 | A kind of control method of application program, device and mobile terminal |
CN110543333A (en) * | 2018-05-29 | 2019-12-06 | 视联动力信息技术股份有限公司 | Dormancy processing method and device for processor, mobile terminal and storage medium |
CN110119188A (en) * | 2019-04-08 | 2019-08-13 | 上海闻泰信息技术有限公司 | Reduce the method, apparatus and terminal of power consumption of terminal |
CN113840358A (en) * | 2020-06-24 | 2021-12-24 | Oppo(重庆)智能科技有限公司 | Message filtering method, mobile terminal and computer readable storage medium |
CN114390190B (en) * | 2020-10-22 | 2023-10-31 | 海信视像科技股份有限公司 | Display equipment and method for monitoring application to start camera |
CN116027876B (en) * | 2022-06-30 | 2023-11-24 | 荣耀终端有限公司 | Absolute static state information acquisition method and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN105183137A (en) * | 2015-09-09 | 2015-12-23 | 厦门美图移动科技有限公司 | Mobile terminal and wake lock control method and system thereof |
CN105306743A (en) * | 2015-09-30 | 2016-02-03 | 小米科技有限责任公司 | Screen control method and device |
CN105530377A (en) * | 2015-12-14 | 2016-04-27 | 广东欧珀移动通信有限公司 | Method, device and system for processing wake-up lock |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9841802B2 (en) * | 2014-02-20 | 2017-12-12 | Qualcomm Incorporated | Wake lock management through application monitoring |
CN104156053B (en) * | 2014-07-29 | 2015-12-30 | 努比亚技术有限公司 | A kind of control method of abnormal power consumption, device and mobile terminal |
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 |
CN105204856A (en) * | 2015-09-18 | 2015-12-30 | 北京金山安全软件有限公司 | Information prompting method and device and electronic equipment |
CN105354492B (en) * | 2015-10-16 | 2018-07-17 | 珠海格力电器股份有限公司 | Communication terminal and its message informing control method and device |
CN106055073B (en) * | 2016-05-31 | 2019-02-26 | Oppo广东移动通信有限公司 | A kind for the treatment of method and apparatus based on bright screen lock |
-
2016
- 2016-05-31 CN CN201610379612.5A patent/CN106055073B/en active Active
-
2017
- 2017-05-29 WO PCT/CN2017/086459 patent/WO2017206862A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN105183137A (en) * | 2015-09-09 | 2015-12-23 | 厦门美图移动科技有限公司 | Mobile terminal and wake lock control method and system thereof |
CN105306743A (en) * | 2015-09-30 | 2016-02-03 | 小米科技有限责任公司 | Screen control method and device |
CN105530377A (en) * | 2015-12-14 | 2016-04-27 | 广东欧珀移动通信有限公司 | Method, device and system for processing wake-up lock |
Also Published As
Publication number | Publication date |
---|---|
WO2017206862A1 (en) | 2017-12-07 |
CN106055073A (en) | 2016-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055073B (en) | A kind for the treatment of method and apparatus based on bright screen lock | |
US9970966B2 (en) | Method, device and computer storage medium for detecting power consumption of an application | |
CN109803359B (en) | Method for awakening terminal system and terminal | |
US20160048682A1 (en) | Method and Apparatus for Clearing Malicious Power-Consuming Application, and User Terminal | |
CN105554316B (en) | A kind of realization method and system of reserved intelligent terminal battery capacity | |
CN103019521B (en) | A kind of mobile terminal puts out screen method and device | |
CN107302789B (en) | Method and system for improving battery endurance of android device | |
CN106775809B (en) | Method and device for cleaning memory of mobile terminal and mobile terminal | |
EP3361348B1 (en) | Terminal-based wakelock control method and apparatus | |
CN103324500A (en) | Method and device for recycling internal memory | |
CN106020415B (en) | Application control method and device under smart machine standby mode | |
CN107797841B (en) | Window control method and device, terminal equipment and storage medium | |
CN106095288A (en) | A kind of based on the treating method and apparatus waking up lock up | |
CN104156053A (en) | Abnormal power consumption control method, abnormal power consumption control device and mobile terminal | |
CN106055074A (en) | Method and device for processing application program | |
EP3190771B1 (en) | Method and device for managing instant communication application program, and mobile terminal thereof | |
CN105116990B (en) | A kind of smart mobile phone running environment Automatic Optimal and power-saving method and system | |
CN107943269B (en) | Scheduling job control method, device, terminal equipment and storage medium | |
WO2022111407A1 (en) | Cell handover method and apparatus | |
CN107577508A (en) | Applied program processing method, device, readable storage medium storing program for executing and mobile terminal | |
CN107436672B (en) | Application processing method and terminal | |
CN106022108A (en) | Synchronous management method and terminal device | |
CN104410751A (en) | Method and system for power saving of mobile phone based on Bluetooth peripheral | |
WO2016115762A1 (en) | Power saving mode control method and device for multiple operating systems, and terminal | |
CN106060280B (en) | Data service management method, device and 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 | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |