CN106933576B - Terminal unlocking method and device and computer equipment - Google Patents

Terminal unlocking method and device and computer equipment Download PDF

Info

Publication number
CN106933576B
CN106933576B CN201710113231.7A CN201710113231A CN106933576B CN 106933576 B CN106933576 B CN 106933576B CN 201710113231 A CN201710113231 A CN 201710113231A CN 106933576 B CN106933576 B CN 106933576B
Authority
CN
China
Prior art keywords
screen
state
screen locking
terminal
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710113231.7A
Other languages
Chinese (zh)
Other versions
CN106933576A (en
Inventor
陈德银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710113231.7A priority Critical patent/CN106933576B/en
Publication of CN106933576A publication Critical patent/CN106933576A/en
Application granted granted Critical
Publication of CN106933576B publication Critical patent/CN106933576B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Abstract

The invention discloses a terminal unlocking method, a terminal unlocking device and computer equipment, wherein the terminal unlocking method comprises the steps of generating a trigger signal for starting a screen locking process when a terminal screen-off instruction is received; acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow; performing parallel processing on the screen rejection flow and the screen locking priority operation flow to obtain a parallel processing result; and if the screen rejection process is detected to be completed, generating a terminal screen locking interface according to the parallel processing result. Namely, the embodiment of the invention starts to trigger the screen-off process and the screen-locking priority operation process for parallel processing after receiving the screen-off instruction of the terminal, thereby greatly reducing the screen-locking time consumption and improving the screen-locking response speed.

Description

Terminal unlocking method and device and computer equipment
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a terminal unlocking method and device and computer equipment.
Background
With the rapid development of the mobile internet and the popularization of mobile terminals such as mobile phones and tablets, the usage amount of the mobile terminals is increasing, and meanwhile, the security of the terminal data is also receiving more and more attention.
In order to effectively protect the data security of the terminal, a user usually performs screen locking protection on the terminal, and the terminal can enter the terminal after being locked by inputting a password or other unlocking modes set by the user; however, the screen locking manner in the prior art completely depends on the execution of the system flow, and as more and more other flows (such as the flows related to screen saving) are executed as the version of the terminal system is upgraded, and the flows are relatively more and more complex, the time consumed for locking the screen is increased, and especially in a state that the system is busy, the screen locking interface is easily not displayed in time, and the delay is serious.
Disclosure of Invention
The embodiment of the invention provides a terminal unlocking method, a terminal unlocking device and computer equipment, which can reduce screen locking time and improve screen locking response speed.
In a first aspect, an embodiment of the present invention provides a terminal unlocking method, including:
when a terminal screen-off instruction is received, generating a trigger signal for starting a screen locking process;
acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow;
performing parallel processing on the screen rejection flow and the screen locking priority operation flow to obtain a parallel processing result;
and if the screen rejection process is detected to be completed, generating a terminal screen locking interface according to the parallel processing result.
In a second aspect, an embodiment of the present invention provides a terminal unlocking device, including:
the signal generation module is used for generating a trigger signal for starting a screen locking process when a screen saving instruction of the terminal is received;
the acquisition module is used for acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow;
the parallel processing module is used for carrying out parallel processing on the information screen flow and the screen locking priority operation flow to obtain a parallel processing result;
and the interface generating module is used for generating a terminal screen locking interface according to the parallel processing result if the screen rejection process is detected to be completed.
In a third aspect, an embodiment of the present invention provides a computer device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory, and executes the executable program code to implement the terminal unlocking method as provided in the first aspect.
In the embodiment of the invention, when a terminal screen-off instruction is received, a trigger signal for starting a screen-locking flow is generated, so that the screen-off flow and a screen-locking priority operation flow are started to be processed in parallel according to the trigger signal, wherein the screen-locking priority operation flow is an operation flow related to non-interface operation in the screen-locking flow, and if the screen-off flow is detected to be completed, a terminal screen-locking interface is generated according to a parallel processing result; that is to say, the screen-off process and the screen-locking prior operation process are triggered to be processed in parallel from the screen-off instruction of the terminal, so that the screen-locking time is greatly reduced, and the screen-locking response speed is improved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a flowchart illustrating a terminal unlocking method according to an embodiment of the present invention.
Fig. 2 is another schematic flow chart of the terminal unlocking method according to the embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal unlocking device according to an embodiment of the present invention.
Fig. 4 is another schematic structural diagram of the terminal unlocking device according to the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present invention are described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, but on the contrary, it is to be understood that various steps and operations described hereinafter may be implemented in hardware.
The principles of the present invention are operational with numerous other general purpose or special purpose computing, communication environments or configurations. Examples of well known computing systems, environments, and configurations that may be suitable for use with the invention include, but are not limited to, hand-held telephones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe-based computers, and distributed computing environments that include any of the above systems or devices.
The details will be described below separately.
In the present embodiment, a description will be made from the perspective of a terminal unlocking apparatus, which may be integrated in a mobile terminal such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like.
Referring to fig. 1, fig. 1 is a schematic flowchart of a terminal unlocking method according to an embodiment of the present invention. The method comprises the following steps:
in step S101, when a terminal screen-off instruction is received, a trigger signal for starting a screen-locking process is generated.
In the embodiment of the invention, for example, the operations of locking the screen by an energy power key (also called an on-off key), locking the screen by one key, automatically turning off the screen of the screen and the like can be considered to be sending a screen turning-off instruction to the terminal, and the terminal triggers and starts the screen locking process when receiving the screen turning-off instruction.
In some embodiments, the terminal "generating a trigger signal for starting a screen locking process when receiving a screen turn-off instruction of the terminal" may include:
(11) and when a screen locking related state is acquired when a screen turning instruction of the terminal is received.
(12) And after the screen locking related state is determined to be correspondingly synchronous with the current system state of the terminal, generating a trigger signal for starting a screen locking process.
It can be understood that before the screen locking process is started, whether a local preset screen locking related state of the terminal is matched with the current system state of the terminal needs to be checked, if not, state synchronization needs to be performed, and after the screen locking related state is determined to be correspondingly synchronized with the current system state of the terminal, a trigger signal for starting the screen locking process is generated so as to perform the screen locking process.
In step S102, a preset screen locking priority operation flow is obtained according to the trigger signal, where the screen locking priority operation flow is an operation flow related to a non-interface operation in the screen locking flow.
In step S103, the screen rejection process and the screen locking priority operation process are processed in parallel to obtain a parallel processing result.
That is to say, in the embodiment of the present invention, while the screenshot process is performed, the screen locking related operations may be processed in parallel, and the screen locking related operations may be preset with priorities, for example, operations related to non-Interface operations (for short, UI (User Interface) operations) may be completed first, and then operations related to Interface operations may be processed, and so on.
In some embodiments, the terminal, while performing parallel processing on the screen rejection flow and the screen locking priority operation flow, may further include:
and when the current system state of the terminal is determined to be changed, synchronizing the screen locking related state and the current system state of the terminal.
That is to say, after the terminal starts the screen locking process, in order to prevent the state from being asynchronous due to the change of the terminal system state, a monitoring strategy can be started for the screen locking related state, and when the terminal system state changes, the monitoring strategy is matched with the screen locking related state in a corresponding checking manner in time so as to keep the state synchronous.
In step S104, if it is detected that the screen rejection process is completed, a terminal screen locking interface is generated according to the parallel processing result.
In one embodiment, the terminal "generating the terminal screen locking interface according to the parallel processing result" may include:
(21) and if the parallel processing result indicates that the screen locking priority operation flow is finished, entering an operation flow related to interface operation in the screen locking flow and processing.
(22) And after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
In another embodiment, the terminal "generating the terminal screen locking interface according to the parallel processing result" may include:
(31) and if the parallel processing result indicates that the screen locking priority operation flow is not completed, continuing to execute the screen locking priority operation flow, and entering an operation flow related to interface operation in the screen locking flow and processing when determining that the screen locking priority operation flow is completed.
(32) And after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
It can be understood that before the flow related to screen saving is not executed, the operation related to interface operation (UI) may be delayed for processing, and when it is determined that the screen saving flow processing is completed, the flow of UI operation is immediately entered; in addition, if the previous non-UI operation is finished, skipping, otherwise, continuously finishing the non-UI operation in the UI thread, and finally drawing a screen locking interface by the system after the UI operation flow is finished.
The terms "first", "second", and "third", etc. in the present invention are used for distinguishing different objects, not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions.
As can be seen from the above, in the terminal unlocking method provided in this embodiment, when a terminal screen-off instruction is received, a trigger signal for starting a screen-locking flow is generated, so that according to the trigger signal, a screen-off starting flow and a screen-locking priority operation flow are started to perform parallel processing, where the screen-locking priority operation flow is an operation flow related to non-interface operation in the screen-locking flow, and if it is detected that the screen-off starting flow is completed, a terminal screen-locking interface is generated according to a parallel processing result; that is to say, the screen-off process and the screen-locking prior operation process are triggered to be processed in parallel from the screen-off instruction of the terminal, so that the screen-locking time is greatly reduced, and the screen-locking response speed is improved.
The method described in the above embodiments is further illustrated in detail by way of example.
The screen locking mode in the prior art completely depends on the execution of the system process, and as more and more other processes (such as screen-off related processes) can be executed along with the upgrading requirement of the terminal system version, and the processes are relatively more and more complex, the time consumed for screen locking is increased, especially in a busy state of system operation, a screen locking interface is easily not displayed in time, and serious delay is caused. Based on the above, the invention provides a terminal unlocking method, which can quickly respond to screen locking display, so that a terminal system can quickly complete screen locking display after a user performs screen locking operation through a screen locking inlet.
Referring to fig. 2, fig. 2 is another schematic flow chart of a terminal unlocking method according to an embodiment of the present invention. The method comprises the following steps:
in step S201, when a terminal screen-off instruction is received, a screen-locking related state is acquired.
In step S202, after it is determined that the screen-locking related state is synchronized with the current system state of the terminal, a trigger signal for starting the screen-locking process is generated.
It can be understood that before the screen locking process is started, whether a screen locking related state locally preset in the terminal is matched with a current system state of the terminal needs to be checked, if the screen locking related state is not matched with the current system state of the terminal, state synchronization needs to be performed, and after the screen locking related state is determined to be correspondingly synchronized with the current system state of the terminal, if all latest states allow screen locking, a trigger signal for starting the screen locking process is generated so as to perform the screen locking process.
In the embodiment of the present invention, the purpose of state synchronization is to adjust the screen locking state in time, for example, the terminal system changes at any time, for example, a signal for canceling the screen locking is sent, at this time, the terminal system needs to correct the screen locking state in time, and a screen locking process is recovered to terminate the screen locking.
The system state synchronized with the screen locking state may include one or a combination of two or more of the following:
time zone, Subscriber Identity Module (SIM) status, phone status, information status, device management status, user status, power on status, media service status, and other device status, such as fingerprint, battery, screen, various sensors, etc.
In step S203, a preset screen locking priority operation flow is obtained according to the trigger signal, where the screen locking priority operation flow is an operation flow related to a non-interface operation in the screen locking flow.
In step S204, the screen rejection process and the screen lock priority operation process are processed in parallel.
In the embodiment of the present invention, while the screen saving process is performed, screen locking related operations may be processed in parallel, and the screen locking related operations may be preset with priorities, for example, time-consuming non-interface operation related operations (non-UI operation for short) may be completed first, then other non-UI operations may be processed, and finally the UI operation may be processed, and the like.
For example, based on the set priority, when the screen rejection process and the screen locking process are processed in parallel after the trigger signal is received, operations related to non-interface operations which are time-consuming are processed in parallel, and then other non-UI operations are processed.
In general, a breath screen flow may include the following three main operations: 1. start of screen blanking (onStartedGoingToSleep): if the terminal system is called immediately after the on-off key is pressed, and the reason of screen turning triggering of the terminal system and the state of the terminal screen are synchronized; 2. screen-out (onfinishedggoungtosleep): after the screen is completely turned off, a Liquid Crystal Display (LCD) is turned off, and the screen backlight is adjusted to be 0; 3. sleep (onScreenTurnedOff): and calling the screen-off animation after the screen-off animation is finished, triggering the background of the terminal system to work and sleep, and stopping some bottom-layer services required by the bright screen state.
In the embodiment of the present invention, the non-UI operation may include: firstly, monitoring services related to a system (electric quantity, data of each module such as a telephone card and music); enabling services of the lock screen, such as initialization of a log system, a statistical background and wallpaper services, completing wallpaper loading, screen locking notification, animation and the like; and thirdly, reading the system setting state in advance, such as reading and monitoring a large number of databases of a password pattern, a fingerprint switch, a theme switch, a screen locking switch and the like.
In step S205, during the parallel processing, when it is determined that the current system state of the terminal changes, the screen-lock related state and the current system state of the terminal are synchronized.
That is to say, after the terminal starts the screen locking process, in order to prevent the state from being asynchronous due to the change of the terminal system state, a monitoring strategy can be started for the screen locking related state, and when the terminal system state changes, the monitoring strategy is matched with the screen locking related state in a corresponding checking manner in time so as to keep the state synchronous.
It can be understood that the existing screen locking process is triggered after the screen locking process (the three aforementioned operations) is completed, that is, the screen locking process is started only after the screen locking process is completed, so in this embodiment, the screen locking process is advanced to the screen locking process for parallel processing, and in the parallel process, only some states related to the screen locking process may be checked, which may be related to the UI or unrelated to the UI, and may include one or a combination of two or more of the following: time zone, SIM status, phone status, information status, device management status, user status, power on status, media service status, and other device status such as fingerprint, battery, screen, various sensors, etc.
It is understood that if the system status changes very frequently, the operation related to the interface operation (UI operation) may be postponed until the system status is stable. For example, a time interval is set, and if the terminal system state changes or the number of times of state matching synchronization reaches a certain threshold in the time interval, the system state may be considered to be unstable, and so on.
Further, during the parallel processing, if it is detected that the screen saving process is completed, a terminal screen locking interface is generated according to the parallel processing result, and if the steps S206a and S207 can be respectively executed, or the steps S206b and S207 are executed:
in step S206a, if it is detected that the screen saver process is completed and the screen lock priority operation process is completed, the operation process related to the interface operation in the screen lock process is entered and processed.
In step S206b, if it is detected that the screen rejection process is completed and the screen locking priority operation process is not completed, the screen locking priority operation process is continuously executed, and when it is determined that the screen locking priority operation process is completed, the operation process related to the interface operation in the screen locking process is entered and processed.
In step S207, after determining that the operation flow related to the interface operation is completed, drawing a screen locking interface to generate a terminal screen locking interface.
It is understood that the operation (UI operation) related to the interface operation may be deferred to be processed before the flow related to the screen saver is not executed, and the operation flow related to the interface operation is entered after the flow related to the screen saver is completed.
Further, after the screen turning process is determined to be completed, if the previous non-UI operation is completed, skipping is performed, and the operation process related to the interface operation is directly entered and processed; otherwise, the uncompleted non-UI operation can be continuously completed in the UI thread, and finally the screen locking interface is drawn.
The UI operations may include interface initialization, animation initiation, re-checking system status, ensuring that the loaded interface is not corrupted, waiting for the next frame synchronization (vSync) signal to refresh the interface, and so on.
That is to say, in the embodiment of the present invention, when a screen-locking instruction is received, the screen-locking starts to synchronously process its own flow (such as system state acquisition, wallpaper preparation, screen-locking state processing, and the like), the screen-locking does not start to be processed only after all related flows of screen-locking are executed, but performs parallel processing with the screen-locking process of the system in advance, so as to ensure that the screen-locking flow basically finishes preparation when the system finishes screen-locking action, and finally the system draws a screen-locking interface, thereby meeting the requirement of a user for quickly screen-locking and screen-locking.
As can be seen from the above, in the terminal unlocking method provided in this embodiment, when a terminal screen-off instruction is received, a trigger signal for starting a screen-locking flow is generated, so that according to the trigger signal, a screen-off starting flow and a screen-locking priority operation flow are started to perform parallel processing, where the screen-locking priority operation flow is an operation flow related to non-interface operation in the screen-locking flow, and if it is detected that the screen-off starting flow is completed, a terminal screen-locking interface is generated according to a parallel processing result; that is to say, just begin to trigger from receiving the terminal screen command and rest screen flow and the priority operation flow of lock screen and carry out parallel processing, can solve the problem that the user can not see the lock screen fast to rest screen bright screen, great reduction the lock screen consuming time, improve lock screen response speed, if in time show lock screen wall paper, in time switch the wall paper, in time launch the fingerprint, in time launch service or hardware etc. that need under some black screen states, not only make the response of lock screen speed more in time, the product experience of lock screen has still been promoted.
In order to better implement the terminal unlocking method provided by the embodiment of the invention, the embodiment of the invention also provides a device and computer equipment based on the terminal unlocking method. The meaning of the noun is the same as that in the above method for unlocking the terminal, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a terminal unlocking device according to an embodiment of the present invention, where the terminal unlocking device 300 includes a signal generating module 301, an obtaining module 302, a parallel processing module 303, and an interface generating module 304.
The signal generating module 301 is configured to generate a trigger signal for starting a screen locking process when a screen saving instruction of the terminal is received.
In the embodiment of the invention, for example, the operations of locking the screen by an energy power key (also called an on-off key), locking the screen by one key, automatically turning off the screen of the screen and the like can be considered to be sending a screen turning-off instruction to the terminal, and the terminal triggers and starts the screen locking process when receiving the screen turning-off instruction.
An obtaining module 302, configured to obtain a preset screen locking priority operation flow according to the trigger signal, where the screen locking priority operation flow is an operation flow related to a non-interface operation in the screen locking flow. The parallel processing module 303 is configured to perform parallel processing on the information screen flow and the screen locking priority operation flow to obtain a parallel processing result.
That is to say, in the embodiment of the present invention, while the screenshot process is performed, the screen locking related operations may be processed in parallel, and the screen locking related operations may be preset with a priority, for example, operations related to non-interface operations (user interface UI operations may be abbreviated as "UI operations") may be completed first, and then operations related to interface operations may be processed.
And an interface generating module 304, configured to generate a terminal screen locking interface according to the parallel processing result if it is detected that the screen rejection process is completed.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal unlocking device 400 according to an embodiment of the present invention, where a signal generating module 301 in the terminal unlocking device 400 may include:
the obtaining sub-module 3011 is configured to obtain a screen locking related state when a terminal screen turning instruction is received.
And the signal generation submodule 3012 is configured to generate a trigger signal for starting a screen locking process after it is determined that the screen locking related state is correspondingly synchronized with the current system state of the terminal.
It can be understood that before the screen locking process is started, whether a local preset screen locking related state of the terminal is matched with the current system state of the terminal needs to be checked, if not, state synchronization needs to be performed, and after the screen locking related state is determined to be correspondingly synchronized with the current system state of the terminal, a trigger signal for starting the screen locking process is generated so as to perform the screen locking process.
As shown in fig. 4, the terminal unlocking apparatus 400 may further include:
and the synchronization module 305 is configured to synchronize the screen lock related state with the current system state of the terminal when it is determined that the current system state of the terminal changes.
That is to say, after the terminal starts the screen locking process, in order to prevent the state from being asynchronous due to the change of the terminal system state, a monitoring strategy can be started for the screen locking related state, and when the terminal system state changes, the monitoring strategy is matched with the screen locking related state in a corresponding checking manner in time so as to keep the state synchronous.
As shown in fig. 4, the interface generation module 304 in the terminal unlocking apparatus 400 may include:
the first processing sub-module 3041, configured to enter an operation flow related to an interface operation in the screen locking flow and perform processing if the parallel processing result indicates that the screen locking priority operation flow is completed.
The interface generating sub-module 3042 is configured to, after it is determined that the operation flow related to the interface operation is completed, draw the screen locking interface to generate a terminal screen locking interface.
Further, the interface generating module 304 may further include:
the second processing sub-module 3043 is configured to, if the parallel processing result indicates that the screen locking priority operation flow is not completed, continue to execute the screen locking priority operation flow, and when it is determined that the screen locking priority operation flow is completed, enter an operation flow related to an interface operation in the screen locking flow and perform processing.
It can be understood that before the flow related to screen saving is not executed, the operation related to interface operation (UI) may be delayed for processing, and when it is determined that the screen saving flow processing is completed, the flow of UI operation is immediately entered; in addition, if the previous non-UI operation is finished, skipping, otherwise, continuously finishing the non-UI operation in the UI thread, and finally drawing a screen locking interface by the system after the UI operation flow is finished.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The terminal unlocking device can be integrated in mobile terminals such as mobile phones, tablet computers and palm computers PDA.
As can be seen from the above, in the terminal unlocking device provided in this embodiment, when a terminal screen-off instruction is received, a trigger signal for starting a screen-locking flow is generated, so that according to the trigger signal, a screen-off starting flow and a screen-locking priority operation flow are started to perform parallel processing, where the screen-locking priority operation flow is an operation flow related to non-interface operation in the screen-locking flow, and if it is detected that the screen-off starting flow is completed, a terminal screen-locking interface is generated according to a parallel processing result; that is to say, the screen-off process and the screen-locking prior operation process are triggered to be processed in parallel from the screen-off instruction of the terminal, so that the screen-locking time is greatly reduced, and the screen-locking response speed is improved.
The present invention further provides a computer device, wherein the computer device may include a terminal such as a mobile phone, a tablet computer, a PDA, and the like, please refer to fig. 5, and fig. 5 is a schematic view of a terminal structure provided in an embodiment of the present invention. The terminal 500 may include components such as memory 501 including one or more computer-readable storage media, sensors 502, an input unit 503, a display unit 504, a power supply 505, and a processor 506 including one or more processing cores. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 501 may be used to store applications and data. The memory 501 stores applications containing executable code. The application programs may constitute various functional modules. The processor 506 executes various functional applications and data processing by running the application program stored in the memory 501. Further, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 501 may also include a memory controller to provide the processor 506 and the input unit 503 access to the memory 501.
The terminal may also include at least one sensor 502, such as a light sensor, a gravitational acceleration sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
The input unit 503 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 506, and can receive and execute commands sent by the processor 506. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a fingerprint recognition module, a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 504 may include a display panel. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 506 to determine the type of touch event, and then the processor 506 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal also includes a power source 505 (such as a battery) for powering the various components. Preferably, the power source may be logically connected to the processor 506 through a power management system, so that functions of managing charging, discharging, and power consumption management are implemented through the power management system. The power supply 505 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The processor 506 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing an application stored in the memory 501 and calling data stored in the memory 501, thereby performing overall monitoring of the terminal. Optionally, processor 506 may include one or more processing cores; preferably, the processor 506 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Although not shown in fig. 5, the terminal may further include a camera, a bluetooth module, a network module, and the like, which are not described herein again.
Specifically, in this embodiment, the processor 506 in the terminal loads the executable code corresponding to the process of one or more application programs into the memory 501 according to the following instructions, and the processor 506 runs the application programs stored in the memory 501, thereby implementing various functions:
when a terminal screen-off instruction is received, generating a trigger signal for starting a screen locking process; acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow; performing parallel processing on the screen rejection flow and the screen locking priority operation flow to obtain a parallel processing result; and if the screen rejection process is detected to be completed, generating a terminal screen locking interface according to the parallel processing result.
In some embodiments, the processor 506 is configured to generate a trigger signal for starting a screen locking process when receiving a terminal screen off instruction, and includes: when a terminal screen-off instruction is received, acquiring a screen-locking related state; and generating a trigger signal for starting a screen locking process after determining that the screen locking related state is correspondingly synchronized with the current system state of the terminal.
In some embodiments, the process of processing the screen saver flow and the screen lock priority flow in parallel by the processor 506 is further configured to: and when the current system state of the terminal is determined to be changed, synchronizing the screen locking related state and the current system state of the terminal.
In an embodiment, when the processor 506 is configured to generate a terminal lock screen interface according to the parallel processing result, the method may include: if the parallel processing result indicates that the screen locking priority operation flow is finished, entering an operation flow related to interface operation in the screen locking flow and processing; and after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
In another embodiment, when the processor 506 is configured to generate a terminal lock screen interface according to the parallel processing result, the method may include: if the parallel processing result indicates that the screen locking priority operation flow is not completed, continuing to execute the screen locking priority operation flow, and entering an operation flow related to interface operation in the screen locking flow and processing when determining that the screen locking priority operation flow is completed; and after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and a part which is not described in detail in a certain embodiment may refer to the above detailed description of the terminal unlocking method, and is not described herein again.
The terminal unlocking device provided by the embodiment of the present invention is, for example, a computer, a tablet computer, a mobile phone with a touch function, and the like, and belongs to the same concept as the terminal unlocking method in the above embodiments, and any method provided in the terminal unlocking method embodiment may be operated on the terminal unlocking device, and a specific implementation process thereof is described in the terminal unlocking method embodiment in detail, and is not described herein again.
It should be noted that, for the terminal unlocking method of the present invention, it can be understood by a person skilled in the art that all or part of the process of implementing the terminal unlocking method of the present invention can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of the terminal, and executed by at least one processor in the terminal, and the process of executing the process may include the process of the embodiment of the terminal unlocking method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the terminal unlocking device according to the embodiment of the present invention, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The terminal unlocking method, the terminal unlocking device and the computer equipment provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A terminal unlocking method is characterized by comprising the following steps:
when a terminal screen-off instruction is received, acquiring a screen-locking related state, wherein the screen-locking related state comprises one or a combination of more than two of a time zone, an SIM (subscriber identity module) state, a telephone state, an information state, an equipment management state, a user state, a starting state, a media service state, a fingerprint state, a battery state, a screen state and various sensor states;
after determining that the screen locking related state is correspondingly synchronized with the current system state of the terminal, generating a trigger signal for starting a screen locking process, wherein the system state comprises one or a combination of more than two of a time zone, an SIM (subscriber identity module) state, a telephone state, an information state, an equipment management state, a user state, a starting state, a media service state, a fingerprint state, a battery state, a screen state and various sensor states;
acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow;
performing parallel processing on the screen rejection flow and the screen locking priority operation flow to obtain a parallel processing result;
and if the screen rejection process is detected to be completed, generating a terminal screen locking interface according to the parallel processing result.
2. The terminal unlocking method according to claim 1, wherein the screen rejection process and the screen locking priority operation process are processed in parallel, and further comprising:
and when the current system state of the terminal is determined to be changed, synchronizing the screen locking related state and the current system state of the terminal.
3. The terminal unlocking method according to claim 1, wherein the generating a terminal screen locking interface according to the parallel processing result comprises:
if the parallel processing result indicates that the screen locking priority operation flow is finished, entering an operation flow related to interface operation in the screen locking flow and processing;
and after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
4. The terminal unlocking method according to claim 1, wherein the generating a terminal screen locking interface according to the parallel processing result comprises:
if the parallel processing result indicates that the screen locking priority operation flow is not completed, continuing to execute the screen locking priority operation flow, and entering an operation flow related to interface operation in the screen locking flow and processing when determining that the screen locking priority operation flow is completed;
and after the operation flow related to the interface operation is determined to be completed, drawing a screen locking interface to generate a terminal screen locking interface.
5. A terminal unlocking apparatus, comprising:
the signal generation module is used for acquiring a screen locking related state when a terminal screen-off instruction is received; after determining that the screen locking related state is correspondingly synchronized with the current system state of the terminal, generating a trigger signal for starting a screen locking process, wherein the screen locking related state comprises one or a combination of more than two of a time zone, an SIM state, a telephone state, an information state, an equipment management state, a user state, a startup state, a media service state, a fingerprint state, a battery state, a screen state and various sensor states, and the system state comprises one or a combination of more than two of a time zone, an SIM state, a telephone state, an information state, an equipment management state, a user state, a startup state, a media service state, a fingerprint state, a battery state, a screen state and various sensor states;
the acquisition module is used for acquiring a preset screen locking priority operation flow according to the trigger signal, wherein the screen locking priority operation flow is an operation flow related to non-interface operation in the screen locking flow;
the parallel processing module is used for carrying out parallel processing on the information screen flow and the screen locking priority operation flow to obtain a parallel processing result;
and the interface generating module is used for generating a terminal screen locking interface according to the parallel processing result if the screen rejection process is detected to be completed.
6. The terminal unlocking device according to claim 5, further comprising:
and the synchronization module is used for synchronizing the screen locking related state and the current system state of the terminal when the current system state of the terminal is determined to be changed.
7. The terminal unlocking device according to claim 5, wherein the interface generation module includes:
the first processing submodule is used for entering an operation flow related to interface operation in the screen locking flow and processing if the parallel processing result indicates that the screen locking priority operation flow is finished;
and the interface generation submodule is used for drawing the screen locking interface after the operation flow related to the interface operation is determined to be completed so as to generate the terminal screen locking interface.
8. The terminal unlocking device according to claim 7, wherein the interface generation module further includes:
and the second processing submodule is used for continuously executing the screen locking priority operation flow if the parallel processing result indicates that the screen locking priority operation flow is not completed, and entering the operation flow related to the interface operation in the screen locking flow and processing when the screen locking priority operation flow is determined to be completed.
9. A computer device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method of any one of claims 1 to 4.
10. A storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 4.
CN201710113231.7A 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment Expired - Fee Related CN106933576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113231.7A CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113231.7A CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN106933576A CN106933576A (en) 2017-07-07
CN106933576B true CN106933576B (en) 2021-01-08

Family

ID=59423557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113231.7A Expired - Fee Related CN106933576B (en) 2017-02-28 2017-02-28 Terminal unlocking method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN106933576B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032448B (en) * 2019-04-15 2021-08-17 Oppo广东移动通信有限公司 Terminal unlocking control method and device and computer readable storage medium
CN111079114B (en) * 2019-12-13 2023-07-28 Oppo(重庆)智能科技有限公司 Unlocking method, unlocking device, terminal and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331228A (en) * 2014-10-17 2015-02-04 小米科技有限责任公司 Screen locking method and device
CN105808115A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Control method and system of terminal, and terminal
CN106250145A (en) * 2016-07-29 2016-12-21 北京金山安全软件有限公司 Screen locking method and device and terminal equipment
CN106383637A (en) * 2016-11-02 2017-02-08 青岛海信移动通信技术股份有限公司 Screen locking method and device, and terminal equipment

Also Published As

Publication number Publication date
CN106933576A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN107885534B (en) Screen locking method, terminal and computer readable medium
US8732624B2 (en) Protection for unintentional inputs
EP2479642B1 (en) System and method for reducing power consumption in an electronic device having a touch-sensitive display
US10509530B2 (en) Method and apparatus for processing touch input
US20140078091A1 (en) Terminal Device and Method for Quickly Starting Program
CN111142711B (en) Firmware configuration method and device, storage medium and mobile terminal
CN106919824B (en) Fingerprint unlocking control method and device and computer equipment
CN107018022B (en) Software upgrading processing method and device and terminal
CN110083413A (en) A kind of small routine call method and terminal device
CN107395871B (en) Method and device for opening application, storage medium and terminal
US20140244272A1 (en) Control method and electronic device
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
US10558840B2 (en) Fingerprint recognition method and electronic device
TWI675329B (en) Information image display method and device
CN112988256B (en) Application starting method and device, storage medium and electronic equipment
US20190310723A1 (en) Electronic device and method for controlling same
CN111026464A (en) Identification method and electronic equipment
CN105511746A (en) System and method for optimizing navigation bar
CN107025173B (en) Method and device for testing function execution time
CN106933576B (en) Terminal unlocking method and device and computer equipment
CN111813305A (en) Application program starting method and device
CN106886351B (en) Display method and device of terminal time information and computer equipment
CN104182161A (en) Method and device for opening screen functional area
KR20110041110A (en) Apparatus and method for managementing tuch function in portable terminal
CN106791170B (en) Network processing method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210108

CF01 Termination of patent right due to non-payment of annual fee