Terminal face unlocking startup control method, device, mobile terminal and medium

By obtaining the remote proxy of the SystemUI process in the system framework process of the terminal device and calling preset methods or adding empty methods, the unlocking problem caused by the face unlocking function due to broadcast message delay and instability is solved, and faster and more reliable is achieved face unlocking process.

CN110187984BActive Publication Date: 2024-12-17NUBIA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910448982.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-27
Publication Date
2024-12-17
Estimated Expiration
2039-05-27

AI Technical Summary

Technical Problem

The existing face unlocking function of terminal devices has a long time to complete the unlocking process due to delayed and unstable broadcast message propagation.

Method used

By obtaining the remote proxy of the SystemUI process in the terminal system framework process, and calling preset methods or adding empty methods in the AIDL file to indirectly start the face unlocking function, avoiding the delay and instability of broadcast messages.

Benefits of technology

It realizes the fast and stable face unlocking, avoids unlocking failures caused by broadcast message delay or instability, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110187984B_ABST
    Figure CN110187984B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for starting and controlling face unlocking of a terminal, and the method comprises: when a start instruction of a face unlocking function is detected by the terminal, the system framework process of the terminal is controlled to obtain a remote agent in the SystemUI process of the terminal; the remote agent is controlled to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process. In addition, the present invention also provides a device for starting and controlling face unlocking of a terminal, a mobile terminal and a storage medium. The present invention solves the technical problem that the existing method of starting the face unlocking function based on monitoring broadcast messages easily leads to a long overall time consumption for terminal unlocking, or even the inability to complete face unlocking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal technology, and in particular to a method and device for starting and controlling terminal face unlocking, a mobile terminal, and a storage medium. Background Art

[0002] With the continuous development and popularization of smart terminal device technology, smart terminal devices, such as smart phones, have become indispensable electronic products in people's daily lives. In order to ensure the security of user information and improve the convenience of user use, most existing smart terminal devices are unlocked based on face recognition.

[0003] However, the face unlocking function of existing terminal devices is usually achieved through the SystemUI (terminal interface system application) process of the terminal, which listens to the broadcast message of starting face unlocking sent by the terminal system framework process, and starts the face unlocking function under the SystemUI process after listening to the broadcast message. In this way, due to the high delay in the propagation of the broadcast message and the instability of the broadcast message itself, there is often a problem of not being able to be listened to or causing ANR (Application Not Responding) problems, resulting in a long overall time consumption for terminal-based face unlocking, or even failure to complete face unlocking. Summary of the invention

[0004] The main purpose of the present invention is to provide a method, device, mobile terminal and storage medium for starting terminal face unlocking, aiming to solve the technical problem that the existing method of starting the face unlocking function based on monitoring broadcast messages easily leads to a long overall time for terminal unlocking or even failure to complete face unlocking.

[0005] When a start instruction of the face unlock function is detected by the terminal, the system framework process of the terminal is controlled to obtain the remote agent in the SystemUI process of the terminal;

[0006] Control the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0007] Optionally, the preset method is an empty method pre-added to the original AIDL file in the terminal system framework process.

[0008] After the step of the system framework process of the control terminal acquiring the remote agent in the SystemUI process of the terminal, the method further includes:

[0009] Detect whether the empty method is pre-added in the AIDL file in the system framework process, wherein the empty method is used to indirectly start the face unlocking function in the SystemUI process.

[0010] Optionally, the terminal face unlocking startup control method further includes:

[0011] If it is detected that the empty method exists in the AIDL file, the step of controlling the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process is executed;

[0012] If it is detected that the empty method does not exist in the AIDL file, the empty method is added to the original AIDL file in the terminal system framework process.

[0013] Optionally, in the SystemUI process, the service process category in the SystemUI to which the face unlocking function belongs and the original AIDL file in the terminal system framework process are both AIDL related classes in the terminal system source code used for communication between the system framework and SystemUI.

[0014] Optionally, the step of the terminal triggering a start instruction of a face unlocking function includes:

[0015] When it is detected that a touch event of a power button is generated by the terminal in a locked screen state, a start instruction of a face unlocking function of the terminal is triggered, wherein the power button includes a physical button and a virtual button.

[0016] Optionally, the step of triggering a start instruction of a face unlocking function by the terminal further includes:

[0017] When it is detected that the terminal is in the locked screen state and the acquired gesture change information matches the preset gesture change information, a start instruction of the terminal face unlocking function is triggered.

[0018] Optionally, the step of triggering a start instruction of a face unlocking function by the terminal further includes:

[0019] The magnitude of the posture change of the terminal in the locked screen state is obtained, and when it is detected that the magnitude of the posture change belongs to a preset magnitude range, a start instruction of the terminal face unlocking function is triggered.

[0020] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal face unlocking startup control device, the terminal face unlocking startup control device comprising:

[0021] The first control module is used to control the system framework process of the terminal to obtain the remote agent in the SystemUI process of the terminal when detecting a start instruction of the face unlocking function triggered by the terminal;

[0022] The second control module is used to control the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0023] In addition, to achieve the above object, the present invention also provides a mobile terminal;

[0024] The mobile terminal comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein:

[0025] When the computer program is executed by the processor, the steps of the startup control method of terminal face unlocking as described above are implemented.

[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium;

[0027] The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the startup control method for terminal face unlocking as described above are implemented.

[0028] The embodiments of the present invention propose a method, device, mobile terminal and storage medium for starting and controlling face unlocking of a terminal. When a start-up instruction of a face unlocking function is detected by the terminal, the system framework process of the terminal is controlled to obtain a remote agent in the SystemUI process of the terminal; the remote agent is controlled to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0029] The present invention controls the current system framework process to obtain the remote agent of the face unlocking function in the SystemUI process of the terminal when the terminal system framework process detects that the terminal is in a locked screen state and a start instruction of the face unlocking function is triggered due to a control operation input by the user. The terminal system framework process performs self-detection on the original AIDL file to determine whether there is an empty method pre-added in the AIDL file of the current system framework process for indirectly starting the face unlocking function in the SystemUI process of the terminal. After the terminal system framework process detects that the original AIDL (Android Interface Definition Language) file of the current system framework process has an empty method pre-added, the remote agent of the face unlocking function in the SystemUI process obtained by the terminal system framework process is controlled to call the current empty method to indirectly start the face unlocking function under the SystemUI process of the terminal.

[0030] The present invention realizes that, based on the characteristics of the original AIDL file in the Android terminal system framework, an empty method for indirectly calling and starting the face unlocking function in the terminal SystemUI process is added to the AIDL file, and the empty method is called in the terminal system framework process based on the remote agent of the face unlocking function under the terminal SystemUI process obtained, thereby realizing the cross-terminal system framework process to the terminal SystemUI process, indirectly calling the empty method for starting the face unlocking function in the terminal SystemUI process, and then indirectly starting the face unlocking function, avoiding the long delay between sending a broadcast message to receiving the broadcast message and then starting the face unlocking function, and the problem of being unable to complete face unlocking due to unstable broadcast messages, so that users can unlock the terminal device based on face recognition more quickly and stably. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of the hardware structure of an optional mobile terminal according to an embodiment of the present invention;

[0032] Figure 2 for Figure 1 Schematic diagram of a wireless communication device of a mobile terminal;

[0033] Figure 3 A schematic diagram of a flow chart of a first embodiment of a method for starting control of face unlocking of a terminal according to the present invention;

[0034] Figure 4 A schematic diagram of functional modules of an embodiment of a device for starting face unlocking of a terminal according to the present invention;

[0035] Figure 5This is a schematic diagram of an application scenario of an embodiment of a method for starting control of terminal face unlocking of the present invention.

[0036] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0037] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0038] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0039] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include wearable terminal devices such as smart watches, smart bracelets, smart glasses, and various flexible screens, and may even be mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs and desktop computers.

[0040] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.

[0041] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0042] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0043] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0044] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0045] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0046] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0047] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify 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, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0048] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0049] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0050] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0051] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0052] The memory 109 can be used to store software programs and various data. The memory 109 can be a computer storage medium, and the memory 109 stores the startup control program of the terminal face unlocking of the present invention. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0053] The processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal. By running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, the processor 110 performs various functions of the mobile terminal and processes data, thereby monitoring the mobile terminal as a whole. For example, the processor 110 executes the terminal face unlocking startup control program in the memory 109 to implement the steps of each embodiment of the terminal face unlocking startup control method of the present invention.

[0054] The processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 110.

[0055] The mobile terminal 100 may further include a power supply 111 (such as a battery) for supplying power to various components. Optionally, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.

[0056] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0057] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0058] See also Figure 2 , Figure 2A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are sequentially connected for communication.

[0059] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0060] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .

[0061] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0062] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0063] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.

[0064] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0065] The present invention provides a method for starting and controlling face unlocking of a terminal, and the method for starting and controlling face unlocking of a terminal comprises:

[0066] When a startup instruction of the face unlocking function is detected when the terminal triggers it, the system framework process of the terminal is controlled to obtain the remote agent in the SystemUI process of the terminal; the remote agent is controlled to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0067] For details, please refer to Figure 3 , Figure 3 The flowchart of the first embodiment of the startup control method of terminal face unlocking of the present invention is as follows. In the first embodiment of the startup control method of terminal face unlocking of the present invention, the startup control method of terminal face unlocking includes:

[0068] Step S10, when a start instruction of the terminal triggering the face unlocking function is detected, the system framework process of the terminal is controlled to obtain the remote agent in the SystemUI process of the terminal.

[0069] When the terminal system framework process detects that the terminal is in the locked screen state and triggers the start instruction of the face unlock function due to the control operation input by the user, it immediately controls the current system framework process and obtains the remote agent of the face unlock function in the SystemUI process of the terminal.

[0070] Specifically, for example, when the screen of a smart terminal device is off and in a locked state, the user obtains a power button pressing operation based on the terminal device. When the terminal system monitors the power button pressing operation input by the user at the current moment, it immediately triggers the start-up instruction of the face unlocking function of the terminal device. After the system framework process of the terminal detects the start-up instruction, it immediately obtains the remote agent of the KeyguardService (face unlocking service process) in the SystemUI process of the terminal device through the Binder (loose-leaf cover) method.

[0071] Furthermore, in step S10, after the system framework process of the control terminal obtains the remote agent in the SystemUI process of the terminal, the startup control method of the terminal face unlocking function of the present invention further includes:

[0072] Step S30, detecting whether the empty method is pre-added in the AIDL file in the system framework process.

[0073] It should be noted that the preset method is an empty method added to the original AIDL file in the terminal system framework process in advance. The empty method is used to indirectly start the face unlocking function in the SystemUI process.

[0074] The terminal's system framework process performs self-detection on the original AIDL file to determine whether there is an empty method in the AIDL file in the current system framework process that is pre-added with the user to indirectly start the face unlocking function in the terminal's SystemUI process.

[0075] Specifically, for example, after the system framework process of the terminal device obtains the remote agent of KeyguardService in the SystemUI process of the terminal device, it immediately starts to detect whether there is a pre-added empty method - sendMessage method - in the original AIDL file of the current system framework process for indirectly starting the face unlocking function in the SystemUI process of the terminal device.

[0076] Step S20, controlling the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0077] After the terminal system framework process detects that there is a pre-added empty method in the original AIDL file of the current system framework process, the remote agent of the face unlocking function in the SystemUI process obtained by the control terminal system framework process calls the current empty method to indirectly start the face unlocking function under the terminal SystemUI process.

[0078] Specifically, for example, when the system framework process of the terminal device detects that there is a pre-added empty method, the sendMessage method, in the original AIDL file of the current system framework process for indirectly starting the face unlocking function in the SystemUI process of the terminal device, the remote agent of KeyguardService in the SystemUI process of the terminal device obtained by the system framework process of the terminal device based on the Binder method calls the sendMessage method, thereby indirectly calling the sendMessage method of KeyguardService in the SystemUI process of the terminal device, that is, calling to start the face unlocking function under the SystemUI process.

[0079] It should be noted that in the SystemUI process, the service process category in SystemUI to which the face unlocking function belongs, and the original AIDL file in the terminal system framework process are both AIDL-related classes in the terminal system source code used for communication between the system framework and SystemUI.

[0080] Furthermore, the startup control method of terminal face unlocking of the present invention also includes:

[0081] Step A: If it is detected that the empty method exists in the AIDL file, the step of controlling the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process is executed.

[0082] When the terminal's system framework process detects that there is a pre-added empty method in the AIDL file in the system framework process for indirectly starting the face unlocking function under the terminal's SystemUI process, it controls the terminal's system framework process to execute the above-mentioned steps of calling the empty method according to the acquired remote agent to indirectly call and start the face unlocking function under the terminal's SystemUI process.

[0083] Step B: If it is detected that the empty method does not exist in the AIDL file, then the empty method is added to the original AIDL file in the terminal system framework process.

[0084] When the terminal's system framework process detects that there is no pre-added empty method for indirectly starting the face unlocking function under the terminal's SystemUI process in the AIDL file in the system framework process, the empty method for indirectly starting the face unlocking function under the terminal's SystemUI process is added to the original AIDL file of the terminal's system framework process.

[0085] Specifically, for example, when the system framework process of the terminal device detects that the pre-added empty method—sendMessage method for indirectly starting the face unlocking function in the SystemUI process of the terminal device does not exist in the original AIDL file of the current system framework process, then according to the grammatical rules of AIDL, an empty method—sendMessage method is added to the original AIDL file—IKeyguardService.aidl in the current system framework process.

[0086] In this embodiment, when the terminal system framework process detects that the terminal is in a locked screen state and a start instruction of the face unlocking function is triggered due to a control operation input by the user, the current system framework process is immediately controlled to obtain the remote agent of the face unlocking function in the SystemUI process of the terminal; the system framework process of the terminal performs self-detection on the original AIDL file to determine whether there is an empty method pre-added in the AIDL file of the current system framework process for the user to indirectly start the face unlocking function in the SystemUI process of the terminal; after the terminal system framework process detects that the original AIDL file of the current system framework process contains a pre-added empty method, the remote agent of the face unlocking function in the SystemUI process obtained by the terminal system framework process is controlled to call the current empty method to indirectly start the face unlocking function under the SystemUI process of the terminal.

[0087] The invention realizes that, based on the characteristics of the original AIDL (Android Interface Definition Language) file in the Android terminal system framework, an empty method for indirectly calling the face unlocking function in the terminal SystemUI process is added to the AIDL file, and the empty method is called in the terminal system framework process based on the remote agent of the face unlocking function under the terminal SystemUI process obtained, thereby realizing the cross-terminal system framework process to the terminal SystemUI process, indirectly calling the empty method for starting the face unlocking function in the terminal SystemUI process, and then indirectly starting the face unlocking function, so that users can unlock the terminal device based on face recognition more quickly and stably, avoiding the existing broadcast message for starting face unlocking sent through the system framework, and the SystemUI process starts to start the face unlocking function only after the SystemUI receives the broadcast message, resulting in a long delay in starting the terminal face unlocking function, and the problem of complete unresponsiveness of face unlocking due to the SystemUI not receiving the broadcast message or the broadcast message.

[0088] Further, based on the first embodiment of the method for starting face unlocking of a terminal of the present invention, a second embodiment of the method for starting face unlocking of a terminal of the present invention is proposed. In this embodiment, in the above step S10, the step of triggering the start instruction of the face unlocking function of the terminal includes:

[0089] Step S101, when it is detected that a touch event of a power button is generated by the terminal in a locked screen state, a start instruction of a face unlocking function of the terminal is triggered.

[0090] It should be noted that the power button includes a physical button and a virtual button.

[0091] When it is detected that the user terminal is in a locked state and a touch-press operation is input based on the terminal power button, a corresponding touch-press event of the terminal power button is generated. When the terminal system detects the generated touch-press event when the terminal is in a locked state and the screen is off, the start instruction of the terminal face unlocking function is triggered.

[0092] Specifically, for example, when the user inputs a press operation based on the physical power button set on the terminal device, or inputs a touch operation based on the virtual power button, the terminal device system will generate a corresponding touch event for the power button of the terminal device. When the terminal system detects that the terminal device screen is currently in the screen-off state and the terminal device is in the lock screen state, it determines that the user currently inputs a touch control operation based on the physical power button or the virtual power button, and needs to light up the terminal device screen and release the current lock screen state of the terminal device. Then, when the terminal device is in the screen-off and lock screen state, when a touch event of the power button generated by the user's touch control operation based on the power button is detected, the face unlocking function of the terminal device is triggered, so that the terminal device can release the unlocking state of the terminal device based on the face unlocking function under the SystemUI process.

[0093] Further, in another embodiment, in step S10, the step of the terminal triggering the start instruction of the face unlocking function further includes:

[0094] Step S102, when it is detected that the terminal is in a locked screen state and the acquired gesture change information matches the preset gesture change information, a start instruction of the terminal face unlocking function is triggered.

[0095] When it is detected that the user's terminal is off and in lock screen state, when a gesture change operation is input based on a preset distance interval above the terminal screen, the gesture change information input by the user is detected and obtained to see whether it matches the preset gesture change information stored in the terminal. When a match is detected, the start command of the terminal face unlocking function is triggered.

[0096] Specifically, for example, when the screen of the terminal device is off and the terminal device is in the locked screen state, the user inputs a change gesture operation within the range of 8cm to 15cm directly above the terminal device screen, and the terminal device detects the change gesture input by the user and obtains gesture change information based on the gesture recognition area set on the terminal screen. When the change information of the gesture currently input by the user is detected and matches the standard gesture change information pre-added and stored on the terminal device for determining that the user currently needs to turn on the screen and unlock the terminal device, the face unlocking function of the terminal device is triggered, so that the terminal device can unlock the terminal device based on the face unlocking function under the SystemUI process.

[0097] Further, in another embodiment, in step S10, the step of the terminal triggering the start instruction of the face unlocking function further includes:

[0098] Step S103, obtaining the magnitude of the posture change of the terminal in the locked screen state, and when it is detected that the magnitude of the posture change belongs to a preset magnitude range, triggering a start instruction of the terminal face unlocking function.

[0099] Obtain and detect the magnitude of the change in the posture of the terminal device when the terminal screen is off and in the locked state, and detect whether the magnitude of the change is within a preset range of magnitudes. If it is detected that the magnitude of the change is within the preset range of magnitudes, trigger the start command of the terminal face unlocking function.

[0100] Specifically, for example, in Figure 5 In the usage scenario shown, when the screen of the terminal device is in the screen-off and screen-locked states, the change amplitude of the terminal device's body posture from the horizontal state is detected. If it is detected that the change amplitude is within the pre-set change amplitude range for determining that the user currently needs to turn on the terminal device screen and release the current lock screen state of the terminal device, it is determined that the user currently needs to turn on the terminal device screen and release the current lock screen state of the terminal device, and the face unlocking function of the terminal device is immediately triggered, so that the terminal device can release the unlocking state of the terminal device based on the face unlocking function under the SystemUI process.

[0101] In this embodiment, when it is detected that the user terminal is off and in a locked state, and a touch-press operation is input based on the terminal power button, a touch-press event of the terminal power button is generated. When the terminal system detects the generated touch-press event when the terminal is off and in a locked state, a start instruction of the terminal face unlocking function is triggered; when it is detected that the user terminal is off and in a locked state, and a change gesture operation is input based on a preset distance interval above the terminal screen, the gesture change information input by the user is detected and obtained to determine whether it matches the preset gesture change information stored in the terminal, and when a match is detected, the start instruction of the terminal face unlocking function is triggered; the magnitude of the change in the posture of the terminal device body when the terminal is off and in a locked state is obtained and detected, and the magnitude of the change belongs to a preset range of the magnitude of the change. If it is detected that the magnitude of the change belongs to the preset range of the magnitude of the change, the start instruction of the terminal face unlocking function is triggered.

[0102] It is achieved that, when the terminal device is in the locked screen state, it is determined that the user needs to light up the terminal screen and release the locked screen state of the terminal by detecting the user's operation based on touching the power button, based on the gesture change information input above the terminal screen, or detecting the change in the terminal body posture from the horizontal state, and then triggering the start instruction of the terminal face unlocking function, so that the terminal system framework can listen to the instruction and start the process cross-process call to start the face unlocking function operation under the SystemUI process, and determine the user's unlocking needs for the current terminal device in various ways to start the corresponding face unlocking function, which reflects the intelligence of the terminal device in response to user usage needs, and further improves the convenience of unlocking the terminal device based on face recognition, thereby improving the user experience.

[0103] In addition, refer to Figure 4 , Figure 4 Schematic diagram of the functional modules of the terminal face unlocking start control device of the present invention. In an embodiment of the present invention, a terminal face unlocking start control device is also proposed. The terminal face unlocking start control device of the present invention includes:

[0104] The first control module is used to control the system framework process of the terminal to obtain the remote agent in the SystemUI process of the terminal when detecting a start instruction of the face unlocking function triggered by the terminal;

[0105] The second control module is used to control the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

[0106] Optionally, after the first control module, it includes:

[0107] A detection module is used to detect whether the empty method is pre-added in the AIDL file in the system framework process, wherein the empty method is used to indirectly start the face unlocking function in the SystemUI process.

[0108] Optionally, the terminal face unlocking start control device of the present invention further includes:

[0109] A first detection execution module, configured to, if it is detected that the empty method exists in the AIDL file, execute the step of controlling the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process;

[0110] The second detection execution module is used to add the empty method to the original AIDL file in the terminal system framework process if it is detected that the empty method does not exist in the AIDL file.

[0111] Optionally, the instruction triggering unit in the first control module triggers the start instruction of the face unlocking function of the terminal, including:

[0112] A button detection trigger unit, when detecting a touch event of a power button generated by the terminal in a locked screen state, triggers a start instruction of the terminal face unlocking function, wherein the power button includes a physical button and a virtual button.

[0113] Optionally, the instruction triggering unit further includes:

[0114] The gesture detection trigger unit triggers a start instruction of the terminal face unlocking function when it detects that the terminal is in the locked screen state and the acquired gesture change information matches the preset gesture change information.

[0115] Optionally, the instruction triggering unit further includes:

[0116] The posture detection trigger unit obtains the posture change amplitude of the terminal in the locked screen state, and when it is detected that the posture change amplitude belongs to a preset change amplitude range, triggers the start instruction of the terminal face unlocking function.

[0117] Among them, the steps implemented by each functional module of the terminal face unlocking startup control device can refer to the various embodiments of the terminal face unlocking startup control method of the present invention, and will not be repeated here.

[0118] The present invention also provides a mobile terminal, comprising: a memory, a processor, a communication bus, and a terminal face unlocking startup control program stored in the memory:

[0119] The communication bus is used to realize the connection and communication between the processor and the memory;

[0120] The processor is used to execute the startup control program of the terminal face unlocking to implement the steps of each embodiment of the startup control method of the terminal face unlocking.

[0121] The present invention also provides a storage medium, which stores one or more programs. The one or more programs can also be executed by one or more processors to implement the steps of each embodiment of the above-mentioned terminal face unlocking startup control method.

[0122] The specific implementation of the computer-readable storage medium of the present invention is basically the same as the embodiments of the startup control method of terminal face unlocking mentioned above, and will not be repeated here.

[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0126] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for starting and controlling face unlocking of a terminal, characterized in that: The terminal face unlocking start control method includes: When a start instruction of the face unlock function is detected by the terminal, the system framework process of the terminal is controlled to obtain the remote agent in the SystemUI process of the terminal; Control the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

2. The terminal face unlocking startup control method according to claim 1, characterized in that: The preset method is to add an empty method to the original AIDL file in the terminal system framework process in advance. After the step of obtaining the remote agent in the SystemUI process of the terminal by the system framework process of the control terminal, the method further includes: Detect whether the empty method is pre-added in the AIDL file in the system framework process, wherein the empty method is used to indirectly start the face unlocking function in the SystemUI process.

3. The method for starting and controlling face unlocking of a terminal according to claim 2, wherein: The terminal face unlocking startup control method further includes: If it is detected that the empty method exists in the AIDL file, the step of controlling the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process is executed; If it is detected that the empty method does not exist in the AIDL file, the empty method is added to the original AIDL file in the terminal system framework process.

4. The method for starting and controlling face unlocking of a terminal according to claim 1, wherein: In the SystemUI process, the service process category in the SystemUI to which the face unlocking function belongs and the original AIDL file in the terminal system framework process are both AIDL-related classes in the terminal system source code used for communication between the system framework and SystemUI.

5. The method for starting and controlling face unlocking of a terminal according to claim 1, wherein: The step of triggering a start instruction of the face unlocking function by the terminal comprises: When it is detected that a touch event of a power button is generated by the terminal in a locked screen state, a start instruction of a face unlocking function of the terminal is triggered, wherein the power button includes a physical button and a virtual button.

6. The terminal face unlocking startup control method according to claim 1, characterized in that: The step of the terminal triggering a start instruction of the face unlocking function also includes: When it is detected that the terminal is in the locked screen state and the acquired gesture change information matches the preset gesture change information, a start instruction of the terminal face unlocking function is triggered.

7. The terminal face unlocking startup control method according to claim 1, characterized in that: The step of the terminal triggering a start instruction of the face unlocking function also includes: The magnitude of the posture change of the terminal in the locked screen state is obtained, and when it is detected that the magnitude of the posture change belongs to a preset magnitude range, a start instruction of the terminal face unlocking function is triggered.

8. A terminal face unlocking start control device, characterized in that: The terminal face unlocking start control device comprises: The first control module is used to control the system framework process of the terminal to obtain the remote agent in the SystemUI process of the terminal when detecting a start instruction of the face unlocking function triggered by the terminal; The second control module is used to control the remote agent to call a preset method in the AIDL file of the system framework process to start the face unlocking function in the SystemUI process.

9. A mobile terminal, characterized in that: The mobile terminal includes: a memory, a processor, and a terminal face unlocking startup control program stored in the memory and executable on the processor. When the terminal face unlocking startup control program is executed by the processor, the steps of the terminal face unlocking startup control method as described in any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: The storage medium stores a startup control program for terminal face unlocking, and when the startup control program for terminal face unlocking is executed by the processor, the steps of the startup control method for terminal face unlocking as described in any one of claims 1 to 7 are implemented.