CN104714641B - Application program plus unlocking method and device - Google Patents
Application program plus unlocking method and device Download PDFInfo
- Publication number
- CN104714641B CN104714641B CN201510073578.4A CN201510073578A CN104714641B CN 104714641 B CN104714641 B CN 104714641B CN 201510073578 A CN201510073578 A CN 201510073578A CN 104714641 B CN104714641 B CN 104714641B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- screen
- application program
- unlocking
- foreground
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明属于移动终端技术领域,尤其涉及应用程序的加解锁方法及装置。The invention belongs to the technical field of mobile terminals, in particular to a method and device for unlocking and unlocking application programs.
背景技术Background technique
现有智能手机的功能越来越强大,除了方便用户与他人沟通外,还可以随时随地地拍照、进行会议记录等。相应地,智能手机上所存储的用户隐私也越来越多,比如照片、通话记录、聊天记录、卡的账号及密码等。然而,在日常的社交生活中,当用户将手机借给其他人使用时,他人很容易由于误操作而查看到用户的个人隐私,导致用户个人隐私的泄露,给用户带来极大的不便。Existing smartphones have more and more powerful functions. In addition to facilitating communication with others, users can also take pictures anytime, anywhere, and record meetings. Correspondingly, more and more user privacy is stored on smart phones, such as photos, call records, chat records, card account numbers and passwords, etc. However, in daily social life, when a user lends the mobile phone to other people, it is easy for others to check the user's personal privacy due to misoperation, resulting in the leakage of the user's personal privacy and bringing great inconvenience to the user.
现有技术提供了两种避免误操作保护隐私的方式:一种为设置智能手机的“访客模式”,然而这种方式需要用户在把手机递给他人时临时手动设置移动终端的“访客模式”,容易使得双方陷入尴尬的境地;另外一种为基于Android5.0设计的“屏幕固定”,这种方式操作过程繁琐,且容易被破解。综上所述,现有的避免误操作来保护移动终端用户隐私的方式存在操作繁琐的问题。The existing technology provides two ways to avoid misuse and protect privacy: one is to set the "guest mode" of the smart phone, but this way requires the user to temporarily manually set the "guest mode" of the mobile terminal when handing the phone to others , which can easily put both parties in an awkward situation; the other is a "screen fixation" designed based on Android 5.0, which is cumbersome to operate and easy to crack. To sum up, the existing methods for protecting the privacy of mobile terminal users by avoiding misoperations have the problem of cumbersome operations.
发明内容Contents of the invention
鉴于此,本发明实施例提供一种应用程序的加解锁方法及装置,以实现通过摇晃移动终端来锁定或解锁移动终端的屏幕为前台运行的应用程序,操作过程简便。In view of this, the embodiments of the present invention provide a method and device for adding and unlocking an application, so as to lock or unlock the screen of the mobile terminal by shaking the mobile terminal to an application running in the foreground, and the operation process is simple.
第一方面,一种应用程序的加解锁方法,所述方法包括:In the first aspect, a method for adding and unlocking an application program, the method includes:
当移动终端运行应用程序时,获取所述移动终端的第一运动信息;When the mobile terminal runs the application program, acquire the first movement information of the mobile terminal;
在所述第一运动信息满足第一预设条件时,锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序;When the first motion information satisfies a first preset condition, lock the screen of the mobile terminal as an application currently running in the foreground;
在锁定屏幕为当前处于前台运行状态的应用程序后,获取所述移动终端的第二运动信息;After locking the screen as the application program currently running in the foreground, acquiring the second motion information of the mobile terminal;
在所述第二运动信息满足第二预设条件时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。When the second motion information satisfies a second preset condition, unlocking the screen of the mobile terminal as an application currently running in the foreground.
进一步地,所述锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序包括:Further, the locking the screen of the mobile terminal as an application currently running in the foreground includes:
判断用户输入的操作指令是否为预设的操作指令;Judging whether the operation instruction input by the user is a preset operation instruction;
若是,则将所述操作指令传递到所述应用程序,并执行相应的操作;If yes, the operation instruction is delivered to the application program, and a corresponding operation is performed;
若否,屏蔽所述操作指令。If not, shield the operation instruction.
进一步地,所述解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序具体包括:Further, the unlocking the screen of the mobile terminal as an application currently running in the foreground specifically includes:
加载解锁界面,获取用户在所述解锁界面上输入的解锁密码;Loading the unlocking interface, and obtaining the unlocking password input by the user on the unlocking interface;
验证所述解锁密码是否为预设密码;Verifying whether the unlocking password is a preset password;
在所述解锁密码为预设密码时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。When the unlocking password is a preset password, unlocking the screen of the mobile terminal is an application currently running in the foreground.
进一步地,所述第一运动信息或第二运动信息包括所述移动终端的运动速度、加速度以及方向。Further, the first movement information or the second movement information includes the movement speed, acceleration and direction of the mobile terminal.
进一步地,所述预设的操作指令包括熄屏指令和处于前台运行状态的应用程序的运行指令。Further, the preset operation instructions include an instruction to turn off the screen and an instruction to run an application in the foreground.
第二方面,一种应用程序的加解锁装置,所述装置包括:In a second aspect, a device for adding and unlocking an application program includes:
第一获取模块,用于当移动终端运行应用程序时,获取所述移动终端的第一运动信息;The first acquisition module is used to acquire the first movement information of the mobile terminal when the mobile terminal runs the application program;
锁定模块,用于在所述第一运动信息满足第一预设条件时,锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序;A locking module, configured to lock the screen of the mobile terminal as an application that is currently running in the foreground when the first movement information satisfies a first preset condition;
第二获取模块,用于在锁定屏幕为当前处于前台运行状态的应用程序后,获取所述移动终端的第二运动信息;The second obtaining module is used to obtain the second motion information of the mobile terminal after the lock screen is an application program currently running in the foreground;
解锁模块,用于在所述第二运动信息满足第二预设条件时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。An unlocking module, configured to unlock the screen of the mobile terminal as an application currently running in the foreground when the second movement information satisfies a second preset condition.
进一步地,所述锁定模块具体包括:Further, the locking module specifically includes:
判断单元,用于在锁定移动终端的屏幕为当前处于前台运行的应用程序后,判断用户输入的操作指令是否为预设的操作指令;The judging unit is used to judge whether the operation instruction input by the user is a preset operation instruction after locking the screen of the mobile terminal as the application program currently running in the foreground;
执行单元,用于在判断单元的判断结果为是时,将所述操作指令传递到所述应用程序,并执行相应的操作;an execution unit, configured to deliver the operation instruction to the application program and execute a corresponding operation when the judgment result of the judging unit is yes;
屏蔽单元,用于在判断单元的判断结果为否时,屏蔽所述操作指令。The shielding unit is configured to shield the operation instruction when the judging result of the judging unit is negative.
进一步地,所述解锁模块具体包括:Further, the unlocking module specifically includes:
获取单元,用于加载解锁界面,获取用户在所述解锁界面上输入的解锁密码;an acquisition unit, configured to load an unlock interface, and acquire an unlock password input by a user on the unlock interface;
验证单元,用于验证所述解锁密码是否为预设密码;a verification unit, configured to verify whether the unlocking password is a preset password;
解锁单元,用于在所述解锁密码为预设密码时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。The unlocking unit is configured to unlock the screen of the mobile terminal as an application currently running in the foreground when the unlock password is a preset password.
进一步地,所述第一运动信息或第二运动信息包括所述移动终端的运动速度、加速度以及方向。Further, the first movement information or the second movement information includes the movement speed, acceleration and direction of the mobile terminal.
进一步地,所述预设的操作指令包括熄屏指令和处于前台运行状态的应用程序的运行指令。Further, the preset operation instructions include an instruction to turn off the screen and an instruction to run an application in the foreground.
与现有技术相比,本发明实施例在移动终端运行应用程序的过程中增加了对移动终端的运动状态的检测,在所获取的第一运动信息满足第一预设条件时,锁定移动终端的屏幕为当前处于前台运行状态的应用程序;而在锁定屏幕为当前处于前台运行状态的应用程序后,继续检测并获取移动终端的第二运动信息;在所述第二运动信息满足第二预设条件时,则解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序;从而实现了摇晃移动终端来锁定或解锁前台运行的应用程序,避免了不法使用者有意或者无意地对移动终端的不良操作,有效地保护了用户的个人隐私,且解决了现有保护移动终端隐私方式存在的操作繁琐的问题。Compared with the prior art, the embodiment of the present invention increases the detection of the motion state of the mobile terminal during the process of running the application program on the mobile terminal, and locks the mobile terminal when the acquired first motion information satisfies the first preset condition The screen on the screen is an application program currently running in the foreground; after the lock screen is an application program currently running in the foreground, continue to detect and acquire the second motion information of the mobile terminal; when the second motion information meets the second preset When the condition is set, the screen of the mobile terminal is unlocked to be the application program currently running in the foreground; thereby realizing the shaking of the mobile terminal to lock or unlock the application program running in the foreground, and avoiding intentional or unintentional access to the mobile terminal by unscrupulous users. The bad operation effectively protects the user's personal privacy, and solves the problem of cumbersome operations existing in the existing methods for protecting the privacy of mobile terminals.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明实施例一提供的应用程序的加解锁方法的第一实现流程图;FIG. 1 is a first implementation flow chart of the method for unlocking and unlocking an application program provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的应用程序的加解锁方法的第二实现流程图;Fig. 2 is a second implementation flowchart of the method for unlocking and unlocking an application program provided by Embodiment 2 of the present invention;
图3是本发明实施例三提供的应用程序的加解锁装置的组成结构图。FIG. 3 is a structural diagram of the device for unlocking and unlocking applications provided by Embodiment 3 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例在移动终端运行应用程序的过程中增加了对移动终端的运动信息的检测与获取,在所获取的第一运动信息满足第一预设条件时,锁定移动终端的屏幕为当前处于前台运行状态的应用程序;而在锁定屏幕为当前处于前台运行状态的应用程序后,继续检测并获取移动终端的第二运动信息;在所述第二运动信息满足第二预设条件时,则解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序;从而实现了通过摇晃移动终端来锁定或解锁前台运行的应用程序,避免了不法用户有意或者无意地对移动终端的不良操作,且解决现有保护移动终端隐私方式存在的操作繁琐的问题。本发明实施例还提供了相应的装置,以下分别进行详细的说明。In the embodiment of the present invention, the detection and acquisition of the motion information of the mobile terminal are added during the process of running the application program on the mobile terminal. When the first motion information obtained meets the first preset condition, the screen of the mobile terminal is locked as The application program in the foreground running state; after the lock screen is the application program currently in the foreground running state, continue to detect and obtain the second motion information of the mobile terminal; when the second motion information meets the second preset condition, then Unlocking the screen of the mobile terminal is the application program currently running in the foreground; thus realizing the locking or unlocking of the application program running in the foreground by shaking the mobile terminal, avoiding bad operations of the mobile terminal intentionally or unintentionally by illegal users, and solving The existing methods for protecting the privacy of mobile terminals have the problem of cumbersome operations. Embodiments of the present invention also provide corresponding devices, which will be described in detail below.
实施例一Embodiment one
图1示出了本发明实施例一提供的应用程序的加解锁方法的第一实现流程,为了便于说明,仅示出了与本发明相关的部分。Fig. 1 shows the first implementation process of the method for unlocking and unlocking an application program provided by Embodiment 1 of the present invention, and for the convenience of description, only the parts related to the present invention are shown.
在本发明实施例中,所述方法应用于移动终端。所述移动终端包括但不限于移动电话、口袋计算机(Pocket personal Computer,PPC)、掌上电脑、个人数字助理(PersonalDigital Assistant,PDA)等,优选为智能手机。所述移动终端上安装有多个应用程序。In the embodiment of the present invention, the method is applied to a mobile terminal. The mobile terminal includes, but is not limited to, a mobile phone, a pocket computer (Pocket personal Computer, PPC), a palmtop computer, a personal digital assistant (Personal Digital Assistant, PDA), etc., preferably a smart phone. Multiple application programs are installed on the mobile terminal.
如图1所示,所述方法包括:As shown in Figure 1, the method includes:
在步骤S101中,当移动终端运行应用程序时,获取所述移动终端的第一运动信息。In step S101, when a mobile terminal runs an application program, first motion information of the mobile terminal is acquired.
在本发明实施例中,移动终端运行应用程序是指移动终端的某一应用程序正在前台运行,移动终端的屏幕上显示所述应用程序的运行界面。移动终端在运行应用程序时,实时通过加速度传感器、重力传感器等检测本身的运动信息,即为第一运动信息。优选地,所述第一运动信息包括但不限于移动终端运动的加速度、速度以及方向等。In the embodiment of the present invention, running an application program on a mobile terminal means that a certain application program of the mobile terminal is running in the foreground, and the screen of the mobile terminal displays the running interface of the application program. When the mobile terminal is running the application program, it detects its own motion information through the acceleration sensor, the gravity sensor, etc. in real time, which is the first motion information. Preferably, the first motion information includes, but is not limited to, the acceleration, speed, and direction of the motion of the mobile terminal.
在步骤S102中,在所述第一运动信息满足第一预设条件时,锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。In step S102, when the first movement information satisfies a first preset condition, the screen of the mobile terminal is locked as an application currently running in the foreground.
本发明实施例预先设定了第一预设条件,所述第一预设条件作为判定移动终端是否发生了晃动和是否执行锁定操作的标准,所述锁定操作为锁定当前处于前台运行状态的应用程序。优选地,所述第一预设条件包括但不限于加速度阈值、速度阈值以及方向阈值等。当步骤S101中获取到的第一运动信息满足第一预设条件时,则判定移动终端发生了晃动,锁定移动终端中处于前台运行状态的应用程序,使得移动终端的屏幕上只能显示该被锁定的应用程序。锁定之后,用户只能使用该被锁定的应用程序或者执行熄屏操作,而不能执行除该被锁定的应用程序或者熄屏之外的其他操作,从而避免了不法使用者有意或者无意地对移动终端的不良操作。The embodiment of the present invention pre-sets the first preset condition, and the first preset condition is used as a criterion for judging whether the mobile terminal is shaken and whether to perform a locking operation, and the locking operation is to lock the application currently running in the foreground program. Preferably, the first preset condition includes, but is not limited to, an acceleration threshold, a speed threshold, a direction threshold, and the like. When the first motion information obtained in step S101 satisfies the first preset condition, it is determined that the mobile terminal has been shaken, and the application program in the foreground running state in the mobile terminal is locked so that only the Locked apps. After locking, the user can only use the locked application program or perform screen-off operations, but cannot perform other operations except the locked application program or screen-off operation, thereby preventing illegal users from intentionally or unintentionally Bad operation of the terminal.
在步骤S103中,在锁定屏幕为当前处于前台运行状态的应用程序后,获取所述移动终端的第二运动信息。In step S103, after the screen is locked as the application currently running in the foreground, the second motion information of the mobile terminal is acquired.
在本发明实施例中,若当前处于前台运行状态的应用程序被锁定之后,继续实时地检测移动终端的运动状况,并获取相应的运动信息。In the embodiment of the present invention, if the application program currently running in the foreground is locked, the motion status of the mobile terminal will continue to be detected in real time, and corresponding motion information will be acquired.
在步骤S104中,在所述第二运动信息满足第二预设条件时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。In step S104, when the second motion information satisfies a second preset condition, the screen of the mobile terminal is unlocked as the application currently running in the foreground.
同样的,本发明实施例预先设定了第二预设条件,所述第二预设条件作为判定移动终端是否发生了晃动和是否执行解锁操作的标准,所述解锁操作为解除锁定当前处于前台运行状态的应用程序。优选地,所述第二预设条件也可包括但不限于加速度阈值、速度阈值以及方向阈值等。优选地,所述第二预设条件可以与第一预设条件相同,也可以不相同。当步骤S103中获取到的第二运动信息满足第二预设条件时,则判定移动终端在锁定应用程序之后再次发生了晃动,则解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序。解锁之后,用户可操作移动终端上的任一应用程序或者执行熄屏操作等。Similarly, the embodiment of the present invention pre-sets a second preset condition, and the second preset condition is used as a criterion for judging whether the mobile terminal is shaken and whether to perform an unlocking operation, and the unlocking operation is that unlocking is currently in the foreground application in running state. Preferably, the second preset condition may also include, but not limited to, an acceleration threshold, a speed threshold, a direction threshold, and the like. Preferably, the second preset condition may be the same as or different from the first preset condition. When the second motion information obtained in step S103 satisfies the second preset condition, it is determined that the mobile terminal shakes again after the application is locked, and the screen of the unlocked mobile terminal is the application currently running in the foreground. After unlocking, the user can operate any application program on the mobile terminal or perform a screen-off operation, etc.
通过上述步骤,在用户使用移动终端的过程中,若需要将移动终端借给他人使用或者查看当前的应用程序时,通过摇晃移动终端,即可使得移动终端的屏幕锁定为当前的应用程序,他人只能操作该锁定的应用程序,而不能执行其他应用程序,从而有效地防止了他人对移动终端的有意或者无意的不良操作,避免了用户自身的隐私泄露;进一步地,用户在拿回移动终端后,通过再次摇晃移动终端,即可将解除屏幕对当前应用程序的锁定。可见,本发明实施例提供的屏幕加解锁方法的操作过程简单,避免了现有手动设置“访客模式”导致双方尴尬的情况;也避免了基于Android5.0设计的“屏幕固定”操作过程繁琐且容易被破解的问题。Through the above steps, in the process of using the mobile terminal, if the user needs to lend the mobile terminal to others or view the current application program, by shaking the mobile terminal, the screen of the mobile terminal can be locked as the current application program, and other people Only the locked application program can be operated, and other application programs cannot be executed, thereby effectively preventing others from intentionally or unintentionally operating the mobile terminal and avoiding the leakage of the user's own privacy; After that, shake the mobile terminal again to unlock the screen for the current application. It can be seen that the operation process of the method for unlocking the screen provided by the embodiment of the present invention is simple, avoiding the embarrassing situation of both parties caused by manually setting the "visitor mode"; An easily cracked problem.
本发明实施例在移动终端运行应用程序的过程中增加了对移动终端的运动信息的检测与获取,在所获取的第一运动信息满足第一预设条件时,锁定移动终端的屏幕为当前处于前台运行状态的应用程序;而在锁定屏幕为当前处于前台运行状态的应用程序后,继续检测并获取移动终端的第二运动信息;在所述第二运动信息满足第二预设条件时,则解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序;从而实现了通过摇晃移动终端来锁定或解锁前台运行的应用程序,避免了不法使用者有意或者无意地对移动终端的不良操作,有效地保护了用户的隐私,且解决了现有保护移动终端隐私方式存在的操作繁琐的问题。In the embodiment of the present invention, the detection and acquisition of the motion information of the mobile terminal are added during the process of running the application program on the mobile terminal. When the first motion information obtained meets the first preset condition, the screen of the mobile terminal is locked as The application program in the foreground running state; after the lock screen is the application program currently in the foreground running state, continue to detect and obtain the second motion information of the mobile terminal; when the second motion information meets the second preset condition, then Unlocking the screen of the mobile terminal is the application program currently running in the foreground; thus realizing the locking or unlocking of the application program running in the foreground by shaking the mobile terminal, avoiding bad operations of the mobile terminal intentionally or unintentionally by unscrupulous users, effectively The user's privacy is protected effectively, and the problem of cumbersome operations existing in the existing methods of protecting the privacy of mobile terminals is solved.
实施例二Embodiment two
图2示出了本发明实施例二提供的应用程序的加解锁方法的第二实现流程,为了便于说明,仅示出了与本发明相关的部分。FIG. 2 shows the second implementation flow of the method for unlocking and unlocking applications provided by Embodiment 2 of the present invention. For ease of description, only the parts related to the present invention are shown.
如图2所示,所述方法包括:As shown in Figure 2, the method includes:
在步骤S201中,当移动终端运行应用程序时,获取所述移动终端的第一运动信息。In step S201, when a mobile terminal runs an application program, first motion information of the mobile terminal is acquired.
在步骤S202中,在所述第一运动信息满足第一预设条件时,锁定移动终端的屏幕为当前处于前台运行状态的应用程序。In step S202, when the first motion information satisfies a first preset condition, the screen of the mobile terminal is locked as the application currently running in the foreground.
在锁定移动终端中处于前台运行的应用程序后,所述方法还包括:After locking the application running in the foreground in the mobile terminal, the method also includes:
在步骤S203中,判断用户输入的操作指令是否为预设的操作指令。In step S203, it is determined whether the operation instruction input by the user is a preset operation instruction.
若用户输入的操作指令为预设的操作指令,则执行步骤S204;否则,执行步骤S205。If the operation instruction input by the user is a preset operation instruction, execute step S204; otherwise, execute step S205.
在步骤S204中,将所述操作指令传递到所述应用程序,并执行相应的操作。In step S204, the operation instruction is transmitted to the application program, and a corresponding operation is performed.
在步骤S205中,屏蔽所述操作指令。In step S205, the operation instruction is shielded.
优选地,所述预设的操作指令包括但不限于处于前台运行状态的应用程序的运行指令、熄屏指令等,从而使得用户只能操作当前处于前台运行状态的应用程序,而不能执行其他应用程序,有效地防止了不法使用者对移动终端的有意或者无意的不良操作,避免了用户自身的隐私泄露。Preferably, the preset operation instructions include, but are not limited to, the running instructions of the application program in the foreground running state, the screen-off instruction, etc., so that the user can only operate the application program currently in the foreground running state, and cannot execute other applications The program effectively prevents unscrupulous users from intentionally or unintentionally operating the mobile terminal, and avoids leakage of the user's own privacy.
进一步地,在锁定屏幕为处于前台运行状态的应用程序后,实时地检测所述移动终端的运动状况。所述方法还包括:Further, after the screen is locked as the application program running in the foreground, the motion status of the mobile terminal is detected in real time. The method also includes:
在步骤S206中,获取移动终端的第二运动信息。In step S206, the second motion information of the mobile terminal is acquired.
在步骤S207中,在所述第二运动信息满足第二预设条件时,解除锁定移动终端的屏幕为处于前台运行状态的应用程序。In step S207, when the second motion information satisfies a second preset condition, the screen of the mobile terminal is unlocked as an application program running in the foreground.
优选地,所述方法还可包括:Preferably, the method may also include:
在步骤S208中,在所述第二运动信息满足第二预设条件时,加载解锁界面,获取用户在所述解锁界面上输入的解锁密码。In step S208, when the second movement information satisfies a second preset condition, an unlocking interface is loaded, and an unlocking password input by the user on the unlocking interface is acquired.
在步骤S209中,验证所述解锁密码是否为预设密码。In step S209, it is verified whether the unlocking password is a preset password.
在步骤S210中,在所述解锁密码为预设密码时,解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序。In step S210, when the unlocking password is a preset password, unlocking the screen of the mobile terminal is an application currently running in the foreground.
否则,在所述解锁密码不为预设密码时,输出重新输入密码的提示信息。Otherwise, when the unlocking password is not a preset password, a prompt message for re-entering the password is output.
通过步骤S206至S207,移动终端再次检测到满足第二预设条件的运动信息时,即可将解除屏幕对当前应用程序的锁定,操作过程简单;通过步骤S208至S210,移动终端在验证用户输入的解锁密码正确后,则解除屏幕对当前应用程序的锁定,进一步地提升了解除锁定的安全性。Through steps S206 to S207, when the mobile terminal detects the motion information that meets the second preset condition again, it can unlock the screen to the current application program, and the operation process is simple; through steps S208 to S210, the mobile terminal verifies the user input After the unlock password is correct, the screen will be unlocked for the current application program, which further improves the security of unlocking.
综上所述,本发明实施例提供的应用程序的加解锁方法,实现了通过摇晃移动终端来锁定或解锁前台运行的应用程序,避免了不法使用者有意或者无意地对移动终端的不良操作,有效地保护了用户的隐私,也避免了现有手动设置“访客模式”导致双方尴尬的情况以及基于Android5.0设计的“屏幕固定”操作过程繁琐且容易被破解的问题。To sum up, the method for adding and unlocking an application program provided by the embodiment of the present invention realizes locking or unlocking the application program running in the foreground by shaking the mobile terminal, avoiding bad operations of the mobile terminal intentionally or unintentionally by unscrupulous users, It effectively protects the user's privacy, and avoids the embarrassment of both parties caused by the existing manual setting of "guest mode" and the cumbersome and easy-to-crack operation process of the "screen fixed" design based on Android5.0.
应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above processes do not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic. Those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
实施例三Embodiment three
图3示出了本发明实施例三提供的应用程序的加解锁装置的组成结构,为了便于说明,仅示出了与本发明相关的部分。FIG. 3 shows the structure of the device for unlocking and unlocking applications provided by Embodiment 3 of the present invention. For ease of description, only parts related to the present invention are shown.
在本发明实施例中,所述装置用于实现图1或图2实施例所述的应用程序的加解锁方法,可以是内置于移动终端的软件单元、硬件单元或者软硬件结合的单元。所述移动终端包括但不限于移动电话、口袋计算机(Pocket personal Computer,PPC)、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)等,优选为智能手机。In the embodiment of the present invention, the device is used to implement the method for unlocking and unlocking the application program described in the embodiment in FIG. 1 or FIG. 2 , and may be a software unit, a hardware unit or a combination of software and hardware built into the mobile terminal. The mobile terminal includes, but is not limited to, a mobile phone, a pocket computer (Pocket personal Computer, PPC), a palmtop computer, a personal digital assistant (Personal Digital Assistant, PDA), etc., preferably a smart phone.
如图3所示,所述装置包括:As shown in Figure 3, the device includes:
第一获取模块31,用于当移动终端运行应用程序时,获取所述移动终端的第一运动信息。The first acquiring module 31 is configured to acquire first movement information of the mobile terminal when the mobile terminal runs an application program.
锁定模块32,用于在所述第一运动信息满足第一预设条件时,锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。The locking module 32 is configured to lock the screen of the mobile terminal as an application currently running in the foreground when the first movement information satisfies a first preset condition.
第二获取模块33,用于在锁定屏幕为当前处于前台运行状态的应用程序后,获取所述移动终端的第二运动信息。The second obtaining module 33 is configured to obtain the second motion information of the mobile terminal after the lock screen is an application program currently running in the foreground.
解锁模块34,用于在所述第二运动信息满足第二预设条件时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。The unlocking module 34 is configured to unlock the screen of the mobile terminal as an application currently running in the foreground when the second motion information satisfies a second preset condition.
优选地,所述第一运动信息或第二运动信息包括但不限于所述移动终端的运动速度、加速度以及方向。Preferably, the first motion information or the second motion information includes but not limited to the motion speed, acceleration and direction of the mobile terminal.
在本发明实施例中,用户通过摇晃移动终端即可锁定移动终端的屏幕为当前处于前台运行状态的应用程序。在锁定前台运行的应用程序之后,使用者只能使用该被锁定的应用程序或者执行熄屏操作,而不能执行除该被锁定的应用程序或者熄屏之外的其他操作,从而避免了不法使用者有意或者无意地对移动终端的不良操作。相应地,用户通过再次摇晃移动终端,即可解除锁定前台运行的应用程序。在解锁之后,用户可操作移动终端上的任一应用程序或者执行熄屏操作等。操作过程方便,且有效地保护了用户的隐私。In the embodiment of the present invention, the user can lock the screen of the mobile terminal as the application currently running in the foreground by shaking the mobile terminal. After locking the application program running in the foreground, the user can only use the locked application program or perform screen-off operations, but cannot perform other operations except the locked application program or screen-off operation, thereby avoiding illegal use Intentional or unintentional bad operation of the mobile terminal. Correspondingly, the user can unlock the application program running in the foreground by shaking the mobile terminal again. After unlocking, the user can operate any application program on the mobile terminal or perform a screen-off operation, etc. The operation process is convenient, and the user's privacy is effectively protected.
进一步地,所述锁定模块32具体包括:Further, the locking module 32 specifically includes:
判断单元321,用于在锁定移动终端的屏幕为当前处于前台运行的应用程序后,判断用户输入的操作指令是否为预设的操作指令。The judging unit 321 is configured to judge whether the operation instruction input by the user is a preset operation instruction after locking the screen of the mobile terminal as the application program currently running in the foreground.
执行单元322,用于在判断单元的判断结果为是时,将所述操作指令传递到所述应用程序,并执行相应的操作。The execution unit 322 is configured to deliver the operation instruction to the application program and execute a corresponding operation when the determination result of the determination unit is yes.
屏蔽单元323,用于在判断单元的判断结果为否时,屏蔽所述操作指令。The masking unit 323 is configured to mask the operation instruction when the judging result of the judging unit is negative.
优选地,所述预设的操作指令包括但不限于熄屏指令和处于前台运行状态的应用程序的运行指令,从而使用者只能使用该被锁定的应用程序或者执行熄屏操作,而不能执行除该被锁定的应用程序或者熄屏之外的其他操作。Preferably, the preset operation instructions include, but are not limited to, an instruction to turn off the screen and an instruction to run an application in the foreground, so that the user can only use the locked application or perform an operation to turn off the screen, but not Actions other than the locked app or turning off the screen.
进一步地,所述解锁模块34具体包括:Further, the unlocking module 34 specifically includes:
获取单元341,用于加载解锁界面,获取用户在所述解锁界面上输入的解锁密码;An acquisition unit 341, configured to load an unlock interface, and acquire an unlock password input by the user on the unlock interface;
验证单元342,用于验证所述解锁密码是否为预设密码;A verification unit 342, configured to verify whether the unlocking password is a preset password;
解锁单元343,用于在所述解锁密码为预设密码时,解除锁定所述移动终端的屏幕为当前处于前台运行状态的应用程序。The unlocking unit 343 is configured to unlock the screen of the mobile terminal as an application currently running in the foreground when the unlock password is a preset password.
在本发明实施例中,移动终端再次检测到满足第二预设条件的运动信息时,即可将解除屏幕对当前应用程序的锁定,操作过程简单;或者,通过验证用户输入的解锁密码来解除屏幕对当前应用程序的锁定,以进一步地提升了解除锁定的安全性。In the embodiment of the present invention, when the mobile terminal detects the motion information satisfying the second preset condition again, it can unlock the current application program on the screen, and the operation process is simple; The screen is locked to the current application to further enhance the security of unlocking.
需要说明的是,本发明实施例中的装置可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be noted that the device in the embodiment of the present invention can be used to realize all the technical solutions in the above method embodiment, and the functions of each functional module can be realized according to the method in the above method embodiment, and the specific implementation process can refer to Relevant descriptions in the foregoing embodiments will not be repeated here.
本发明实施例在移动终端运行应用程序的过程中增加了对移动终端的运动信息的检测与获取,在所获取的第一运动信息满足第一预设条件时,锁定移动终端的屏幕为当前处于前台运行状态的应用程序;而在锁定屏幕为当前处于前台运行状态的应用程序后,继续检测并获取移动终端的第二运动信息;在所述第二运动信息满足第二预设条件时,则解除锁定移动终端的屏幕为当前处于前台运行状态的应用程序;从而实现了通过摇晃移动终端来锁定或解锁前台运行的应用程序,避免了不法使用者有意或者无意地对移动终端的不良操作,有效地保护了用户的隐私,且解决了现有保护移动终端隐私方式存在的操作繁琐的问题。In the embodiment of the present invention, the detection and acquisition of the motion information of the mobile terminal are added during the process of running the application program on the mobile terminal. When the first motion information obtained meets the first preset condition, the screen of the mobile terminal is locked as The application program in the foreground running state; after the lock screen is the application program currently in the foreground running state, continue to detect and obtain the second motion information of the mobile terminal; when the second motion information meets the second preset condition, then Unlocking the screen of the mobile terminal is the application program currently running in the foreground; thus realizing the locking or unlocking of the application program running in the foreground by shaking the mobile terminal, avoiding bad operations of the mobile terminal intentionally or unintentionally by unscrupulous users, effectively The user's privacy is protected effectively, and the problem of cumbersome operations existing in the existing methods of protecting the privacy of mobile terminals is solved.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510073578.4A CN104714641B (en) | 2015-02-10 | 2015-02-10 | Application program plus unlocking method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510073578.4A CN104714641B (en) | 2015-02-10 | 2015-02-10 | Application program plus unlocking method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104714641A CN104714641A (en) | 2015-06-17 |
| CN104714641B true CN104714641B (en) | 2017-11-07 |
Family
ID=53414051
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510073578.4A Expired - Fee Related CN104714641B (en) | 2015-02-10 | 2015-02-10 | Application program plus unlocking method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104714641B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105740738A (en) * | 2016-02-02 | 2016-07-06 | 广东欧珀移动通信有限公司 | Mobile terminal display method and device |
| CN107273107B (en) | 2016-04-08 | 2021-01-05 | 阿里巴巴集团控股有限公司 | Terminal unlocking method and device |
| CN106407765A (en) * | 2016-10-01 | 2017-02-15 | 奇酷互联网络科技(深圳)有限公司 | Method and device for unlocking and locking screen |
| CN106557149A (en) * | 2016-11-08 | 2017-04-05 | 珠海市魅族科技有限公司 | Method for information display and device |
| CN106778175B (en) * | 2016-12-26 | 2020-07-07 | Oppo广东移动通信有限公司 | Interface locking method and device and terminal equipment |
| CN107402710B (en) * | 2017-07-13 | 2020-12-08 | 上海读客数字信息技术有限公司 | Privacy information protection method, mobile terminal and computer readable storage medium |
| CN115314593A (en) * | 2021-05-08 | 2022-11-08 | 深圳市万普拉斯科技有限公司 | A mobile terminal control method, device, terminal and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1801631A (en) * | 2004-12-31 | 2006-07-12 | 集嘉通讯股份有限公司 | a portable device |
| CN103744606A (en) * | 2014-01-13 | 2014-04-23 | 联想(北京)有限公司 | Control method and electronic device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100306705A1 (en) * | 2009-05-27 | 2010-12-02 | Sony Ericsson Mobile Communications Ab | Lockscreen display |
| TWI463352B (en) * | 2012-04-16 | 2014-12-01 | Phansco Corp | Shaking and unlocking touch - type portable electronic device and its rocking and unlocking method |
-
2015
- 2015-02-10 CN CN201510073578.4A patent/CN104714641B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1801631A (en) * | 2004-12-31 | 2006-07-12 | 集嘉通讯股份有限公司 | a portable device |
| CN103744606A (en) * | 2014-01-13 | 2014-04-23 | 联想(北京)有限公司 | Control method and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104714641A (en) | 2015-06-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104714641B (en) | Application program plus unlocking method and device | |
| CN106534570B (en) | Privacy protection method and device | |
| CN107622203B (en) | Sensitive information protection method, device, storage medium and electronic device | |
| US20150156313A1 (en) | Screen unlocking method and device for mobile terminal | |
| US20140256288A1 (en) | On-Screen Notification Privacy and Confidentiality in Personal Devices | |
| CN104978109B (en) | A kind of Application Program Interface display methods and terminal | |
| CN103108082A (en) | Smartphone multi-user mode permission management method and smartphone multi-user mode permission management system | |
| CN106534572A (en) | Information display method and device and terminal | |
| CN106681717B (en) | Terminal application program management method and device and electronic equipment | |
| CN105844470A (en) | Payment method and device | |
| CN108563933A (en) | Application program control method and device, storage medium and mobile terminal | |
| WO2016177000A1 (en) | Method for entering operating system desktop and mobile intelligent terminal | |
| CN107798231A (en) | Display methods, device, terminal and the storage medium of operation interface | |
| CN106295284A (en) | A kind of information protecting method and mobile terminal | |
| CN107704759A (en) | Sensitive operation control method, device, storage medium and electronic equipment | |
| CN106815509B (en) | Multimedia file protection method and device and electronic equipment | |
| CN106845211A (en) | Mobile terminal and its application start method and device | |
| CN106210238A (en) | short message storage method and device | |
| CN105657147B (en) | Anti-theft method and device for mobile terminal | |
| CN104639533A (en) | Safety control method and device based on terminal | |
| CN105554227A (en) | Method and apparatus for improving terminal information security, and terminal | |
| CN106803027A (en) | Application function entrance starts method, device and mobile terminal | |
| CN107045604A (en) | Information processing method and device | |
| CN103324874A (en) | Verification method and electronic device | |
| CN104134024A (en) | Mobile terminal privacy protection method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171107 |