CN108073266B - Screen locking method and device of mobile terminal - Google Patents

Screen locking method and device of mobile terminal Download PDF

Info

Publication number
CN108073266B
CN108073266B CN201711348989.5A CN201711348989A CN108073266B CN 108073266 B CN108073266 B CN 108073266B CN 201711348989 A CN201711348989 A CN 201711348989A CN 108073266 B CN108073266 B CN 108073266B
Authority
CN
China
Prior art keywords
mobile terminal
touch operation
interface
application program
screen locking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711348989.5A
Other languages
Chinese (zh)
Other versions
CN108073266A (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.)
Qilin Hesheng Network Technology Inc
Original Assignee
Qilin Hesheng Network Technology Inc
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 Qilin Hesheng Network Technology Inc filed Critical Qilin Hesheng Network Technology Inc
Priority to CN201711348989.5A priority Critical patent/CN108073266B/en
Publication of CN108073266A publication Critical patent/CN108073266A/en
Application granted granted Critical
Publication of CN108073266B publication Critical patent/CN108073266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The embodiment of the application provides a screen locking method and device of a mobile terminal, wherein the method comprises the following steps: when detecting that a user performs screen locking operation on a mobile terminal, adding a black interface on the topmost layer of each interface in the mobile terminal, and setting the black interface to cover a display area of the mobile terminal; forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal; when detecting that a user executes touch operation on the mobile terminal and the black interface receives the touch operation, not responding to the touch operation; and if the time length of the black interface covering the display area reaches the set time length, controlling the mobile terminal to enter a screen locking state. Through this application embodiment, can solve among the prior art the big problem of power consumption behind the mobile terminal lock screen.

Description

Screen locking method and device of mobile terminal
Technical Field
The application relates to the field of terminal equipment, in particular to a screen locking method and device of a mobile terminal.
Background
Currently, a user may perform a screen locking operation on a mobile terminal in various ways, such as pressing a power key or using a third-party application to lock a screen.
After the third-party application is installed, firstly, the Device management authority (i.e., Device Policy Manager) of the operating system of the mobile terminal is obtained, and then, after the third-party application runs, the screen locking function is realized according to the touch operation of the user. For example, after the third-party application runs, when it is detected that the user clicks the icon, the third-party application realizes screen locking by using the acquired device management authority.
However, when the screen of the mobile terminal is locked in the conventional screen locking mode, only a part of the applications running in the mobile terminal is stopped or the applications running in the mobile terminal are not stopped, which causes a problem that a plurality of applications still run inside the mobile terminal after the screen of the mobile terminal is locked, and the power consumption of the mobile terminal after the screen is locked is large.
Disclosure of Invention
The embodiment of the application aims to provide a screen locking method and device of a mobile terminal, so as to solve the problem of high power consumption after screen locking of the mobile terminal in the prior art.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screen locking method for a mobile terminal, including:
when detecting that a user performs screen locking operation on a mobile terminal, adding a black interface on the topmost layer of each interface in the mobile terminal, and setting the black interface to cover a display area of the mobile terminal;
forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
the black interface receives touch operation and does not respond to the touch operation;
and if the time length of the black interface covering the display area reaches the set time length, controlling the mobile terminal to enter a screen locking state.
In a second aspect, a further embodiment of the present application provides a screen locking device for a mobile terminal, including:
the interface setting module is used for adding a black interface on the topmost layer of each interface in the mobile terminal and setting the black interface to cover a display area of the mobile terminal when detecting that a user performs screen locking operation on the mobile terminal;
the application stopping module is used for forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
the operation response module is used for not responding to the touch operation when the black interface receives the touch operation;
and the state control module is used for controlling the mobile terminal to enter a screen locking state if the duration of the black interface covering the display area reaches a set duration.
In a third aspect, an embodiment of the present application provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the screen locking method of the mobile terminal as described in the first aspect above.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the steps of the screen locking method of the mobile terminal according to the first aspect.
According to the method and the device in the embodiment of the application, when a user executes screen locking operation, firstly, a black interface is used for covering a display area of a screen of the mobile terminal, secondly, each application program running in the mobile terminal is stopped forcibly, in addition, when the black interface receives the touch operation of the user, the received touch operation is not responded, and finally, when the time length of the black interface covering the display area of the screen reaches the set time length, the mobile terminal is controlled to enter a screen locking state. Therefore, by the method and the device in the embodiment, after the user performs the screen locking operation, each application program running in the mobile terminal can be forcibly stopped, so that the power consumption of the mobile terminal after screen locking is reduced, and the problem of high power consumption of the mobile terminal after screen locking is solved. Moreover, compared with the mode of realizing the screen locking function by the third-party application in the prior art, in the embodiment, when the screen is locked, since the device management authority of the operating system of the mobile terminal cannot be acquired, sensitive data stored on the mobile terminal, such as privacy data of a user, cannot be acquired, so that the privacy of the user is not affected, and the protection of the privacy of the user is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flowchart of a screen locking method of a mobile terminal according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a mobile terminal displaying setting information on a black interface according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a screen locking method of a mobile terminal according to another embodiment of the present application;
fig. 4 is a schematic diagram illustrating a module composition of a screen locking device of a mobile terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem of large power consumption after the mobile terminal is locked, embodiments of the present application provide a screen locking method for a mobile terminal, a screen locking device for a mobile terminal, and a storage medium, where the screen locking method for a mobile terminal can be applied to a mobile terminal side and executed by the mobile terminal. The mobile terminal in the embodiment may be a portable mobile device such as a mobile phone, a computer, and a tablet computer.
Fig. 1 is a schematic flowchart of a screen locking method of a mobile terminal according to an embodiment of the present application, where as shown in fig. 1, the method includes the following steps:
step S102, when detecting that a user performs screen locking operation on the mobile terminal, adding a black interface on the topmost layer of each interface in the mobile terminal, and setting the black interface to cover a display area of the mobile terminal;
step S104, forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
step S106, when the black interface receives the touch operation, the touch operation is not responded;
and S108, if the time length of the black interface covering the display area reaches the set time length, controlling the mobile terminal to enter a screen locking state.
In the embodiment of the application, when a user executes a screen locking operation, firstly, a display area of a screen of the mobile terminal is covered by a black interface, secondly, each application program running in the mobile terminal is forcibly stopped, in addition, when the black interface receives the touch operation of the user, the received touch operation is not responded, and finally, when the duration that the display area of the screen is covered by the black interface reaches the set duration, the mobile terminal is controlled to enter a screen locking state. Therefore, according to the embodiment, after the user performs the screen locking operation, each application program running in the mobile terminal can be forcibly stopped, so that the power consumption of the mobile terminal after screen locking is reduced, and the problem of high power consumption of the mobile terminal after screen locking is solved. Moreover, compared with the mode of realizing the screen locking function by the third-party application in the prior art, in the embodiment, when the screen is locked, since the device management authority of the operating system of the mobile terminal cannot be acquired, sensitive data stored on the mobile terminal, such as privacy data of a user, cannot be acquired, so that the privacy of the user is not affected, and the protection of the privacy of the user is facilitated.
In step S102, the screen locking operation may be an operation of pressing a power key, or may be a screen locking gesture preset by a user, such as a sliding gesture performed on a display area of the screen. In one embodiment, the method of fig. 1 is performed by a third-party application, and the screen locking operation is an operation of clicking an icon of the third-party application by a user.
In step S102, when the mobile terminal detects that the user performs the screen locking operation, a black interface is created, where the size of the black interface is the same as the size of the display area of the screen of the mobile terminal, and the mobile terminal adds the black interface to the top layer of each interface in the mobile terminal and sets the black interface to cover the display area of the screen of the mobile terminal, so that the user can see the mobile terminal to display the black interface after performing the screen locking operation, thereby forming a simulated screen locking state.
In one embodiment, the method in fig. 1 is executed by a third party Application program, and after creating a black Interface with the same size as the display area, the third party Application program adds the created black Interface to the current window management system of the mobile terminal by using an Application Programming Interface (API) of an operating system (e.g., an android system) of the mobile terminal, sets the black Interface to be located at the topmost layer of each Interface, and sets the black Interface to cover the display area of the screen of the mobile terminal, so as to complete step S102. When the third-party application sets the black interface to cover the display area of the mobile terminal, the black interface is set to cover the notification bar and the virtual navigation bar of the mobile terminal so as to comprehensively cover the display area of the mobile terminal.
For the currently more-applied OLED (Organic Light-Emitting Diode) screen, each pixel on the screen emits Light independently, in this embodiment, after the user performs the screen locking operation, the display area of the screen of the mobile terminal is covered by the black interface, so that each pixel of the OLED screen is in a non-Light-Emitting state, that is, the whole screen is in a closed state, thereby saving a large amount of electric power by the mobile terminal.
In the step S104, each application program running in the mobile terminal is forcibly stopped by using the acquired device permission of the mobile terminal, specifically, whether an auxiliary function permission of the mobile terminal is acquired is detected, if so, a list of application programs running in the mobile terminal is acquired by using the auxiliary function permission of the mobile terminal, and each application program in the list is forcibly stopped by using the auxiliary function permission of the mobile terminal, so that an operating system of the mobile terminal recovers resources of each application program.
In one embodiment, the screen locking method of the mobile terminal is executed by a third-party application, when the user starts the third-party application for the first time, the application prompts the user whether the user can obtain the auxiliary function permission of the mobile terminal, if the user allows the acquisition, in the step S104, each running application program is forcibly stopped, the auxiliary function permission is continuously obtained, no relevant prompt is performed, if the user refuses the acquisition, each running application program is abandoned, and when the user starts the third-party application for the next time, the user is continuously prompted whether the auxiliary function permission of the mobile terminal can be obtained.
In this embodiment, by forcibly stopping each application running in the mobile terminal, the electric energy of the mobile terminal can be saved, so that after the mobile terminal is in the simulated screen locking state, the electric quantity is further saved.
In the step S106, when the black interface receives the touch operation, the touch operation is not responded, specifically, if it is detected that the user performs the touch operation on the black interface, the black interface is used to receive the touch operation, and the touch operation is not responded, so that a problem that the user wakes up an application program corresponding to a lower interface of the black interface through the touch operation, so that the mobile terminal cannot enter the screen lock state is avoided.
Considering that the touch operation received by the black interface may be a preset unlocking operation or a preset touch operation for invoking a designated function (such as a flashlight or a camera) of the mobile terminal, in this embodiment, the non-response touch operation is specifically to determine whether the received touch operation is a first preset touch operation, where the first preset touch operation includes a preset touch operation for invoking the designated function of the mobile terminal in the screen-locked state, and the preset unlocking operation, if the received touch operation is not the first preset touch operation, the received touch operation is not responded, and otherwise, the corresponding function is implemented in response to the received touch operation.
For example, whether the operation track of the received touch operation is an "O" shaped track or not and whether the received touch operation is a preset unlocking operation or not are judged, if not, the touch operation is not responded, if the operation track is the "O" shaped track, the received sliding operation is responded, the camera function of the mobile terminal is called, and if the operation track is the preset unlocking operation, the black interface is cancelled, and the mobile terminal is controlled to enter an unlocking state.
In this embodiment, by determining whether the received touch operation is the first preset touch operation, it can be ensured that the call and unlock functions of the designated function of the mobile terminal are not affected and the normal use of the mobile terminal is not affected after the mobile terminal is in the simulated screen locking state.
In the step S108, the mobile terminal determines whether the duration of the black interface covering the display area reaches a set duration, for example, 30 seconds, and if so, controls the mobile terminal to enter a screen locking state.
After the black interface covers the screen locking operation of the mobile terminal, the mobile terminal does not respond to the touch operation except the first preset touch operation, so that if the duration that the black interface covers the display area reaches the set duration, which indicates that the user does not effectively operate the mobile terminal after the set duration, the mobile terminal can be controlled to enter a screen locking state, and the mobile terminal can achieve a real screen locking effect. The set time length may be a time length of automatic screen locking, which is a time length of automatic screen locking when no user operation is received within a certain time length preset by the mobile terminal system.
In a specific embodiment, the mobile terminal locks and unlocks a screen by pressing a power key, a touch operation for unlocking is not set, and a touch operation for calling a designated function is not set in the screen locking state, so that after a user clicks an icon of a third-party application, the mobile terminal covers a display area of the mobile terminal by using a black interface, the user sees the black interface to form a simulated screen locking state, then the mobile terminal forcibly stops running each application program by using the acquired auxiliary function authority, receives the touch operation of the user by using the black interface, and does not respond to the received touch operation, and when the duration of the mobile terminal determining that the display area is covered by the black interface reaches 30 seconds, the mobile terminal is controlled to enter the screen locking state, so that the technical effect of realizing one-key screen locking power saving according to the clicking operation of the user is achieved.
In this embodiment, before each application program running in the mobile terminal is forcibly stopped, the running progress of a part or all of the application programs running in the mobile terminal may be cached, and after it is detected that the mobile terminal is switched from the screen locking state to the unlocking state, the part or all of the application programs are recovered according to the cached running progress.
Specifically, before each application program running in the mobile terminal is forcibly stopped, the running progress of part or all of the application programs running in the mobile terminal is recorded and cached, and after the mobile terminal is detected to be switched from a screen locking state to an unlocking state, the part or all of the application programs are recovered according to the cached running progress, so that a user can use the mobile terminal conveniently.
In the embodiment, by caching the running progress of part or all of the application programs running in the mobile terminal and recovering the part or all of the application programs according to the cached running progress after the mobile terminal is unlocked, the mobile terminal can be conveniently used by a user, and the terminal use experience of the user is improved.
In one embodiment, caching the operation progress of a part of application programs operated in the mobile terminal specifically includes: the method comprises the steps of obtaining the use frequency of each application program operated in the mobile terminal, and caching the operation progress of the application program of which the use frequency is greater than the preset frequency.
Specifically, the installation time of each application program is recorded, the starting frequency of each application program is recorded, the installed time length of each application program is determined according to the current time and the installation time of each application program, the use frequency of each application program is determined according to the installed time length of each application program and the starting frequency of each application program, for example, the installed time length of the application program A is 30 days, the starting frequency is 60 times, and the use frequency of the application program is 60/30 times/day.
In this embodiment, before each application program that is forcibly stopped from running, the use frequency of each application program that is running is obtained, for example, if the application program A, B, C is running, the use frequencies of the application programs A, B, C are obtained as 0.5 times/day, 1 time/day, and 2 times/day, respectively, and the preset frequency is 1.5 times/day, the mobile terminal caches the running progress of the application program C, and after it is detected that the mobile terminal is switched from the lock screen state to the unlock state, the application program C is recovered according to the cached running progress.
In the embodiment, the use frequency of each application program running in the mobile terminal is obtained, and the running progress of the application program with the use frequency larger than the preset frequency is cached, so that the running progress of the application program frequently used by a user is cached, the mobile terminal is convenient for the user to use the mobile terminal after the mobile terminal is unlocked, and the terminal use experience of the user is improved.
Or, in another embodiment, caching the operation progress of a part of the application programs operated in the mobile terminal specifically includes: the method comprises the steps of obtaining the average single-use duration of each application program running in the mobile terminal, and caching the running progress of the application program of which the average single-use duration is greater than the preset duration.
Specifically, the usage time length of each application program used by the user each time since installation is recorded, and the average value of the usage time lengths of the respective times of use is taken as the average single-use time length of the application program. For example, if the application a has been used by the user 3 times since installation, and the usage time periods of each time are 30 minutes, 20 minutes and 40 minutes, respectively, the average single-use time period of the application is 30 minutes.
In this embodiment, before each application program that is forcibly stopped from running, the average single-use duration of each application program that is running is obtained, for example, if the application program A, B, C is running, the obtained average single-use duration of the application program A, B, C is 30 minutes, 40 minutes, and 10 minutes, and the preset duration is 20 minutes, the mobile terminal caches the running progress of the application programs a and B, and after it is detected that the mobile terminal is switched from the lock screen state to the unlock state, the application programs a and B are restored according to the cached running progress.
In the embodiment, the average single-use time of each application program running in the mobile terminal is obtained, and the running progress of the application program with the average single-use time being longer than the preset time is cached, so that the running progress of the application program with higher use preference of a user is cached, the mobile terminal is convenient for the user to use the mobile terminal after the mobile terminal is unlocked, and the terminal use experience of the user is improved.
In this embodiment, after the black interface is set to cover the display area of the mobile terminal, the setting information may be displayed on the black interface, and whether the mobile terminal is in the charging state is detected, and if the mobile terminal is not in the charging state, the resolution for displaying the setting information is set to be smaller than the resolution when the mobile terminal is displayed on a bright screen.
The setting information may be time, date, application push message, and the like. After the setting information is displayed, whether the mobile terminal is in a charging state is detected, if the mobile terminal is in the charging state, the resolution for displaying the setting information is set to be the resolution when the mobile terminal is displayed in a bright screen mode, and if the mobile terminal is not in the charging state, the resolution for displaying the setting information is set to be smaller than the resolution when the mobile terminal is displayed in the bright screen mode.
Fig. 2 is a schematic diagram of a mobile terminal displaying setting information on a black interface according to an embodiment of the present application. In the embodiment, the setting information is displayed, so that a user can conveniently acquire necessary information such as time, date and the like, and the user can acquire the information without unlocking the mobile phone. Compared with the mode that the resolution ratio of information display in any state is set by the mobile terminal in the prior art to be the resolution ratio when the information display is in the bright screen display, the resolution ratio of the set information is set to be smaller than the resolution ratio when the information display is in the bright screen display in the uncharged state of the mobile terminal, the power consumption of the mobile terminal can be reduced by reducing the display resolution ratio, and the power consumption of the terminal is reduced under the condition of facilitating the use of the terminal.
For example, a resolution reduction value is preset, and after the setting information is displayed, if the mobile terminal is determined not to be in the charging state, the resolution of the display setting information is obtained by subtracting the set resolution reduction value from the resolution when the mobile terminal is displayed on a bright screen, and the setting information is displayed by using the resolution, so that the display resolution is reduced, and the power consumption of the terminal is reduced.
Fig. 3 is a schematic flowchart of a screen locking method of a mobile terminal according to another embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
step S302, whether a user clicks an icon of the one-key screen locking application is detected.
If yes, go to step S304, otherwise, go back to step S302.
And step S304, generating a black interface, setting the black interface to be positioned at the topmost layer of each interface, and setting the black interface to cover the display area of the mobile terminal.
And step S306, forcibly stopping each application program running in the mobile terminal by using the auxiliary function authority.
In step S308, when it is detected that the user performs a touch operation other than the first predetermined touch operation, the black interface is used to receive the touch operation and does not respond to the touch operation.
In step S310, when it is detected that the user performs the first preset touch operation, it is determined whether the detected touch operation is a preset unlocking operation or a touch operation for invoking a specific function.
The first preset touch operation comprises a preset touch operation for calling the appointed function of the mobile terminal in the screen locking state and a preset unlocking operation.
If the predetermined unlock operation is performed, step S312 is performed, and if the predetermined unlock operation is performed, step S314 is performed.
And step S312, unlocking the mobile terminal.
In step S314, a designated function corresponding to the detected touch operation is called.
Step S316, determining whether the duration of the black interface covering the display area reaches a set duration.
If yes, go to step S318, otherwise, go back to step S316.
And step S318, controlling the mobile terminal to enter a screen locking state.
By the method in fig. 3, a mode of generating a black interface can be adopted to achieve the effect of simulating screen locking, the screen locking mode is simple, and the application program running in the mobile terminal can be closed by using the auxiliary function permission, so that the mobile terminal can save electric energy after screen locking.
Corresponding to the foregoing method, an embodiment of the present application further provides a screen locking device of a mobile terminal, configured to execute the screen locking method of the mobile terminal, where fig. 4 is a schematic diagram of module components of the screen locking device of the mobile terminal provided in the embodiment of the present application, and as shown in fig. 4, the device includes:
the interface setting module 41 is configured to, when it is detected that a user performs a screen locking operation on the mobile terminal, add a black interface to a topmost layer of each interface in the mobile terminal, and set the black interface to cover a display area of the mobile terminal;
an application stopping module 42, configured to forcibly stop each application program running in the mobile terminal by using the acquired device permission of the mobile terminal;
an operation response module 43, configured to not respond to the touch operation when the black interface receives the touch operation;
and the state control module 44 is configured to control the mobile terminal to enter a screen locking state if the duration that the black interface covers the display area reaches a set duration.
Optionally, the application stopping module 42 is specifically configured to:
detecting whether an auxiliary function authority of the mobile terminal is acquired;
and if so, acquiring a list of the application programs running in the mobile terminal by using the auxiliary function permission, and forcibly stopping each application program in the list.
Optionally, the operation response module 43 is specifically configured to:
judging whether the touch operation is a first preset touch operation or not; the first preset touch operation comprises a preset touch operation for calling a designated function of the mobile terminal in a screen locking state and a preset unlocking operation;
and if the first preset touch operation is not the first preset touch operation, not responding to the touch operation.
Optionally, the method further comprises:
the progress caching module is used for caching the running progress of part or all of the application programs running in the mobile terminal before forcibly stopping all the application programs running in the mobile terminal;
and the application recovery module is used for recovering part or all of the application programs according to the cached running progress after detecting that the mobile terminal is switched from the screen locking state to the unlocking state.
Optionally, the progress cache module is specifically configured to:
obtaining the use frequency of each application program operated in the mobile terminal, and caching the operation progress of the application program of which the use frequency is greater than a preset frequency;
alternatively, the first and second electrodes may be,
and acquiring the average single-use time of each application program running in the mobile terminal, and caching the running progress of the application program of which the average single-use time is greater than the preset time.
Optionally, the method further comprises:
the information display module is used for displaying set information on the black interface after the black interface is set to cover the display area;
and the resolution adjusting module is used for detecting whether the mobile terminal is in a charging state, and if the mobile terminal is not in the charging state, setting the resolution for displaying the setting information to be smaller than the resolution when the mobile terminal is displayed on a bright screen.
In the embodiment of the application, when a user executes a screen locking operation, firstly, a display area of a screen of the mobile terminal is covered by a black interface, secondly, each application program running in the mobile terminal is forcibly stopped, in addition, when the black interface receives the touch operation of the user, the received touch operation is not responded, and finally, when the duration that the display area of the screen is covered by the black interface reaches the set duration, the mobile terminal is controlled to enter a screen locking state. Therefore, according to the embodiment, after the user performs the screen locking operation, each application program running in the mobile terminal can be forcibly stopped, so that the power consumption of the mobile terminal after screen locking is reduced, and the problem of high power consumption of the mobile terminal after screen locking is solved. Moreover, compared with the mode of realizing the screen locking function by the third-party application in the prior art, in the embodiment, when the screen is locked, since the device management authority of the operating system of the mobile terminal cannot be acquired, sensitive data stored on the mobile terminal, such as privacy data of a user, cannot be acquired, so that the privacy of the user is not affected, and the protection of the privacy of the user is facilitated.
Further, based on the foregoing method, an embodiment of the present application further provides a mobile terminal, and fig. 5 is a schematic structural diagram of the mobile terminal provided in the embodiment of the present application.
As shown in fig. 5, the mobile terminal may have a relatively large difference due to different configurations or performances, and may include one or more processors 701 and a memory 702, where one or more stored applications or data may be stored in the memory 702. Memory 702 may be, among other things, transient storage or persistent storage. The application programs stored in memory 702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the mobile terminal. Still further, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on the mobile terminal. The mobile terminal may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input-output interfaces 705, one or more keyboards 706, and the like.
In a specific embodiment, the mobile terminal includes a processor 810, a memory 809, and a computer program stored in the memory 809 and operable on the processor 810, where the computer program, when executed by the processor 810, implements the processes of the above-mentioned mobile terminal lock screen method embodiment, and specifically includes the following steps:
when detecting that a user performs screen locking operation on a mobile terminal, adding a black interface on the topmost layer of each interface in the mobile terminal, and setting the black interface to cover a display area of the mobile terminal;
forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
when the black interface receives touch operation, the touch operation is not responded;
and if the time length of the black interface covering the display area reaches the set time length, controlling the mobile terminal to enter a screen locking state.
Optionally, when executed, the computer-executable instructions may utilize the acquired device permission of the mobile terminal to forcibly stop each application running in the mobile terminal, including:
detecting whether an auxiliary function authority of the mobile terminal is acquired;
and if so, acquiring a list of the application programs running in the mobile terminal by using the auxiliary function permission, and forcibly stopping each application program in the list.
Optionally, the computer-executable instructions, when executed, do not respond to the touch operation, comprising:
judging whether the touch operation is a first preset touch operation or not; the first preset touch operation comprises a preset touch operation for calling a designated function of the mobile terminal in a screen locking state and a preset unlocking operation;
and if the first preset touch operation is not the first preset touch operation, not responding to the touch operation.
Optionally, the computer executable instructions, when executed, further comprise:
caching the running progress of part or all of the application programs running in the mobile terminal before forcibly stopping each application program running in the mobile terminal;
and after detecting that the mobile terminal is switched from the screen locking state to the unlocking state, restoring the part or all of the application programs according to the cached running progress.
Optionally, when executed, the computer-executable instructions buffer an operation progress of a part of the application programs operated in the mobile terminal, including:
obtaining the use frequency of each application program operated in the mobile terminal, and caching the operation progress of the application program of which the use frequency is greater than a preset frequency;
alternatively, the first and second electrodes may be,
and acquiring the average single-use time of each application program running in the mobile terminal, and caching the running progress of the application program of which the average single-use time is greater than the preset time.
Optionally, the computer executable instructions, when executed, further comprise:
after the black interface is set to cover the display area, setting information is displayed on the black interface;
and detecting whether the mobile terminal is in a charging state, and if not, setting the resolution for displaying the setting information to be smaller than the resolution when the mobile terminal is displayed on a bright screen.
In the embodiment of the application, when a user executes a screen locking operation, firstly, a display area of a screen of the mobile terminal is covered by a black interface, secondly, each application program running in the mobile terminal is forcibly stopped, in addition, when the black interface receives the touch operation of the user, the received touch operation is not responded, and finally, when the duration that the display area of the screen is covered by the black interface reaches the set duration, the mobile terminal is controlled to enter a screen locking state. Therefore, according to the embodiment, after the user performs the screen locking operation, each application program running in the mobile terminal can be forcibly stopped, so that the power consumption of the mobile terminal after screen locking is reduced, and the problem of high power consumption of the mobile terminal after screen locking is solved. Moreover, compared with the mode of realizing the screen locking function by the third-party application in the prior art, in the embodiment, when the screen is locked, since the device management authority of the operating system of the mobile terminal cannot be acquired, sensitive data stored on the mobile terminal, such as privacy data of a user, cannot be acquired, so that the privacy of the user is not affected, and the protection of the privacy of the user is facilitated.
Further, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned mobile terminal screen locking method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A screen locking method of a mobile terminal is characterized by comprising the following steps:
when detecting that a user performs screen locking operation on a mobile terminal, adding a black interface on the topmost layer of each interface in the mobile terminal, and setting the black interface to cover a display area of the mobile terminal;
forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
when the black interface receives touch operation, the touch operation is not responded;
specifically, the not responding to the touch operation includes: judging whether the touch operation is a first preset touch operation or not; the first preset touch operation comprises a preset touch operation for calling a designated function of the mobile terminal in a screen locking state and a preset unlocking operation; if the first preset touch operation is not the first preset touch operation, the touch operation is not responded;
if the time length of the black interface covering the display area reaches the set time length, controlling the mobile terminal to enter a screen locking state;
the adding of the black interface to the topmost layer of each interface in the mobile terminal comprises: creating a black interface with the same size as the display area, adding the created black interface into a current window management system of the mobile terminal by using a window management function API of an operating system of the mobile terminal, and setting the black interface to be positioned at the topmost layer of each interface; the API is an Application Programming Interface (API).
2. The method according to claim 1, wherein the forcibly stopping each application program running in the mobile terminal by using the acquired device authority of the mobile terminal comprises:
detecting whether an auxiliary function authority of the mobile terminal is acquired;
and if so, acquiring a list of the application programs running in the mobile terminal by using the auxiliary function permission, and forcibly stopping each application program in the list.
3. The method of any of claims 1 to 2, further comprising:
caching the running progress of part or all of the application programs running in the mobile terminal before forcibly stopping each application program running in the mobile terminal;
and after detecting that the mobile terminal is switched from the screen locking state to the unlocking state, restoring the part or all of the application programs according to the cached running progress.
4. The method of claim 3, wherein caching the progress of the operation of the portion of the application program operating in the mobile terminal comprises:
obtaining the use frequency of each application program operated in the mobile terminal, and caching the operation progress of the application program of which the use frequency is greater than a preset frequency;
alternatively, the first and second electrodes may be,
and acquiring the average single-use time of each application program running in the mobile terminal, and caching the running progress of the application program of which the average single-use time is greater than the preset time.
5. The method of claim 1, further comprising:
after the black interface is set to cover the display area, setting information is displayed on the black interface;
and detecting whether the mobile terminal is in a charging state, and if not, setting the resolution for displaying the setting information to be smaller than the resolution when the mobile terminal is displayed on a bright screen.
6. A screen locking device of a mobile terminal, comprising:
the interface setting module is used for adding a black interface on the topmost layer of each interface in the mobile terminal and setting the black interface to cover a display area of the mobile terminal when detecting that a user performs screen locking operation on the mobile terminal;
the application stopping module is used for forcibly stopping each application program running in the mobile terminal by using the acquired equipment authority of the mobile terminal;
the operation response module is used for not responding to the touch operation when the black interface receives the touch operation;
the operation response module is specifically configured to: judging whether the touch operation is a first preset touch operation or not; the first preset touch operation comprises a preset touch operation for calling a designated function of the mobile terminal in a screen locking state and a preset unlocking operation; if the first preset touch operation is not the first preset touch operation, the touch operation is not responded;
the state control module is used for controlling the mobile terminal to enter a screen locking state if the duration of the black interface covering the display area reaches a set duration;
the interface setting module also comprises a black interface which is created and has the same size with the display area, the created black interface is added into the current window management system of the mobile terminal by utilizing the window management function API of the operating system of the mobile terminal, and the black interface is arranged at the topmost layer of each interface; the API is an Application Programming Interface (API).
7. The apparatus of claim 6, wherein the application stopping module is specifically configured to:
detecting whether an auxiliary function authority of the mobile terminal is acquired;
and if so, acquiring a list of the application programs running in the mobile terminal by using the auxiliary function permission, and forcibly stopping each application program in the list.
8. The apparatus of any one of claims 6 to 7, further comprising:
the progress caching module is used for caching the running progress of part or all of the application programs running in the mobile terminal before forcibly stopping all the application programs running in the mobile terminal;
and the application recovery module is used for recovering part or all of the application programs according to the cached running progress after detecting that the mobile terminal is switched from the screen locking state to the unlocking state.
9. The apparatus of claim 8, wherein the progress cache module is specifically configured to:
obtaining the use frequency of each application program operated in the mobile terminal, and caching the operation progress of the application program of which the use frequency is greater than a preset frequency;
alternatively, the first and second electrodes may be,
and acquiring the average single-use time of each application program running in the mobile terminal, and caching the running progress of the application program of which the average single-use time is greater than the preset time.
10. The apparatus of claim 6, further comprising:
the information display module is used for displaying set information on the black interface after the black interface is set to cover the display area;
and the resolution adjusting module is used for detecting whether the mobile terminal is in a charging state, and if the mobile terminal is not in the charging state, setting the resolution for displaying the setting information to be smaller than the resolution when the mobile terminal is displayed on a bright screen.
CN201711348989.5A 2017-12-15 2017-12-15 Screen locking method and device of mobile terminal Active CN108073266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711348989.5A CN108073266B (en) 2017-12-15 2017-12-15 Screen locking method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711348989.5A CN108073266B (en) 2017-12-15 2017-12-15 Screen locking method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN108073266A CN108073266A (en) 2018-05-25
CN108073266B true CN108073266B (en) 2020-12-04

Family

ID=62158324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711348989.5A Active CN108073266B (en) 2017-12-15 2017-12-15 Screen locking method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN108073266B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002340B (en) * 2018-07-12 2021-05-28 维沃移动通信有限公司 Screen locking method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100134884A (en) * 2009-06-16 2010-12-24 주식회사 엘지유플러스 Method and system for selecting background picture in touchscreen mobile phone
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN104679379A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Method and device for replacing screen locking application wallpaper
CN105117138A (en) * 2015-09-28 2015-12-02 北京金山安全软件有限公司 Method and device for shielding screen locking of operating system and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102039486B1 (en) * 2013-01-31 2019-11-01 엘지전자 주식회사 Image display apparatus, and method for operating the same
KR102156642B1 (en) * 2013-07-30 2020-09-16 삼성전자 주식회사 Method and apparatus for controlling lock or unlock in a portable terminal
CN104765437A (en) * 2015-04-24 2015-07-08 上海与德通讯技术有限公司 Power saving method and power saving system
CN105631370B (en) * 2015-12-22 2018-12-21 努比亚技术有限公司 Region screen locking method and mobile terminal
CN106339162A (en) * 2016-08-30 2017-01-18 上海斐讯数据通信技术有限公司 Method for controlling flashlight application in lock screen state and device thereof
CN107329740A (en) * 2017-06-11 2017-11-07 成都吱吖科技有限公司 A kind of internet man-machine interaction mobile terminal standby method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100134884A (en) * 2009-06-16 2010-12-24 주식회사 엘지유플러스 Method and system for selecting background picture in touchscreen mobile phone
CN104679379A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Method and device for replacing screen locking application wallpaper
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN105117138A (en) * 2015-09-28 2015-12-02 北京金山安全软件有限公司 Method and device for shielding screen locking of operating system and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Android系统下人机交互解锁屏功能的应用研究";贺建英;《电子设计工程》;20160705;第24卷(第13期);第4-12页 *
"Method for privacy-protecting display and exchange of emergency information on Mobile devices";S.Aguinaga;《2012 International Conference on Collaboration Technologies and Systems (CTS)》;20121231;第596-599段 *

Also Published As

Publication number Publication date
CN108073266A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN106156619B (en) Application security protection method and device
CN102902478B (en) A kind of method, device and equipment preventing false triggering
CN104978109B (en) A kind of Application Program Interface display methods and terminal
US10530921B2 (en) Method for unlocking terminal screen and terminal
CN104063058A (en) Split screen application method and mobile terminal
CN108804153B (en) Application program preloading method and device, storage medium and terminal
CN103605459A (en) Fast application launching method and fast application launching terminal
US20200396325A1 (en) Application switching method and terminal
CN104834497A (en) On screen display control method and controller
CN104424432B (en) A kind of information processing method and electronic equipment
CN109992965B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN105930119A (en) Display control method and device of intelligent terminal
CN106095065A (en) A kind of mode switching method and device
CN103885565A (en) Dormancy method and dormancy system for intelligent equipment
CN108664285A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN111917628B (en) Message processing method and device and electronic equipment
CN113569288A (en) Authority management method and device and electronic equipment
CN103500052A (en) Touch assistant system and achieving method of touch assistant system
CN108073266B (en) Screen locking method and device of mobile terminal
CN113992615B (en) Method and device for displaying withdrawal message, electronic equipment and storage medium
CN109147659A (en) Control method for screen display, device, equipment and storage medium
CN108537058A (en) The polygonal color application method and device, computer readable storage medium, terminal of terminal
CN114237801A (en) Desktop display method and device, electronic equipment and medium
CN112988030B (en) Terminal control method, device, terminal and storage medium
CN104156057A (en) Control method and device of mobile device and mobile device

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: Room 207A, 2nd floor, No. 2 Information Road, Haidian District, Beijing 100085 (1-8th floor, Building D, 2-2, Beijing Shichuang High-Tech Development Corporation)

Applicant after: QILIN HESHENG NETWORK TECHNOLOGY Inc.

Address before: Room 207A, 2nd floor, No. 2 Information Road, Haidian District, Beijing 100085 (1-8th floor, Building D, 2-2, Beijing Shichuang High-Tech Development Corporation)

Applicant before: QILIN HESHENG NETWORK TECHNOLOGY Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant