[go: up one dir, main page]

CN106774902B - Application locking method and device - Google Patents

Application locking method and device Download PDF

Info

Publication number
CN106774902B
CN106774902B CN201611179813.7A CN201611179813A CN106774902B CN 106774902 B CN106774902 B CN 106774902B CN 201611179813 A CN201611179813 A CN 201611179813A CN 106774902 B CN106774902 B CN 106774902B
Authority
CN
China
Prior art keywords
user
terminal
application
designated application
walking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611179813.7A
Other languages
Chinese (zh)
Other versions
CN106774902A (en
Inventor
骆艳飞
王乐
张亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611179813.7A priority Critical patent/CN106774902B/en
Publication of CN106774902A publication Critical patent/CN106774902A/en
Application granted granted Critical
Publication of CN106774902B publication Critical patent/CN106774902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2149Restricted operating environment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to an application locking method and device, and belongs to the technical field of electronics. The method comprises the following steps: judging whether a user using the terminal is in a walking state or not; locking the installed at least one designated application to prohibit running of the at least one designated application when the user is in the walking state. After the at least one designated application is locked in the disclosure, the user cannot continue to use the at least one designated application, so that the dispersion of the at least one designated application to the attention of the user in the walking process of the user is avoided, and the safety of the user in the walking process is improved.

Description

应用锁定方法及装置Application locking method and device

技术领域technical field

本公开涉及电子技术领域,尤其涉及一种应用锁定方法及装置。The present disclosure relates to the field of electronic technology, and in particular, to an application locking method and device.

背景技术Background technique

随着电子技术的快速发展,终端已经成为了人们日常生活中必不可少的一部分。终端功能的不断增加和完善,使得终端能够为用户提供越来越多的娱乐性应用,如视频应用、即时通讯应用等。这些应用往往能够为用户带来较高地娱乐体验,从而使得用户总是不自觉地沉迷于这些应用,甚至在行走过程中也总是频繁地使用这些应用。With the rapid development of electronic technology, terminals have become an indispensable part of people's daily life. With the continuous increase and improvement of terminal functions, the terminal can provide users with more and more entertainment applications, such as video applications and instant messaging applications. These applications can often bring high entertainment experience to users, so that users are always addicted to these applications unconsciously, and even frequently use these applications during walking.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种应用锁定方法及装置。To overcome the problems in the related art, the present disclosure provides an application locking method and device.

根据本公开实施例的第一方面,提供一种应用锁定方法,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided an application locking method, the method comprising:

判断正在使用终端的用户是否处于行走状态;Determine whether the user who is using the terminal is in a walking state;

当所述用户处于所述行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行所述至少一个指定应用。When the user is in the walking state, the installed at least one designated application is locked to prohibit running the at least one designated application.

可选地,所述判断正在使用终端的用户是否处于行走状态,包括:Optionally, the judging whether the user who is using the terminal is in a walking state includes:

判断所述用户是否在第一预设时长内持续进行行走;determining whether the user continues to walk within a first preset time period;

当所述用户在所述第一预设时长内持续进行行走时,确定所述用户处于所述行走状态。When the user continues to walk within the first preset time period, it is determined that the user is in the walking state.

可选地,所述判断所述用户是否在第一预设时长内持续进行行走,包括:Optionally, the judging whether the user continues to walk within the first preset time period includes:

当在所述第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定所述用户在所述第一预设时长内持续进行行走,所述目标穿戴设备为所述用户当前所穿戴的设备,所述行走信息为所述目标穿戴设备检测到所述用户正在行走时发送。When the walking information sent by the target wearable device is continuously received within the first preset time period, it is determined that the user continues to walk within the first preset time period, and the target wearable device is the current state of the user. A wearable device, the walking information is sent when the target wearable device detects that the user is walking.

可选地,所述对所安装的至少一个指定应用进行锁定之后,还包括:Optionally, after locking the installed at least one designated application, the method further includes:

判断所述用户是否处于停留状态;Determine whether the user is in a stay state;

当所述用户处于所述停留状态时,对所述至少一个指定应用进行解锁,以允许运行所述至少一个指定应用。When the user is in the staying state, the at least one designated application is unlocked to allow the at least one designated application to be executed.

可选地,所述判断所述用户是否处于停留状态,包括:Optionally, the judging whether the user is in a stay state includes:

判断所述用户是否在第二预设时长内持续进行停留;determining whether the user continues to stay within a second preset time period;

当所述用户在所述第二预设时长内持续进行停留时,确定所述用户处于所述停留状态。When the user continues to stay within the second preset time period, it is determined that the user is in the stay state.

可选地,所述对所安装的至少一个指定应用进行锁定之后,还包括:Optionally, after locking the installed at least one designated application, the method further includes:

对于所述至少一个指定应用中的每个指定应用,当检测到针对所述指定应用的打开操作的操作频率大于预设频率时,显示危险提示信息;For each designated application in the at least one designated application, when it is detected that the operation frequency of the opening operation for the designated application is greater than the preset frequency, display danger prompt information;

当检测到针对所述危险提示信息的确认操作时,对所述指定应用进行解锁,以允许运行所述指定应用。When a confirmation operation for the danger prompt information is detected, the designated application is unlocked to allow the designated application to be run.

可选地,所述当检测到针对所述危险提示信息的确认操作时,对所述指定应用进行解锁,以允许运行所述指定应用,包括:Optionally, when a confirmation operation for the danger prompt information is detected, unlocking the specified application to allow running the specified application, including:

当检测到针对所述危险提示信息的确认操作时,在第三预设时长内对所述指定应用进行解锁,以在所述第三预设时长内允许运行所述指定应用。When a confirmation operation for the danger prompt information is detected, the designated application is unlocked within a third preset time period, so as to allow the designated application to be run within the third preset time period.

根据本公开实施例的第二方面,提供一种应用锁定装置,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided an application locking device, the device comprising:

第一判断模块,用于判断正在使用终端的用户是否处于行走状态;a first judgment module, used for judging whether the user who is using the terminal is in a walking state;

锁定模块,用于当所述用户处于所述行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行所述至少一个指定应用。A locking module, configured to lock the installed at least one designated application when the user is in the walking state, so as to prohibit running the at least one designated application.

可选地,所述第一判断模块包括:Optionally, the first judgment module includes:

第一判断子模块,用于判断所述用户是否在第一预设时长内持续进行行走;a first judging submodule for judging whether the user continues to walk within a first preset duration;

第一确定子模块,用于当所述用户在所述第一预设时长内持续进行行走时,确定所述用户处于所述行走状态。The first determination submodule is configured to determine that the user is in the walking state when the user continues to walk within the first preset time period.

可选地,所述第一判断子模块用于:Optionally, the first judgment submodule is used for:

当在所述第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定所述用户在所述第一预设时长内持续进行行走,所述目标穿戴设备为所述用户当前所穿戴的设备,所述行走信息为所述目标穿戴设备检测到所述用户正在行走时发送。When the walking information sent by the target wearable device is continuously received within the first preset time period, it is determined that the user continues to walk within the first preset time period, and the target wearable device is the current state of the user. A wearable device, the walking information is sent when the target wearable device detects that the user is walking.

可选地,所述装置还包括:Optionally, the device further includes:

第二判断模块,用于判断所述用户是否处于停留状态;a second judging module for judging whether the user is in a stay state;

第一解锁模块,用于当所述用户处于所述停留状态时,对所述至少一个指定应用进行解锁,以允许运行所述至少一个指定应用。The first unlocking module is configured to unlock the at least one designated application when the user is in the staying state, so as to allow the at least one designated application to be run.

可选地,所述第二判断模块包括:Optionally, the second judgment module includes:

第二判断子模块,用于判断所述用户是否在第二预设时长内持续进行停留;a second judging submodule, configured to judge whether the user continues to stay within the second preset time period;

第二确定子模块,用于当所述用户在所述第二预设时长内持续进行停留时,确定所述用户处于所述停留状态。The second determination submodule is configured to determine that the user is in the staying state when the user continues to stay within the second preset time period.

可选地,所述装置还包括:Optionally, the device further includes:

显示模块,用于对于所述至少一个指定应用中的每个指定应用,当检测到针对所述指定应用的打开操作的操作频率大于预设频率时,显示危险提示信息;a display module, configured to display danger prompt information for each designated application in the at least one designated application when it is detected that the operation frequency of the opening operation for the designated application is greater than a preset frequency;

第二解锁模块,用于当检测到针对所述危险提示信息的确认操作时,对所述指定应用进行解锁,以允许运行所述指定应用。The second unlocking module is configured to unlock the specified application when a confirmation operation for the danger prompt information is detected, so as to allow the specified application to be run.

可选地,所述第二解锁模块用于:Optionally, the second unlocking module is used for:

当检测到针对所述危险提示信息的确认操作时,在第三预设时长内对所述指定应用进行解锁,以在所述第三预设时长内允许运行所述指定应用。When a confirmation operation for the danger prompt information is detected, the designated application is unlocked within a third preset time period, so as to allow the designated application to be run within the third preset time period.

根据本公开实施例的第三方面,提供一种应用锁定装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided an application locking device, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

判断正在使用终端的用户是否处于行走状态;Determine whether the user who is using the terminal is in a walking state;

当所述用户处于所述行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行所述至少一个指定应用。When the user is in the walking state, the installed at least one designated application is locked to prohibit running the at least one designated application.

本公开的实施例提供的技术方案可以包括以下有益效果:在本公开实施例中,可以判断正在使用终端的用户是否处于行走状态,当用户处于行走状态时,表明用户需要集中注意力来注意周围环境的变化,则此时终端可以对所安装的至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。该至少一个指定应用被锁定后,用户将不能继续使用该至少一个指定应用,从而避免了该至少一个指定应用在用户行走过程中对用户注意力的分散,提高了用户在行走过程中的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: In the embodiments of the present disclosure, it can be determined whether the user who is using the terminal is in a walking state, and when the user is in a walking state, it indicates that the user needs to concentrate on the surroundings If the environment changes, the terminal may lock the installed at least one designated application at this time, so as to prohibit the running of the at least one designated application. After the at least one designated application is locked, the user cannot continue to use the at least one designated application, thereby avoiding the distraction of the user's attention by the at least one designated application during the walking process, and improving the safety of the user during the walking process .

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的一种应用锁定方法的流程图。Fig. 1 is a flowchart of an application locking method according to an exemplary embodiment.

图2是根据一示例性实施例示出的另一种应用锁定方法的流程图。Fig. 2 is a flowchart showing another application locking method according to an exemplary embodiment.

图3A是根据一示例性实施例示出的第一种应用锁定装置的框图。Fig. 3A is a block diagram of a first application locking device according to an exemplary embodiment.

图3B是根据一示例性实施例示出的一种第一判断模块的框图。Fig. 3B is a block diagram of a first judgment module according to an exemplary embodiment.

图3C是根据一示例性实施例示出的第二种应用锁定装置的框图。Fig. 3C is a block diagram of a second application locking apparatus according to an exemplary embodiment.

图3D是根据一示例性实施例示出的一种第二判断模块的框图。Fig. 3D is a block diagram of a second judgment module according to an exemplary embodiment.

图3E是根据一示例性实施例示出的第三种应用锁定装置的框图。FIG. 3E is a block diagram of a third application locking apparatus according to an exemplary embodiment.

图4是根据一示例性实施例示出的第四种应用锁定装置的框图。Fig. 4 is a block diagram of a fourth application locking apparatus according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.

在对本公开实施例进行详细地解释说明之前,先对本公开实施例的应用场景予以说明。随着终端功能的不断增加和完善,终端已经能够为用户提供越来越多的娱乐性应用,如视频应用、即时通讯应用等。这些应用往往会为用户带来较高地娱乐体验,从而使得用户总是不自觉地沉迷于这些应用,甚至在行走过程中也总是频繁地使用这些应用。然而,用户在行走过程中使用这些应用将会极大地分散用户的注意力,导致用户不能及时注意到周围环境的变化,此时用户将极易发生摔倒、被撞等安全事故,用户的人身安全受到极大威胁,为此,本公开实施例提供了一种应用锁定方法,来提高用户在行走过程中的安全性。Before explaining the embodiments of the present disclosure in detail, the application scenarios of the embodiments of the present disclosure will be described first. With the continuous increase and improvement of terminal functions, the terminal has been able to provide users with more and more entertainment applications, such as video applications and instant messaging applications. These applications often bring high entertainment experience to users, so that users are always addicted to these applications unconsciously, and even frequently use these applications during walking. However, using these applications during walking will greatly distract the user's attention, causing the user to fail to notice changes in the surrounding environment in time. At this time, the user will be prone to safety accidents such as falling and being hit, and the user's personal The security is greatly threatened. Therefore, the embodiments of the present disclosure provide an application locking method to improve the security of the user during walking.

图1是根据一示例性实施例示出的一种应用锁定方法的流程图,该方法用于终端中。如图1所示,该方法包括以下步骤。FIG. 1 is a flow chart of an application locking method according to an exemplary embodiment, and the method is used in a terminal. As shown in Figure 1, the method includes the following steps.

在步骤101中,判断正在使用终端的用户是否处于行走状态。In step 101, it is determined whether the user who is using the terminal is in a walking state.

在步骤102中,当用户处于行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行至少一个指定应用。In step 102, when the user is in a walking state, the installed at least one designated application is locked to prohibit running the at least one designated application.

在本公开实施例中,可以判断正在使用终端的用户是否处于行走状态,当用户处于行走状态时,表明用户需要集中注意力来注意周围环境的变化,则此时终端可以对所安装的至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。该至少一个指定应用被锁定后,用户将不能继续使用该至少一个指定应用,从而避免了该至少一个指定应用在用户行走过程中对用户注意力的分散,提高了用户在行走过程中的安全性。In the embodiment of the present disclosure, it can be determined whether the user who is using the terminal is in a walking state. When the user is in a walking state, it indicates that the user needs to concentrate on paying attention to changes in the surrounding environment. The specified application is locked to prohibit running the at least one specified application. After the at least one designated application is locked, the user cannot continue to use the at least one designated application, thereby avoiding the distraction of the user's attention by the at least one designated application during the walking process, and improving the safety of the user during the walking process .

可选地,判断正在使用终端的用户是否处于行走状态,包括:Optionally, judging whether the user who is using the terminal is in a walking state includes:

判断用户是否在第一预设时长内持续进行行走;Determine whether the user continues to walk within the first preset time period;

当用户在第一预设时长内持续进行行走时,确定用户处于行走状态。When the user continues to walk within the first preset time period, it is determined that the user is in a walking state.

可选地,判断用户是否在第一预设时长内持续进行行走,包括:Optionally, judging whether the user continues to walk within the first preset time period includes:

当在第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定用户在第一预设时长内持续进行行走,目标穿戴设备为用户当前所穿戴的设备,行走信息为目标穿戴设备检测到用户正在行走时发送。When the walking information sent by the target wearable device is continuously received within the first preset duration, it is determined that the user continues to walk within the first preset duration, the target wearable device is the device currently worn by the user, and the walking information is the target wearable device Sent when it is detected that the user is walking.

可选地,对所安装的至少一个指定应用进行锁定之后,还包括:Optionally, after locking the installed at least one specified application, the method further includes:

判断用户是否处于停留状态;Determine whether the user is in a stay state;

当用户处于停留状态时,对至少一个指定应用进行解锁,以允许运行至少一个指定应用。When the user is in the staying state, the at least one designated application is unlocked to allow the at least one designated application to be run.

可选地,判断用户是否处于停留状态,包括:Optionally, judging whether the user is in a stay state, including:

判断用户是否在第二预设时长内持续进行停留;Determine whether the user continues to stay within the second preset time period;

当用户在第二预设时长内持续进行停留时,确定用户处于停留状态。When the user continues to stay within the second preset time period, it is determined that the user is in a stay state.

可选地,对所安装的至少一个指定应用进行锁定之后,还包括:Optionally, after locking the installed at least one specified application, the method further includes:

对于至少一个指定应用中的每个指定应用,当检测到针对指定应用的打开操作的操作频率大于预设频率时,显示危险提示信息;For each designated application in the at least one designated application, when it is detected that the operation frequency of the opening operation for the designated application is greater than the preset frequency, display danger prompt information;

当检测到针对危险提示信息的确认操作时,对指定应用进行解锁,以允许运行指定应用。When a confirmation operation for the dangerous prompt information is detected, the specified application is unlocked to allow the specified application to be run.

可选地,当检测到针对危险提示信息的确认操作时,对指定应用进行解锁,以允许运行指定应用,包括:Optionally, when a confirmation operation for the danger prompt information is detected, the specified application is unlocked to allow running the specified application, including:

当检测到针对危险提示信息的确认操作时,在第三预设时长内对指定应用进行解锁,以在第三预设时长内允许运行指定应用。When a confirmation operation for the danger prompt information is detected, the specified application is unlocked within a third preset time period, so as to allow running of the specified application within the third preset time period.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图2是根据一示例性实施例示出的一种应用锁定方法的流程图,该方法用于终端中。如图2所示,该方法包括以下步骤。Fig. 2 is a flow chart showing an application locking method according to an exemplary embodiment, and the method is used in a terminal. As shown in Figure 2, the method includes the following steps.

在步骤201中,判断正在使用终端的用户是否处于行走状态。In step 201, it is determined whether the user who is using the terminal is in a walking state.

需要说明的是,当用户处于行走状态时,摔倒、被撞等安全事故的发生的可能性较高,用户此时需要集中注意力来注意周围环境的变化。It should be noted that when the user is in a walking state, the possibility of a safety accident such as falling down or being hit is high, and the user needs to concentrate on the changes in the surrounding environment at this time.

其中,判断正在使用终端的用户是否处于行走状态时,可以判断用户是否在第一预设时长内持续进行行走;当用户在第一预设时长内持续进行行走时,确定用户处于行走状态;当用户未在第一预设时长内持续进行行走时,确定用户未处于行走状态。Wherein, when judging whether the user who is using the terminal is in a walking state, it can be determined whether the user continues to walk within the first preset time period; when the user continues to walk within the first preset time period, it is determined that the user is in the walking state; when When the user does not continue to walk within the first preset time period, it is determined that the user is not in a walking state.

需要说明的是,第一预设时长可以预先设置,如第一预设时长可以为2分钟、3分钟等,本公开实施例对此不作限定。It should be noted that the first preset duration may be preset, for example, the first preset duration may be 2 minutes, 3 minutes, etc., which is not limited in this embodiment of the present disclosure.

另外,当用户在第一预设时长内持续进行行走时,表明用户行走时间较长,此时用户周围环境的变化较大,安全隐患存在的可能性较高,因此,此时可以确定用户处于需要集中注意力的行走状态。In addition, when the user continues to walk within the first preset period of time, it indicates that the user has been walking for a long time. At this time, the user's surrounding environment changes greatly, and the possibility of potential safety hazards is high. Therefore, it can be determined that the user is in A walking state that requires concentration.

其中,判断用户是否在第一预设时长内持续进行行走时,可以当在第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定用户在第一预设时长内持续进行行走;当未在第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定用户未在第一预设时长内持续进行行走。Wherein, when judging whether the user continues to walk within the first preset duration, it may be determined that the user continues to walk within the first preset duration when the walking information sent by the target wearable device is continuously received within the first preset duration ; when the walking information sent by the target wearable device is not continuously received within the first preset time period, it is determined that the user does not continue to walk within the first preset time period.

需要说明的是,目标穿戴设备为用户当前所穿戴的设备,且目标穿戴设备能够实时检测用户是否正在行走。其中,目标穿戴设备检测用户是否正在行走的操作可以参考相关技术,本公开实施例对此不进行详细阐述。It should be noted that the target wearable device is the device currently worn by the user, and the target wearable device can detect in real time whether the user is walking. For the operation of the target wearable device to detect whether the user is walking, reference may be made to related technologies, which are not described in detail in this embodiment of the present disclosure.

另外,行走信息为目标穿戴设备检测到用户正在行走时发送,即行走信息可以用于指示用户正在行走。In addition, the walking information is sent when the target wearable device detects that the user is walking, that is, the walking information can be used to indicate that the user is walking.

再者,目标穿戴设备与终端可以通过有线连接或者无线连接进行通信,本公开实施例对此不作限定。Furthermore, the target wearable device and the terminal may communicate through a wired connection or a wireless connection, which is not limited in this embodiment of the present disclosure.

由于当终端在第一预设时长内持续接收到目标穿戴设备发送的行走信息时,表明目标穿戴设备在第一预设时长内均检测到用户正在行走,因此,此时可以确定用户在第一预设时长内持续进行行走。Since when the terminal continues to receive the walking information sent by the target wearable device within the first preset time period, it indicates that the target wearable device has detected that the user is walking within the first preset time period. Therefore, it can be determined that the user is walking in the first preset time period. Continue walking for a preset period of time.

在步骤202中,当用户处于行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。In step 202, when the user is in a walking state, the installed at least one designated application is locked to prohibit the running of the at least one designated application.

需要说明的是,该至少一个指定应用可以为会分散用户较多注意力的应用,如视频应用、即时通讯应用等。且该至少一个指定应用可以预先设置,如可以由终端根据用户操作来进行设置,或者由终端自动进行默认设置等,本公开实施例对此不作限定。It should be noted that the at least one designated application may be an application that will distract the user more attention, such as a video application, an instant messaging application, and the like. And the at least one designated application may be preset, for example, may be set by the terminal according to a user operation, or the terminal may automatically perform a default setting, etc., which is not limited in this embodiment of the present disclosure.

由于在用户处于行走状态时,用户需要集中注意力来注意周围环境的变化,所以此时用户并不适合使用会分散用户较多注意力的该至少一个指定应用。因此,此时为了避免用户对该至少一个指定应用的使用,终端可以将该至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。该至少一个指定应用被锁定后,用户将不能继续使用该至少一个指定应用,从而避免了该至少一个指定应用在用户行走过程中对用户注意力的分散,提高了用户在行走过程中的安全性。Since when the user is in a walking state, the user needs to concentrate attention to pay attention to changes in the surrounding environment, so the user is not suitable for using the at least one designated application that will distract the user more attention at this time. Therefore, in order to prevent the user from using the at least one designated application at this time, the terminal may lock the at least one designated application to prohibit running the at least one designated application. After the at least one designated application is locked, the user cannot continue to use the at least one designated application, thereby avoiding the distraction of the user's attention by the at least one designated application during the walking process, and improving the safety of the user during the walking process .

需要说明的是,对该至少一个指定应用进行锁定的过程在实际应用中还可以表现为关闭正常模式,并开启安全行走模式的过程。该正常模式下终端可以提供所安装的所有应用供用户使用,该安全行走模式下终端只提供所安装的基础应用供用户使用。也即是,开启该安全行走模式后,用户将只能使用终端中所安装的基础应用。It should be noted that the process of locking the at least one designated application may also be a process of turning off the normal mode and turning on the safe walking mode in practical applications. In the normal mode, the terminal can provide all installed applications for the user to use, and in the safe walking mode, the terminal only provides the installed basic applications for the user to use. That is, after the safe walking mode is turned on, the user can only use the basic applications installed in the terminal.

另外,用户可以在终端的设置应用中对该安全行走模式进行设置,如用户可以对该安全行走模式下终端所提供的基础应用进行设置等。In addition, the user can set the safe walking mode in the setting application of the terminal, for example, the user can set the basic application provided by the terminal in the safe walking mode.

再者,基础应用为终端中除该至少一个指定应用之外的应用,且该基础应用可以为会分散用户较少注意力的应用,如电话应用、短信应用、地图应用等。Furthermore, the basic application is an application other than the at least one designated application in the terminal, and the basic application may be an application that distracts the user's attention less, such as a phone application, a short message application, a map application, and the like.

需要说明的是,终端对该至少一个指定应用进行锁定之后,还可以在特定条件下对该至少一个指定应用进行解锁,以便用户可以继续使用该至少一个指定应用,且对该至少一个指定应用进行解锁的操作可以通过如下步骤203-204来实现。It should be noted that, after the terminal locks the at least one designated application, it can also unlock the at least one designated application under certain conditions, so that the user can continue to use the at least one designated application and perform the operation on the at least one designated application. The unlocking operation can be implemented through the following steps 203-204.

在步骤203中,判断用户是否处于停留状态。In step 203, it is determined whether the user is in a stay state.

需要说明的是,当用户处于停留状态时,摔倒、被撞等安全事故的发生的可能性较低,用户此时无需特别集中注意力来注意周围环境的变化。It should be noted that, when the user is in a stay state, the possibility of safety accidents such as falling down and being hit is low, and the user does not need to pay special attention to changes in the surrounding environment at this time.

其中,判断用户是否处于停留状态时,可以判断用户是否在第二预设时长内持续进行停留;当用户在第二预设时长内持续进行停留时,确定用户处于停留状态;当用户未在第二预设时长内持续进行停留时,确定用户未处于停留状态。Wherein, when judging whether the user is in a stay state, it can be determined whether the user continues to stay in the second preset time period; when the user continues to stay in the second preset time period, it is determined that the user is in a stay state; when the user does not stay in the first preset time period 2. When the user continues to stay within the preset time period, it is determined that the user is not in the stay state.

需要说明的是,第二预设时长可以预先设置,如第二预设时长可以为1分钟、2分钟等,本公开实施例对此不作限定。It should be noted that, the second preset duration may be preset, for example, the second preset duration may be 1 minute, 2 minutes, etc., which is not limited in this embodiment of the present disclosure.

另外,当用户在第二预设时长内持续进行停留时,表明用户停留时间较长,此时用户周围环境的变化较小,安全隐患存在的可能性较低,因此,此时可以确定用户处于无需特别集中注意力的停留状态。In addition, when the user continues to stay within the second preset time period, it indicates that the user stays for a long time, the changes in the surrounding environment of the user are small, and the possibility of potential safety hazards is low. Therefore, it can be determined that the user is in A stay state that does not require special concentration.

其中,判断用户是否在第二预设时长内持续进行停留时,可以当在第二预设时长内未接收到目标穿戴设备发送的行走信息时,确定用户在第二预设时长内持续进行停留;当在第二预设时长内接收到目标穿戴设备发送的行走信息时,确定用户未在第二预设时长内持续进行停留。Wherein, when judging whether the user continues to stay within the second preset duration, it may be determined that the user continues to stay within the second preset duration when no walking information sent by the target wearable device is received within the second preset duration ; when the walking information sent by the target wearable device is received within the second preset time period, it is determined that the user does not continue to stay within the second preset time period.

由于当终端在第二预设时长内未接收到目标穿戴设备发送的行走信息时,表明目标穿戴设备在第二预设时长内均未检测到用户正在行走,因此,此时可以确定用户在第二预设时长内持续进行停留。Since when the terminal does not receive the walking information sent by the target wearable device within the second preset time period, it indicates that the target wearable device has not detected that the user is walking within the second preset time period. Therefore, at this time, it can be determined that the user is walking in the first 2. Continue to stay for a preset time period.

在步骤204中,当用户处于停留状态时,对该至少一个指定应用进行解锁,以允许运行该至少一个指定应用。In step 204, when the user is in the staying state, the at least one designated application is unlocked to allow the at least one designated application to be run.

由于在用户处于停留状态时,用户无需特别集中注意力来注意周围环境的变化,所以此时用户适合使用该至少一个指定应用。因此,此时终端可以对该至少一个指定应用进行解锁,以允许运行该至少一个指定应用。该至少一个指定应用被解锁后,用户将能够继续使用该至少一个指定应用来得到正常的娱乐体验。Since the user does not need to pay special attention to changes in the surrounding environment when the user is in the staying state, it is suitable for the user to use the at least one designated application at this time. Therefore, at this time, the terminal can unlock the at least one designated application to allow running the at least one designated application. After the at least one designated application is unlocked, the user will be able to continue to use the at least one designated application to obtain a normal entertainment experience.

需要说明的是,对该至少一个指定应用进行解锁的过程在实际应用中还可以表现为关闭安全行走模式,并开启正常模式的过程。在开启正常模式后,用户将能够使用终端所安装的所有应用。It should be noted that the process of unlocking the at least one designated application may also be a process of turning off the safe walking mode and turning on the normal mode in practical applications. After turning on the normal mode, the user will be able to use all applications installed on the terminal.

需要说明的是,终端对该至少一个指定应用进行锁定之后,不仅可以通过上述步骤203-204来对该至少一个指定应用进行解锁,当然,也可以通过其它方式来对该至少一个指定应用进行解锁,如可以通过如下步骤(1)-(2)来对该至少一个指定应用进行解锁。It should be noted that, after the terminal locks the at least one designated application, not only can the at least one designated application be unlocked through the above steps 203-204, of course, the at least one designated application can also be unlocked in other ways , for example, the at least one designated application can be unlocked through the following steps (1)-(2).

(1)、对于该至少一个指定应用中的每个指定应用,当检测到针对该指定应用的打开操作的操作频率大于预设频率时,显示危险提示信息。(1) For each designated application in the at least one designated application, when it is detected that the operation frequency of the opening operation for the designated application is greater than the preset frequency, display danger prompt information.

需要说明的是,打开操作为用于打开该指定应用的操作,如该打开操作可以为用户对终端屏幕上显示的该指定应用的图标的单击操作、双击操作等。It should be noted that the opening operation is an operation for opening the designated application, for example, the opening operation may be a user's single-click operation or double-click operation on the icon of the designated application displayed on the terminal screen.

另外,预设频率可以进行预先设置,本公开实施例对此不作限定。In addition, the preset frequency may be preset, which is not limited in this embodiment of the present disclosure.

再者,危险提示信息用于提示用户在行走过程中使用该指定应用的危险性。Furthermore, the danger prompt information is used to remind the user of the danger of using the specified application during walking.

由于当针对该指定应用的打开操作的操作频率大于预设频率时,表明用户迫切需要打开该指定应用,因此,此时可以显示危险提示信息,以提示用户在行走过程中使用该指定应用的危险性,在此基础上,如果后续用户还是想要使用该指定应用,则可以对该指定应用进行解锁,以满足用户对该指定应用的迫切需求。Because when the operation frequency of the opening operation for the designated application is greater than the preset frequency, it indicates that the user urgently needs to open the designated application. Therefore, at this time, danger prompt information can be displayed to remind the user of the danger of using the designated application during walking. On this basis, if the subsequent user still wants to use the designated application, the designated application can be unlocked to meet the urgent needs of the user for the designated application.

(2)、当检测到针对危险提示信息的确认操作时,对该指定应用进行解锁,以允许运行该指定应用。(2) When a confirmation operation for the danger prompt information is detected, unlock the designated application to allow running the designated application.

需要说明的是,确认操作为用于确认危险提示信息的操作,如确认操作可以为用户对该危险提示信息的单击操作、双击操作等。It should be noted that the confirmation operation is an operation for confirming the danger prompt information, for example, the confirmation operation may be a single-click operation or a double-click operation of the user on the danger prompt information.

当检测到针对危险提示信息的确认操作时,表明用户已经获知在行走过程中使用该指定应用的危险性,且依旧想要打开该指定应用,则此时终端可以对该指定应用进行解锁,以允许运行该指定应用。该指定应用被解锁后,用户就可以使用该指定应用,从而满足了用户对该指定应用的迫切需求。When the confirmation operation for the danger prompt information is detected, it indicates that the user has been informed of the danger of using the designated application during walking, and still wants to open the designated application. At this time, the terminal can unlock the designated application to Allows the specified application to run. After the designated application is unlocked, the user can use the designated application, thereby satisfying the user's urgent demand for the designated application.

由于用户在行走过程中使用该指定应用的危险性较高,因此,为了最大限度地保障用户的人身安全,当检测到针对危险提示信息的确认操作时,对该指定应用进行解锁时,可以仅对该指定应用解锁一定时间,在一定时间后,再重新对该指定应用进行锁定,以提高用户在行走过程中的安全性。也即是,当检测到针对危险提示信息的确认操作时,可以在第三预设时长内对该指定应用进行解锁,以仅在第三预设时长内允许运行该指定应用。Since it is highly dangerous for the user to use the designated application during walking, in order to maximize the safety of the user, when the confirmation operation for the danger prompt information is detected, when the designated application is unlocked, only The designated application is unlocked for a certain period of time, and after a certain period of time, the designated application is re-locked, so as to improve the safety of the user during walking. That is, when a confirmation operation for the danger prompt information is detected, the designated application may be unlocked within a third preset time period to allow running the designated application only within the third preset time period.

需要说明的是,第三预设时长可以进行预先设置,如第三预设时长可以为4分钟、5分钟等,本公开实施例对此不作限定。It should be noted that the third preset duration may be preset, for example, the third preset duration may be 4 minutes, 5 minutes, etc., which is not limited in this embodiment of the present disclosure.

在本公开实施例中,可以判断正在使用终端的用户是否处于行走状态,当用户处于行走状态时,表明用户需要集中注意力来注意周围环境的变化,则此时终端可以对所安装的至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。该至少一个指定应用被锁定后,用户将不能继续使用该至少一个指定应用,从而避免了该至少一个指定应用在用户行走过程中对用户注意力的分散,提高了用户在行走过程中的安全性。且本公开实施例中还可以在对该至少一个指定应用进行锁定之后,判断用户是否处于停留状态,当用户处于停留状态时,表明用户无需特别集中注意力来注意周围环境的变化,则此时终端可以对该至少一个指定应用进行解锁,以允许运行该至少一个指定应用。该至少一个指定应用被解锁后,用户将能够继续使用该至少一个指定应用来得到正常的娱乐体验。In the embodiment of the present disclosure, it can be determined whether the user who is using the terminal is in a walking state. When the user is in a walking state, it indicates that the user needs to concentrate on paying attention to changes in the surrounding environment. The specified application is locked to prohibit running the at least one specified application. After the at least one designated application is locked, the user cannot continue to use the at least one designated application, thereby avoiding the distraction of the user's attention by the at least one designated application during the walking process, and improving the safety of the user during the walking process . Moreover, in the embodiment of the present disclosure, after locking the at least one designated application, it is also possible to determine whether the user is in a stay state. When the user is in a stay state, it indicates that the user does not need to pay special attention to changes in the surrounding environment, then The terminal may unlock the at least one designated application to allow running the at least one designated application. After the at least one designated application is unlocked, the user will be able to continue to use the at least one designated application to obtain a normal entertainment experience.

图3A是根据一示例性实施例示出的一种应用锁定装置的框图。参照图3A,该装置包括第一判断模块301和锁定模块302。Fig. 3A is a block diagram of an application locking device according to an exemplary embodiment. Referring to FIG. 3A , the apparatus includes a first judgment module 301 and a locking module 302 .

第一判断模块301,用于判断正在使用终端的用户是否处于行走状态;The first judgment module 301 is used for judging whether the user who is using the terminal is in a walking state;

锁定模块302,用于当用户处于行走状态时,对所安装的至少一个指定应用进行锁定,以禁止运行至少一个指定应用。The locking module 302 is configured to lock the installed at least one designated application when the user is in a walking state, so as to prohibit running the at least one designated application.

可选地,参照图3B,该第一判断模块301包括:Optionally, referring to FIG. 3B , the first judgment module 301 includes:

第一判断子模块3011,用于判断用户是否在第一预设时长内持续进行行走;The first judgment sub-module 3011 is used for judging whether the user continues to walk within the first preset duration;

第一确定子模块3012,用于当用户在第一预设时长内持续进行行走时,确定用户处于行走状态。The first determination sub-module 3012 is configured to determine that the user is in a walking state when the user continues to walk within the first preset time period.

可选地,该第一判断子模块3011用于:Optionally, the first judgment submodule 3011 is used for:

当在第一预设时长内持续接收到目标穿戴设备发送的行走信息时,确定用户在第一预设时长内持续进行行走,目标穿戴设备为用户当前所穿戴的设备,行走信息为目标穿戴设备检测到用户正在行走时发送。When the walking information sent by the target wearable device is continuously received within the first preset duration, it is determined that the user continues to walk within the first preset duration, the target wearable device is the device currently worn by the user, and the walking information is the target wearable device Sent when it is detected that the user is walking.

可选地,参照图3C,该装置还包括:Optionally, referring to FIG. 3C, the apparatus further includes:

第二判断模块303,用于判断用户是否处于停留状态;The second judging module 303 is used for judging whether the user is in a stay state;

第一解锁模块304,用于当用户处于停留状态时,对至少一个指定应用进行解锁,以允许运行至少一个指定应用。The first unlocking module 304 is configured to unlock at least one designated application when the user is in a stay state, so as to allow the at least one designated application to be run.

可选地,参照图3D,该第二判断模块303包括:Optionally, referring to FIG. 3D, the second judgment module 303 includes:

第二判断子模块3031,用于判断用户是否在第二预设时长内持续进行停留;The second judgment sub-module 3031 is used to judge whether the user continues to stay within the second preset time period;

第二确定子模块3032,用于当用户在第二预设时长内持续进行停留时,确定用户处于停留状态。The second determination sub-module 3032 is configured to determine that the user is in a staying state when the user continues to stay within the second preset time period.

可选地,参照图3E,该装置还包括:Optionally, referring to FIG. 3E, the apparatus further includes:

显示模块305,用于对于至少一个指定应用中的每个指定应用,当检测到针对指定应用的打开操作的操作频率大于预设频率时,显示危险提示信息;The display module 305 is configured to, for each designated application in the at least one designated application, display danger prompt information when it is detected that the operation frequency of the opening operation for the designated application is greater than the preset frequency;

第二解锁模块306,用于当检测到针对危险提示信息的确认操作时,对指定应用进行解锁,以允许运行指定应用。The second unlocking module 306 is configured to unlock the specified application when a confirmation operation for the danger prompt information is detected, so as to allow the specified application to be run.

可选地,该第二解锁模块306用于:Optionally, the second unlocking module 306 is used for:

当检测到针对危险提示信息的确认操作时,在第三预设时长内对指定应用进行解锁,以在第三预设时长内允许运行指定应用。When a confirmation operation for the danger prompt information is detected, the specified application is unlocked within a third preset time period, so as to allow running of the specified application within the third preset time period.

在本公开实施例中,可以判断正在使用终端的用户是否处于行走状态,当用户处于行走状态时,表明用户需要集中注意力来注意周围环境的变化,则此时终端可以对所安装的至少一个指定应用进行锁定,以禁止运行该至少一个指定应用。该至少一个指定应用被锁定后,用户将不能继续使用该至少一个指定应用,从而避免了该至少一个指定应用在用户行走过程中对用户注意力的分散,提高了用户在行走过程中的安全性。In the embodiment of the present disclosure, it can be determined whether the user who is using the terminal is in a walking state. When the user is in a walking state, it indicates that the user needs to concentrate on paying attention to changes in the surrounding environment. The specified application is locked to prohibit running the at least one specified application. After the at least one designated application is locked, the user cannot continue to use the at least one designated application, thereby avoiding the distraction of the user's attention by the at least one designated application during the walking process, and improving the safety of the user during the walking process .

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图4是根据一示例性实施例示出的一种应用锁定装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 4 is a block diagram of an application locking apparatus 400 according to an exemplary embodiment. For example, apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。4, the apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and communication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations at device 400 . Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and the like. Memory 404 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为装置400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为装置400生成、管理和分配电源相关联的组件。Power supply assembly 406 provides power to the various components of device 400 . Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 400 .

多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 408 includes screens that provide an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, multimedia component 408 includes a front-facing camera and/or a rear-facing camera. When the apparatus 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。Audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when device 400 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 404 or transmitted via communication component 416 . In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of device 400 . For example, the sensor assembly 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect a change in the position of the device 400 or a component of the device 400 , the presence or absence of user contact with the device 400 , the orientation or acceleration/deceleration of the device 400 and the temperature change of the device 400 . Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件416被配置为便于装置400和其他设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 416 is configured to facilitate wired or wireless communication between apparatus 400 and other devices. Device 400 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 404 including instructions, executable by the processor 420 of the apparatus 400 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由终端的处理器执行时,使得终端能够执行上述图1实施例所示的应用锁定方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the terminal, the terminal can execute the application locking method shown in the above embodiment in FIG. 1 .

Claims (9)

1. An application locking method, characterized in that the method comprises:
judging whether a user using the terminal is in a walking state or not;
when the user is in the walking state, closing a normal mode of the terminal, and opening a safe walking mode of the terminal, wherein in the normal mode, the terminal provides all installed applications for the user to use, and in the safe walking mode, the terminal provides installed basic applications for the user to use, and the basic applications are applications except at least one specified application;
after the normal mode of the terminal is closed and the safe walking mode of the terminal is opened, the method further comprises the following steps:
for each designated application in the at least one designated application, displaying danger prompt information when the operation frequency of the opening operation for the designated application is detected to be greater than a preset frequency; and when the confirmation operation aiming at the danger prompt information is detected, unlocking the specified application so as to allow the specified application to run within a third preset time length.
2. The method of claim 1, wherein the determining whether the user using the terminal is in a walking state comprises:
judging whether the user continuously walks within a first preset time length or not;
and when the user continuously walks within the first preset time, determining that the user is in the walking state.
3. The method of claim 1, wherein after the turning off the normal mode of the terminal and turning on the safe walking mode of the terminal, further comprising:
judging whether the user is in a staying state or not;
when the user is in the stay state, unlocking the at least one designated application to allow the at least one designated application to run.
4. The method of claim 3, wherein said determining whether the user is in a stay state comprises:
judging whether the user stays continuously within a second preset time length or not;
and when the user stays continuously within the second preset time, determining that the user stays in the staying state.
5. An application locking device, characterized in that the device comprises:
the first judgment module is used for judging whether a user using the terminal is in a walking state or not;
a locking module, configured to close a normal mode of the terminal and open a safe walking mode of the terminal when the user is in the walking state, where in the normal mode, the terminal provides all installed applications for the user to use, and in the safe walking mode, the terminal provides installed basic applications for the user to use, where the basic applications are applications other than at least one specified application;
the apparatus also includes means for:
for each designated application in the at least one designated application, displaying danger prompt information when the operation frequency of the opening operation for the designated application is detected to be greater than a preset frequency;
and when the confirmation operation aiming at the danger prompt information is detected, unlocking the specified application so as to allow the specified application to run within a third preset time length.
6. The apparatus of claim 5, wherein the first determining module comprises:
the first judgment submodule is used for judging whether the user continuously walks within a first preset time length;
the first determining submodule is used for determining that the user is in the walking state when the user continuously walks within the first preset time length.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the second judgment module is used for judging whether the user is in a staying state or not;
and the first unlocking module is used for unlocking the at least one designated application when the user is in the stay state so as to allow the at least one designated application to run.
8. The apparatus of claim 5, wherein the second determination module comprises:
the second judgment submodule is used for judging whether the user stays continuously within a second preset time length;
and the second determining submodule is used for determining that the user is in the staying state when the user stays continuously within the second preset time length.
9. An application locking device, characterized in that the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
judging whether a user using the terminal is in a walking state or not;
when the user is in the walking state, closing a normal mode of the terminal, and opening a safe walking mode of the terminal, wherein in the normal mode, the terminal provides all installed applications for the user to use, and in the safe walking mode, the terminal provides installed basic applications for the user to use, and the basic applications are applications except at least one specified application;
after the normal mode of the terminal is closed and the safe walking mode of the terminal is opened, the method further comprises the following steps:
for each designated application in the at least one designated application, displaying danger prompt information when the operation frequency of the opening operation for the designated application is detected to be greater than a preset frequency; and when the confirmation operation aiming at the danger prompt information is detected, unlocking the specified application so as to allow the specified application to run within a third preset time length.
CN201611179813.7A 2016-12-19 2016-12-19 Application locking method and device Active CN106774902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611179813.7A CN106774902B (en) 2016-12-19 2016-12-19 Application locking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611179813.7A CN106774902B (en) 2016-12-19 2016-12-19 Application locking method and device

Publications (2)

Publication Number Publication Date
CN106774902A CN106774902A (en) 2017-05-31
CN106774902B true CN106774902B (en) 2020-06-19

Family

ID=58890682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611179813.7A Active CN106774902B (en) 2016-12-19 2016-12-19 Application locking method and device

Country Status (1)

Country Link
CN (1) CN106774902B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368175B (en) * 2017-07-03 2023-07-04 北京小米移动软件有限公司 Processing method and device for reducing terminal power consumption and terminal
CN107748679A (en) * 2017-09-28 2018-03-02 努比亚技术有限公司 A kind of run-limiting method, terminal and computer-readable recording medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461021A (en) * 2014-12-29 2015-03-25 北京尚德智产投资管理有限公司 Mobile terminal and control method thereof
CN104486509A (en) * 2014-12-29 2015-04-01 北京尚德智产投资管理有限公司 Mobile terminal and control method thereof
CN105426179A (en) * 2015-11-05 2016-03-23 深圳市金立通信设备有限公司 Application program control method and terminal
CN105739696A (en) * 2016-01-28 2016-07-06 东莞酷派软件技术有限公司 Application program management method and device as well as mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290433B2 (en) * 2007-11-14 2012-10-16 Blaze Mobile, Inc. Method and system for securing transactions made through a mobile communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461021A (en) * 2014-12-29 2015-03-25 北京尚德智产投资管理有限公司 Mobile terminal and control method thereof
CN104486509A (en) * 2014-12-29 2015-04-01 北京尚德智产投资管理有限公司 Mobile terminal and control method thereof
CN105426179A (en) * 2015-11-05 2016-03-23 深圳市金立通信设备有限公司 Application program control method and terminal
CN105739696A (en) * 2016-01-28 2016-07-06 东莞酷派软件技术有限公司 Application program management method and device as well as mobile terminal

Also Published As

Publication number Publication date
CN106774902A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10706173B2 (en) Method and device for displaying notification information
CN109557999B (en) Bright screen control method and device and storage medium
US10129044B2 (en) Method and apparatus for controlling smart device
US10610152B2 (en) Sleep state detection method, apparatus and system
CN105975828B (en) Unlocking method and device
CN106775298A (en) The processing method and processing device of sectional drawing
WO2015180384A1 (en) Method and device for processing child mode
EP3016048B1 (en) Method and device for displaying a reminder based on geographic criteria
CN105975633A (en) Motion track obtaining method and device
CN106357934B (en) Screen locking control method and device
CN105868709B (en) Method and device for closing fingerprint identification function
CN106485813A (en) Car's door controlling method and apparatus
CN105869348A (en) Alarming method, alarming device and monitoring equipment
CN105678133A (en) Terminal unlocking method and device
CN108737395A (en) Access method, apparatus, storage medium and the camera of camera
CN106709304A (en) Terminal equipment control method and device
CN106888309A (en) The fingerprint recognition reminding method and device of video terminal
CN106774902B (en) Application locking method and device
CN106611112A (en) Application program safe processing method, device and equipment
CN106550012B (en) Monitoring method of intelligent equipment and intelligent equipment
CN106912090A (en) New information reminding method and equipment
CN106060237A (en) Screen unlocking method, device and apparatus
CN106128415B (en) Screen luminance adjustment method and device
CN106570381B (en) Fingerprint unlocking method and device
CN107945341A (en) Intelligent door lock control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant