CN113158165B - Method and device for rapidly locking application of Android terminal - Google Patents

Method and device for rapidly locking application of Android terminal Download PDF

Info

Publication number
CN113158165B
CN113158165B CN202110554151.1A CN202110554151A CN113158165B CN 113158165 B CN113158165 B CN 113158165B CN 202110554151 A CN202110554151 A CN 202110554151A CN 113158165 B CN113158165 B CN 113158165B
Authority
CN
China
Prior art keywords
application
packagenamelocked
locked
screen
current
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
CN202110554151.1A
Other languages
Chinese (zh)
Other versions
CN113158165A (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.)
Readboy Education Technology Co Ltd
Original Assignee
Readboy Education Technology 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 Readboy Education Technology Co Ltd filed Critical Readboy Education Technology Co Ltd
Priority to CN202110554151.1A priority Critical patent/CN113158165B/en
Publication of CN113158165A publication Critical patent/CN113158165A/en
Application granted granted Critical
Publication of CN113158165B publication Critical patent/CN113158165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention discloses a method and equipment for rapidly locking an application by an android i d terminal, wherein after the application is started, a system assigns the package name of the current application to a variable after the application is triggered and locked in a convenient mode. When the variable is not nul, the system automatically executes the locking application. The invention realizes quick locking and unlocking of the current application based on the original android terminal using habit, and has simple implementation and convenient and quick user operation.

Description

Method and device for rapidly locking application of Android terminal
Technical Field
The invention relates to the technical field of Android terminals, in particular to a method and equipment for rapidly locking an application by an Android terminal.
Background
With the development of online learning, parents worry about other application operations such as peeping information of chat tools when children learn by using Android mobile phones, tablet personal computers and other intelligent terminals. At present, the student tablet commonly provides a home management function, and parents can manage and control whether other applications are allowed to be used through special management and control applications. However, the method needs to jump to a special control application to operate, and for the situation that only one application is allowed to be used, all other applications need to be forbidden, and the operation is troublesome.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method and equipment for rapidly locking an application of an Android terminal.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a method for rapidly locking an application by an Android terminal comprises the following specific processes:
the system defines a package name variable, packageNameLocked, of the currently locked application and provides a system interface that can acquire and change this variable, if packageNameLocked is null indicating that no application is locked, if packageNameLocked is not null indicating that there is an application locked, the system proceeds as follows: 1) The Home key is shielded, so that a user is prevented from directly logging out of the main interface; 2) The system UI prohibits the sliding operation, and prevents the user from entering other applications through the shortcut or notification of the sliding bar; 3) The method comprises the steps that firstly, a definition () of java judges whether a current application is a locked application through comparison of a getPackageName () and a packageNameLocked, if so, then, whether the current Activity is a main Activity of the application or not is judged through comparison of a getIntent (). GetAction () and an android. Intent. Action. MAIN, if so, a function of the finish in the current Activity is shielded, and therefore, a return key is pressed or the application itself cannot be exited, and if the current Activity is not the main Activity, the finish can be normal; 4) An application corresponding to the packageNameLocked is forbidden in startactactyStarter () in the java to start other applications, so that the current application is prevented from being controlled by jumping to other applications.
Further, when an application is wanted to be locked, the application is first entered, and then a shutdown confirmation dialog box is popped up by pressing a shutdown key, wherein the shutdown confirmation dialog box is provided with a button for locking the current application; when clicking the button of 'lock current application', the system interface is called to assign the package name of current application to the packageNameLocked while closing the shutdown confirmation dialog box, thus triggering the processing of 1) -4) to lock the application.
Further, the Android terminal has a screen unlocking function, when the screen is successfully unlocked, the packageNameLocked is set as null, when the current application is wanted to be unlocked, the screen is locked by pressing the power key and then is lightened by pressing the power key, and then the screen is unlocked.
Furthermore, the mode that the screen needs to be appointed after the screen is unlocked under the condition that the application is locked is set, and the mode comprises one or more of appointed passwords, face information and fingerprint information.
A computer readable storage medium having stored therein a computer program which when executed by a processor implements the method described above.
An Android terminal comprises a processor and a memory, wherein the memory is used for storing a computer program; the processor is configured to implement the above-described method when executing the computer program.
The invention has the beneficial effects that: the method and the device realize quick locking and unlocking of the current application based on the original Android terminal using habit, are simple to implement and are convenient and quick to operate by a user.
Detailed Description
The present invention will be further described below, and it should be noted that, while the present embodiment provides a detailed implementation manner and a specific operation process on the premise of the present technical solution, the protection scope of the present invention is not limited to the present embodiment.
The embodiment provides a method for rapidly locking an application by an Android terminal, which comprises the following specific processes:
the system defines a package name variable, packageNameLocked, of the currently locked application and provides a system interface that can acquire and change this variable, if packageNameLocked is null indicating that no application is locked, if packageNameLocked is not null indicating that there is an application locked, the system proceeds as follows: 1) The Home key is shielded, so that a user is prevented from directly logging out of the main interface; 2) The system UI prohibits the sliding operation, and prevents the user from entering other applications through the shortcut or notification of the sliding bar; 3) The method comprises the steps that firstly, a definition () of java judges whether a current application is a locked application through comparison of a getPackageName () and a packageNameLocked, if so, then, whether the current Activity is a main Activity of the application or not is judged through comparison of a getIntent (). GetAction () and an android. Intent. Action. MAIN, if so, a function of the finish in the current Activity is shielded, and therefore, a return key is pressed or the application itself cannot be exited, and if the current Activity is not the main Activity, the finish can be normal; 4) An application corresponding to the packageNameLocked is forbidden in startactactyStarter () in the java to start other applications, so that the current application is prevented from being controlled by jumping to other applications.
Further, when an application is wanted to be locked, the application is first entered, and then a shutdown confirmation dialog box is popped up by pressing a shutdown key, wherein the shutdown confirmation dialog box is provided with a button for locking the current application except a conventional confirmation and cancel button; when clicking the button of 'lock current application', the system interface is called to assign the package name of current application to the packageNameLocked while closing the shutdown confirmation dialog box, thus triggering the processing of 1) -4) to lock the application.
It should be noted that, the Android terminal has a screen unlocking function (password/pattern/face recognition/fingerprint recognition, etc.), which is also a commonly used function. When the screen is successfully unlocked, the packageNameLocked is set as null, when the current application is wanted to be unlocked, the power key is pressed to lock the screen and then the power key is pressed to lighten the screen, and then the screen is unlocked (a specific mode, such as a specific password, face information, fingerprint information and the like, is required for unlocking the screen after the screen is turned off under the condition that the application is locked can be set, so that a parent can unlock the screen after the screen is turned off under the condition that the application is locked only by setting the specific unlocking screen mode), and at the moment, all the parents are recovered to be normal because the packageNameLocked is changed into null.
Various modifications and variations of the present invention will be apparent to those skilled in the art in light of the foregoing teachings and are intended to be included within the scope of the following claims.

Claims (5)

1. The method for rapidly locking the application of the Android terminal is characterized by comprising the following specific processes:
the system defines a package name variable, packageNameLocked, of the currently locked application and provides a system interface that can acquire and change this variable, if packageNameLocked is null indicating that no application is locked, if packageNameLocked is not null indicating that there is an application locked, the system proceeds as follows: 1) The Home key is shielded, so that a user is prevented from directly logging out of the main interface; 2) The system UI prohibits the sliding operation, and prevents the user from entering other applications through the shortcut or notification of the sliding bar; 3) The method comprises the steps that firstly, a definition () of java judges whether a current application is a locked application through comparison of a getPackageName () and a packageNameLocked, if so, then, whether the current Activity is a main Activity of the application or not is judged through comparison of a getIntent (). GetAction () and an android. Intent. Action. MAIN, if so, a function of the finish in the current Activity is shielded, and therefore, a return key is pressed or the application itself cannot be exited, and if the current Activity is not the main Activity, the finish can be normal; 4) An application corresponding to the packageNameLocked is forbidden in startactactactyLocked () in the actigirter;
when one application is wanted to be locked, the application is firstly entered, then a shutdown confirmation dialog box is popped up by pressing a shutdown key, and the shutdown confirmation dialog box is provided with a button for locking the current application; when clicking the button of 'lock current application', the system interface is called to assign the package name of current application to the packageNameLocked while closing the shutdown confirmation dialog box, thus triggering the processing of 1) -4) to lock the application.
2. The method of claim 1, wherein the Android terminal has a screen unlocking function, and when the screen is successfully unlocked, the packageNameLocked is set as null, when the current application is wanted to be unlocked, the screen is locked by pressing a power key and then the screen is lightened by pressing the power key, and then the screen is unlocked, and at this time, the current application is unlocked because the packageNameLocked becomes null.
3. The method according to claim 2, wherein the means for unlocking the screen after the screen is turned off in the case that the application is locked is set to include one or more of a specified password, face information, and fingerprint information.
4. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-3.
5. The Android terminal is characterized by comprising a processor and a memory, wherein the memory is used for storing a computer program; the processor being adapted to implement the method of any of claims 1-3 when the computer program is executed.
CN202110554151.1A 2021-05-20 2021-05-20 Method and device for rapidly locking application of Android terminal Active CN113158165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110554151.1A CN113158165B (en) 2021-05-20 2021-05-20 Method and device for rapidly locking application of Android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110554151.1A CN113158165B (en) 2021-05-20 2021-05-20 Method and device for rapidly locking application of Android terminal

Publications (2)

Publication Number Publication Date
CN113158165A CN113158165A (en) 2021-07-23
CN113158165B true CN113158165B (en) 2023-05-02

Family

ID=76876962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110554151.1A Active CN113158165B (en) 2021-05-20 2021-05-20 Method and device for rapidly locking application of Android terminal

Country Status (1)

Country Link
CN (1) CN113158165B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095746A (en) * 2015-07-02 2015-11-25 北京奇虎科技有限公司 Method and device for application program starting authentication
CN110297723A (en) * 2019-05-24 2019-10-01 深圳市优博讯科技股份有限公司 A kind of method and terminal system for preventing application program from interrupting
CN112148400A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Display method and device in locking state

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727281A (en) * 2009-09-04 2010-06-09 丁贵 System and method for one-key locking of computer monitor
US10109124B2 (en) * 2011-11-03 2018-10-23 3-East, Llc Method, system and device for securing and managing access to a lock and providing surveillance
CN103729116A (en) * 2012-10-12 2014-04-16 纬创资通股份有限公司 Computer unit capable locking screen, screen locking method and storage medium
CN104184896A (en) * 2014-08-26 2014-12-03 深圳市英威诺科技有限公司 Main interface locking and content displaying technical method
CN104715174B (en) * 2015-03-18 2016-08-24 北京奇虎科技有限公司 Realize method, device and the intelligent terminal of the switching of intelligent terminal user pattern
CN105573586A (en) * 2015-12-17 2016-05-11 昆山龙腾光电有限公司 Method and device for preventing misoperation for terminal equipment
CN105812575A (en) * 2016-05-05 2016-07-27 绿网天下(福建)网络科技股份有限公司 Method for performing management and control of mobile phone through APP
CN106027769A (en) * 2016-05-05 2016-10-12 绿网天下(福建)网络科技股份有限公司 Screen locking method of customized control cellphone
CN106778175B (en) * 2016-12-26 2020-07-07 Oppo广东移动通信有限公司 Interface locking method and device and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095746A (en) * 2015-07-02 2015-11-25 北京奇虎科技有限公司 Method and device for application program starting authentication
CN110297723A (en) * 2019-05-24 2019-10-01 深圳市优博讯科技股份有限公司 A kind of method and terminal system for preventing application program from interrupting
CN112148400A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Display method and device in locking state

Also Published As

Publication number Publication date
CN113158165A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN105681328B (en) The method, apparatus and electronic equipment of controlling electronic devices
US9131377B2 (en) Method and apparatus for unlocking operating system
CN105389484A (en) Permission control method and device for application program
US8244231B2 (en) Method and apparatus for disambiguating an emergency call attempt during password entry for unlocking a mobile communication device
EP0647901A2 (en) Control of access to a networked system
US11302128B2 (en) Easy unlocking method with safety using an electronic key and a biological feature
CN106648384B (en) Service calling method and device
CN104424028A (en) Terminal device and switching method thereof
CN105549826A (en) Mobile terminal and locking method of slide page thereof
CN104809373B (en) A kind of method of terminal unlocking
CN113158165B (en) Method and device for rapidly locking application of Android terminal
CN106936672A (en) The control method and terminal of gas-fired equipment
CN106127005A (en) The user management method of a kind of mobile terminal and system
CN115904588A (en) Remote control method, device and system for terminal screen
CN107315946A (en) Screen-lock password generation method and device
CN111428222A (en) Gesture control method and device of mobile terminal, mobile terminal and storage medium
CN107154999B (en) Terminal and unlocking method and storage device based on environmental information
CN111859334A (en) Screen state control method and device and electronic equipment
CN215868631U (en) Voice control device and equipment of intelligent terminal
KR20160114964A (en) Intelligent lock method, portable communication device and door lock using the same
CN111179481A (en) Intelligent home platform, intelligent home key control method and system
CN108769398B (en) Terminal unlocking method and device and terminal
JP2008226078A (en) Computer security system
CN104660786A (en) Mobile terminal, setting method of unlocking password and unlocking method
CN111311790A (en) Rapid matching method and system for passwords

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