WO2019051691A1 - Screen locking control method and screen locking control apparatus for smart terminal - Google Patents

Screen locking control method and screen locking control apparatus for smart terminal Download PDF

Info

Publication number
WO2019051691A1
WO2019051691A1 PCT/CN2017/101641 CN2017101641W WO2019051691A1 WO 2019051691 A1 WO2019051691 A1 WO 2019051691A1 CN 2017101641 W CN2017101641 W CN 2017101641W WO 2019051691 A1 WO2019051691 A1 WO 2019051691A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
application
running
lock screen
smart terminal
Prior art date
Application number
PCT/CN2017/101641
Other languages
French (fr)
Chinese (zh)
Inventor
赵尹芳
Original Assignee
深圳传音通讯有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/101641 priority Critical patent/WO2019051691A1/en
Priority to CN201780096753.9A priority patent/CN111344704B/en
Publication of WO2019051691A1 publication Critical patent/WO2019051691A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Definitions

  • the present invention relates to the field of intelligent terminals, and in particular, to a lock screen control method for a smart terminal and a lock screen control device.
  • the smart terminal devices support the lock screen function, so that the smart terminal enters the lock screen state, that is, the smart terminal displays the preset lock screen interface, and can only cancel the lock screen state by receiving the unlock operation, and does not receive the screen. Any other operation.
  • the lock screen state There are two main ways to implement the lock screen state in the prior art. One is that the smart terminal is on the desktop display interface. If no operation is received for a period of time, the lock screen state is automatically entered, and the last operation is automatic.
  • the duration of the lock screen can be set, such as 30 seconds, 1 minute or 2 minutes, etc.; the other is the way of actively locking the screen, the user triggers the lock screen key to make the smart terminal enter the lock screen state, the lock screen key It may be a physical button such as a power button or a Home button on the smart terminal.
  • the user often uses the smart terminal to run some applications that last for a long time, such as a video player, a map navigation program, etc., in order to ensure the user experience during the running of the application, the smart terminal is prohibited from being automatically locked.
  • the way to enter the lock screen state so as to keep the unlock state during the running process, display the state of the application display interface, and return to the state of displaying the desktop after the application ends.
  • this lock screen design has the following problems:
  • an object of the present invention is to provide a lock screen control method for a smart terminal and a lock screen control device, which realizes the application by recording the running time of the application and comparing with a time threshold.
  • the running time of the program is greater than the time threshold, the technical effect of automatically locking the screen after the running state of the application ends fruit.
  • a first aspect of the present application discloses a lock screen control method for a smart terminal, comprising the following steps:
  • the smart terminal controls the smart terminal to enter a lock screen state through the framework layer of the operating system in the smart terminal, and displays a preset to the smart terminal.
  • the lock screen interface inside;
  • the lock screen interface receives an unlocking operation
  • the smart terminal is controlled to enter an unlocked state by the framework layer, and the desktop launcher in the smart terminal is started to display the desktop.
  • the step of recording the runtime of the application includes:
  • the start time is subtracted from the start time to obtain the run time.
  • determining whether the running time is greater than a time threshold preset in the smart terminal the time threshold is a preset non-operation in the smart terminal.
  • the standby time of the automatic lock screen is a preset non-operation in the smart terminal.
  • the lock screen control method further includes the following steps:
  • the desktop launcher displays the desktop after the application finishes running.
  • the unlocking operation when the lock screen interface receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
  • a second aspect of the present application discloses a lock screen control apparatus for a smart terminal, including:
  • An application determining module connected to the setting module, and determining, by the task manager, whether an application in any of the application lists is running;
  • a recording module connected to the application determining module, and when the application determining module determines that an application in any of the application lists is running, recording an running time of the application;
  • a time judging module connected to the recording module, determining whether the running time is greater than a time threshold preset in the smart terminal;
  • a lock screen module connected to the time judging module, when the time judging module judges that the running time is greater than the time threshold, after the application ends running, the lock screen module operates through the smart terminal
  • the framework layer of the system controls the smart terminal to enter a lock screen state, and displays a lock screen interface preset in the smart terminal;
  • An operation receiving module is connected to the lock screen module to receive an unlocking operation on the lock screen interface
  • the unlocking module is connected to the operation receiving module, and the smart terminal is controlled to enter an unlocking state by the framework layer, and the desktop initiator in the smart terminal is started to display the desktop.
  • the recording module includes:
  • a start time recording unit that records a time when the application starts to run as a start time
  • An operation state detecting unit connected to the start time recording unit to detect whether an operation state of the application program is ended;
  • the end time recording unit is connected to the operation state detecting unit, and when the running state detecting unit detects that the running state of the application ends, the current time is recorded as the ending time;
  • the calculation unit is connected to the start time recording unit and the end time recording unit, and subtracts the start time from the end time to obtain the running time.
  • the time determining module determines whether the running time is greater than a time threshold preset in the smart terminal, where the time threshold is If there is no operation, the standby time of the screen will be automatically locked.
  • the lock screen control device further includes:
  • the desktop display module when the time judging module determines that the running time is not greater than the time threshold, after the application ends running, controlling the desktop launcher to display the desktop.
  • the unlocking operation when the operation receiving module receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
  • FIG. 1 is a schematic flow chart of a lock screen control method for an intelligent terminal according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic flow chart of step S103 of FIG. 1 in accordance with a preferred embodiment of the present invention
  • FIG. 3 is a schematic flow chart of a lock screen control method for an intelligent terminal according to another preferred embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a lock screen control apparatus for an intelligent terminal according to a preferred embodiment of the present invention.
  • FIG. 5 is a schematic structural view of a recording module in accordance with a preferred embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a lock screen control apparatus for an intelligent terminal according to another preferred embodiment of the present invention.
  • 10-lock screen control device 11-setting module, 12-application judgment module, 13-recording module, 131-start time recording unit, 132-operation state detecting unit, 133-end time recording unit, 134-calculation unit, 14-time judging module, 15-lock screen module, 16-operation receiving module, 17-unlocking module, 18-desktop display module.
  • the lock screen control method includes the following steps:
  • S101 Set an application list including at least one application in the smart terminal.
  • the smart terminal is a smart device having a display screen, such as a smart phone, a tablet computer, or a multimedia player; the smart terminal runs an operating system, such as an Android operating system, a 10S operating system, and the like.
  • an application program list is set in the smart terminal, and the application program is a computer software, which is a software program specially developed for a certain application purpose of the user.
  • the application list is a list of information of the application, which is also referred to as a “white list”, including information such as a name, a storage path, an installation time, and the like of the application; the application list includes at least one
  • the application provides the user with an operator interface for the user to select the appropriate application to enter the list.
  • the application is preferably an application that runs for a long time, such as a video player, map navigation, etc., and such an application must continuously display a functional interface while it is running.
  • S102 Determine, by the task manager in the smart terminal, whether an application in any of the application lists runs.
  • the operating system of the smart terminal has a task manager for managing running tasks of each application in the smart terminal, for example, sorting tasks of different priorities and allocating system resources, or hanging tasks Start, or keep the task running in the background.
  • the task manager in this step opens the interface so that the third-party software module can obtain the working state of the task manager, such as whether a task is running, suspended, or queued for resource allocation.
  • the task manager obtains information of the running application and determines whether the application is in the application list.
  • This step continuously queries whether there is an application running in the application list according to a time period, and if so, proceeds to a subsequent step, wherein the time period is preferably within 0.1 second, so as to detect the application in time. run.
  • S103 Record the running time of the application when there is an application running in any of the application lists.
  • This step is performed when it is determined in step S102 that there is an application running in any of the application lists.
  • the running time refers to the time from the start of the application to the end of the running, such as the duration of the video player playing a video, or the time when the map navigation continues from the start of the departure to the end of the navigation.
  • This step Recording the running time is: first, detecting, by the task manager, a time when the application is running as a starting time, and then starting timing, and when the task manager detects that the application ends running, terminating
  • the running time can be obtained by timing.
  • the system time can be obtained from the application interface opened by the operating system, and the system time is acquired again at the end, and the running time can be obtained by subtracting the time between the two times.
  • the timer may be an independent program module, or may be configured to set a timed task, the timed task is triggered according to a time period, and the running time is accumulated every time the trigger is performed.
  • S104 Determine whether the running time is greater than a time threshold preset in the smart terminal.
  • a time threshold is preset in the smart terminal. In this step, it is determined whether the running time recorded in step S103 is greater than the time threshold. The purpose of this step is to distinguish between applications that are running for a long time so that subsequent steps can process the application.
  • step S104 determines that the running time is greater than the time threshold
  • the step is performed.
  • Another condition that is executed in this step is that the application ends the operation, and the condition does not conflict with the running time judgment in step S104, and the running time of the application can be recorded only after the application ends running, and thus the The running time is judged with the time threshold.
  • the execution of the step is to control the smart terminal to enter the lock screen state.
  • the implementation manner is to control the smart terminal to enter the lock screen state through a framework layer in the operating system.
  • the framework layer In the Android operating system, the framework layer, the Framework, provides a series of service and API interfaces for developers of application development, allowing developers to obtain and modify operating parameters of the operating system and perform functions based on the original operating system. Expansion.
  • the frame layer can also control the lock screen state of the smart terminal.
  • an operation command is sent to the frame layer through the interface, and the smart terminal is controlled to enter the lock screen state.
  • a pre-stored lock screen interface is displayed on the screen, and the lock screen interface only receives a specific unlocking operation, and does not receive any other operations, so as to protect the desktop of the smart terminal or Other display interfaces are not exposed to the outside, protecting the user's private information.
  • S106 The lock screen interface receives an unlocking operation.
  • the lock screen interface can receive an unlock operation.
  • the unlocking operation may be a sliding touch operation, or may be a digital password input or a graphic input according to the prompt of the lock screen interface.
  • the lock screen interface displays a slider and a long slot. The user has to drag the slider to move to the end position in the slot to achieve unlocking; when the unlocking operation is a digital password input, the lock screen interface displays a numeric button of 0-9, and the user can input a preset.
  • the unlocking password is unlocked; when the unlocking operation is graphic input, the lock screen interface displays dots or circles arranged in a matrix form, and the user can perform a sliding touch operation to sequentially connect points or centers of different positions in a sequence, if a touch operation
  • the trajectory is the same as the preset unlock trajectory, and unlocking is achieved.
  • S107 Control, by the framework layer, the smart terminal to enter an unlocked state, and start a desktop launcher in the smart terminal to display a desktop.
  • step S106 If the unlocking operation in step S106 is correct, this step is performed.
  • the unlocking operation is performed, that is, the smart terminal is controlled to enter an unlocked state by the frame layer, and an unlocking instruction is sent to the frame layer through the interface, and the framework layer controls the smart terminal to enter an unlocked state, and the Lock screen interface.
  • this step starts a desktop launcher (Launcher) in the smart terminal to display the desktop.
  • the desktop launcher is one of the main program components in the Android system, and manages the display content of the desktop, and the application developer can write content that needs to be displayed on the desktop, such as an application icon, in the desktop launcher.
  • the desktop launcher does not start, and the step starts the desktop launcher to perform desktop display, and wakes up the running task of the desktop launcher.
  • determining whether the running time is greater than a time threshold preset in the smart terminal the time threshold is a preset non-operation in the smart terminal.
  • the standby time of the automatic lock screen The preferred embodiment preferably optimizes the time threshold in step S104 of FIG. 1, and the time threshold is the standby time of the automatic lock screen when the erroneous operation is performed.
  • the prior art provides a lock screen mode for automatic lock screen, that is, when the smart terminal is on the desktop, if the external operation is not received for a period of time, the lock screen state is automatically entered, and the standby time is available at the smart terminal. Internal settings, such as 30 seconds, 1 minute, etc.
  • the time threshold is equal to the standby time, that is, when the smart terminal runs the application, the standby time of the automatic lock screen is also applicable, and the difference is that the lock screen is not executed when the application ends running.
  • the operation rather than the runtime, reaches the time threshold and performs a lock screen operation.
  • the unlocking operation when the lock screen interface receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
  • the preferred embodiment preferably optimizes the unlocking operation, which is preferably a sliding operation or a digital password input operation.
  • the sliding operation is performed on the lock screen interface, for example, a slider is displayed on the lock screen interface, and the slider is located at one end of a groove-shaped area, and the user must perform a drag operation on the slider, and drag To the other end of the trough-like area, the unlocking is considered successful.
  • the digital password input operation a set of 0-9 numbers is displayed on the lock screen interface, and the user must input A set of preset numeric passwords can be unlocked.
  • Step S103 includes:
  • S103-1 Record the time when the application starts running as the start time.
  • This step records the time the application started running, the first time it was detected that the application started running.
  • the way to obtain the time is to obtain the system time as the starting time through the interface open by the operating system.
  • the running state of the application is continuously detected according to a time period.
  • the detecting manner is to obtain the running state of the application by using the task manager, so as to know whether the application is running or It is the end of the run.
  • the time period is at most 0.1 seconds in order to discover in time that the application ends running.
  • step S103-3 determines that the running state of the application is over, this step is performed.
  • This step records the end of the running state of the application as the end time.
  • the implementation method is to obtain the system time as the end time through the interface opened by the operating system.
  • This step performs a calculation operation, and the content of the calculation operation is to subtract the start time from the end time to obtain the running time.
  • the end time is 15:30
  • the start time is 15:10
  • the time difference obtained by subtracting the two is 20 minutes, that is, the running time is 20 minutes.
  • FIG. 3 is a schematic flowchart of a lock screen control method for a smart terminal according to another preferred embodiment of the present invention.
  • the lock screen control method further includes the following steps:
  • step S104' determines that the running time is not greater than the time threshold. This step displays the desktop by launching the desktop launcher after the application finishes running. The effect of this step is that after the application is finished running, if the running time is not greater than the time threshold, the desktop is displayed, and the lock screen state is not entered.
  • the lock screen control apparatus 10 includes:
  • the setting module 11 is configured to set an application list including at least one application in the smart terminal. Said The setting module 11 can provide an operation interface for the user to select a corresponding application to enter the list.
  • the setting module 11 can interact with the display module of the smart terminal on the one hand, and display the user's display interface, for example, provide a drop-down menu of an application name; on the other hand, interact with the input module of the smart terminal. Obtain a selection operation performed by a user through an input device such as a touch screen or a mouse.
  • the setting module 11 interacts with the application manager in the operating system of the smart terminal through an interface to obtain information such as a name, a storage path, and the like of all applications.
  • the application determining module 12 is connected to the setting module 11, and the task manager determines whether there is any application running in the application list.
  • the application determining module 12 acquires the application list from the setting module 11, and further knows the application information in the application list.
  • the application determining module 12 and the task manager access the interface, obtain the running state of each application in the smart terminal, in particular, the running application information, and determine whether the running application is in the office. Inside the list of applications.
  • the application determining module 12 continuously accesses the task manager according to a time period, so as to acquire the running state of the application in time.
  • the recording module 13 is connected to the application determining module 12, and records the running time of the application when the application determining module 12 determines that an application in any of the application lists is running.
  • the recording module acquires an operating state of the application from the application determining module 12.
  • the recording module 13 records the time as a starting time and starts timing; when the application determining module 12 detects When the application in the application list ends the running state, the recording module 13 records the time as the ending time, and calculates the running time of the application.
  • the recording module 13 can acquire the two system times of the start time and the end time through an application interface opened by the operating system, and then subtract the obtained running time.
  • the recording module 13 can also be embedded with a timer program unit, and the running time can be obtained by starting the counting from the starting time and ending the counting of the ending time.
  • the time judging module 14 is connected to the recording module 13 to determine whether the running time is greater than a time threshold preset in the smart terminal.
  • the determining module 14 acquires the running time from the recording module 13 and compares the running time with the time threshold.
  • the lock screen module 15 is connected to the time judging module 14, and when the time judging module 14 determines that the running time is greater than the time threshold, after the application ends running, the lock screen module 15 passes the The framework layer of the operating system in the smart terminal controls the smart terminal to enter a lock screen state, and displays a lock screen interface preset in the smart terminal.
  • the lock screen module 15 obtains a determination result from the time judging module 14, that is, when the running time is greater than the time threshold, the lock screen module 15 performs a lock screen operation after the application end operation.
  • the lock screen module 15 controls the smart terminal to enter a lock screen state through a framework layer in the operating system, and sends a lock screen command to an interface provided by the frame layer.
  • a pre-stored lock screen interface is displayed on the screen, and only a specific unlocking operation is received, and no other operations are received, so as to protect the desktop or other display interface of the smart terminal from being exposed. Externally, protect the user's private information.
  • the operation receiving module 16 is connected to the lock screen module 15 to receive an unlocking operation on the lock screen interface.
  • the operation receiving module 16 acquires information of the lock screen interface from the lock screen module 15, that is, the lock screen interface can receive an unlocking operation area.
  • the operation receiving module 16 receives the unlocking operation, it is valid only when the unlocking operation occurs on the lock screen interface to receive the unlocking operation area.
  • the unlocking operation received by the operation receiving module 16 may be a sliding touch operation, or may be a digital password input or a graphic input according to the prompt of the lock screen interface.
  • the sliding unlocking means that a slider is displayed on the lock screen interface, and the operation receiving module 16 detects whether the slider is dragged to the target area, and can determine whether it is an unlocking operation; unlocking the digital password input
  • the operation means that the lock screen interface displays a digital area of 0-9, and the user touches the digital area according to the password.
  • the operation receiving module 16 stores the password preset by the user; the unlock operation of the graphic input is received.
  • a sliding operation of a user-specific trajectory that is previously stored by the user in the operation receiving module 16.
  • the unlocking module 17 is connected to the operation receiving module 16, and controls the smart terminal to enter an unlocking state through the framework layer, and starts a desktop launcher in the smart terminal to display a desktop.
  • the unlocking module 17 acquires an instruction that the unlocking operation is successful from the operation receiving module 16, and then performs an unlocking operation.
  • the unlocking module 17 issues an unlocking instruction to the frame layer through an interface, and the framework layer controls the smart terminal to enter an unlocked state, and the lock screen interface is no longer displayed. After unlocking, the unlocking module 17 displays the desktop by launching the desktop launcher.
  • the time determining module 12 determines whether the running time is greater than a time threshold preset in the smart terminal, where the time threshold is in the smart terminal.
  • the preset no operation automatically locks the standby time of the screen.
  • the time judging module 12 uses the standby time of the automatic lock screen as the time threshold for the erroneous operation, so as to realize the lock screen judgment and the normal situation after the application program runs.
  • the judgment condition of the non-operating automatic lock screen is similar, which makes the user feel that the automatic lock screen judgment time is the same in both cases, and the user experience is guaranteed.
  • the unlocking operation when the operation receiving module 16 receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
  • the preferred embodiment preferably optimizes the unlocking operation received by the operation receiving module 16, and the unlocking operation is preferably a sliding operation or a digital password input operation.
  • the recording module 13 includes:
  • the start time recording unit 131 records the time at which the application starts running as the start time.
  • the manner in which the start time recording unit 131 acquires the start time is to acquire the system time as the start time through the interface opened by the operating system.
  • the operation state detecting unit 132 is connected to the start time recording unit 131 to detect whether or not the operating state of the application is completed. After the start time recording unit 131 records the start time, the running state detecting unit 132 starts to work, and continuously acquires the running state of the application program from the application detecting module 12 according to a time period, thereby obtaining the learned state. Whether the application is running or ending. The time period is at most 0.1 seconds in order to discover in time that the application ends running.
  • the end time recording unit 133 is connected to the operation state detecting unit 132, and when the operation state detecting unit 132 detects that the running state of the application is ended, the current time is recorded as the end time.
  • the end time recording unit 133 acquires the message that the running state of the application is finished from the running state detecting unit 132, the time when the running state of the application is ended is the ending time; the implementation is The open interface of the operating system acquires the system time as the end time.
  • the calculation unit 134 is connected to the start time recording unit 131 and the end time recording unit 133, and subtracts the start time from the end time to obtain the running time.
  • the calculation unit 134 acquires the start time from the start time recording unit 131, acquires the end time from the end time recording unit 133, and performs a subtraction operation.
  • the lock screen control device 10 further includes:
  • the desktop display module 18 when the time judging module 14 determines that the running time is not greater than the time threshold, after the application ends running, controlling the desktop launcher to display the desktop.
  • the desktop display module 18 displays the desktop by launching the desktop launcher.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a screen locking control method and a screen locking control apparatus for a smart terminal. The screen locking control method comprises the following steps: set an application program list comprising at least one application program; determine whether any application program in the application program list runs; when any application program in the application program list runs, record a running time of the application program; determine whether the running time is greater than a time threshold; when the running time is greater than the time threshold, control, by means of a framework layer of an operating system in the smart terminal, the smart terminal to enter a screen locking state, and display a screen locking interface; the screen locking interface receives an unlocking operation; and control, by means of the framework layer, the smart terminal to enter an unlocking state, and start a desktop launcher in the smart terminal to display a desktop. In the technical solution of the present invention, a screen is automatically locked according to the length of a running time of an application program, thereby protecting privacies of a user.

Description

一种用于智能终端的锁屏控制方法及锁屏控制装置Lock screen control method and lock screen control device for intelligent terminal 技术领域Technical field
本发明涉及智能终端领域,尤其涉及一种用于智能终端的锁屏控制方法及锁屏控制装置。The present invention relates to the field of intelligent terminals, and in particular, to a lock screen control method for a smart terminal and a lock screen control device.
背景技术Background technique
目前,大部分智能终端设备均支持锁屏功能,使所述智能终端进入锁屏状态,即所述智能终端显示预设的锁屏界面,且只能通过接收解锁操作解除锁屏状态,不接收其他任何操作。现有技术中实现锁屏状态的方式主要有两种,一种是所述智能终端处于桌面显示界面,若一段时间内没有接收任何操作,则自动进入锁屏状态,且自上一次操作至自动锁屏的时长可设定,如30秒、1分钟或2分钟等;另一种是主动锁屏的方式,由用户触发锁屏键使所述智能终端进入锁屏状态,所述锁屏键可以是所述智能终端上的电源键、Home键等物理按键。此外,用户常常使用智能终端运行一些运行时间持续较长的应用程序,例如视频播放程序、地图导航程序等,这些应用程序在运行过程中为了保证用户体验,会禁止所述智能终端按照自动锁屏的方式进入锁屏状态,从而在运行过程中持续保持解锁状态,显示应用程序显示界面的状态,待应用程序结束后,重新回到显示桌面的状态。然而,这种锁屏设计方式存在以下问题:At present, most of the smart terminal devices support the lock screen function, so that the smart terminal enters the lock screen state, that is, the smart terminal displays the preset lock screen interface, and can only cancel the lock screen state by receiving the unlock operation, and does not receive the screen. Any other operation. There are two main ways to implement the lock screen state in the prior art. One is that the smart terminal is on the desktop display interface. If no operation is received for a period of time, the lock screen state is automatically entered, and the last operation is automatic. The duration of the lock screen can be set, such as 30 seconds, 1 minute or 2 minutes, etc.; the other is the way of actively locking the screen, the user triggers the lock screen key to make the smart terminal enter the lock screen state, the lock screen key It may be a physical button such as a power button or a Home button on the smart terminal. In addition, the user often uses the smart terminal to run some applications that last for a long time, such as a video player, a map navigation program, etc., in order to ensure the user experience during the running of the application, the smart terminal is prohibited from being automatically locked. The way to enter the lock screen state, so as to keep the unlock state during the running process, display the state of the application display interface, and return to the state of displaying the desktop after the application ends. However, this lock screen design has the following problems:
1.所述应用程序运行结束后可直接进入桌面,安全性、隐私性较低;1. After the application is finished running, it can directly enter the desktop, with low security and privacy;
因此如何为用户提供退出应用程序后实现自动锁屏的技术手段,保障用户隐私,是一个需要解决的技术问题。Therefore, how to provide users with the technical means to realize automatic lock screen after exiting the application and to protect user privacy is a technical problem to be solved.
发明内容Summary of the invention
为了克服上述技术缺陷,本发明的目的在于提供一种用于智能终端的锁屏控制方法及锁屏控制装置,通过对应用程序的运行时间进行记录并与一时间阈值比较,实现当所述应用程序运行时间大于所述时间阈值时,应用程序运行状态结束后自动锁屏的技术效 果。In order to overcome the above technical deficiencies, an object of the present invention is to provide a lock screen control method for a smart terminal and a lock screen control device, which realizes the application by recording the running time of the application and comparing with a time threshold. When the running time of the program is greater than the time threshold, the technical effect of automatically locking the screen after the running state of the application ends fruit.
本申请的第一方面公开了一种用于智能终端的锁屏控制方法,包括以下步骤:A first aspect of the present application discloses a lock screen control method for a smart terminal, comprising the following steps:
于所述智能终端内设置包括至少一个应用程序的应用程序列表;Setting a list of applications including at least one application in the smart terminal;
通过所述智能终端内的任务管理器判断是否有任一所述应用程序列表内的应用程序运行;Determining, by the task manager in the smart terminal, whether any application in the application list is running;
当有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间;Recording the running time of the application when there is an application running in any of the application lists;
判断所述运行时间是否大于一预设于所述智能终端内的时间阈值;Determining whether the running time is greater than a time threshold preset in the smart terminal;
当所述运行时间大于所述时间阈值时,所述应用程序结束运行后,通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面;When the running time is greater than the time threshold, after the application ends running, the smart terminal controls the smart terminal to enter a lock screen state through the framework layer of the operating system in the smart terminal, and displays a preset to the smart terminal. The lock screen interface inside;
所述锁屏界面接收一解锁操作;The lock screen interface receives an unlocking operation;
通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。The smart terminal is controlled to enter an unlocked state by the framework layer, and the desktop launcher in the smart terminal is started to display the desktop.
在本申请第一方面的某些实施方式中,当有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间的步骤包括:In some embodiments of the first aspect of the present application, when there is an application running in any of the application lists, the step of recording the runtime of the application includes:
记录所述应用程序开始运行的时间为开始时刻;Recording the time when the application starts running as the start time;
检测所述应用程序的运行状态是否结束;Detecting whether the running state of the application ends;
当所述应用程序的运行状态结束时,记录当前时间为结束时刻;When the running state of the application ends, the current time is recorded as the ending time;
将所述结束时刻减去所述开始时刻,得到所述运行时间。The start time is subtracted from the start time to obtain the run time.
在本申请第一方面的某些实施方式中,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。In some implementations of the first aspect of the present application, determining whether the running time is greater than a time threshold preset in the smart terminal, the time threshold is a preset non-operation in the smart terminal. The standby time of the automatic lock screen.
在本申请第一方面的某些实施方式中,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值的步骤之后,所述锁屏控制方法还包括以下步骤:In some implementations of the first aspect of the present application, after the step of determining whether the running time is greater than a time threshold preset in the smart terminal, the lock screen control method further includes the following steps:
当所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,所述桌面启动器显示桌面。When the running time is not greater than the time threshold, the desktop launcher displays the desktop after the application finishes running.
在本申请第一方面的某些实施方式中,所述锁屏界面接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。In some embodiments of the first aspect of the present application, when the lock screen interface receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
本申请的第二方面公开了一种用于智能终端的锁屏控制装置,包括:A second aspect of the present application discloses a lock screen control apparatus for a smart terminal, including:
设置模块,于所述智能终端内设置包括至少一个应用程序的应用程序列表; Setting a module, and setting an application list including at least one application in the smart terminal;
应用程序判断模块,与所述设置模块连接,通过所述任务管理器判断是否有任一所述应用程序列表内的应用程序运行;An application determining module, connected to the setting module, and determining, by the task manager, whether an application in any of the application lists is running;
记录模块,与所述应用程序判断模块连接,当所述应用程序判断模块判断有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间;a recording module, connected to the application determining module, and when the application determining module determines that an application in any of the application lists is running, recording an running time of the application;
时间判断模块,与所述记录模块连接,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值;a time judging module, connected to the recording module, determining whether the running time is greater than a time threshold preset in the smart terminal;
锁屏模块,与所述时间判断模块连接,当所述时间判断模块判断所述运行时间大于所述时间阈值时,所述应用程序结束运行后,所述锁屏模块通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面;a lock screen module, connected to the time judging module, when the time judging module judges that the running time is greater than the time threshold, after the application ends running, the lock screen module operates through the smart terminal The framework layer of the system controls the smart terminal to enter a lock screen state, and displays a lock screen interface preset in the smart terminal;
操作接收模块,与所述锁屏模块连接,接收所述锁屏界面上一解锁操作;An operation receiving module is connected to the lock screen module to receive an unlocking operation on the lock screen interface;
解锁模块,与所述操作接收模块连接,通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。The unlocking module is connected to the operation receiving module, and the smart terminal is controlled to enter an unlocking state by the framework layer, and the desktop initiator in the smart terminal is started to display the desktop.
在本申请第二方面的某些实施方式中,所述记录模块包括:In some embodiments of the second aspect of the present application, the recording module includes:
开始时刻记录单元,记录所述应用程序开始运行的时间为开始时刻;a start time recording unit that records a time when the application starts to run as a start time;
运行状态检测单元,与所述开始时刻记录单元连接,检测所述应用程序的运行状态是否结束;An operation state detecting unit connected to the start time recording unit to detect whether an operation state of the application program is ended;
结束时刻记录单元,与所述运行状态检测单元连接,当所述运行状态检测单元检测到所述应用程序的运行状态结束时,记录当前时间为结束时刻;The end time recording unit is connected to the operation state detecting unit, and when the running state detecting unit detects that the running state of the application ends, the current time is recorded as the ending time;
计算单元,与所述开始时刻记录单元和结束时刻记录单元连接,将所述结束时刻减去所述开始时刻,得到所述运行时间。The calculation unit is connected to the start time recording unit and the end time recording unit, and subtracts the start time from the end time to obtain the running time.
在本申请第二方面的某些实施方式中,所述时间判断模块判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。In some implementations of the second aspect of the present application, the time determining module determines whether the running time is greater than a time threshold preset in the smart terminal, where the time threshold is If there is no operation, the standby time of the screen will be automatically locked.
在本申请第二方面的某些实施方式中,所述锁屏控制装置还包括:In some embodiments of the second aspect of the present application, the lock screen control device further includes:
桌面显示模块,当所述时间判断模块判断所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,控制所述桌面启动器显示桌面。And the desktop display module, when the time judging module determines that the running time is not greater than the time threshold, after the application ends running, controlling the desktop launcher to display the desktop.
在本申请第二方面的某些实施方式中,所述操作接收模块接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。In some embodiments of the second aspect of the present application, when the operation receiving module receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
采用了上述技术方案后,与现有技术相比,具有以下有益效果:After adopting the above technical solution, compared with the prior art, the following beneficial effects are obtained:
1.所述应用程序结束运行后根据运行时间的长短选择自动锁屏,保护用户隐私; 1. After the application finishes running, select an automatic lock screen according to the length of the running time to protect user privacy;
2.允许用户对需要重点关注的应用程序设置锁屏保护。2. Allow users to set lock screen protection for applications that need to be focused on.
附图说明DRAWINGS
图1为符合本发明一优选实施例中用于智能终端的锁屏控制方法的流程示意图;1 is a schematic flow chart of a lock screen control method for an intelligent terminal according to a preferred embodiment of the present invention;
图2为符合本发明一优选实施例中图1中步骤S103的具体流程示意图;2 is a schematic flow chart of step S103 of FIG. 1 in accordance with a preferred embodiment of the present invention;
图3为符合本发明另一优选实施例中用于智能终端的锁屏控制方法的流程示意图;3 is a schematic flow chart of a lock screen control method for an intelligent terminal according to another preferred embodiment of the present invention;
图4为符合本发明一优选实施例中用于智能终端的锁屏控制装置的结构示意图;4 is a schematic structural diagram of a lock screen control apparatus for an intelligent terminal according to a preferred embodiment of the present invention;
图5为符合本发明一优选实施例中记录模块的结构示意图;5 is a schematic structural view of a recording module in accordance with a preferred embodiment of the present invention;
图6为符合本发明另一优选实施例中用于智能终端的锁屏控制装置的结构示意图。FIG. 6 is a schematic structural diagram of a lock screen control apparatus for an intelligent terminal according to another preferred embodiment of the present invention.
附图标记:Reference mark:
10-锁屏控制装置、11-设置模块、12-应用程序判断模块、13-记录模块、131-开始时刻记录单元、132-运行状态检测单元、133-结束时刻记录单元、134-计算单元、14-时间判断模块、15-锁屏模块、16-操作接收模块、17-解锁模块、18-桌面显示模块。10-lock screen control device, 11-setting module, 12-application judgment module, 13-recording module, 131-start time recording unit, 132-operation state detecting unit, 133-end time recording unit, 134-calculation unit, 14-time judging module, 15-lock screen module, 16-operation receiving module, 17-unlocking module, 18-desktop display module.
具体实施方式Detailed ways
以下由特定的具体实施例说明本申请的实施方式,熟悉此技术的人士可由本说明书所揭露的内容轻易地了解本申请的其他优点及功效。The embodiments of the present application are described below by specific embodiments, and those skilled in the art can easily understand other advantages and effects of the present application from the disclosure of the present specification.
在下述描述中,参考附图,附图描述了本申请的若干实施例。应当理解,还可使用其他实施例,并且可以在不背离本公开的精神和范围的情况下进行机械组成、结构、电气以及操作上的改变.下面的详细描述不应该被认为是限制性的,并且本申请的实施例的范围仅由公布的专利的权利要求书所限定.这里使用的术语仅是为了描述特定实施例,而并非旨在限制本申请。空间相关的术语,例如“上”、“下”、“左”、“右”、“下面”、“下方”、“下部”、“上方”、“上部”等,可在文中使用以便于说明图中所示的一个元件或特征与另一元件或特征的关系。In the following description, reference is made to the drawings in the drawings It is understood that other embodiments may be utilized and that changes in mechanical composition, structure, electrical and operation may be made without departing from the spirit and scope of the disclosure. The following detailed description should not be considered as limiting. The scope of the embodiments of the present application is defined by the claims of the appended claims. The terminology used herein is for the purpose of describing particular embodiments. Spatially related terms such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text for ease of explanation The relationship of one element or feature to another element or feature is shown.
虽然在一些实例中术语第一、第二等在本文中用来描述各种元件,但是这些元件不应当被这些术语限制。这些术语仅用来将一个元件与另一个元件进行区分。Although the terms first, second, etc. are used herein to describe various elements in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示.应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加.此处使用的 术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合.因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”.仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。In addition, the singular forms "a", "the", and "the" "There is a description of the features, steps, operations, components, components, items, categories, and/or groups, but does not exclude one or more other features, steps, operations, components, components, items, categories, and/or The presence, presence, or addition of a group. Used here The terms “or” and “and/or” are to be construed as inclusive or meaning any one or any combination. Therefore, “A, B or C” or “A, B and/or C” means “any of the following :A; B; C; A and B; A and C; B and C; A, B and C". Only when combinations of elements, functions, steps or operations are inherently mutually exclusive in certain ways An exception to this definition appears.
参阅图1,为符合本发明一优选实施例中用于智能终端的锁屏控制方法的流程示意图,所述锁屏控制方法包括以下步骤:1 is a schematic flowchart of a lock screen control method for an intelligent terminal according to a preferred embodiment of the present invention. The lock screen control method includes the following steps:
S101:于所述智能终端内设置包括至少一个应用程序的应用程序列表。S101: Set an application list including at least one application in the smart terminal.
本实施例中,所述智能终端为智能手机、平板电脑、多媒体播放器等具有显示屏幕的智能设备;所述智能终端内运行有操作系统,如安卓操作系统、10S操作系统等。本步骤在所述智能终端内设置一应用程序列表,所述应用程序是一种计算机软件,为针对用户的某种应用目的专门开发的软件程序。所述应用程序列表即汇总所述应用程序的信息的列表,也被称为“白名单”,包括所述应用程序的名称、存储路径、安装时间等信息;所述应用程序列表内包括至少一个应用程序,可为用户提供操作界面以便用户选择相应的应用程序进入列表。所述应用程序优选为运行时间较长的应用程序,例如视频播放器、地图导航等,此类应用程序运行时须持续显示功能界面。In this embodiment, the smart terminal is a smart device having a display screen, such as a smart phone, a tablet computer, or a multimedia player; the smart terminal runs an operating system, such as an Android operating system, a 10S operating system, and the like. In this step, an application program list is set in the smart terminal, and the application program is a computer software, which is a software program specially developed for a certain application purpose of the user. The application list is a list of information of the application, which is also referred to as a “white list”, including information such as a name, a storage path, an installation time, and the like of the application; the application list includes at least one The application provides the user with an operator interface for the user to select the appropriate application to enter the list. The application is preferably an application that runs for a long time, such as a video player, map navigation, etc., and such an application must continuously display a functional interface while it is running.
S102:通过所述智能终端内的任务管理器判断是否有任一所述应用程序列表内的应用程序运行。S102: Determine, by the task manager in the smart terminal, whether an application in any of the application lists runs.
所述智能终端的操作系统内具有一任务管理器,用于对所述智能终端内的各应用程序的运行任务进行管理,例如对不同优先级的任务进行排序并分配系统资源,或者将任务挂起,再或者将任务保持后台运行。本步骤中所述任务管理器开放接口,以便第三方软件模块可以获取任务管理器的工作状态,例如某个任务是否正在运行,还是被挂起,或者是排队等候分配资源。本步骤中,通过所述任务管理器获取正在运行的应用程序的信息,并判断所述应用程序是否在所述应用程序列表内。本步骤会按照一时间周期不断查询是否有所述应用程序列表内的应用程序运行,若有,则进入后续步骤,其中所述时间周期优选为0.1秒以内,以便及时检测到所述应用程序的运行。The operating system of the smart terminal has a task manager for managing running tasks of each application in the smart terminal, for example, sorting tasks of different priorities and allocating system resources, or hanging tasks Start, or keep the task running in the background. The task manager in this step opens the interface so that the third-party software module can obtain the working state of the task manager, such as whether a task is running, suspended, or queued for resource allocation. In this step, the task manager obtains information of the running application and determines whether the application is in the application list. This step continuously queries whether there is an application running in the application list according to a time period, and if so, proceeds to a subsequent step, wherein the time period is preferably within 0.1 second, so as to detect the application in time. run.
S103:当有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间。S103: Record the running time of the application when there is an application running in any of the application lists.
当步骤S102判断有任一所述应用程序列表内的应用程序运行时,执行本步骤。所述运行时间是指所述应用程序自开始运行至运行结束的时间,例如视频播放器播放一段视频的时长,或者地图导航自出发地开始到目的地结束导航过程中持续运行的时间。本步 骤记录所述运行时间是,首先将通过所述任务管理器检测到所述应用程序运行的时刻作为开始时刻,而后开始计时,待所述任务管理器检测到所述应用程序结束运行时,终止计时,即可得到所述运行时间。开始时刻可以从所述操作系统开放的应用程序接口获取系统时间,结束时再次获取系统时间,前后两次时间相减即可得到运行时间。还有一种计时方式是自开始时刻起运行一计时器程序,待所述应用程序结束运行时所述计时器停止计时,即得到所述运行时间。所述计时器可以是独立的程序模块,也可以是设定一个定时任务,所述定时任务按照一时间周期触发,每次触发时对运行时间进行累加操作。This step is performed when it is determined in step S102 that there is an application running in any of the application lists. The running time refers to the time from the start of the application to the end of the running, such as the duration of the video player playing a video, or the time when the map navigation continues from the start of the departure to the end of the navigation. This step Recording the running time is: first, detecting, by the task manager, a time when the application is running as a starting time, and then starting timing, and when the task manager detects that the application ends running, terminating The running time can be obtained by timing. At the beginning, the system time can be obtained from the application interface opened by the operating system, and the system time is acquired again at the end, and the running time can be obtained by subtracting the time between the two times. There is also a timing mode in which a timer program is run from the start time, and the timer is stopped when the application ends running, that is, the running time is obtained. The timer may be an independent program module, or may be configured to set a timed task, the timed task is triggered according to a time period, and the running time is accumulated every time the trigger is performed.
S104:判断所述运行时间是否大于一预设于所述智能终端内的时间阈值。S104: Determine whether the running time is greater than a time threshold preset in the smart terminal.
所述智能终端内预设一时间阈值,本步骤判断步骤S103记录的运行时间是否大于所述时间阈值。本步骤的目的在于区分出运行时间较长的应用程序,以便后续步骤对所述应用程序进行处理。A time threshold is preset in the smart terminal. In this step, it is determined whether the running time recorded in step S103 is greater than the time threshold. The purpose of this step is to distinguish between applications that are running for a long time so that subsequent steps can process the application.
S105:当所述运行时间大于所述时间阈值时,所述应用程序结束运行后,通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面。S105: When the running time is greater than the time threshold, after the application ends running, controlling, by the framework layer of the operating system in the smart terminal, the smart terminal enters a lock screen state, and the display is preset to the The lock screen interface in the smart terminal.
所述步骤S104判断所述运行时间大于所述时间阈值时,执行本步骤。本步骤执行的另一条件是所述应用程序结束运行,该条件与步骤S104对运行时间判断并不冲突,只有所述应用程序结束运行后才能记录所述应用程序的运行时间,进而可以将所述运行时间与所述时间阈值进行判断。本步骤执行内容为控制所述智能终端进入锁屏状态,实现的方式是通过所述操作系统内的框架层(Framework)控制所述智能终端进入锁屏状态。在安卓操作系统中,所述框架层即Framework,为应用开发的开发人员提供了一系列的服务和API的接口,允许开发人员获取并修改操作系统的运行参数,进行原版操作系统基础上的功能扩展。所述框架层同样可以对智能终端的锁屏状态进行控制,本步骤中通过接口向所述框架层发送操作指令,控制所述智能终端进入锁屏状态即可。所述智能终端进入所述锁屏状态后,在屏幕上显示一预存的锁屏界面,所述锁屏界面只接收特定的解锁操作,不接收其他任何操作,以便保护所述智能终端的桌面或其他显示界面不暴露在外部,保护用户的隐私信息。When the step S104 determines that the running time is greater than the time threshold, the step is performed. Another condition that is executed in this step is that the application ends the operation, and the condition does not conflict with the running time judgment in step S104, and the running time of the application can be recorded only after the application ends running, and thus the The running time is judged with the time threshold. The execution of the step is to control the smart terminal to enter the lock screen state. The implementation manner is to control the smart terminal to enter the lock screen state through a framework layer in the operating system. In the Android operating system, the framework layer, the Framework, provides a series of service and API interfaces for developers of application development, allowing developers to obtain and modify operating parameters of the operating system and perform functions based on the original operating system. Expansion. The frame layer can also control the lock screen state of the smart terminal. In this step, an operation command is sent to the frame layer through the interface, and the smart terminal is controlled to enter the lock screen state. After the smart terminal enters the lock screen state, a pre-stored lock screen interface is displayed on the screen, and the lock screen interface only receives a specific unlocking operation, and does not receive any other operations, so as to protect the desktop of the smart terminal or Other display interfaces are not exposed to the outside, protecting the user's private information.
S106:所述锁屏界面接收一解锁操作。S106: The lock screen interface receives an unlocking operation.
所述智能终端处于所述锁屏状态时,所述锁屏界面能够接收解锁操作。所述解锁操作可以是滑动式的触摸操作,也可以是根据所述锁屏界面的提示进行的数字密码输入或图形输入。所述解锁操作为触摸操作时,所述锁屏界面显示一个滑块和一个长条形的槽, 用户须拖曳所述滑块在所述槽内移动至结束位置,才能实现解锁;所述解锁操作为数字密码输入时,所述锁屏界面上显示0-9的数字按钮,用户可输入预设的解锁密码进行解锁;所述解锁操作为图形输入时,所述锁屏界面上显示矩阵形式排列的点或者圆形,用户可进行滑动触摸操作按顺序连接不同位置的点或者圆心,若触摸操作的轨迹与预设的解锁轨迹相同,则实现解锁。When the smart terminal is in the lock screen state, the lock screen interface can receive an unlock operation. The unlocking operation may be a sliding touch operation, or may be a digital password input or a graphic input according to the prompt of the lock screen interface. When the unlocking operation is a touch operation, the lock screen interface displays a slider and a long slot. The user has to drag the slider to move to the end position in the slot to achieve unlocking; when the unlocking operation is a digital password input, the lock screen interface displays a numeric button of 0-9, and the user can input a preset. The unlocking password is unlocked; when the unlocking operation is graphic input, the lock screen interface displays dots or circles arranged in a matrix form, and the user can perform a sliding touch operation to sequentially connect points or centers of different positions in a sequence, if a touch operation The trajectory is the same as the preset unlock trajectory, and unlocking is achieved.
S107:通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。S107: Control, by the framework layer, the smart terminal to enter an unlocked state, and start a desktop launcher in the smart terminal to display a desktop.
步骤S106中的解锁操作若正确,则执行本步骤。本步骤执行解锁操作,即通过所述框架层控制所述智能终端进入解锁状态,通过接口向所述框架层发出解锁指令,所述框架层控制所述智能终端进入解锁状态,不再显示所述锁屏界面。而后本步骤启动所述智能终端内的桌面启动器(Launcher)显示桌面。所述桌面启动器是安卓系统中的主要程序组件之一,管理桌面的显示内容,应用程序开发者可以在所述桌面启动器内写入需要在桌面显示的内容,例如应用程序图标。当所述智能终端处于锁屏状态时,所述桌面启动器不启动,本步骤启动所述桌面启动器进行桌面显示,唤醒所述桌面启动器的运行任务即可。If the unlocking operation in step S106 is correct, this step is performed. In this step, the unlocking operation is performed, that is, the smart terminal is controlled to enter an unlocked state by the frame layer, and an unlocking instruction is sent to the frame layer through the interface, and the framework layer controls the smart terminal to enter an unlocked state, and the Lock screen interface. Then, this step starts a desktop launcher (Launcher) in the smart terminal to display the desktop. The desktop launcher is one of the main program components in the Android system, and manages the display content of the desktop, and the application developer can write content that needs to be displayed on the desktop, such as an application icon, in the desktop launcher. When the smart terminal is in the lock screen state, the desktop launcher does not start, and the step starts the desktop launcher to perform desktop display, and wakes up the running task of the desktop launcher.
在本申请第一方面的某些实施方式中,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。本优选实施例对图1中步骤S104中所述时间阈值进行优选,所述时间阈值为所述误操作则自动锁屏的待机时间。现有技术提供了自动锁屏的锁屏方式,即所述智能终端处于桌面时,若一段时间没有接收外部操作,则自动进入锁屏状态,这段时间即待机时间,可在所述智能终端内设置,如30秒、1分钟等时长。本实施例中所述时间阈值等于所述待机时间,即当所述智能终端运行所述应用程序时,同样适用自动锁屏的待机时间,区别在于当所述应用程序结束运行后才进行锁屏操作,而不是运行时间到达所述时间阈值后执行锁屏操作。In some implementations of the first aspect of the present application, determining whether the running time is greater than a time threshold preset in the smart terminal, the time threshold is a preset non-operation in the smart terminal. The standby time of the automatic lock screen. The preferred embodiment preferably optimizes the time threshold in step S104 of FIG. 1, and the time threshold is the standby time of the automatic lock screen when the erroneous operation is performed. The prior art provides a lock screen mode for automatic lock screen, that is, when the smart terminal is on the desktop, if the external operation is not received for a period of time, the lock screen state is automatically entered, and the standby time is available at the smart terminal. Internal settings, such as 30 seconds, 1 minute, etc. In the embodiment, the time threshold is equal to the standby time, that is, when the smart terminal runs the application, the standby time of the automatic lock screen is also applicable, and the difference is that the lock screen is not executed when the application ends running. The operation, rather than the runtime, reaches the time threshold and performs a lock screen operation.
在本申请第一方面的某些实施方式中,所述锁屏界面接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。本优选实施例对所述解锁操作进行优选,所述解锁操作优选为滑动操作或数字密码输入操作。所述滑动操作须针对所述锁屏界面进行,例如所述锁屏界面上显示一滑块,所述滑块位于一槽状区域的一端,用户须对所述滑块执行一拖曳操作,拖曳至所述槽状区域的另一端,则视为解锁成功。执行所述数字密码输入操作时,所述锁屏界面上显示一组0-9的数字,用户须输 入一组预设的数字密码才能实现解锁。In some embodiments of the first aspect of the present application, when the lock screen interface receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface. The preferred embodiment preferably optimizes the unlocking operation, which is preferably a sliding operation or a digital password input operation. The sliding operation is performed on the lock screen interface, for example, a slider is displayed on the lock screen interface, and the slider is located at one end of a groove-shaped area, and the user must perform a drag operation on the slider, and drag To the other end of the trough-like area, the unlocking is considered successful. When the digital password input operation is performed, a set of 0-9 numbers is displayed on the lock screen interface, and the user must input A set of preset numeric passwords can be unlocked.
参阅图2,为符合本发明一优选实施例中图1中步骤S103的具体流程示意图,步骤S103包括:Referring to FIG. 2, it is a schematic diagram of a specific process in step S103 in FIG. 1 in accordance with a preferred embodiment of the present invention. Step S103 includes:
S103-1:记录所述应用程序开始运行的时间为开始时刻。S103-1: Record the time when the application starts running as the start time.
本步骤记录应用程序开始运行的时间,即首次检测到所述应用程序开始运行的时间。获取所述时间的方式是通过操作系统开放的接口获取系统时间作为开始时刻。This step records the time the application started running, the first time it was detected that the application started running. The way to obtain the time is to obtain the system time as the starting time through the interface open by the operating system.
S103-2:检测所述应用程序的运行状态是否结束。S103-2: Detect whether the running state of the application ends.
本步骤执行过程中须按照一时间周期不断地对所述应用程序的运行状态进行检测,检测的方式是通过任务管理器获取所述应用程序的运行状态,从而获知所述应用程序是否在运行或是结束运行。所述时间周期至多为0.1秒,以便及时发现所述应用程序结束运行。During the execution of the step, the running state of the application is continuously detected according to a time period. The detecting manner is to obtain the running state of the application by using the task manager, so as to know whether the application is running or It is the end of the run. The time period is at most 0.1 seconds in order to discover in time that the application ends running.
S103-3:当所述应用程序的运行状态结束时,记录当前时间为结束时刻。S103-3: When the running state of the application ends, the current time is recorded as the ending time.
当步骤S103-3判断所述应用程序的运行状态结束时,执行本步骤。本步骤记录所述应用程序的运行状态结束的时间为结束时刻,实现方式为通过操作系统开放的接口获取系统时间作为结束时刻。When step S103-3 determines that the running state of the application is over, this step is performed. This step records the end of the running state of the application as the end time. The implementation method is to obtain the system time as the end time through the interface opened by the operating system.
S103-4:将所述结束时刻减去所述开始时刻,得到所述运行时间。S103-4: Subtracting the end time from the start time to obtain the running time.
本步骤执行一计算操作,计算操作的内容为将所述结束时刻减去所述开始时刻,得到所述运行时间。例如所述结束时刻为15点30分,所述开始时刻为15点10分,则两者相减得到的时间差为20分钟,即所述运行时间为20分钟。This step performs a calculation operation, and the content of the calculation operation is to subtract the start time from the end time to obtain the running time. For example, the end time is 15:30, and the start time is 15:10, and the time difference obtained by subtracting the two is 20 minutes, that is, the running time is 20 minutes.
参阅图3,为符合本发明另一优选实施例中用于智能终端的锁屏控制方法的流程示意图,所述锁屏控制方法还包括以下步骤:3 is a schematic flowchart of a lock screen control method for a smart terminal according to another preferred embodiment of the present invention. The lock screen control method further includes the following steps:
S108:当所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,所述桌面启动器显示桌面。S108: When the running time is not greater than the time threshold, the desktop launcher displays the desktop after the application ends running.
当步骤S104’判断所述运行时间不大于所述时间阈值时,执行本步骤。本步骤在所述应用程序结束运行后,通过启动所述桌面启动器显示桌面。本步骤的效果是所述应用程序运行结束后,若运行时间不大于所述时间阈值,则显示桌面,不进入锁屏状态。When step S104' determines that the running time is not greater than the time threshold, this step is performed. This step displays the desktop by launching the desktop launcher after the application finishes running. The effect of this step is that after the application is finished running, if the running time is not greater than the time threshold, the desktop is displayed, and the lock screen state is not entered.
参阅图4,为符合本发明一优选实施例中用于智能终端的锁屏控制装置的结构示意图,所述锁屏控制装置10包括:4 is a schematic structural diagram of a lock screen control apparatus for a smart terminal according to a preferred embodiment of the present invention. The lock screen control apparatus 10 includes:
-设置模块11-Setting module 11
设置模块11,于所述智能终端内设置包括至少一个应用程序的应用程序列表。所述 设置模块11可为用户提供操作界面以便用户选择相应的应用程序进入列表。所述设置模块11一方面可以与所述智能终端的显示模块交互,将提示用户的显示界面进行显示,例如提供一应用程序名称的下拉菜单;另一方面与所述智能终端的输入模块交互,获取用户通过触摸屏、鼠标等输入设备所执行的选择操作。所述设置模块11与所述智能终端的操作系统内的应用程序管理器通过接口交互,获取所有应用程序的名称、存储路径等信息。The setting module 11 is configured to set an application list including at least one application in the smart terminal. Said The setting module 11 can provide an operation interface for the user to select a corresponding application to enter the list. The setting module 11 can interact with the display module of the smart terminal on the one hand, and display the user's display interface, for example, provide a drop-down menu of an application name; on the other hand, interact with the input module of the smart terminal. Obtain a selection operation performed by a user through an input device such as a touch screen or a mouse. The setting module 11 interacts with the application manager in the operating system of the smart terminal through an interface to obtain information such as a name, a storage path, and the like of all applications.
-应用程序判断模块12- Application Judgment Module 12
应用程序判断模块12,与所述设置模块11连接,通过所述任务管理器判断是否有任一所述应用程序列表内的应用程序运行。所述应用程序判断模块12从所述设置模块11获取所述应用程序列表,进而获知所述应用程序列表内的应用程序信息。所述应用程序判断模块12与所述任务管理器通过接口进行访问,获取所述智能终端内各应用程序的运行状态,尤其是正在运行的应用程序信息,并判断正在运行的应用程序是否在所述应用程序列表内。所述应用程序判断模块12按照一时间周期不断地访问所述任务管理器,以便及时获取应用程序的运行状态。The application determining module 12 is connected to the setting module 11, and the task manager determines whether there is any application running in the application list. The application determining module 12 acquires the application list from the setting module 11, and further knows the application information in the application list. The application determining module 12 and the task manager access the interface, obtain the running state of each application in the smart terminal, in particular, the running application information, and determine whether the running application is in the office. Inside the list of applications. The application determining module 12 continuously accesses the task manager according to a time period, so as to acquire the running state of the application in time.
-记录模块13- Recording module 13
记录模块13,与所述应用程序判断模块12连接,当所述应用程序判断模块12判断有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间。所述记录模块从所述应用程序判断模块12获取所述应用程序的运行状态。当所述应用程序判断模块12首次检测到所述应用程序列表内的应用程序进入运行状态时,所述记录模块13记录该时间为开始时刻,并开始计时;当所述应用程序判断模块12检测到所述应用程序列表内的应用程序结束运行状态时,所述记录模块13记录该时间为结束时刻,计算得出所述应用程序的运行时间。所述记录模块13可通过操作系统开放的应用程序接口获取所述开始时刻和结束时刻的两次系统时间,再相减得到所述运行时间。所述记录模块13还可内嵌一计时器程序单元,自所述开始时刻开始计时,至所述结束时刻计时结束,即可得到所述运行时间。The recording module 13 is connected to the application determining module 12, and records the running time of the application when the application determining module 12 determines that an application in any of the application lists is running. The recording module acquires an operating state of the application from the application determining module 12. When the application determining module 12 first detects that the application in the application list enters an running state, the recording module 13 records the time as a starting time and starts timing; when the application determining module 12 detects When the application in the application list ends the running state, the recording module 13 records the time as the ending time, and calculates the running time of the application. The recording module 13 can acquire the two system times of the start time and the end time through an application interface opened by the operating system, and then subtract the obtained running time. The recording module 13 can also be embedded with a timer program unit, and the running time can be obtained by starting the counting from the starting time and ending the counting of the ending time.
-时间判断模块14- Time judgment module 14
时间判断模块14,与所述记录模块13连接,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值。所述判断模块14从所述记录模块13获取所述运行时间,并将所述运行时间与所述时间阈值进行比较判断。The time judging module 14 is connected to the recording module 13 to determine whether the running time is greater than a time threshold preset in the smart terminal. The determining module 14 acquires the running time from the recording module 13 and compares the running time with the time threshold.
-锁屏模块15 -Lock screen module 15
锁屏模块15,与所述时间判断模块14连接,当所述时间判断模块14判断所述运行时间大于所述时间阈值时,所述应用程序结束运行后,所述锁屏模块15通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面。所述锁屏模块15从所述时间判断模块14获取判断结果,即当所述运行时间大于所述时间阈值时,在所述应用程序结束运行之后,所述锁屏模块15执行锁屏操作。所述锁屏模块15通过所述操作系统内的框架层(Framework)控制所述智能终端进入锁屏状态,向所述框架层提供的接口发送锁屏指令。所述智能终端进入所述锁屏状态后,在屏幕上显示一预存的锁屏界面,只接收特定的解锁操作,不接收其他任何操作,以便保护所述智能终端的桌面或其他显示界面不暴露在外部,保护用户的隐私信息。The lock screen module 15 is connected to the time judging module 14, and when the time judging module 14 determines that the running time is greater than the time threshold, after the application ends running, the lock screen module 15 passes the The framework layer of the operating system in the smart terminal controls the smart terminal to enter a lock screen state, and displays a lock screen interface preset in the smart terminal. The lock screen module 15 obtains a determination result from the time judging module 14, that is, when the running time is greater than the time threshold, the lock screen module 15 performs a lock screen operation after the application end operation. The lock screen module 15 controls the smart terminal to enter a lock screen state through a framework layer in the operating system, and sends a lock screen command to an interface provided by the frame layer. After the smart terminal enters the lock screen state, a pre-stored lock screen interface is displayed on the screen, and only a specific unlocking operation is received, and no other operations are received, so as to protect the desktop or other display interface of the smart terminal from being exposed. Externally, protect the user's private information.
-操作接收模块16- Operation receiving module 16
操作接收模块16,与所述锁屏模块15连接,接收所述锁屏界面上一解锁操作。所述操作接收模块16从所述锁屏模块15获取所述锁屏界面的信息,即所述锁屏界面可接收解锁操作的区域。当所述操作接收模块16接收解锁操作时,只有当所述解锁操作发生在所述锁屏界面上可接收解锁操作的区域时才有效。所述操作接收模块16接收的解锁操作可以是滑动式的触摸操作,也可以是根据所述锁屏界面的提示进行的数字密码输入或图形输入。所述滑动式解锁即所述锁屏界面上显示一滑块,所述操作接收模块16检测所述滑块是否被拖曳至目标区域,即可判定是否为解锁操作;所述数字密码输入的解锁操作即所述锁屏界面显示0-9的数字区域,用户对所述数字区域按照密码进行触碰输入,所述操作接收模块16内存储有用户预设的密码;图形输入的解锁操作即接收用户特定轨迹的滑动操作,所述特定轨迹在所述操作接收模块16内预先由用户存储记录。The operation receiving module 16 is connected to the lock screen module 15 to receive an unlocking operation on the lock screen interface. The operation receiving module 16 acquires information of the lock screen interface from the lock screen module 15, that is, the lock screen interface can receive an unlocking operation area. When the operation receiving module 16 receives the unlocking operation, it is valid only when the unlocking operation occurs on the lock screen interface to receive the unlocking operation area. The unlocking operation received by the operation receiving module 16 may be a sliding touch operation, or may be a digital password input or a graphic input according to the prompt of the lock screen interface. The sliding unlocking means that a slider is displayed on the lock screen interface, and the operation receiving module 16 detects whether the slider is dragged to the target area, and can determine whether it is an unlocking operation; unlocking the digital password input The operation means that the lock screen interface displays a digital area of 0-9, and the user touches the digital area according to the password. The operation receiving module 16 stores the password preset by the user; the unlock operation of the graphic input is received. A sliding operation of a user-specific trajectory that is previously stored by the user in the operation receiving module 16.
-解锁模块17- unlock module 17
解锁模块17,与所述操作接收模块16连接,通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。所述解锁模块17从所述操作接收模块16获取解锁操作成功的指令,而后执行解锁操作。所述解锁模块17通过接口向所述框架层发出解锁指令,所述框架层控制所述智能终端进入解锁状态,不再显示所述锁屏界面。解锁后所述解锁模块17通过启动所述桌面启动器(Launcher)显示桌面。The unlocking module 17 is connected to the operation receiving module 16, and controls the smart terminal to enter an unlocking state through the framework layer, and starts a desktop launcher in the smart terminal to display a desktop. The unlocking module 17 acquires an instruction that the unlocking operation is successful from the operation receiving module 16, and then performs an unlocking operation. The unlocking module 17 issues an unlocking instruction to the frame layer through an interface, and the framework layer controls the smart terminal to enter an unlocked state, and the lock screen interface is no longer displayed. After unlocking, the unlocking module 17 displays the desktop by launching the desktop launcher.
在本申请第二方面的某些实施方式中,所述时间判断模块12判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。本优选实施例中,所述时间判断模块12将所述误操作则自动锁屏的待机时间作为时间阈值,以便实现所述应用程序运行后的锁屏判断与正常情况 下的无操作自动锁屏的判断条件近似,让用户感觉两种情况下的自动锁屏判断时间是一样的,保证了用户体验。In some embodiments of the second aspect of the present application, the time determining module 12 determines whether the running time is greater than a time threshold preset in the smart terminal, where the time threshold is in the smart terminal. The preset no operation automatically locks the standby time of the screen. In the preferred embodiment, the time judging module 12 uses the standby time of the automatic lock screen as the time threshold for the erroneous operation, so as to realize the lock screen judgment and the normal situation after the application program runs. The judgment condition of the non-operating automatic lock screen is similar, which makes the user feel that the automatic lock screen judgment time is the same in both cases, and the user experience is guaranteed.
在本申请第二方面的某些实施方式中,所述操作接收模块16接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。本优选实施例对所述操作接收模块16接收的解锁操作进行优选,所述解锁操作优选为滑动操作或数字密码输入操作。In some embodiments of the second aspect of the present application, when the operation receiving module 16 receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface. The preferred embodiment preferably optimizes the unlocking operation received by the operation receiving module 16, and the unlocking operation is preferably a sliding operation or a digital password input operation.
参阅图5,为符合本发明一优选实施例中记录模块的结构示意图,所述记录模块13包括:Referring to FIG. 5, which is a schematic structural diagram of a recording module according to a preferred embodiment of the present invention, the recording module 13 includes:
-开始时刻记录单元131- Start time recording unit 131
开始时刻记录单元131,记录所述应用程序开始运行的时间为开始时刻。所述开始时刻记录单元131获取所述开始时刻的方式是通过操作系统开放的接口获取系统时间作为开始时刻。The start time recording unit 131 records the time at which the application starts running as the start time. The manner in which the start time recording unit 131 acquires the start time is to acquire the system time as the start time through the interface opened by the operating system.
-运行状态检测单元132- operation state detecting unit 132
运行状态检测单元132,与所述开始时刻记录单元131连接,检测所述应用程序的运行状态是否结束。所述开始时刻记录单元131记录所述开始时刻后,所述运行状态检测单元132开始工作,按照一时间周期不断地从所述应用程序检测模块12获取所述应用程序的运行状态,从而获知所述应用程序是否在运行或是结束运行。所述时间周期至多为0.1秒,以便及时发现所述应用程序结束运行。The operation state detecting unit 132 is connected to the start time recording unit 131 to detect whether or not the operating state of the application is completed. After the start time recording unit 131 records the start time, the running state detecting unit 132 starts to work, and continuously acquires the running state of the application program from the application detecting module 12 according to a time period, thereby obtaining the learned state. Whether the application is running or ending. The time period is at most 0.1 seconds in order to discover in time that the application ends running.
-结束时刻记录单元133End time recording unit 133
结束时刻记录单元133,与所述运行状态检测单元132连接,当所述运行状态检测单元132检测到所述应用程序的运行状态结束时,记录当前时间为结束时刻。当所述结束时刻记录单元133从所述运行状态检测单元132获取所述所述应用程序的运行状态结束的消息时,记录所述应用程序的运行状态结束的时间为结束时刻;实现方式为通过操作系统开放的接口获取系统时间作为结束时刻。The end time recording unit 133 is connected to the operation state detecting unit 132, and when the operation state detecting unit 132 detects that the running state of the application is ended, the current time is recorded as the end time. When the end time recording unit 133 acquires the message that the running state of the application is finished from the running state detecting unit 132, the time when the running state of the application is ended is the ending time; the implementation is The open interface of the operating system acquires the system time as the end time.
-计算单元134- calculation unit 134
计算单元134,与所述开始时刻记录单元131和结束时刻记录单元133连接,将所述结束时刻减去所述开始时刻,得到所述运行时间。所述计算单元134从所述开始时刻记录单元131获取所述开始时刻,从所述结束时刻记录单元133获取所述结束时刻,并进行减法运算。The calculation unit 134 is connected to the start time recording unit 131 and the end time recording unit 133, and subtracts the start time from the end time to obtain the running time. The calculation unit 134 acquires the start time from the start time recording unit 131, acquires the end time from the end time recording unit 133, and performs a subtraction operation.
图6为符合本发明另一优选实施例中用于智能终端的锁屏控制装置的结构示意图, 所述锁屏控制装置10还包括:6 is a schematic structural diagram of a lock screen control apparatus for an intelligent terminal according to another preferred embodiment of the present invention, The lock screen control device 10 further includes:
-桌面显示模块18-Desktop display module 18
桌面显示模块18,当所述时间判断模块14判断所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,控制所述桌面启动器显示桌面。所述桌面显示模块18通过启动所述桌面启动器显示桌面。The desktop display module 18, when the time judging module 14 determines that the running time is not greater than the time threshold, after the application ends running, controlling the desktop launcher to display the desktop. The desktop display module 18 displays the desktop by launching the desktop launcher.
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。 It should be noted that the embodiments of the present invention are preferred embodiments, and are not intended to limit the scope of the present invention. Any one skilled in the art may use the above-disclosed technical contents to change or modify the equivalent embodiments. Any modification or equivalent changes and modifications of the above embodiments in accordance with the technical spirit of the present invention are still within the scope of the technical solutions of the present invention.

Claims (10)

  1. 一种用于智能终端的锁屏控制方法,其特征在于,包括以下步骤:A lock screen control method for an intelligent terminal, comprising the steps of:
    于所述智能终端内设置包括至少一个应用程序的应用程序列表;Setting a list of applications including at least one application in the smart terminal;
    通过所述智能终端内的任务管理器判断是否有任一所述应用程序列表内的应用程序运行;Determining, by the task manager in the smart terminal, whether any application in the application list is running;
    当有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间;Recording the running time of the application when there is an application running in any of the application lists;
    判断所述运行时间是否大于一预设于所述智能终端内的时间阈值;Determining whether the running time is greater than a time threshold preset in the smart terminal;
    当所述运行时间大于所述时间阈值时,所述应用程序结束运行后,通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面;When the running time is greater than the time threshold, after the application ends running, the smart terminal controls the smart terminal to enter a lock screen state through the framework layer of the operating system in the smart terminal, and displays a preset to the smart terminal. The lock screen interface inside;
    所述锁屏界面接收一解锁操作;The lock screen interface receives an unlocking operation;
    通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。The smart terminal is controlled to enter an unlocked state by the framework layer, and the desktop launcher in the smart terminal is started to display the desktop.
  2. 如权利要求1所述的锁屏控制方法,其特征在于,A lock screen control method according to claim 1, wherein
    当有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间的步骤包括:When there is an application running in any of the application lists, the steps of recording the runtime of the application include:
    记录所述应用程序开始运行的时间为开始时刻;Recording the time when the application starts running as the start time;
    检测所述应用程序的运行状态是否结束;Detecting whether the running state of the application ends;
    当所述应用程序的运行状态结束时,记录当前时间为结束时刻;When the running state of the application ends, the current time is recorded as the ending time;
    将所述结束时刻减去所述开始时刻,得到所述运行时间。The start time is subtracted from the start time to obtain the run time.
  3. 如权利要求1或2所述的锁屏控制方法,其特征在于,A lock screen control method according to claim 1 or 2, wherein
    判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。When it is determined whether the running time is greater than a time threshold preset in the smart terminal, the time threshold is a standby time of automatically locking the screen after the preset no operation in the smart terminal.
  4. 如权利要求1或2所述的锁屏控制方法,其特征在于,A lock screen control method according to claim 1 or 2, wherein
    判断所述运行时间是否大于一预设于所述智能终端内的时间阈值的步骤之后,所述锁屏控制方法还包括以下步骤:After the step of determining whether the running time is greater than a time threshold preset in the smart terminal, the lock screen control method further includes the following steps:
    当所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,所述桌面启动器显示桌面。 When the running time is not greater than the time threshold, the desktop launcher displays the desktop after the application finishes running.
  5. 如权利要求1或2所述的锁屏控制方法,其特征在于,A lock screen control method according to claim 1 or 2, wherein
    所述锁屏界面接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。When the lock screen interface receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
  6. 一种用于智能终端的锁屏控制装置,其特征在于,包括:A lock screen control device for a smart terminal, comprising:
    设置模块,于所述智能终端内设置包括至少一个应用程序的应用程序列表;Setting a module, and setting an application list including at least one application in the smart terminal;
    应用程序判断模块,与所述设置模块连接,通过所述任务管理器判断是否有任一所述应用程序列表内的应用程序运行;An application determining module, connected to the setting module, and determining, by the task manager, whether an application in any of the application lists is running;
    记录模块,与所述应用程序判断模块连接,当所述应用程序判断模块判断有任一所述应用程序列表内的应用程序运行时,记录所述应用程序的运行时间;a recording module, connected to the application determining module, and when the application determining module determines that an application in any of the application lists is running, recording an running time of the application;
    时间判断模块,与所述记录模块连接,判断所述运行时间是否大于一预设于所述智能终端内的时间阈值;a time judging module, connected to the recording module, determining whether the running time is greater than a time threshold preset in the smart terminal;
    锁屏模块,与所述时间判断模块连接,当所述时间判断模块判断所述运行时间大于所述时间阈值时,所述应用程序结束运行后,所述锁屏模块通过所述智能终端内操作系统的框架层控制所述智能终端进入锁屏状态,显示一预设于所述智能终端内的锁屏界面;a lock screen module, connected to the time judging module, when the time judging module judges that the running time is greater than the time threshold, after the application ends running, the lock screen module operates through the smart terminal The framework layer of the system controls the smart terminal to enter a lock screen state, and displays a lock screen interface preset in the smart terminal;
    操作接收模块,与所述锁屏模块连接,接收所述锁屏界面上一解锁操作;An operation receiving module is connected to the lock screen module to receive an unlocking operation on the lock screen interface;
    解锁模块,与所述操作接收模块连接,通过所述框架层控制所述智能终端进入解锁状态,启动所述智能终端内的桌面启动器显示桌面。The unlocking module is connected to the operation receiving module, and the smart terminal is controlled to enter an unlocking state by the framework layer, and the desktop initiator in the smart terminal is started to display the desktop.
  7. 如权利要求6所述的锁屏控制装置,其特征在于,A lock screen control device according to claim 6, wherein
    所述记录模块包括:The recording module includes:
    开始时刻记录单元,记录所述应用程序开始运行的时间为开始时刻;a start time recording unit that records a time when the application starts to run as a start time;
    运行状态检测单元,与所述开始时刻记录单元连接,检测所述应用程序的运行状态是否结束;An operation state detecting unit connected to the start time recording unit to detect whether an operation state of the application program is ended;
    结束时刻记录单元,与所述运行状态检测单元连接,当所述运行状态检测单元检测到所述应用程序的运行状态结束时,记录当前时间为结束时刻;The end time recording unit is connected to the operation state detecting unit, and when the running state detecting unit detects that the running state of the application ends, the current time is recorded as the ending time;
    计算单元,与所述开始时刻记录单元和结束时刻记录单元连接,将所述结束时刻减去所述开始时刻,得到所述运行时间。The calculation unit is connected to the start time recording unit and the end time recording unit, and subtracts the start time from the end time to obtain the running time.
  8. 如权利要求6或7所述的锁屏控制装置,其特征在于,A lock screen control device according to claim 6 or 7, wherein
    所述时间判断模块判断所述运行时间是否大于一预设于所述智能终端内的时间阈值时,所述时间阈值为所述智能终端内预设的无操作则自动锁屏的待机时间。When the time judging module determines whether the running time is greater than a time threshold preset in the smart terminal, the time threshold is a standby time of automatically locking the screen after the preset no operation in the smart terminal.
  9. 如权利要求6或7所述的锁屏控制装置,其特征在于, A lock screen control device according to claim 6 or 7, wherein
    所述锁屏控制装置还包括:The lock screen control device further includes:
    桌面显示模块,当所述时间判断模块判断所述运行时间不大于所述时间阈值时,所述应用程序结束运行后,控制所述桌面启动器显示桌面。And the desktop display module, when the time judging module determines that the running time is not greater than the time threshold, after the application ends running, controlling the desktop launcher to display the desktop.
  10. 如权利要求6或7所述的锁屏控制装置,其特征在于,A lock screen control device according to claim 6 or 7, wherein
    所述操作接收模块接收一解锁操作时,所述解锁操作可以是针对所述锁屏界面的滑动操作或数字密码输入操作。 When the operation receiving module receives an unlocking operation, the unlocking operation may be a sliding operation or a digital password input operation for the lock screen interface.
PCT/CN2017/101641 2017-09-13 2017-09-13 Screen locking control method and screen locking control apparatus for smart terminal WO2019051691A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/101641 WO2019051691A1 (en) 2017-09-13 2017-09-13 Screen locking control method and screen locking control apparatus for smart terminal
CN201780096753.9A CN111344704B (en) 2017-09-13 2017-09-13 Screen locking control method and screen locking control device for intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/101641 WO2019051691A1 (en) 2017-09-13 2017-09-13 Screen locking control method and screen locking control apparatus for smart terminal

Publications (1)

Publication Number Publication Date
WO2019051691A1 true WO2019051691A1 (en) 2019-03-21

Family

ID=65722375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101641 WO2019051691A1 (en) 2017-09-13 2017-09-13 Screen locking control method and screen locking control apparatus for smart terminal

Country Status (2)

Country Link
CN (1) CN111344704B (en)
WO (1) WO2019051691A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328135A (en) * 2020-11-27 2021-02-05 青岛海信移动通信技术股份有限公司 Mobile terminal and application interface display method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853428A (en) * 2014-03-05 2014-06-11 广州市久邦数码科技有限公司 Screen-locking system loaded with games and implementation method thereof
CN104484227A (en) * 2014-12-24 2015-04-01 中科创达软件股份有限公司 Hardware resource utilization rate management method and hardware resource utilization rate management system
CN106650409A (en) * 2016-12-13 2017-05-10 深圳市金立通信设备有限公司 Terminal control method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019521B (en) * 2012-12-31 2016-01-27 广东欧珀移动通信有限公司 A kind of mobile terminal puts out screen method and device
JP6124678B2 (en) * 2013-05-15 2017-05-10 キヤノン株式会社 Linked display system, display method, program, and terminal device constituting linked display system
CN103793177A (en) * 2014-02-28 2014-05-14 广州视源电子科技股份有限公司 Interface processing method for touch screen device and touch screen device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853428A (en) * 2014-03-05 2014-06-11 广州市久邦数码科技有限公司 Screen-locking system loaded with games and implementation method thereof
CN104484227A (en) * 2014-12-24 2015-04-01 中科创达软件股份有限公司 Hardware resource utilization rate management method and hardware resource utilization rate management system
CN106650409A (en) * 2016-12-13 2017-05-10 深圳市金立通信设备有限公司 Terminal control method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328135A (en) * 2020-11-27 2021-02-05 青岛海信移动通信技术股份有限公司 Mobile terminal and application interface display method thereof

Also Published As

Publication number Publication date
CN111344704A (en) 2020-06-26
CN111344704B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
EP3792797B1 (en) Apparatus amd method for configuring access to applications
US11537408B2 (en) Method for managing application program use time offline, and terminal device
WO2020088167A1 (en) Application activation method, device, terminal and storage medium
US8954736B2 (en) Limiting the functionality of a software program based on a security model
KR102108614B1 (en) Method and apparatus for unlocking user interface
CN102981763B (en) The method running application program under touch screen lock-out state
EP3882800B1 (en) Methods and apparatus to monitor permission-controlled hidden sensitive application behavior at run-time
US20110307831A1 (en) User-Controlled Application Access to Resources
US20140115488A1 (en) Wallpaper assignment for multi-user mobile device
WO2017008676A1 (en) Application authority configuration method and apparatus, and electronic device
CN109726539B (en) Application starting method, device, terminal and storage medium
WO2022089431A1 (en) Device control method and apparatus, and electronic device
GB2508016A (en) Switching a device to a restricted mode
US20180121057A1 (en) Method and device for hiding application icon
WO2017166781A1 (en) Application locking method and apparatus, and electronic device
WO2019051691A1 (en) Screen locking control method and screen locking control apparatus for smart terminal
WO2017101336A1 (en) Switch shortcut controlling method and device
EP3662399B1 (en) Electronic device and control method thereof
CN114175026A (en) Application monitoring method and device, storage medium and electronic equipment
CN106611113A (en) Security environment construction method and apparatus
CN104932927B (en) A kind of application control method and electronic equipment
JPH1063963A (en) Passward managing system and fire preventing system and password managing method
CN112328980A (en) Control method and device for equipment access
CN107329786B (en) Control method and electronic device
US20200311234A1 (en) Electronic device security

Legal Events

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

Ref document number: 17925157

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17925157

Country of ref document: EP

Kind code of ref document: A1