WO2017206862A1 - Bright screen lock-based processing method and apparatus, storage medium, and electronic device - Google Patents

Bright screen lock-based processing method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2017206862A1
WO2017206862A1 PCT/CN2017/086459 CN2017086459W WO2017206862A1 WO 2017206862 A1 WO2017206862 A1 WO 2017206862A1 CN 2017086459 W CN2017086459 W CN 2017086459W WO 2017206862 A1 WO2017206862 A1 WO 2017206862A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
bright screen
screen lock
determining
identifier
Prior art date
Application number
PCT/CN2017/086459
Other languages
French (fr)
Chinese (zh)
Inventor
张俊
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206862A1 publication Critical patent/WO2017206862A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a processing method device, a storage medium, and an electronic device based on a bright screen lock.
  • the embodiment of the invention provides a processing method, a device, a storage medium and an electronic device based on a bright screen lock, which can reduce the power consumption of the terminal.
  • an embodiment of the present invention provides a processing method based on a bright screen lock, including the following steps:
  • the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
  • an embodiment of the present invention provides a processing device based on a bright screen lock, including: an obtaining module, a determining module, a first determining module, and a control module;
  • the obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state
  • the determining module is configured to determine an application corresponding to the notification event
  • the first determining module is configured to determine whether the application program holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
  • the control module is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module determines to be YES.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the above-described bright screen lock-based processing method.
  • an embodiment of the present invention provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the following steps. :
  • the application is prevented from illuminating the screen of the electronic device by the held bright screen lock.
  • the embodiment of the invention provides a processing method, a device, a storage medium and an electronic device based on a bright screen lock, which can reduce the power consumption of the terminal.
  • FIG. 1 is a schematic flowchart diagram of a method for processing a bright screen lock according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a method for processing a bright screen lock according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for processing a bright screen lock in a smart phone according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a processing device based on a bright screen lock according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a processing device based on a bright screen lock according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • Third-party applications installed in the terminal often receive messages pushed by their business servers to notify users by means of notification events (such as weather conditions, microblog messages, application update push, etc.), and will wake up the phone system to light up.
  • notification events such as weather conditions, microblog messages, application update push, etc.
  • the screen, illuminating the screen of the mobile phone is a relatively power-consuming process for the system that is in standby. If the user's mobile phone is installed in the background and more such applications are running in the background, there will be more notification events by holding the bright screen.
  • the lock wakes up the terminal screen, causing a waste of power in the terminal.
  • the embodiment of the invention provides a processing method based on a bright screen lock, which comprises the following steps:
  • the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
  • the step of determining whether the application holds a bright screen lock comprises:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the step of preventing the application from illuminating the screen of the terminal by the bright screen lock it holds is performed.
  • the method before the obtaining the notification event corresponding to the message, the method further includes:
  • the step of determining an application corresponding to the notification event comprises:
  • a bright screen lock-based processing device which may be integrated into a terminal, which may be a mobile Internet device (such as a smart phone or a tablet), and smart wear.
  • a terminal which may be a mobile Internet device (such as a smart phone or a tablet), and smart wear.
  • Various electronic devices such as devices (such as smart watches).
  • FIG. 1 is a schematic flowchart of a method for processing a bright screen lock according to an embodiment of the present invention.
  • the method for processing a bright screen lock according to this embodiment includes:
  • Step S101 Receive a notification event corresponding to the message when the terminal is in the standby blanking state.
  • the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information of an operating system of the terminal.
  • the smart terminal may utilize an accessibility service in an Android framework (Accessibility).
  • Service's accessibility event mechanism obtains the above notification information.
  • this step can also be based on Apple's Mac OS X.
  • the operating system is not to be described or limited in detail insofar as it is readily understood by those skilled in the art.
  • Step S102 determining an application corresponding to the notification event.
  • the notification message in the notification column of the terminal is received, and then the notification message may be analyzed and processed to obtain an application corresponding to the notification message, where the notification message is obtained.
  • There may be multiple steps of the application for example, extracting the notification message to obtain the application identification information carried by the notification message, and determining an application corresponding to the notification message according to the application identification information.
  • the present embodiment can also detect the notification bar management interface in the operating system of the terminal.
  • the notification bar management interface can obtain the received information from the notification bar management interface.
  • Notification message may be an application of a short message type, or may be an application of an instant messaging IM (Instant Messaging) type.
  • the application may be a system information push, a game, or the like. It can be an IM-type application such as WeChat, QQ, Skype, Facebook, etc.
  • the application can be an application in the operating system of the terminal or a third-party application installed by the user.
  • the terminal is a smart phone based on an android operating system
  • the NotificationListenerService service interface in the mobile phone can be detected, wherein, in the android system, when the system receives When the new notification message or notification message is deleted, the callback method of the NotificationListenerService interface is triggered.
  • the Notification.extras field is newly added after android4.4, that is, the NotificationListenerService service interface can be used to obtain the specific information of the system notification.
  • the notification message can be analyzed to determine the application corresponding to the notification message. That is to say, after the notification message is obtained, it can be analyzed which application is initiated by the notification message.
  • Step S103 determining whether the application program holds a bright screen lock, if yes, executing step S104, and if no, executing step S105.
  • the bright screen lock is a program module in the application.
  • the application can illuminate the screen of the terminal by running a bright lock.
  • Different applications have different bright screen locks.
  • the method for determining whether the application has a bright screen lock may be various.
  • the terminal may be detected whether a bright screen lock is in a working state. If yes, it is determined whether the bright screen lock is a bright screen lock corresponding to the application.
  • the name of the bright screen lock in the working state and the application name corresponding to the bright screen lock in the working state can be obtained through the framework layer of the system. Among them, the name of the bright screen lock can be understood as the logo of the bright screen lock.
  • the above-mentioned bright screen locks in the working state may have one or more than one.
  • a plurality of bright screen locks in the working state are detected, they are respectively obtained according to the names of the plurality of bright screen locks.
  • the application name corresponding to multiple bright screen locks.
  • the obtained plurality of application names are matched with the above application names to determine whether there is a bright screen lock corresponding to the above application. That is, the step of determining whether the application has a bright screen lock may specifically include:
  • the step of determining whether the application holds the bright screen lock may further include: acquiring identification information of the application, and searching, in the terminal, the bright screen lock corresponding to the working state according to the identification information, If it does, it is determined that the application holds a bright screen lock.
  • Step S104 the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
  • the bright screen lock is released to keep the terminal screen off, thereby avoiding unnecessary power consumption of the terminal.
  • the received notification information may be displayed in the notification bar of the terminal, and used to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility.
  • step S105 no further processing is performed and standby is maintained.
  • the terminal may not be further processed. Standby screen is OK.
  • a control switch may be added to control the opening and closing of the processing mode of the terminal.
  • the processing manner provided by the embodiment of the present invention can reduce the power consumption of the terminal, thereby increasing the standby time. Therefore, the processing method can also be configured to automatically turn on the function when the terminal power is lower than a preset threshold, for example, when the mobile phone is low. At 30%, the mobile phone enters the power saving mode to automatically turn on the function, wherein the above preset threshold can be set according to user requirements.
  • the embodiment of the present invention adopts a process of receiving a notification event during the standby of the terminal, determining an application corresponding to the notification event, determining whether the application holds a bright screen lock, and if so, releasing the application holding Bright screen lock, so that the screen of the terminal remains off; the solution releases the bright screen lock held by the application corresponding to the notification event when the terminal is in standby, thereby keeping the terminal screen off, reducing the lighting screen to the terminal
  • the consumption of electricity saves the power of the terminal, which in turn can improve the endurance of the terminal and improve the user experience.
  • a processing method based on a bright screen lock provided by an embodiment of the present invention includes:
  • Step S201 receiving a setting request of an application.
  • the application setting request carries an application identifier of the application, where the application identifier of the application may be an application name that the user needs to frequently use, and the application needs to hold a bright screen lock even when the terminal is in standby. It will not be forced to be released, ie the bright screen lock it occupies will not be released.
  • the setting interface provides a list of applications installed on the terminal, and the user can select a commonly used application in the application list to keep the screen awake when the terminal is in standby, such as instant messaging IM type applications such as WeChat and QQ. Programs, etc.
  • Step S202 The application identifier of the application is used as a sample application identifier according to the foregoing setting request, and is added to the preset application identifier set.
  • the application identification set is one or more applications that the user allows to wake up the screen when the terminal is in standby, and the application set is an application white list.
  • step S203 during the process of the terminal being blanked out, the notification event is received, and the corresponding application is determined.
  • the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information of an operating system of the terminal.
  • the notification message in the notification column of the terminal is received, and then the notification message may be analyzed and processed to obtain an application corresponding to the notification message, for example, the notification message is extracted. Processing, to obtain the application identifier information carried by the notification message, and determining, according to the application identifier information, an application corresponding to the notification message.
  • Step S204 Acquire an application identifier of the application.
  • step S205 it is determined whether there is a sample application identifier corresponding to the application in the preset application identifier set. If yes, step S206 is performed, and if no, step S207 is performed.
  • the application may be matched with the application in the preset application identifier set, and if the application matches the application in the preset application identifier set, the application is in the preset application identifier set. , so the application is allowed to hold a bright screen lock; if the application fails to match the application in the preset application identification set, ie the application is not in the preset application identification set, the application is not allowed to be lit Screen lock.
  • the application identifier included in the setting request in the above step S201 may also be an application that is not commonly used by the user and that consumes a relatively high power and often holds a bright screen lock. These applications are in standby at the terminal. It is not allowed to hold a wake-up.
  • the preset application identifier set established in step S102 is the application blacklist. Therefore, in step S205, it is determined whether there is a preset application identifier corresponding to the application in the blacklist. If yes, step S207 is performed, and if no, step S206 is performed.
  • step S206 it is determined that the application is allowed to hold the bright screen lock and wake up the screen.
  • the application is an instant messaging application that, when receiving a message, can allow it to wake up the screen and display the message in the notification bar of the terminal to inform the user.
  • Step S207 determining whether the application program holds a bright screen lock, if yes, executing step S208, and if no, executing step S209.
  • the method for determining whether the application has a bright screen lock may be various.
  • the terminal may be detected whether a bright screen lock is in a working state. If yes, it is determined whether the bright screen lock is a bright screen lock corresponding to the application.
  • Step S208 the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
  • the received notification information may be displayed in the notification bar of the terminal, and used to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility.
  • step S209 no further processing is performed and standby is maintained.
  • the terminal may be, but not limited to, a smart terminal such as a smart phone, a tablet computer, or a notebook computer.
  • the operating system of the terminal may be an Android operating system, an IOS operating system, or a black.
  • the Berry operating system and the like are not limited in the present invention.
  • the notification event corresponding to the message is acquired, the application corresponding to the notification event is determined, and whether the application holds the bright screen lock, and if so, the The application illuminates the screen of the terminal through the held bright screen lock; the solution releases the bright screen lock held by the application corresponding to the notification event when the terminal is in standby, thereby keeping the terminal screen off, reducing the pair of lighting screens.
  • the consumption of the terminal power saves the power of the terminal, which in turn can improve the endurance of the terminal.
  • the solution does not need to increase any device and material cost, and the implementation is relatively simple.
  • the processing method based on the bright screen lock includes the following steps:
  • Step S301 the smartphone receives a whitelist setting request of the user.
  • the whitelist setting request includes at least one application name, and the application does not force release even if the screen lock is held when the mobile phone is in standby, that is, the bright screen lock occupied by the application is not released. Can be set to "Sina Weibo”, “Tencent QQ”, “WeChat”.
  • step S302 the smart phone establishes a white list according to the whitelist setting request.
  • the applications included in the whitelist are "Sina Weibo”, “Tencent QQ” and “WeChat”.
  • Step S303 in the process of turning off the screen of the smart phone, receiving the notification message and determining the corresponding application.
  • the notification information may be a system notification, or a push message of a third-party application installed on the mobile phone, such as a new reply of Baidu Post Bar, a new fan of Sina Weibo, a WeChat message, and the like.
  • the notification can be detected through the NotificationListenerService service interface.
  • the callback method of the NotificationListenerService interface is triggered to obtain the notification message. Specific information.
  • the notification message may be analyzed to determine an application corresponding to the notification message, for example, the application corresponding to the received post reply message is “Baidu Post Bar” and corresponding to the QQ message.
  • the application is "Tencent QQ".
  • Step S304 the smartphone acquires an application identifier of the application.
  • step S305 the smart phone determines whether the application identifier is in the white list. If yes, step S306 is performed, and if no, step S307 is performed.
  • the application can be matched with the application in the whitelist. If the application matches the application in the whitelist successfully, that is, the application is in the white list, so the application is allowed to have a bright screen. Lock; if the application fails to match the application in the whitelist, ie the application is not in the whitelist, the application is not allowed to hold a bright lock.
  • step S306 the smartphone allows the application to hold a bright screen lock.
  • the mobile phone receives the notification message as a QQ message, thereby determining that the application corresponding to the notification message is “Tencent QQ”, and “Tencent QQ” is in the white list, so the mobile phone allows the “Tencent QQ” program to hold the bright screen lock. And the screen is lit to display the QQ message to the user.
  • Step S307 the smartphone determines whether the application holds a bright screen lock, and if so, proceeds to step S308, and if not, proceeds to step S309.
  • the application determines that the application is not in the white list, and the application is “Alipay” as an example, and determines whether “Alipay” holds a bright screen lock. Specifically, detecting whether the smart phone is in the work The bright screen lock of the state, if present, further determines whether the bright screen lock in the working state is a bright screen lock corresponding to "Alipay", if yes, step S308 is performed, and if no, step S309 is performed.
  • step S308 the smart phone releases the bright screen lock held by the application to keep the screen of the mobile phone off.
  • the notification message of the above “Alipay” push may be displayed on the desktop of the mobile phone, thereby allowing the user to process.
  • step S309 if it is determined that the application does not hold the bright screen lock, no further processing is performed to maintain the standby state of the smart phone.
  • the notification event corresponding to the message is acquired, the application corresponding to the notification event is determined, and the application is determined to have a bright screen lock, and if so, the block is blocked.
  • the application illuminates the screen of the smartphone through the held bright screen lock; this solution keeps the screen of the mobile phone off by reducing the bright screen lock held by the application corresponding to the notification event when the smartphone is in standby. Lighting the power consumption of the battery on the screen saves the power of the mobile phone, thereby improving the battery life and improving the user experience.
  • the embodiment of the invention further provides a processing device based on a bright screen lock, comprising: an obtaining module, a determining module, a first determining module and a control module;
  • the obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state
  • the determining module is configured to determine an application corresponding to the notification event
  • the first determining module is configured to determine whether the application program holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
  • the control module is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module determines to be YES.
  • the apparatus further includes: a detection module
  • the detecting module is configured to: when the first determining module determines to be no, detect whether there is a bright screen lock application request corresponding to the application;
  • the control module is further configured to: when the detecting module detects a bright screen lock application request corresponding to the application, rejecting the application request processing of the bright screen lock to prevent the application from applying for a bright screen lock .
  • the apparatus further includes: a second determining module
  • the second determining module is configured to: after the determining module determines the application corresponding to the notification event, the first determining module determines whether the application holds a bright screen lock, and acquires the application Applying the identifier, and determining whether there is a sample application identifier corresponding to the application in the preset application identifier set. If not, determining, by the first determining module, whether the application holds a bright screen lock.
  • the apparatus further includes: a third determining module
  • the third determining module is configured to: after the first determining module determines that the device is YES, the control module prevents the application program from lighting the screen of the terminal through a bright screen lock held by the control module, and determining the Whether the duration of the application holding the bright screen lock exceeds a preset duration, and if so, the control module prevents the application from illuminating the screen of the terminal through the bright screen lock it holds.
  • the apparatus further includes: a request receiving module and an adding module;
  • the request receiving module is configured to receive a setting request of an application, where the setting request carries an application identifier of the application, before the obtaining module acquires a notification event corresponding to the message;
  • the adding module is configured to use the application identifier of the application as a sample application identifier according to the setting request, and add the sample application identifier to a preset application identifier set.
  • the present invention also provides a processing device based on a bright screen lock, which can be integrated in a terminal, which can be a mobile internet device (such as a smart phone or a tablet), and an intelligent device. Wear all kinds of intelligent electronic devices such as smart watches.
  • the bright screen lock-based processing device may include: an obtaining module 401, a determining module 402, a first determining module 403, and a control module 404;
  • the obtaining module 401 is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state;
  • the determining module 402 is configured to determine an application corresponding to the notification event
  • the first determining module 403 is configured to determine whether the application holds a bright screen lock
  • the control module 404 is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module 403 determines YES.
  • the processing apparatus may further include: a detecting module;
  • the detecting module is configured to: when the first determining module 403 determines to be no, detect whether there is a bright screen lock application request corresponding to the application;
  • the control module 404 is further configured to: when the detecting module detects the application for the bright screen lock corresponding to the application, reject the request processing of the bright screen lock request to prevent the application from applying for the bright screen lock.
  • the processing apparatus provided by the embodiment of the present invention may further include: a second determining module 405;
  • the second determining module 405 is configured to: after the determining module 402 determines the application corresponding to the notification event, the first determining module 403 determines whether the application holds the application identifier of the application before determining whether the application holds the bright screen lock, and determines the preset application. Whether there is a sample application identifier corresponding to the application in the identifier set, and if not, the first determining module 403 determines whether the application holds a bright screen lock.
  • the processing apparatus may further include: a request receiving module 406 and an adding module 407;
  • the request receiving module 406 is configured to: before the obtaining module 401 obtains the notification event corresponding to the message, receive a setting request of the application, and set the request to carry the application identifier of the application;
  • the adding module 407 is configured to use the application identifier of the application as a sample application identifier according to the setting request, and add to the preset application identifier set.
  • the processing device may further include: a third determining module
  • the third determining module is configured to: after the first determining module 403 determines YES, the control module 404 prevents the application from illuminating the screen of the terminal through the bright screen lock held by the application, and determines the duration of the application holding the bright screen lock. Whether the preset duration is exceeded, and if so, the control module prevents the application from lighting the screen of the terminal through the bright screen lock it holds.
  • the acquisition module 401 acquires the notification event corresponding to the message
  • the determining module 402 determines the application corresponding to the notification event
  • the first determining module 403 determines whether the application is Holding a bright screen lock, if yes, the control module 404 prevents the application from illuminating the screen of the terminal through the held bright screen lock; the solution releases the bright screen held by the application corresponding to the notification event when the terminal is in standby
  • the lock prevents the terminal screen from being extinguished, reduces the consumption of the terminal power by the lighting screen, and saves the power of the terminal, thereby improving the endurance capability of the terminal and improving the user experience.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • the embodiment of the invention further provides an electronic device, which may be a terminal such as a smart phone or a tablet computer.
  • the electronic device 500 includes a processor 501, a memory 502, a display screen 503, and a control circuit 504.
  • the processor 501 is electrically connected to the memory 502, the display screen 503, and the control circuit 504, respectively.
  • the processor 501 is a control center of the electronic device 500, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 502, and calling data stored in the memory 502.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more applications into the memory 502 according to the following steps, and is stored and stored in the memory 502 by the processor 501.
  • the application thus implementing various functions:
  • the application is prevented from illuminating the screen of the electronic device by the held bright screen lock.
  • the processor 501 when it is determined whether the application holds a bright screen lock, performs the following steps: acquiring an identifier of a bright screen lock currently in a running state; and applying the application identifier of the application to the acquired The identification of the bright screen lock is matched; when the matching is successful, it is determined that the application holds a bright screen lock.
  • the processor 501 further performs the following steps: if it is determined that the application does not hold a bright screen lock, detecting whether there is a bright screen lock application request corresponding to the application; if yes, rejecting the The bright screen lock application request processing is performed to prevent the application from applying for a bright screen lock.
  • the processor 501 before determining whether the application holds a bright screen lock, the processor 501 further performs the steps of: acquiring an application identifier of the application; determining whether the application identifier is present in the preset application identifier set. The same sample application identifier; if not, it is determined whether the application holds a bright screen lock.
  • the processor 501 before the application is prevented from illuminating the screen of the electronic device by the bright screen lock it holds, the processor 501 further performs the following steps: determining that the application holds the bright screen lock Whether the duration exceeds a preset duration; if so, the application is prevented from illuminating the screen of the electronic device by the bright screen lock it holds.
  • the processor 501 before the obtaining the notification event corresponding to the message, the processor 501 further performs the steps of: receiving a setting request of the application, where the setting request carries an application identifier of the application; according to the setting request The application identifier of the application is used as a sample application identifier, and the sample application identifier is added to the preset application identifier set.
  • the processor 501 when determining the application corresponding to the notification event, performs the following steps: acquiring application identification information carried by the message; and determining, according to the application identification information, an application corresponding to the notification event. program.
  • Memory 502 can be used to store applications and data.
  • the application stored in the memory 502 contains instructions executable in the processor.
  • Applications can form various functional modules.
  • the processor 501 executes various functional applications and data processing by running an application stored in the memory 502.
  • the display screen 503 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 504 is electrically connected to the display screen 503 for controlling the display screen 503 to display information.
  • the electronic device 500 further includes a radio frequency circuit 505, an input unit 506, an audio circuit 507, a sensor 508, and a power source 509.
  • the processor 501 is electrically connected to the radio frequency circuit 505, the input unit 506, the audio circuit 507, the sensor 508, and the power source 509, respectively.
  • the radio frequency circuit 505 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the input unit 506 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 506 can include a fingerprint identification module.
  • the audio circuit 507 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Sensor 508 is used to collect external environmental information.
  • Sensor 508 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
  • Power source 509 is used to power various components of electronic device 500.
  • the power supply 509 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the electronic device receives a notification event during the standby screen of the electronic device, determines an application corresponding to the notification event, determines whether the application holds a bright screen lock, and if so, releases the application.
  • Some of the bright screen locks are used to keep the screen of the electronic device off; the solution keeps the screen of the electronic device off by reducing the brightness lock held by the application corresponding to the notification event when the electronic device is in standby, reducing the point
  • the bright screen consumes the power of the electronic device, which saves the power of the electronic device, thereby improving the battery life of the electronic device.
  • the embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the application processing method described in any of the foregoing embodiments.
  • the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
  • the processing method, device, storage medium and electronic device based on the bright screen lock provided by the embodiments of the present invention are described in detail.
  • the functional modules may be integrated into one processing chip, or each module may exist separately or physically. Two or more modules are integrated in one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A bright screen lock-based processing method and apparatus, a storage medium, and an electronic device. The method comprises: when a terminal is in a standby screen-off state, obtaining a notification event corresponding to a message (S101), determining an application program corresponding to the notification event (S102), determining whether the application program holds a bright screen lock (S103), and if yes, preventing the application program from turning on a screen of the terminal via the held bright screen lock (S104).

Description

一种基于亮屏锁的处理方法、装置、存储介质及电子设备 Bright screen lock processing method, device, storage medium and electronic device 技术领域Technical field
本发明涉及计算机技术领域,特别涉及一种基于亮屏锁的处理方法装置、存储介质及电子设备。The present invention relates to the field of computer technologies, and in particular, to a processing method device, a storage medium, and an electronic device based on a bright screen lock.
背景技术Background technique
随着电子通讯领域的发展,移动终端例如智能手机的功能越来越强大,用户不仅通过智能手机打电话、发短信,用户还可以根据需求在移动终端中安装各种功能的应用程序,移动终端已经称为人们生活和工作的一部分。With the development of the field of electronic communication, the functions of mobile terminals such as smart phones are becoming more and more powerful, and users not only make calls and text messages through smart phones, but also users can install various functional applications in mobile terminals according to requirements, mobile terminals. It has been called part of people's lives and work.
目前,在使用智能手机的过程当中,对于手机当中各个硬件的耗电情况进行分析可以发现,耗电量最大的是屏幕显示,如今的智能手机为了满足用户对娱乐、视频、互动的视觉需求,屏幕设计越来越大,大屏幕的发光需要消耗大量的电量,而伴随随着大屏幕的动态以及触控效果同样也需要大量的电量支持。At present, in the process of using a smart phone, an analysis of the power consumption of each hardware in the mobile phone can be found that the largest power consumption is the screen display, and today's smart phones are designed to meet the visual needs of the user for entertainment, video, and interaction. The screen design is getting bigger and bigger, and the large screen lighting needs to consume a lot of power, and with the dynamic of the big screen and the touch effect, a large amount of power is also required.
技术问题technical problem
本发明实施例提供一种基于亮屏锁的处理方法、装置、存储介质及电子设备,可以减少终端的电量消耗。The embodiment of the invention provides a processing method, a device, a storage medium and an electronic device based on a bright screen lock, which can reduce the power consumption of the terminal.
技术解决方案Technical solution
第一方面,本发明实施例提供一种基于亮屏锁的处理方法,包括以下步骤:In a first aspect, an embodiment of the present invention provides a processing method based on a bright screen lock, including the following steps:
在终端处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the terminal is in the standby screen-out state;
确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
若是,则阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。If so, the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
第二方面,本发明实施例提供一种基于亮屏锁的处理装置,包括:获取模块、确定模块、第一判断模块以及控制模块;In a second aspect, an embodiment of the present invention provides a processing device based on a bright screen lock, including: an obtaining module, a determining module, a first determining module, and a control module;
所述获取模块,用于在终端处于待机熄屏状态时,获取消息对应的通知事件;The obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state;
所述确定模块,用于确定所述通知事件对应的应用程序;The determining module is configured to determine an application corresponding to the notification event;
所述第一判断模块,用于判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;The first determining module is configured to determine whether the application program holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
所述控制模块,用于当所述第一判断模块判断为是时,阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。The control module is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module determines to be YES.
第三方面,本发明实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述基于亮屏锁的处理方法。In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the above-described bright screen lock-based processing method.
第四方面,本发明实施例提供一种电子设备,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is configured to perform the following steps. :
在电子设备处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the electronic device is in the standby screen-out state;
确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述电子设备的屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the electronic device during operation;
若是,则阻止所述应用程序通过持有的亮屏锁点亮所述电子设备的屏幕。If so, the application is prevented from illuminating the screen of the electronic device by the held bright screen lock.
有益效果 Beneficial effect
本发明实施例提供一种基于亮屏锁的处理方法、装置、存储介质及电子设备,可以减少终端的电量消耗。The embodiment of the invention provides a processing method, a device, a storage medium and an electronic device based on a bright screen lock, which can reduce the power consumption of the terminal.
附图说明DRAWINGS
图1为本发明实施例提供的基于亮屏锁的处理方法的流程示意图。FIG. 1 is a schematic flowchart diagram of a method for processing a bright screen lock according to an embodiment of the present invention.
图2为本发明实施例提供的基于亮屏锁的处理方法的另一流程示意图。FIG. 2 is another schematic flowchart of a method for processing a bright screen lock according to an embodiment of the present invention.
图3为本发明实施例提供的在智能手机中基于亮屏锁的处理方法的流程示意图。FIG. 3 is a schematic flowchart of a method for processing a bright screen lock in a smart phone according to an embodiment of the present invention.
图4为本发明实施例提供的基于亮屏锁的处理装置的结构示意图。FIG. 4 is a schematic structural diagram of a processing device based on a bright screen lock according to an embodiment of the present invention.
图5为本发明实施例提供的基于亮屏锁的处理装置的另一结构示意图。FIG. 5 is another schematic structural diagram of a processing device based on a bright screen lock according to an embodiment of the present invention.
图6为本发明实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
图7为本发明实施例提供的电子设备的另一结构示意图。FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
终端中安装的第三方应用程序经常会接收到其业务服务器推送的消息通过通知事件的方式提醒给用户(比如天气状况、微博消息、应用程序更新推送等等),同时会唤醒手机系统点亮屏幕,点亮手机屏幕对正在待机的系统来说是比较耗电的过程,如果用户手机后台安装了比较多的此类应用程序在后台运行,就会出现比较多的通知事件通过持有亮屏锁来唤醒终端屏幕,从而造成终端电量的浪费。Third-party applications installed in the terminal often receive messages pushed by their business servers to notify users by means of notification events (such as weather conditions, microblog messages, application update push, etc.), and will wake up the phone system to light up. The screen, illuminating the screen of the mobile phone is a relatively power-consuming process for the system that is in standby. If the user's mobile phone is installed in the background and more such applications are running in the background, there will be more notification events by holding the bright screen. The lock wakes up the terminal screen, causing a waste of power in the terminal.
本发明实施例提供一种基于亮屏锁的处理方法,包括以下步骤:The embodiment of the invention provides a processing method based on a bright screen lock, which comprises the following steps:
在终端处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the terminal is in the standby screen-out state;
确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
若是,则阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。If so, the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
在一些实施例中,判断所述应用程序是否持有亮屏锁的步骤包括:In some embodiments, the step of determining whether the application holds a bright screen lock comprises:
获取当前处于运行状态的亮屏锁的标识;Get the ID of the bright screen lock that is currently running;
将所述应用程序的应用标识与获取到的亮屏锁的标识进行匹配;Matching the application identifier of the application with the identifier of the obtained bright screen lock;
当匹配成功时,判断为所述应用程序持有亮屏锁。When the match is successful, it is determined that the application holds a bright screen lock.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
若判断所述应用程序未持有亮屏锁,则检测是否有所述应用程序对应的亮屏锁申请请求;If it is determined that the application does not hold a bright screen lock, detecting whether there is a bright screen lock application request corresponding to the application;
若有,则拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。If so, the application request processing of the bright screen lock is refused to prevent the application from applying for a bright screen lock.
在一些实施例中,在所述确定所述通知事件对应的应用程序之后,所述判断所述应用程序是否持有亮屏锁之前,所述方法还包括:In some embodiments, after the determining, by the application corresponding to the notification event, the determining whether the application holds a bright screen lock, the method further includes:
获取所述应用程序的应用标识;Obtaining an application identifier of the application;
判断预设应用标识集合中是否存在与所述应用标识相同的样本应用标识;Determining whether there is a sample application identifier that is the same as the application identifier in the preset application identifier set;
若否,则执行判断所述应用程序是否持有亮屏锁的步骤。If not, a step of determining whether the application holds a bright screen lock is performed.
在一些实施例中,在判断所述应用程序持有亮屏锁之后,在阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕之前,所述方法还包括:In some embodiments, after determining that the application holds the bright screen lock, before the application is prevented from illuminating the screen of the terminal by the bright screen lock held by the application, the method further includes:
判断所述应用程序持有所述亮屏锁的时长是否超过预设时长;Determining whether the duration of the application holding the bright screen lock exceeds a preset duration;
若是,则执行阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕的步骤。If so, the step of preventing the application from illuminating the screen of the terminal by the bright screen lock it holds is performed.
在一些实施例中,在所述获取消息对应的通知事件之前,所述方法还包括:In some embodiments, before the obtaining the notification event corresponding to the message, the method further includes:
接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;Receiving a setting request of an application, where the setting request carries an application identifier of the application;
根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。And applying the application identifier of the application as a sample application identifier according to the setting request, and adding the sample application identifier to the preset application identifier set.
在一些实施例中,确定所述通知事件对应的应用程序的步骤包括:In some embodiments, the step of determining an application corresponding to the notification event comprises:
获取所述消息携带的应用程序标识信息;Obtaining application identifier information carried by the message;
根据所述应用程序标识信息确定所述通知事件对应的应用程序。本实施例将从基于亮屏锁的处理装置的角度进行描述,该基于亮屏锁的处理装置具体可以集成在终端中,该终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类电子设备。Determining an application corresponding to the notification event according to the application identification information. The embodiment will be described from the perspective of a bright screen lock-based processing device, which may be integrated into a terminal, which may be a mobile Internet device (such as a smart phone or a tablet), and smart wear. Various electronic devices such as devices (such as smart watches).
请参阅图1,图1为本发明实施例提供的基于亮屏锁的处理方法的流程示意图,本实施例的基于亮屏锁的处理方法包括:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for processing a bright screen lock according to an embodiment of the present invention. The method for processing a bright screen lock according to this embodiment includes:
步骤S101,在终端处于待机熄屏状态时,接收消息对应的通知事件。Step S101: Receive a notification event corresponding to the message when the terminal is in the standby blanking state.
在该步骤中所述通知事件可以为网页信息、短信息、QQ信息、应用推送信息等等,其可以来自于网页、安装的应用程序或是终端的操作系统等通知信息。In the step, the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information of an operating system of the terminal.
在本发明实施例当中,上述智能终端可以利用安卓(android)框架中的可访问性服务(Accessibility Service)的可访问性事件机制获取上述通知信息。当然,在其他实施例中该步骤也可以基于苹果公司的Mac OS X 操作系统,在本技术领域人员容易结合理解的范围内,在此不作细述和限定。In the embodiment of the present invention, the smart terminal may utilize an accessibility service in an Android framework (Accessibility). Service's accessibility event mechanism obtains the above notification information. Of course, in other embodiments this step can also be based on Apple's Mac OS X. The operating system is not to be described or limited in detail insofar as it is readily understood by those skilled in the art.
步骤S102,确定通知事件对应的应用程序。Step S102, determining an application corresponding to the notification event.
具体的,在终端待机熄屏的过程中,接收终端的通知栏中的通知消息,然后可以对该通知消息进行分析处理以获取该通知消息所对应的应用程序,其中获取该通知消息所对应的应用程序的步骤可以有多种,比如,对上述通知消息进行提取处理,以得到该通知消息所携带的应用程序标识信息,根据该应用程序标识信息确定该通知消息所对应的应用程序。Specifically, in the process of the terminal being blanked out, the notification message in the notification column of the terminal is received, and then the notification message may be analyzed and processed to obtain an application corresponding to the notification message, where the notification message is obtained. There may be multiple steps of the application, for example, extracting the notification message to obtain the application identification information carried by the notification message, and determining an application corresponding to the notification message according to the application identification information.
其中,本实施例还可以通过对终端的操作系统中的通知栏管理接口进行检测,当检测到通知栏管理接口接收到应用程序发起的通知消息时,可从通知栏管理接口中获取接收到的通知消息。其中,在本发明的实施例中,应用程序可以是短消息类型的应用程序,还可以是即时通信IM(InstantMessaging)类型的应用程序,例如,上述应用程序可以是系统信息推送、游戏等,还可以是微信、QQ、Skype、Facebook等即时通信IM类型的应用程序,此外,该应用程序可以是终端的操作系统中的应用程序,也可以为用户安装的第三方应用程序。The present embodiment can also detect the notification bar management interface in the operating system of the terminal. When detecting that the notification bar management interface receives the notification message initiated by the application, the notification bar management interface can obtain the received information from the notification bar management interface. Notification message. In the embodiment of the present invention, the application may be an application of a short message type, or may be an application of an instant messaging IM (Instant Messaging) type. For example, the application may be a system information push, a game, or the like. It can be an IM-type application such as WeChat, QQ, Skype, Facebook, etc. In addition, the application can be an application in the operating system of the terminal or a third-party application installed by the user.
在一个具体的实施例当中,假设该终端为基于android操作系统的智能手机,具体的,可以对手机中的NotificationListenerService服务接口进行检测,其中,需要说明的是,在android系统当中,当系统收到新的通知消息或者通知消息被删除时,会触发NotificationListenerService接口的回调方法,同时在android4.4之后新增加了Notification.extras字段也就是说可以使用NotificationListenerService服务接口来获取系统通知的具体信息。在获取到通知消息之后,可对通知消息进行分析,以确定该通知消息所对应的应用程序。也就是说,在获取到通知消息之后,可分析出该通知消息是哪个应用程序发起的。In a specific embodiment, it is assumed that the terminal is a smart phone based on an android operating system, and specifically, the NotificationListenerService service interface in the mobile phone can be detected, wherein, in the android system, when the system receives When the new notification message or notification message is deleted, the callback method of the NotificationListenerService interface is triggered. At the same time, the Notification.extras field is newly added after android4.4, that is, the NotificationListenerService service interface can be used to obtain the specific information of the system notification. After the notification message is obtained, the notification message can be analyzed to determine the application corresponding to the notification message. That is to say, after the notification message is obtained, it can be analyzed which application is initiated by the notification message.
步骤S103,判断上述应用程序是否持有亮屏锁,若是,则执行步骤S104,若否,则执行步骤S105。Step S103, determining whether the application program holds a bright screen lock, if yes, executing step S104, and if no, executing step S105.
可以理解的,亮屏锁为应用程序中的程序模块。应用程序可以通过运行亮屏锁来点亮终端的屏幕。不同的应用程序具有不同的亮屏锁。在本发明实施例中,在确定上述通知事件对应的应用程序之后,判断上述应用程序是否持有亮屏锁的方法可以有多种,比如可以对终端进行检测是否有亮屏锁处于工作状态,若是,则判断该亮屏锁是否为与上述应用程序所对应的亮屏锁。其中,可以通过系统的框架(framework)层获取处于工作状态的亮屏锁的名称以及处于工作状态的亮屏锁对应的应用程序名称。其中,亮屏锁的名称可以理解为亮屏锁的标识。需要说明的是,上述处于工作状态的亮屏锁可能有一个,也可能有多个,当检测到处于工作状态的亮屏锁有多个时,则根据该多个亮屏锁的名称分别获取多个亮屏锁对应的应用程序名称。然后,将获取到的多个应用程序名称与上述应用程序名称进行匹配,以确定是否存在与上述应用程序相对应的亮屏锁。即判断上述应用程序是否持有亮屏锁的步骤可以具体包括:As can be appreciated, the bright screen lock is a program module in the application. The application can illuminate the screen of the terminal by running a bright lock. Different applications have different bright screen locks. In the embodiment of the present invention, after determining the application corresponding to the notification event, the method for determining whether the application has a bright screen lock may be various. For example, the terminal may be detected whether a bright screen lock is in a working state. If yes, it is determined whether the bright screen lock is a bright screen lock corresponding to the application. The name of the bright screen lock in the working state and the application name corresponding to the bright screen lock in the working state can be obtained through the framework layer of the system. Among them, the name of the bright screen lock can be understood as the logo of the bright screen lock. It should be noted that the above-mentioned bright screen locks in the working state may have one or more than one. When a plurality of bright screen locks in the working state are detected, they are respectively obtained according to the names of the plurality of bright screen locks. The application name corresponding to multiple bright screen locks. Then, the obtained plurality of application names are matched with the above application names to determine whether there is a bright screen lock corresponding to the above application. That is, the step of determining whether the application has a bright screen lock may specifically include:
检测终端中是否存在处于工作状态的亮屏锁;Detecting whether there is a bright screen lock in the working state;
若是,则判断上述处于工作状态的亮屏锁是否为与上述应用程序相对应的亮屏锁;If yes, determining whether the bright screen lock in the working state is a bright screen lock corresponding to the application;
若是,则确定上述应用程序持有亮屏锁。If so, it is determined that the above application holds a bright screen lock.
在一些实施例中,上述判断应用程序是否持有亮屏锁的步骤还可以包括:获取上述应用程序的标识信息,根据该标识信息在终端中查找与其对应的且处于工作状态的亮屏锁,若存在,则确定该应用程序持有亮屏锁。In some embodiments, the step of determining whether the application holds the bright screen lock may further include: acquiring identification information of the application, and searching, in the terminal, the bright screen lock corresponding to the working state according to the identification information, If it does, it is determined that the application holds a bright screen lock.
步骤S104,阻止应用程序通过持有的亮屏锁点亮终端的屏幕。Step S104, the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
比如,若判断上述应用程序持有亮屏锁,则释放掉该亮屏锁,以保持终端屏幕的熄灭状态,从而避免了终端不必要的功耗现象。For example, if it is determined that the application holds a bright screen lock, the bright screen lock is released to keep the terminal screen off, thereby avoiding unnecessary power consumption of the terminal.
其中,当用户打开终端时,可以将上述接收到的通知信息显示在终端的通知栏,用于通知用户在终端待机时接收到了那些通知信息,让用户进行处理,增加了灵活性。When the user opens the terminal, the received notification information may be displayed in the notification bar of the terminal, and used to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility.
步骤S105,不做进一步处理,并保持待机。In step S105, no further processing is performed and standby is maintained.
在本实施例中,若上述通知事件对应的应用程序未持有亮屏锁,也即该应用程序不会使终端在待机熄屏时唤醒屏幕,则可不必对其进行进一步处理,保持终端的待机熄屏状态即可。In this embodiment, if the application corresponding to the notification event does not hold a bright screen lock, that is, the application does not cause the terminal to wake up the screen when the standby is off, the terminal may not be further processed. Standby screen is OK.
在本发明实施例中,若判断应用程序未持有亮屏锁,则检测是否有应用程序对应的亮屏锁申请请求;In the embodiment of the present invention, if it is determined that the application does not hold the bright screen lock, it is detected whether there is a bright screen lock application request corresponding to the application;
若有,则拒绝对亮屏锁申请请求处理,以阻止应用程序申请亮屏锁。If so, the application request processing for the bright screen lock is refused to prevent the application from applying for a bright screen lock.
其中,考虑到用户使用终端的灵活性,本发明实施例可以增加一个控制开关,用于控制该终端处理方式的开启与关闭。In the embodiment of the present invention, a control switch may be added to control the opening and closing of the processing mode of the terminal.
本发明实施例提供的处理方式可以减少终端的功耗,进而增长待机时间,因此该处理方法还可以设置在终端电量低于一个预设阈值时,自动打开该功能,比如,当手机电量低于30%时,手机进入省电模式自动打开该功能,其中上述预设阈值可以根据用户需求来自行设定。The processing manner provided by the embodiment of the present invention can reduce the power consumption of the terminal, thereby increasing the standby time. Therefore, the processing method can also be configured to automatically turn on the function when the terminal power is lower than a preset threshold, for example, when the mobile phone is low. At 30%, the mobile phone enters the power saving mode to automatically turn on the function, wherein the above preset threshold can be set according to user requirements.
由上可知,本发明实施例采用在终端待机熄屏的过程当中,接收通知事件,确定通知事件对应的应用程序,判断该应用程序是否持有亮屏锁,若是,则释放该应用程序持有的亮屏锁,以使终端的屏幕保持熄灭状态;本方案通过在终端待机时释放通知事件对应的应用程序所持有的亮屏锁,从而使终端屏幕保持熄灭,减少了点亮屏幕对终端电量的消耗,节省了终端的电量,进而可以提高终端的续航能力,改善用户体验。As can be seen from the above, the embodiment of the present invention adopts a process of receiving a notification event during the standby of the terminal, determining an application corresponding to the notification event, determining whether the application holds a bright screen lock, and if so, releasing the application holding Bright screen lock, so that the screen of the terminal remains off; the solution releases the bright screen lock held by the application corresponding to the notification event when the terminal is in standby, thereby keeping the terminal screen off, reducing the lighting screen to the terminal The consumption of electricity saves the power of the terminal, which in turn can improve the endurance of the terminal and improve the user experience.
本实施例将在上述实施例描述的方法基础上,对本发明的处理方法做进一步介绍。参考图2,本发明实施例提供的基于亮屏锁的处理方法包括:This embodiment will further introduce the processing method of the present invention based on the method described in the above embodiments. Referring to FIG. 2, a processing method based on a bright screen lock provided by an embodiment of the present invention includes:
步骤S201,接收应用程序的设置请求。Step S201, receiving a setting request of an application.
具体的,上述应用程序设置请求携带应用程序的应用标识,其中上述应用程序的应用标识可以为用户需要经常用到的应用程序名字,这些应用程序即使在终端待机时需要持有亮屏锁,也不会被强制释放掉,即不会对其占用的亮屏锁进行释放处理。Specifically, the application setting request carries an application identifier of the application, where the application identifier of the application may be an application name that the user needs to frequently use, and the application needs to hold a bright screen lock even when the terminal is in standby. It will not be forced to be released, ie the bright screen lock it occupies will not be released.
比如,设置界面提供终端上安装的应用程序列表,用户可以在该应用程序列表中勾选常用的应用程序,以保持在终端待机时也能够唤醒屏幕,例如微信、QQ等即时通信IM类型的应用程序等。For example, the setting interface provides a list of applications installed on the terminal, and the user can select a commonly used application in the application list to keep the screen awake when the terminal is in standby, such as instant messaging IM type applications such as WeChat and QQ. Programs, etc.
步骤S202,根据上述设置请求将应用程序的应用标识作为样本应用标识,并添加至预设应用标识集合。Step S202: The application identifier of the application is used as a sample application identifier according to the foregoing setting request, and is added to the preset application identifier set.
其中,该应用标识集合中即为用户允许在终端待机时唤醒屏幕的一个或多个应用程序,该应用程序集合即为应用白名单。The application identification set is one or more applications that the user allows to wake up the screen when the terminal is in standby, and the application set is an application white list.
步骤S203,在终端待机熄屏的过程当中,接收通知事件,并确定其对应的应用程序。In step S203, during the process of the terminal being blanked out, the notification event is received, and the corresponding application is determined.
在该步骤中所述通知事件可以为网页信息、短信息、QQ信息、应用推送信息等等,其可以来自于网页、安装的应用程序或是终端的操作系统等通知信息。In the step, the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information of an operating system of the terminal.
具体的,在终端待机熄屏的过程中,接收终端的通知栏中的通知消息,然后可以对该通知消息进行分析处理以获取该通知消息所对应的应用程序,比如,对上述通知消息进行提取处理,以得到该通知消息所携带的应用程序标识信息,根据该应用程序标识信息确定该通知消息所对应的应用程序。Specifically, in the process of the terminal being blanked out, the notification message in the notification column of the terminal is received, and then the notification message may be analyzed and processed to obtain an application corresponding to the notification message, for example, the notification message is extracted. Processing, to obtain the application identifier information carried by the notification message, and determining, according to the application identifier information, an application corresponding to the notification message.
步骤S204,获取上述应用程序的应用标识。Step S204: Acquire an application identifier of the application.
步骤S205,判断预设应用标识集合中是否存在与应用程序对应的样本应用标识,若是,则执行步骤S206,若否,则执行步骤S207。In step S205, it is determined whether there is a sample application identifier corresponding to the application in the preset application identifier set. If yes, step S206 is performed, and if no, step S207 is performed.
具体的,可以将该应用程序与上述预设应用标识集合当中的应用程序进行匹配,若该应用程序与预设应用标识集合当中的应用程序匹配成功,即该应用程序在预设应用标识集合当中,所以允许该应用程序持有亮屏锁;若该应用程序与预设应用标识集合当中的应用程序匹配失败,即该应用程序不在预设应用标识集合当中,所以不允许该应用程序持有亮屏锁。Specifically, the application may be matched with the application in the preset application identifier set, and if the application matches the application in the preset application identifier set, the application is in the preset application identifier set. , so the application is allowed to hold a bright screen lock; if the application fails to match the application in the preset application identification set, ie the application is not in the preset application identification set, the application is not allowed to be lit Screen lock.
在一些实施例中,上述步骤S201当中的设置请求当中包含的应用程序标识也可以为用户不常用的、耗电量较高的、经常持有亮屏锁的应用程序,这些应用程序在终端待机时不被允许持有唤醒所。此时步骤S102当中建立的预设应用标识集合即为应用黑名单。所以在步骤S205当中,判断该黑名单中是否存在与应用程序对应的预设应用标识,若是,则执行步骤S207,若否,则执行步骤S206。In some embodiments, the application identifier included in the setting request in the above step S201 may also be an application that is not commonly used by the user and that consumes a relatively high power and often holds a bright screen lock. These applications are in standby at the terminal. It is not allowed to hold a wake-up. The preset application identifier set established in step S102 is the application blacklist. Therefore, in step S205, it is determined whether there is a preset application identifier corresponding to the application in the blacklist. If yes, step S207 is performed, and if no, step S206 is performed.
步骤S206,确定允许该应用程序持有亮屏锁并唤醒屏幕。In step S206, it is determined that the application is allowed to hold the bright screen lock and wake up the screen.
比如,该应用程序为一个即时通讯类应用,在接收到消息时,可以允许其唤醒屏幕,并将该消息显示在终端的通知栏以告知用户。For example, the application is an instant messaging application that, when receiving a message, can allow it to wake up the screen and display the message in the notification bar of the terminal to inform the user.
步骤S207,判断上述应用程序是否持有亮屏锁,若是,则执行步骤S208,若否,则执行步骤S209。Step S207, determining whether the application program holds a bright screen lock, if yes, executing step S208, and if no, executing step S209.
在本发明实施例中,在确定上述通知事件对应的应用程序之后,判断上述应用程序是否持有亮屏锁的方法可以有多种,比如可以对终端进行检测是否有亮屏锁处于工作状态,若是,则判断该亮屏锁是否为与上述应用程序所对应的亮屏锁。In the embodiment of the present invention, after determining the application corresponding to the notification event, the method for determining whether the application has a bright screen lock may be various. For example, the terminal may be detected whether a bright screen lock is in a working state. If yes, it is determined whether the bright screen lock is a bright screen lock corresponding to the application.
步骤S208,阻止应用程序通过持有的亮屏锁点亮终端的屏幕。Step S208, the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
其中,当用户打开终端时,可以将上述接收到的通知信息显示在终端的通知栏,用于通知用户在终端待机时接收到了那些通知信息,让用户进行处理,增加了灵活性。When the user opens the terminal, the received notification information may be displayed in the notification bar of the terminal, and used to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility.
步骤S209,不做进一步处理,并保持待机。In step S209, no further processing is performed and standby is maintained.
本发明实施例中,上述终端可以但不限于智能手机、平板电脑、笔记本电脑等智能终端,其中,该终端的操作系统可以为Android操作系统、IOS操作系统、Black Berry操作系统等,本发明不做限定。In the embodiment of the present invention, the terminal may be, but not limited to, a smart terminal such as a smart phone, a tablet computer, or a notebook computer. The operating system of the terminal may be an Android operating system, an IOS operating system, or a black. The Berry operating system and the like are not limited in the present invention.
由上可知,本发明实施例采用在终端处于待机熄屏状态时,获取消息对应的通知事件,确定上述通知事件对应的应用程序,判断该应用程序是否持有亮屏锁,若是,则阻止该应用程序通过持有的亮屏锁点亮终端的屏幕;本方案通过在终端待机时释放通知事件对应的应用程序所持有的亮屏锁,从而使终端屏幕保持熄灭,减少了点亮屏幕对终端电量的消耗,节省了终端的电量,进而可以提高终端的续航能力,另外方案不需要增加任何器件以及物料成本,实施起来也较为简单。It can be seen that, in the embodiment of the present invention, when the terminal is in the standby screen-out state, the notification event corresponding to the message is acquired, the application corresponding to the notification event is determined, and whether the application holds the bright screen lock, and if so, the The application illuminates the screen of the terminal through the held bright screen lock; the solution releases the bright screen lock held by the application corresponding to the notification event when the terminal is in standby, thereby keeping the terminal screen off, reducing the pair of lighting screens. The consumption of the terminal power saves the power of the terminal, which in turn can improve the endurance of the terminal. In addition, the solution does not need to increase any device and material cost, and the implementation is relatively simple.
本实施例将以智能手机为例,描述本方案在实际应用当中的具体实施步骤,参考图3,基于亮屏锁的处理方法包括以下步骤:This embodiment will take a smart phone as an example to describe the specific implementation steps of the solution in practical applications. Referring to FIG. 3, the processing method based on the bright screen lock includes the following steps:
步骤S301,智能手机接收用户的白名单设置请求。Step S301, the smartphone receives a whitelist setting request of the user.
其中,上述白名单设置请求包括至少一个应用程序的名称,这些应用程序即使在手机待机时持有亮屏锁,也不会强制释放掉,即不会对其占用的亮屏锁进行释放处理,可以设置为“新浪微博”、“腾讯QQ”、“微信”。The whitelist setting request includes at least one application name, and the application does not force release even if the screen lock is held when the mobile phone is in standby, that is, the bright screen lock occupied by the application is not released. Can be set to "Sina Weibo", "Tencent QQ", "WeChat".
步骤S302,智能手机根据白名单设置请求建立白名单。In step S302, the smart phone establishes a white list according to the whitelist setting request.
比如,该白名单中包含的应用程序为“新浪微博”、“腾讯QQ”和“微信”。For example, the applications included in the whitelist are "Sina Weibo", "Tencent QQ" and "WeChat".
步骤S303,在智能手机熄屏的过程中,接收通知消息并确定对应的应用程序。Step S303, in the process of turning off the screen of the smart phone, receiving the notification message and determining the corresponding application.
该通知信息可以为系统通知,也可以为手机上安装的第三方应用的推送消息,比如百度贴吧新回复、新浪微博新粉丝、微信消息等。The notification information may be a system notification, or a push message of a third-party application installed on the mobile phone, such as a new reply of Baidu Post Bar, a new fan of Sina Weibo, a WeChat message, and the like.
具体的,比如在基于android操作系统的智能手机当中,可以通过NotificationListenerService服务接口进行检测,当手机系统收到新的通知消息或者通知消息被删除时,会触发NotificationListenerService接口的回调方法,获取该通知消息的具体信息。在智能手机获取到通知消息之后,可对通知消息进行分析,以确定该通知消息所对应的应用程序,比如接收到的贴吧回复消息所对应的应用程序即为“百度贴吧”、QQ消息所对应的应用程序为“腾讯QQ”。Specifically, for example, in the smart phone based on the android operating system, the notification can be detected through the NotificationListenerService service interface. When the mobile phone system receives a new notification message or the notification message is deleted, the callback method of the NotificationListenerService interface is triggered to obtain the notification message. Specific information. After the notification message is obtained by the smart phone, the notification message may be analyzed to determine an application corresponding to the notification message, for example, the application corresponding to the received post reply message is “Baidu Post Bar” and corresponding to the QQ message. The application is "Tencent QQ".
步骤S304,智能手机获取该应用程序的应用标识。Step S304, the smartphone acquires an application identifier of the application.
步骤S305,智能手机判断该应用标识是否在白名单当中,若是,则执行步骤S306,若否,则执行步骤S307。In step S305, the smart phone determines whether the application identifier is in the white list. If yes, step S306 is performed, and if no, step S307 is performed.
具体的,可以将该应用程序与白名单当中的应用程序进行匹配,若该应用程序与白名单当中的应用程序匹配成功,即该应用程序在白名单当中,所以允许该应用程序持有亮屏锁;若该应用程序与白名单当中的应用程序匹配失败,即该应用程序不在白名单当中,所以不允许该应用程序持有亮屏锁。Specifically, the application can be matched with the application in the whitelist. If the application matches the application in the whitelist successfully, that is, the application is in the white list, so the application is allowed to have a bright screen. Lock; if the application fails to match the application in the whitelist, ie the application is not in the whitelist, the application is not allowed to hold a bright lock.
步骤S306,智能手机允许该应用程序持有亮屏锁。In step S306, the smartphone allows the application to hold a bright screen lock.
比如手机接收到通知消息为QQ消息,从而确定该通知消息对应的应用程序为“腾讯QQ”,而“腾讯QQ”在上述白名单当中,故而手机允许“腾讯QQ”程序持有亮屏锁,并点亮屏幕向用户显示该QQ消息。For example, the mobile phone receives the notification message as a QQ message, thereby determining that the application corresponding to the notification message is “Tencent QQ”, and “Tencent QQ” is in the white list, so the mobile phone allows the “Tencent QQ” program to hold the bright screen lock. And the screen is lit to display the QQ message to the user.
步骤S307,智能手机判断该应用程序是否持有亮屏锁,若是,则执行步骤S308,若否,则执行步骤S309。Step S307, the smartphone determines whether the application holds a bright screen lock, and if so, proceeds to step S308, and if not, proceeds to step S309.
在本实施例中,该应用程序确定为不在上述白名单当中,以上述应用程序为“支付宝”为例,判断“支付宝”是否持有亮屏锁,具体的,检测智能手机中是否存在处于工作状态的亮屏锁,若存在,则进一步判断该处于工作状态的亮屏锁是否为与“支付宝”相对应的亮屏锁,若是则执行步骤S308,若否,则执行步骤S309。In this embodiment, the application determines that the application is not in the white list, and the application is “Alipay” as an example, and determines whether “Alipay” holds a bright screen lock. Specifically, detecting whether the smart phone is in the work The bright screen lock of the state, if present, further determines whether the bright screen lock in the working state is a bright screen lock corresponding to "Alipay", if yes, step S308 is performed, and if no, step S309 is performed.
步骤S308,智能手机释放应用程序持有的亮屏锁,以保持手机屏幕的熄灭状态。In step S308, the smart phone releases the bright screen lock held by the application to keep the screen of the mobile phone off.
以该应用程序为“支付宝”为例,在确定其持有手机中的亮屏锁后,释放其持有的亮屏锁,从而避免“支付宝”点亮手机屏幕。Taking the application as "Alipay" as an example, after determining that it holds the bright screen lock in the mobile phone, release the bright screen lock it holds, thereby preventing "Alipay" from lighting the mobile phone screen.
其中,在用户解锁点亮手机屏幕之后,可以将上述“支付宝”推送的通知消息显示在手机桌面上,从而让用户进行处理。After the user unlocks and illuminates the screen of the mobile phone, the notification message of the above “Alipay” push may be displayed on the desktop of the mobile phone, thereby allowing the user to process.
步骤S309,若判断该应用程序未持有亮屏锁,则不做进一步处理,保持智能手机的待机熄屏状态。In step S309, if it is determined that the application does not hold the bright screen lock, no further processing is performed to maintain the standby state of the smart phone.
由上可知,本发明实施例采用在智能手机处于待机熄屏状态时,获取消息对应的通知事件,确定上述通知事件对应的应用程序,判断该应用程序是否持有亮屏锁,若是,则阻止该应用程序通过持有的亮屏锁点亮智能手机的屏幕;本方案通过在智能手机待机时释放掉通知事件对应的应用程序所持有的亮屏锁,从而使手机屏幕保持熄灭,减少了点亮屏幕对电池电量的消耗,节省了手机的电量,进而可以提高手机的续航能力,提升用户体验。It can be seen that, in the embodiment of the present invention, when the smart phone is in the standby screen-out state, the notification event corresponding to the message is acquired, the application corresponding to the notification event is determined, and the application is determined to have a bright screen lock, and if so, the block is blocked. The application illuminates the screen of the smartphone through the held bright screen lock; this solution keeps the screen of the mobile phone off by reducing the bright screen lock held by the application corresponding to the notification event when the smartphone is in standby. Lighting the power consumption of the battery on the screen saves the power of the mobile phone, thereby improving the battery life and improving the user experience.
本发明实施例还提供一种基于亮屏锁的处理装置,包括:获取模块、确定模块、第一判断模块以及控制模块;The embodiment of the invention further provides a processing device based on a bright screen lock, comprising: an obtaining module, a determining module, a first determining module and a control module;
所述获取模块,用于在终端处于待机熄屏状态时,获取消息对应的通知事件;The obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state;
所述确定模块,用于确定所述通知事件对应的应用程序;The determining module is configured to determine an application corresponding to the notification event;
所述第一判断模块,用于判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;The first determining module is configured to determine whether the application program holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
所述控制模块,用于当所述第一判断模块判断为是时,阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。The control module is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module determines to be YES.
在一些实施例中,所述装置还包括:检测模块;In some embodiments, the apparatus further includes: a detection module;
所述检测模块,用于当所述第一判断模块判断为否时,检测是否有所述应用程序对应的亮屏锁申请请求;The detecting module is configured to: when the first determining module determines to be no, detect whether there is a bright screen lock application request corresponding to the application;
所述控制模块,还用于当所述检测模块检测到有所述应用程序对应的亮屏锁申请请求时,拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。The control module is further configured to: when the detecting module detects a bright screen lock application request corresponding to the application, rejecting the application request processing of the bright screen lock to prevent the application from applying for a bright screen lock .
在一些实施例中,所述装置还包括:第二判断模块;In some embodiments, the apparatus further includes: a second determining module;
所述第二判断模块,用于在所述确定模块确定所述通知事件对应的应用程序之后,所述第一判断模块判断所述应用程序是否持有亮屏锁之前,获取所述应用程序的应用标识,并判断预设应用标识集合中是否存在与所述应用程序对应的样本应用标识,若否,则由所述第一判断模块判断所述应用程序是否持有亮屏锁。The second determining module is configured to: after the determining module determines the application corresponding to the notification event, the first determining module determines whether the application holds a bright screen lock, and acquires the application Applying the identifier, and determining whether there is a sample application identifier corresponding to the application in the preset application identifier set. If not, determining, by the first determining module, whether the application holds a bright screen lock.
在一些实施例中,所述装置还包括:第三判断模块;In some embodiments, the apparatus further includes: a third determining module;
所述第三判断模块,用于在所述第一判断模块判断为是之后,所述控制模块阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕之前,判断所述应用程序持有所述亮屏锁的时长是否超过预设时长,若是,则由所述控制模块阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕。The third determining module is configured to: after the first determining module determines that the device is YES, the control module prevents the application program from lighting the screen of the terminal through a bright screen lock held by the control module, and determining the Whether the duration of the application holding the bright screen lock exceeds a preset duration, and if so, the control module prevents the application from illuminating the screen of the terminal through the bright screen lock it holds.
在一些实施例中,所述装置还包括:请求接收模块和添加模块;In some embodiments, the apparatus further includes: a request receiving module and an adding module;
所述请求接收模块,用于在所述获取模块获取消息对应的通知事件之前,接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;The request receiving module is configured to receive a setting request of an application, where the setting request carries an application identifier of the application, before the obtaining module acquires a notification event corresponding to the message;
所述添加模块,用于根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。The adding module is configured to use the application identifier of the application as a sample application identifier according to the setting request, and add the sample application identifier to a preset application identifier set.
为了更好地实施上述方法实施例,本发明还提供了一种基于亮屏锁的处理装置,该装置可以集成在终端中,该终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类智能电子设备。In order to better implement the foregoing method embodiments, the present invention also provides a processing device based on a bright screen lock, which can be integrated in a terminal, which can be a mobile internet device (such as a smart phone or a tablet), and an intelligent device. Wear all kinds of intelligent electronic devices such as smart watches.
如图4所示,该基于亮屏锁的处理装置可以包括:获取模块401、确定模块402、第一判断模块403以及控制模块404;As shown in FIG. 4, the bright screen lock-based processing device may include: an obtaining module 401, a determining module 402, a first determining module 403, and a control module 404;
该获取模块401,用于在终端处于待机熄屏状态时,获取消息对应的通知事件;The obtaining module 401 is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state;
该确定模块402,用于确定通知事件对应的应用程序;The determining module 402 is configured to determine an application corresponding to the notification event;
该第一判断模块403,用于判断应用程序是否持有亮屏锁;The first determining module 403 is configured to determine whether the application holds a bright screen lock;
该控制模块404,用于当第一判断模块403判断为是时,阻止应用程序通过持有的亮屏锁点亮终端的屏幕。The control module 404 is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module 403 determines YES.
在一些实施例中,本发明实施例提供的处理装置还可以包括:检测模块;In some embodiments, the processing apparatus provided by the embodiment of the present invention may further include: a detecting module;
该检测模块,用于当第一判断模块403判断为否时,检测是否有应用程序对应的亮屏锁申请请求;The detecting module is configured to: when the first determining module 403 determines to be no, detect whether there is a bright screen lock application request corresponding to the application;
控制模块404,还用于当检测模块检测到有应用程序对应的亮屏锁申请请求时,拒绝对亮屏锁申请请求处理,以阻止应用程序申请亮屏锁。The control module 404 is further configured to: when the detecting module detects the application for the bright screen lock corresponding to the application, reject the request processing of the bright screen lock request to prevent the application from applying for the bright screen lock.
在一些实施例中,如图5所示,本发明实施例提供的处理装置还可以包括:第二判断模块405;In some embodiments, as shown in FIG. 5, the processing apparatus provided by the embodiment of the present invention may further include: a second determining module 405;
该第二判断模块405,用于在确定模块402确定通知事件对应的应用程序之后,第一判断模块403判断应用程序是否持有亮屏锁之前,获取应用程序的应用标识,并判断预设应用标识集合中是否存在与应用程序对应的样本应用标识,若否,则由第一判断模块403判断应用程序是否持有亮屏锁。The second determining module 405 is configured to: after the determining module 402 determines the application corresponding to the notification event, the first determining module 403 determines whether the application holds the application identifier of the application before determining whether the application holds the bright screen lock, and determines the preset application. Whether there is a sample application identifier corresponding to the application in the identifier set, and if not, the first determining module 403 determines whether the application holds a bright screen lock.
在一些实施例中,本发明实施例提供的处理装置还可以包括:请求接收模块406和添加模块407;In some embodiments, the processing apparatus provided by the embodiment of the present invention may further include: a request receiving module 406 and an adding module 407;
该请求接收模块406,用于在获取模块401获取消息对应的通知事件之前,接收应用程序的设置请求,设置请求携带所述应用程序的应用标识;The request receiving module 406 is configured to: before the obtaining module 401 obtains the notification event corresponding to the message, receive a setting request of the application, and set the request to carry the application identifier of the application;
该添加模块407,用于根据设置请求将应用程序的应用标识作为样本应用标识,并添加至预设应用标识集合。The adding module 407 is configured to use the application identifier of the application as a sample application identifier according to the setting request, and add to the preset application identifier set.
在一些实施例中,该处理装置还可以包括:第三判断模块;In some embodiments, the processing device may further include: a third determining module;
该第三判断模块,用于在第一判断模块403判断为是之后,控制模块404阻止应用程序通过其持有的亮屏锁点亮终端的屏幕之前,判断应用程序持有亮屏锁的时长是否超过预设时长,若是,则由控制模块阻止应用程序通过其持有的亮屏锁点亮终端的屏幕。The third determining module is configured to: after the first determining module 403 determines YES, the control module 404 prevents the application from illuminating the screen of the terminal through the bright screen lock held by the application, and determines the duration of the application holding the bright screen lock. Whether the preset duration is exceeded, and if so, the control module prevents the application from lighting the screen of the terminal through the bright screen lock it holds.
由上可知,本发明实施例采用在终端处于待机熄屏状态时,由获取模块401获取消息对应的通知事件,确定模块402确定通知事件对应的应用程序,第一判断模块403判断该应用程序是否持有亮屏锁,若是,则由控制模块404阻止该应用程序通过持有的亮屏锁点亮终端的屏幕;本方案通过在终端待机时释放通知事件对应的应用程序所持有的亮屏锁,从而使终端屏幕保持熄灭,减少了点亮屏幕对终端电量的消耗,节省了终端的电量,进而可以提高终端的续航能力,改善用户体验。It can be seen that, in the embodiment of the present invention, when the terminal is in the standby screen-out state, the acquisition module 401 acquires the notification event corresponding to the message, the determining module 402 determines the application corresponding to the notification event, and the first determining module 403 determines whether the application is Holding a bright screen lock, if yes, the control module 404 prevents the application from illuminating the screen of the terminal through the held bright screen lock; the solution releases the bright screen held by the application corresponding to the notification event when the terminal is in standby The lock prevents the terminal screen from being extinguished, reduces the consumption of the terminal power by the lighting screen, and saves the power of the terminal, thereby improving the endurance capability of the terminal and improving the user experience.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。For the specific implementation, the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities. For the specific implementation of the foregoing modules, refer to the foregoing method embodiments, and details are not described herein again.
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等终端。如图6所示,电子设备500包括处理器501、存储器502、显示屏503以及控制电路504。其中,处理器501分别与存储器502、显示屏503、控制电路504电性连接。The embodiment of the invention further provides an electronic device, which may be a terminal such as a smart phone or a tablet computer. As shown in FIG. 6, the electronic device 500 includes a processor 501, a memory 502, a display screen 503, and a control circuit 504. The processor 501 is electrically connected to the memory 502, the display screen 503, and the control circuit 504, respectively.
处理器501是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 501 is a control center of the electronic device 500, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 502, and calling data stored in the memory 502. The various functions and processing data of the device enable overall monitoring of the electronic device.
在本实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能:In this embodiment, the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more applications into the memory 502 according to the following steps, and is stored and stored in the memory 502 by the processor 501. In the application, thus implementing various functions:
在电子设备处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the electronic device is in the standby screen-out state;
确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮电子设备屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate the electronic device screen during operation;
若是,则阻止所述应用程序通过持有的亮屏锁点亮所述电子设备的屏幕。If so, the application is prevented from illuminating the screen of the electronic device by the held bright screen lock.
在一些实施例中,判断所述应用程序是否持有亮屏锁时,处理器501执行以下步骤:获取当前处于运行状态的亮屏锁的标识;将所述应用程序的应用标识与获取到的亮屏锁的标识进行匹配;当匹配成功时,判断为所述应用程序持有亮屏锁。In some embodiments, when it is determined whether the application holds a bright screen lock, the processor 501 performs the following steps: acquiring an identifier of a bright screen lock currently in a running state; and applying the application identifier of the application to the acquired The identification of the bright screen lock is matched; when the matching is successful, it is determined that the application holds a bright screen lock.
在一些实施例中,处理器501还执行以下步骤:若判断所述应用程序未持有亮屏锁,则检测是否有所述应用程序对应的亮屏锁申请请求;若有,则拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。In some embodiments, the processor 501 further performs the following steps: if it is determined that the application does not hold a bright screen lock, detecting whether there is a bright screen lock application request corresponding to the application; if yes, rejecting the The bright screen lock application request processing is performed to prevent the application from applying for a bright screen lock.
在一些实施例中,判断所述应用程序是否持有亮屏锁前,处理器501还执行以下步骤:获取所述应用程序的应用标识;判断预设应用标识集合中是否存在与所述应用标识相同的样本应用标识;若否,则判断所述应用程序是否持有亮屏锁。In some embodiments, before determining whether the application holds a bright screen lock, the processor 501 further performs the steps of: acquiring an application identifier of the application; determining whether the application identifier is present in the preset application identifier set. The same sample application identifier; if not, it is determined whether the application holds a bright screen lock.
在一些实施例中,阻止所述应用程序通过其持有的亮屏锁点亮所述电子设备的屏幕前,处理器501还执行以下步骤:判断所述应用程序持有所述亮屏锁的时长是否超过预设时长;若是,则阻止所述应用程序通过其持有的亮屏锁点亮所述电子设备的屏幕。In some embodiments, before the application is prevented from illuminating the screen of the electronic device by the bright screen lock it holds, the processor 501 further performs the following steps: determining that the application holds the bright screen lock Whether the duration exceeds a preset duration; if so, the application is prevented from illuminating the screen of the electronic device by the bright screen lock it holds.
在一些实施例中,所述获取消息对应的通知事件前,处理器501还执行以下步骤:接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。In some embodiments, before the obtaining the notification event corresponding to the message, the processor 501 further performs the steps of: receiving a setting request of the application, where the setting request carries an application identifier of the application; according to the setting request The application identifier of the application is used as a sample application identifier, and the sample application identifier is added to the preset application identifier set.
在一些实施例中,确定所述通知事件对应的应用程序时,处理器501执行以下步骤:获取所述消息携带的应用程序标识信息;根据所述应用程序标识信息确定所述通知事件对应的应用程序。In some embodiments, when determining the application corresponding to the notification event, the processor 501 performs the following steps: acquiring application identification information carried by the message; and determining, according to the application identification information, an application corresponding to the notification event. program.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器501通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。Memory 502 can be used to store applications and data. The application stored in the memory 502 contains instructions executable in the processor. Applications can form various functional modules. The processor 501 executes various functional applications and data processing by running an application stored in the memory 502.
显示屏503可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 503 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
控制电路504与显示屏503电性连接,用于控制显示屏503显示信息。The control circuit 504 is electrically connected to the display screen 503 for controlling the display screen 503 to display information.
在一些实施例中,如图7所示,电子设备500还包括:射频电路505、输入单元506、音频电路507、传感器508以及电源509。其中,处理器501分别与射频电路505、输入单元506、音频电路507、传感器508以及电源509电性连接。In some embodiments, as shown in FIG. 7, the electronic device 500 further includes a radio frequency circuit 505, an input unit 506, an audio circuit 507, a sensor 508, and a power source 509. The processor 501 is electrically connected to the radio frequency circuit 505, the input unit 506, the audio circuit 507, the sensor 508, and the power source 509, respectively.
射频电路505用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 505 is used for transmitting and receiving radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
输入单元506可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元506可以包括指纹识别模组。The input unit 506 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls. The input unit 506 can include a fingerprint identification module.
音频电路507可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 507 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
传感器508用于采集外部环境信息。传感器508可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。Sensor 508 is used to collect external environmental information. Sensor 508 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
电源509用于给电子设备500的各个部件供电。在一些实施例中,电源509可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Power source 509 is used to power various components of electronic device 500. In some embodiments, the power supply 509 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图7中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 7, the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本发明实施例提供的电子设备,在电子设备待机熄屏的过程当中,接收通知事件,确定通知事件对应的应用程序,判断该应用程序是否持有亮屏锁,若是,则释放该应用程序持有的亮屏锁,以使电子设备的屏幕保持熄灭状态;本方案通过在电子设备待机时释放通知事件对应的应用程序所持有的亮屏锁,从而使电子设备屏幕保持熄灭,减少了点亮屏幕对电子设备电量的消耗,节省了电子设备的电量,进而可以提高电子设备的续航能力。The electronic device provided by the embodiment of the present invention receives a notification event during the standby screen of the electronic device, determines an application corresponding to the notification event, determines whether the application holds a bright screen lock, and if so, releases the application. Some of the bright screen locks are used to keep the screen of the electronic device off; the solution keeps the screen of the electronic device off by reducing the brightness lock held by the application corresponding to the notification event when the electronic device is in standby, reducing the point The bright screen consumes the power of the electronic device, which saves the power of the electronic device, thereby improving the battery life of the electronic device.
本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一实施例所述的应用程序处理方法。The embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the application processing method described in any of the foregoing embodiments.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. As stored in the memory of the terminal and executed by at least one processor within the terminal, a flow such as an embodiment of the information dissemination method may be included in the execution. The storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
以上对本发明实施例提供的基于亮屏锁的处理方法、装置、存储介质及电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The processing method, device, storage medium and electronic device based on the bright screen lock provided by the embodiments of the present invention are described in detail. The functional modules may be integrated into one processing chip, or each module may exist separately or physically. Two or more modules are integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.

Claims (20)

  1. 一种基于亮屏锁的处理方法,其中,包括以下步骤:A processing method based on a bright screen lock, which comprises the following steps:
    在终端处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the terminal is in the standby screen-out state;
    确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
    判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
    若是,则阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。If so, the application is prevented from illuminating the screen of the terminal by the held bright screen lock.
  2. 如权利要求1所述的处理方法,其中,判断所述应用程序是否持有亮屏锁的步骤包括:The processing method according to claim 1, wherein the step of determining whether the application holds a bright screen lock comprises:
    获取当前处于运行状态的亮屏锁的标识;Get the ID of the bright screen lock that is currently running;
    将所述应用程序的应用标识与获取到的亮屏锁的标识进行匹配;Matching the application identifier of the application with the identifier of the obtained bright screen lock;
    当匹配成功时,判断为所述应用程序持有亮屏锁。When the match is successful, it is determined that the application holds a bright screen lock.
  3. 如权利要求1所述的处理方法,其中,所述方法还包括:The processing method of claim 1, wherein the method further comprises:
    若判断所述应用程序未持有亮屏锁,则检测是否有所述应用程序对应的亮屏锁申请请求;If it is determined that the application does not hold a bright screen lock, detecting whether there is a bright screen lock application request corresponding to the application;
    若有,则拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。If so, the application request processing of the bright screen lock is refused to prevent the application from applying for a bright screen lock.
  4. 如权利要求1所述的处理方法,其中,在所述确定所述通知事件对应的应用程序之后,所述判断所述应用程序是否持有亮屏锁之前,所述方法还包括:The processing method according to claim 1, wherein after the determining the application corresponding to the notification event, the method further comprises: before determining whether the application holds a bright screen lock, the method further comprises:
    获取所述应用程序的应用标识;Obtaining an application identifier of the application;
    判断预设应用标识集合中是否存在与所述应用标识相同的样本应用标识;Determining whether there is a sample application identifier that is the same as the application identifier in the preset application identifier set;
    若否,则执行判断所述应用程序是否持有亮屏锁的步骤。If not, a step of determining whether the application holds a bright screen lock is performed.
  5. 如权利要求1所述的处理方法,其中,在判断所述应用程序持有亮屏锁之后,在阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕之前,所述方法还包括:The processing method according to claim 1, wherein after determining that the application holds a bright screen lock, before the application is prevented from illuminating the screen of the terminal by a bright screen lock held thereby, The method also includes:
    判断所述应用程序持有所述亮屏锁的时长是否超过预设时长;Determining whether the duration of the application holding the bright screen lock exceeds a preset duration;
    若是,则执行阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕的步骤。If so, the step of preventing the application from illuminating the screen of the terminal by the bright screen lock it holds is performed.
  6. 如权利要求4所述的处理方法,其中,在所述获取消息对应的通知事件之前,所述方法还包括:The processing method of claim 4, wherein before the obtaining the notification event corresponding to the message, the method further comprises:
    接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;Receiving a setting request of an application, where the setting request carries an application identifier of the application;
    根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。And applying the application identifier of the application as a sample application identifier according to the setting request, and adding the sample application identifier to the preset application identifier set.
  7. 如权利要求1所述的处理方法,其中,确定所述通知事件对应的应用程序的步骤包括:The processing method according to claim 1, wherein the determining the application corresponding to the notification event comprises:
    获取所述消息携带的应用程序标识信息;Obtaining application identifier information carried by the message;
    根据所述应用程序标识信息确定所述通知事件对应的应用程序。Determining an application corresponding to the notification event according to the application identification information.
  8. 一种基于亮屏锁的处理装置,其中,包括:获取模块、确定模块、第一判断模块以及控制模块;A processing device based on a bright screen lock, comprising: an obtaining module, a determining module, a first determining module, and a control module;
    所述获取模块,用于在终端处于待机熄屏状态时,获取消息对应的通知事件;The obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the standby blanking state;
    所述确定模块,用于确定所述通知事件对应的应用程序;The determining module is configured to determine an application corresponding to the notification event;
    所述第一判断模块,用于判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述终端的屏幕;The first determining module is configured to determine whether the application program holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the terminal during operation;
    所述控制模块,用于当所述第一判断模块判断为是时,阻止所述应用程序通过持有的亮屏锁点亮所述终端的屏幕。The control module is configured to prevent the application from lighting the screen of the terminal by the held bright screen lock when the first determining module determines to be YES.
  9. 如权利要求8所述的处理装置,其中,所述装置还包括:检测模块;The processing device of claim 8 wherein said device further comprises: a detection module;
    所述检测模块,用于当所述第一判断模块判断为否时,检测是否有所述应用程序对应的亮屏锁申请请求;The detecting module is configured to: when the first determining module determines to be no, detect whether there is a bright screen lock application request corresponding to the application;
    所述控制模块,还用于当所述检测模块检测到有所述应用程序对应的亮屏锁申请请求时,拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。The control module is further configured to: when the detecting module detects a bright screen lock application request corresponding to the application, rejecting the application request processing of the bright screen lock to prevent the application from applying for a bright screen lock .
  10. 如权利要求8所述的处理装置,其中,所述装置还包括:第二判断模块;The processing device of claim 8, wherein the device further comprises: a second determining module;
    所述第二判断模块,用于在所述确定模块确定所述通知事件对应的应用程序之后,所述第一判断模块判断所述应用程序是否持有亮屏锁之前,获取所述应用程序的应用标识,并判断预设应用标识集合中是否存在与所述应用程序对应的样本应用标识,若否,则由所述第一判断模块判断所述应用程序是否持有亮屏锁。The second determining module is configured to: after the determining module determines the application corresponding to the notification event, the first determining module determines whether the application holds a bright screen lock, and acquires the application Applying the identifier, and determining whether there is a sample application identifier corresponding to the application in the preset application identifier set. If not, determining, by the first determining module, whether the application holds a bright screen lock.
  11. 如权利要求8所述的处理装置,其中,所述装置还包括:第三判断模块;The processing device of claim 8, wherein the device further comprises: a third determining module;
    所述第三判断模块,用于在所述第一判断模块判断为是之后,所述控制模块阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕之前,判断所述应用程序持有所述亮屏锁的时长是否超过预设时长,若是,则由所述控制模块阻止所述应用程序通过其持有的亮屏锁点亮所述终端的屏幕。The third determining module is configured to: after the first determining module determines that the device is YES, the control module prevents the application program from lighting the screen of the terminal through a bright screen lock held by the control module, and determining the Whether the duration of the application holding the bright screen lock exceeds a preset duration, and if so, the control module prevents the application from illuminating the screen of the terminal through the bright screen lock it holds.
  12. 如权利要求10所述的处理装置,其中,所述装置还包括:请求接收模块和添加模块;The processing device of claim 10, wherein the device further comprises: a request receiving module and an adding module;
    所述请求接收模块,用于在所述获取模块获取消息对应的通知事件之前,接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;The request receiving module is configured to receive a setting request of an application, where the setting request carries an application identifier of the application, before the obtaining module acquires a notification event corresponding to the message;
    所述添加模块,用于根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。The adding module is configured to use the application identifier of the application as a sample application identifier according to the setting request, and add the sample application identifier to a preset application identifier set.
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1至7任一项所述的基于亮屏锁的处理方法。A storage medium, wherein the storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the bright screen lock based processing method according to any one of claims 1 to 7.
  14. 一种电子设备,其中,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:An electronic device, comprising a processor and a memory, the processor being electrically connected to the memory, the memory for storing instructions and data, the processor for performing the following steps:
    在所述电子设备处于待机熄屏状态时,获取消息对应的通知事件;Obtaining a notification event corresponding to the message when the electronic device is in a standby screen-out state;
    确定所述通知事件对应的应用程序;Determining an application corresponding to the notification event;
    判断所述应用程序是否持有亮屏锁,所述亮屏锁用于在运行时点亮所述电子设备的屏幕;Determining whether the application holds a bright screen lock, and the bright screen lock is used to illuminate a screen of the electronic device during operation;
    若是,则阻止所述应用程序通过持有的亮屏锁点亮所述电子设备的屏幕。If so, the application is prevented from illuminating the screen of the electronic device by the held bright screen lock.
  15. 如权利要求14所述的电子设备,其中,判断所述应用程序是否持有亮屏锁时,所述处理器用于执行以下步骤:The electronic device of claim 14, wherein the processor is configured to perform the following steps when determining whether the application holds a bright screen lock:
    获取当前处于运行状态的亮屏锁的标识;Get the ID of the bright screen lock that is currently running;
    将所述应用程序的应用标识与获取到的亮屏锁的标识进行匹配;Matching the application identifier of the application with the identifier of the obtained bright screen lock;
    当匹配成功时,判断为所述应用程序持有亮屏锁。When the match is successful, it is determined that the application holds a bright screen lock.
  16. 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps:
    若判断所述应用程序未持有亮屏锁,则检测是否有所述应用程序对应的亮屏锁申请请求;If it is determined that the application does not hold a bright screen lock, detecting whether there is a bright screen lock application request corresponding to the application;
    若有,则拒绝对所述亮屏锁申请请求处理,以阻止所述应用程序申请亮屏锁。If so, the application request processing of the bright screen lock is refused to prevent the application from applying for a bright screen lock.
  17. 如权利要求14所述的电子设备,其中,判断所述应用程序是否持有亮屏锁前,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps before determining whether the application holds a bright screen lock:
    获取所述应用程序的应用标识;Obtaining an application identifier of the application;
    判断预设应用标识集合中是否存在与所述应用标识相同的样本应用标识;Determining whether there is a sample application identifier that is the same as the application identifier in the preset application identifier set;
    若否,则判断所述应用程序是否持有亮屏锁。If not, it is determined whether the application holds a bright screen lock.
  18. 如权利要求14所述的电子设备,其中,阻止所述应用程序通过其持有的亮屏锁点亮所述电子设备的屏幕前,所述处理器还用于执行以下步骤:The electronic device of claim 14, wherein the processor is further configured to perform the following steps by preventing the application from illuminating the screen of the electronic device by a bright screen lock held by the application:
    判断所述应用程序持有所述亮屏锁的时长是否超过预设时长;Determining whether the duration of the application holding the bright screen lock exceeds a preset duration;
    若是,则阻止所述应用程序通过其持有的亮屏锁点亮所述电子设备的屏幕。If so, the application is prevented from illuminating the screen of the electronic device by the bright screen lock it holds.
  19. 如权利要求17所述的电子设备,其中,所述获取消息对应的通知事件前,所述处理器还用于执行以下步骤:The electronic device of claim 17, wherein the processor is further configured to perform the following steps before the notification event corresponding to the message is obtained:
    接收应用程序的设置请求,所述设置请求携带所述应用程序的应用标识;Receiving a setting request of an application, where the setting request carries an application identifier of the application;
    根据所述设置请求将所述应用程序的应用标识作为样本应用标识,并将所述样本应用标识添加至预设应用标识集合。And applying the application identifier of the application as a sample application identifier according to the setting request, and adding the sample application identifier to the preset application identifier set.
  20. 如权利要求14所述的电子设备,其中,确定所述通知事件对应的应用程序时,所述处理器用于执行以下步骤:The electronic device of claim 14, wherein the processor is configured to perform the following steps when determining an application corresponding to the notification event:
    获取所述消息携带的应用程序标识信息;Obtaining application identifier information carried by the message;
    根据所述应用程序标识信息确定所述通知事件对应的应用程序。Determining an application corresponding to the notification event according to the application identification information.
PCT/CN2017/086459 2016-05-31 2017-05-29 Bright screen lock-based processing method and apparatus, storage medium, and electronic device WO2017206862A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379612.5 2016-05-31
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 (1)

Publication Number Publication Date
WO2017206862A1 true WO2017206862A1 (en) 2017-12-07

Family

ID=57171795

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086459 WO2017206862A1 (en) 2016-05-31 2017-05-29 Bright screen lock-based processing method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN106055073B (en)
WO (1) WO2017206862A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107148073A (en) * 2017-05-24 2017-09-08 北京珠穆朗玛移动通信有限公司 Bright screen processing method, mobile terminal and the device with store function
CN114390190A (en) * 2020-10-22 2022-04-22 海信视像科技股份有限公司 Display equipment and method for monitoring application to start camera
CN116027876A (en) * 2022-06-30 2023-04-28 荣耀终端有限公司 Absolute static state information acquisition method and electronic equipment

Families Citing this family (10)

* Cited by examiner, † Cited by third party
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
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
CN110543333B (en) * 2018-05-29 2024-05-17 视联动力信息技术股份有限公司 Sleep 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

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and 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
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN106055073A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Processing method and device based on screen-lighting lock

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9841802B2 (en) * 2014-02-20 2017-12-12 Qualcomm Incorporated Wake lock management through application monitoring
CN105183137B (en) * 2015-09-09 2018-06-01 厦门美图移动科技有限公司 A kind of mobile terminal and its wake-up lock control method and control system
CN105530377B (en) * 2015-12-14 2019-03-15 Oppo广东移动通信有限公司 It is a kind of to wake up the processing method locked, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control 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
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal, message notification control method and device thereof
CN106055073A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Processing method and device based on screen-lighting lock

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107148073A (en) * 2017-05-24 2017-09-08 北京珠穆朗玛移动通信有限公司 Bright screen processing method, mobile terminal and the device with store function
CN107148073B (en) * 2017-05-24 2020-10-30 北京珠穆朗玛移动通信有限公司 Bright screen processing method, mobile terminal and device with storage function
CN114390190A (en) * 2020-10-22 2022-04-22 海信视像科技股份有限公司 Display equipment and method for monitoring application to start camera
CN114390190B (en) * 2020-10-22 2023-10-31 海信视像科技股份有限公司 Display equipment and method for monitoring application to start camera
CN116027876A (en) * 2022-06-30 2023-04-28 荣耀终端有限公司 Absolute static state information acquisition method and electronic equipment
CN116027876B (en) * 2022-06-30 2023-11-24 荣耀终端有限公司 Absolute static state information acquisition method and electronic equipment

Also Published As

Publication number Publication date
CN106055073B (en) 2019-02-26
CN106055073A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
WO2017206862A1 (en) Bright screen lock-based processing method and apparatus, storage medium, and electronic device
WO2017206878A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2017206890A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2017206875A1 (en) Data packet-based processing method and apparatus, storage medium, and electronic device
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2018076866A1 (en) Data processing method, device, storage medium, electronic device and server
WO2014021681A1 (en) Method and apparatus for alarm service using context awareness in portable terminal
WO2017206883A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2018018772A1 (en) Background process management method and terminal device
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2018076869A1 (en) Data backup method, apparatus, storage medium and electronic device
WO2018076864A1 (en) Data synchronization method, apparatus, storage medium and electronic device
WO2018076867A1 (en) Data backup deleting method, device and system, storage medium and server
WO2017206886A1 (en) Wakeup lock releasing method and apparatus, storage medium, and electronic device
WO2017206880A1 (en) Terminal data processing method and apparatus, storage medium, and electronic device
WO2019045265A1 (en) Method for providing smart key service and electronic device thereof
WO2017206885A1 (en) Application program shutdown method and apparatus, storage medium, and electronic device
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2016188285A1 (en) Process management method and device of terminal application
WO2018171534A1 (en) Mobile terminal-based dual camera power supply control method, system and mobile terminal
WO2017206870A1 (en) Sensor shutdown method and apparatus, storage medium, and electronic device
WO2015026197A1 (en) Method for performing power-saving mode in electronic device and electronic device therefor
WO2017071326A1 (en) Terminal control method, device and system
WO2017071324A1 (en) File-transmission encryption and decryption method and encryption and decryption device
WO2018076829A1 (en) Terminal data processing method, apparatus, system, storage medium and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805807

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805807

Country of ref document: EP

Kind code of ref document: A1