CN106355060A - Application-lock implementation method and system based on android system - Google Patents
Application-lock implementation method and system based on android system Download PDFInfo
- Publication number
- CN106355060A CN106355060A CN201610929134.0A CN201610929134A CN106355060A CN 106355060 A CN106355060 A CN 106355060A CN 201610929134 A CN201610929134 A CN 201610929134A CN 106355060 A CN106355060 A CN 106355060A
- Authority
- CN
- China
- Prior art keywords
- application
- lock
- unlocking
- unlocking information
- android system
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
Abstract
The invention discloses an application-lock implementation method and system based on an android system. The application-lock implementation method based on the android system comprises the following steps of: when an application starting instruction of a user is received, inquiring whether a target application is a locking application by Activity Manager Service, if so, displaying an unlocking interface, receiving unlocking information input by the user and judging whether the unlocking information input by the user is correct; then when the unlocking information input by the user is correct, starting the target application, or stopping entering a target application interface; if not, directly starting the target application. The application-lock implementation method and system disclosed by the invention have the advantages that the safety problem of the current application lock can be solved, the function of the application lock is realized by Activity Manager Service of an application-program frame layer of the android system, and the starting of application state can not be realized before the unlocking is successful, so that the memory and the resource of a CPU (Central Processing Unit) are saved and the safety of the application lock is improved.
Description
Technical field
The present invention relates to android terminal technical field, particularly to a kind of application lock implementation method based on Android system and
System.
Background technology
In Android device, application encryption optionally can be carried out by third party software to some important application and protect
Shield, when user wants to enter these applications, needs to be unlocked operation in unlock interface again and just can carry out follow-up operation, this plus
Close mode is referred to as application lock.
Due to realizing the function of application lock by third party software, application lock in the market solves to intended application
During lock, it is required for first part and starts intended application, but when actually used, whether user identity unconfirmed is bad user
In the case of should not start intended application, part starts intended application and may bring risk, or user may download and be mounted with
Bad screen locking application, then be likely to result in bigger loss, therefore the safety of application lock need to be improved at present.
Thus prior art could be improved and improves.
Content of the invention
A kind of in view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide application based on Android system
Lock realization method and system, can solve the safety issue of current application lock, answering by Android system application framework layer
Realize application lock function with management service activity manager service, cannot be introduced into starting before unblock success and answer
With state, save internal memory and cpu resource, and improve the safety of application lock.
In order to achieve the above object, this invention takes technical scheme below
A kind of application lock implementation method based on Android system, it comprises the steps:
A, when receiving the application enabled instruction of user, by application management service activity manager service look into
Whether be lock application, if so, then execution step b if asking intended application;If it is not, then directly initiating intended application;
The unlocking information of b, display unlock interface receiving user's input, judges whether the unlocking information of user input is correct;
C, start described intended application when the unlocking information of user input is correct, otherwise do not enter intended application interface.
In the described application lock implementation method based on Android system, further comprise the steps of: before described step a
A0, the unlocking manner pre-setting locking application and unlocking information simultaneously preserve.
In the described application lock implementation method based on Android system, described step a0 specifically includes:
Pre-set the unlocking manner locking application and unlocking information, and described unlocking manner and unlocking information are preserved to application
In the configuration file of management service activity manager service.
In the described application lock implementation method based on Android system, described step c specifically includes:
When the unlocking information of user input is correct, application management service activity manager service target is notified to answer
With unlocking successfully, start described intended application;Otherwise do not enter intended application interface.
In the described application lock implementation method based on Android system, described step b specifically includes:
Activity manager service is serviced by application management and starts unlock interface, and the unblock of receiving user's input
Information, judges whether the unlocking information of user input is correct.
A kind of system is realized based on the application lock of Android system, comprising:
Enquiry module, for when receiving the application enabled instruction of user, servicing activity by application management
Whether manager service inquiry intended application is to lock application;
Unlocked state, for when intended application is to lock application, showing the unlocking information of unlock interface receiving user's input,
Judge whether the unlocking information of user input is correct;
Starting module, for starting described intended application when the unlocking information of user input is correct, otherwise not entering target should
Use interface.
Described realizes, in system, also including based on the application lock of Android system:
Setup module, for pre-setting the unlocking manner locking application and unlocking information and preserving.
Described realizes in system based on the application lock of Android system, described setup module specifically for:
Pre-set the unlocking manner locking application and unlocking information, and described unlocking manner and unlocking information are preserved to application
In the configuration file of management service activity manager service.
Described realizes in system based on the application lock of Android system, described starting module specifically for:
When the unlocking information of user input is correct, application management service activity manager service target is notified to answer
With unlocking successfully, start described intended application;Otherwise do not enter intended application interface.
Described realizes in system based on the application lock of Android system, described unlocked state specifically for:
Activity manager service is serviced by application management and starts unlock interface, and the unblock of receiving user's input
Information, judges whether the unlocking information of user input is correct.
In the application lock realization method and system based on Android system providing compared to prior art, the present invention, described
Application lock implementation method based on Android system is passed through, when receiving the application enabled instruction of user, to service by application management
Whether activity manager service inquiry intended application is to lock application, if so, then shows unlock interface and receives
The password of user input, judges whether the unlocking information of user input is correct;Afterwards when the unlocking information of user input is correct
Start described intended application, otherwise do not enter intended application interface;If it is not, then directly initiating intended application, at present should can solve
With the safety issue of lock, activity manager is serviced by the application management of Android system application framework layer
Service realizes application lock function, cannot be introduced into starting application state, save internal memory and cpu resource before unblock success,
And improve the safety of application lock.
Brief description
The flow chart of the application lock implementation method based on Android system that Fig. 1 provides for the present invention.
The structured flowchart realizing system based on the application lock of Android system that Fig. 2 provides for the present invention.
Specific embodiment
In view of in prior art the shortcomings of the safety issue of third-party application lock, it is an object of the invention to provide a kind of
Based on the application lock realization method and system of Android system, the safety issue of current application lock can be solved, by Android system
The application management service activity manager service of application framework layer realizes application lock function, is unlocking successfully
Before cannot be introduced into start application state, save internal memory and cpu resource, and improve the safety of application lock.
For making the purpose of the present invention, technical scheme and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention further describes.It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to
Limit the present invention.
Refer to Fig. 1, what the present invention provided is comprised the steps: based on the application lock implementation method of Android system
S100, when receiving the application enabled instruction of user, by application management service activity manager
Whether service inquiry intended application is to lock application, if so, then execution step s200;If it is not, then directly initiate target should
With;
The unlocking information of s200, display unlock interface receiving user's input, judges whether the unlocking information of user input is correct;
S300, start described intended application when the unlocking information of user input is correct, otherwise do not enter intended application interface.
In Android system, activity and service is the core component of application program, and they are with Song Ouhe's
Mode is combined and is constituted a complete application program, and this has benefited from application framework layer and provides complete set
Mechanism is carried out assistance application and is started these activity and service, and provides binder mechanism to help them mutual
Communicated.In Android system, there are two kinds of operations can cause the startup of activity, a kind of user clicks on application program
During icon, launcher can be for starting the main activity of application program;After acquiescence activity of application program starts, may be used again
Internally to start new activity by calling start actvity interface, the rest may be inferred, and each activity can
Internally to start new activity.By this chain reaction, start activity on demand, thus completing application program
Function.Regardless of whether being to start activity by clicking on application icon, or pass through activity intrinsic call start
Activity interface, to start new activity, will service activity by means of the application management of application framework layer
Manager service process, its be not only responsible for start activity and service, be also responsible for manage activity and
service.Therefore, the startup of all applications is required for calling application management service activity manager service mould
Block.
Based on this, the present invention has to when starting application using Android system call application management service activity
Manager service, in the application enabled instruction receiving user, services activity manager by application management
Whether service inquiry intended application is to lock application;If so, then show the unblock letter of unlock interface receiving user's input
Breath, judges whether the unlocking information of user input is correct;Start described target afterwards when the unlocking information of user input is correct
Application, does not otherwise enter intended application interface;If it is not, then directly initiating intended application, when being embodied as, the mode of unblock includes
But it is not limited to unlocked by fingerprint, password unblock, face unblock or pattern lock etc., taking password unblock as a example, when intended application is
When locking application, then show that interface for password input, with the password of receiving user's input, judges whether the password of user input is correct
And then start intended application or do not enter intended application interface, the safety issue of current application lock can be solved, by ARIXTRA
The application management of internal system application framework layer services activity manager service to realize applying lock function,
So that cannot be introduced into starting application state before unblock success, saving internal memory and cpu resource, and improve the peace of application lock
Quan Xing.
Further, further comprise the steps of: before described step s100
S101, the unlocking manner pre-setting locking application and unlocking information simultaneously preserve.
Specifically, described step s101 includes pre-setting the unlocking manner locking application and unlocking information, and will be described
Unlocking manner and unlocking information preserve and service in the configuration file of activity manager service to application management.Use
Family can need the application of locking with unrestricted choice, arranges the unlocking manners such as its fingerprint, numerical ciphers or gesture password and unblock letter
The unlocking manner of user setup and unlocking information are preserved and service activity manager to application management by breath afterwards
In the configuration file of service, for subsequent calls, to improve unblock speed.
When being embodied as, in step s200, the unlock interface of display is related to the unlocking manner of the locking application pre-setting
Connection, for example pre-setting and locking the unlocking manner applied is numerical ciphers, then unlock interface is Password Input frame automatic spring
Keyboard is for user input password, or setting locks the unlocking manner applied for recognition of face, then automatically turn on preposition shooting
Head and unlock interface is to take pictures interface, the unlocking manner according to locking application flexibly shows unlock interface.
Further, described step s300 specifically includes when the unlocking information of user input is correct, notifies application pipe
Reason service activity manager service intended application unlocks successfully, starts described intended application;Otherwise do not enter mesh
Mark application interface.Due to having to call application management service activity manager when starting application in Android system
Service, when the input of user's unlocking information is correct, first notifies application management service activity manager service mesh
Mark application unlock successfully, restarts intended application afterwards, that is, user when inputting unlocking information, intended application not startup,
Only after unlocking information input is correct, just can successfully start up intended application, effectively prevent bad user using application
Part starts steals accounts information, improves the safety of application lock.
Further, described step s200 specifically includes and services activity manager by application management
Service starts unlock interface, and the unlocking information of receiving user's input, judges whether the unlocking information of user input is correct.
When inquiring intended application is to lock application, activity manager service is serviced by application management and starts unblock
Interface, and carry out follow-up unlocking information and receive and judge operation, due to when the present invention is unlocked to intended application without portion
Point start, but by application management service activity manager service start unlock interface, save internal memory with
Cpu resource, ejecting decryption interface also can be more quick, and Consumer's Experience is more preferable.
The present invention accordingly also provide a kind of system is realized based on the application lock of Android system, as shown in Fig. 2 described based on peace
Tall and erect systematic difference lock is realized system and is included enquiry module 10, unlocked state 20 and starting module 30, described enquiry module 10, solution
Lock module 20 and starting module 30 are sequentially connected, and wherein, described enquiry module 10 is used for referring to when the application receiving user starts
When making, activity manager service is serviced by application management and inquires about whether intended application is to lock application;Described
Unlocked state 20 is used for when intended application is to lock application, and the unlocking information of display unlock interface receiving user's input is sentenced
Whether the unlocking information of disconnected user input is correct;Described starting module 30 is used for starting when the unlocking information of user input is correct
Described intended application, does not otherwise enter intended application interface.
The present invention has to when starting application using Android system call application management service activity manager
Service, in the application enabled instruction receiving user, services activity by enquiry module 10 by application management
Whether manager service inquiry intended application is to lock application;Afterwards should for locking in intended application by unlocked state 20
Used time, the unlocking information of display unlock interface receiving user's input, judge whether the unlocking information of user input is correct;Afterwards
Described intended application is started by starting module 30 when the unlocking information of user input is correct, does not otherwise enter intended application circle
Face, can solve the safety issue of current application lock, by the application management service of Android system internal applications ccf layer
Activity manager service applies shape to realize applying lock function so that cannot be introduced into starting before unblock success
State, saves internal memory and cpu resource, and improves the safety of application lock.
Further, described system is realized based on the application lock of Android system also include setup module 40, described setting mould
Block 40 Connection inquiring module 10, described setup module 40 is used for pre-setting the unlocking manner locking application and unlocking information and protecting
Deposit.
Described setup module 40 specifically for pre-setting the unlocking manner locking application and unlocking information, and by described solution
Lock mode and unlocking information preserve and service in the configuration file of activity manager service to application management.Specifically please
Refering to the corresponding embodiment of said method.
Further, described starting module 30 is specifically for when the unlocking information of user input is correct, notifying application
Management service activity manager service intended application unlocks successfully, starts described intended application;Otherwise do not enter
Intended application interface.Specifically refer to the corresponding embodiment of said method.
Further, described unlocked state 20 is specifically for servicing activity manager by application management
Service starts unlock interface, and the unlocking information of receiving user's input, judges whether the unlocking information of user input is correct.
Specifically refer to the corresponding embodiment of said method.
In sum, the present invention provide the application lock realization method and system based on Android system in, described based on peace
Tall and erect systematic difference lock implementation method is passed through, when receiving the application enabled instruction of user, to service by application management
Whether activity manager service inquiry intended application is to lock application, if so, then shows unlock interface and receives
The unlocking information of user input, judges whether the unlocking information of user input is correct;Afterwards when user input unlocking information just
Start described intended application when really, otherwise do not enter intended application interface;If it is not, then directly initiating intended application, mesh can be solved
The safety issue of front application lock, services activity manager by the application management of Android system application framework layer
Service realizes application lock function, cannot be introduced into starting application state, save internal memory and cpu resource before unblock success,
And improve the safety of application lock.
It is understood that for those of ordinary skills, with technology according to the present invention scheme and its can send out
Bright design in addition equivalent or change, and all these change or replace the guarantor that all should belong to appended claims of the invention
Shield scope.
Claims (10)
1. a kind of application lock implementation method based on Android system is it is characterised in that comprise the steps:
A, when receiving the application enabled instruction of user, by application management service activity manager service look into
Whether be lock application, if so, then execution step b if asking intended application;If it is not, then directly initiating intended application;
The unlocking information of b, display unlock interface receiving user's input, judges whether the unlocking information of user input is correct;
C, start described intended application when the unlocking information of user input is correct, otherwise do not enter intended application interface.
2. the application lock implementation method based on Android system according to claim 1 it is characterised in that described step a it
Before further comprise the steps of:
A0, the unlocking manner pre-setting locking application and unlocking information simultaneously preserve.
3. the application lock implementation method based on Android system according to claim 2 is it is characterised in that described step a0 has
Body includes:
Pre-set the unlocking manner locking application and unlocking information, and described unlocking manner and unlocking information are preserved to application
In the configuration file of management service activity manager service.
4. the application lock implementation method based on Android system according to claim 1 is it is characterised in that described step c has
Body includes:
When the unlocking information of user input is correct, application management service activity manager service target is notified to answer
With unlocking successfully, start described intended application;Otherwise do not enter intended application interface.
5. the application lock implementation method based on Android system according to claim 1 is it is characterised in that described step b has
Body includes:
Activity manager service is serviced by application management and starts unlock interface, and the unblock of receiving user's input
Information, judges whether the unlocking information of user input is correct.
6. a kind of system is realized based on the application lock of Android system it is characterised in that include:
Enquiry module, for when receiving the application enabled instruction of user, servicing activity by application management
Whether manager service inquiry intended application is to lock application;
Unlocked state, for when intended application is to lock application, showing the unlocking information of unlock interface receiving user's input,
Judge whether the unlocking information of user input is correct;
Starting module, for starting described intended application when the unlocking information of user input is correct, otherwise not entering target should
Use interface.
7. according to claim 6 system is realized it is characterised in that also including based on the application lock of Android system:
Setup module, for pre-setting the unlocking manner locking application and unlocking information and preserving.
8. according to claim 7 system is realized based on the application lock of Android system it is characterised in that described setup module
Specifically for:
Pre-set the unlocking manner locking application and unlocking information, and described unlocking manner and unlocking information are preserved to application
In the configuration file of management service activity manager service.
9. according to claim 6 system is realized based on the application lock of Android system it is characterised in that described starting module
Specifically for:
When the unlocking information of user input is correct, application management service activity manager service target is notified to answer
With unlocking successfully, start described intended application;Otherwise do not enter intended application interface.
10. according to claim 6 system is realized based on the application lock of Android system it is characterised in that described solution locked mode
Block specifically for:
Activity manager service is serviced by application management and starts unlock interface, and the unblock of receiving user's input
Information, judges whether the unlocking information of user input is correct.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610929134.0A CN106355060A (en) | 2016-10-31 | 2016-10-31 | Application-lock implementation method and system based on android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610929134.0A CN106355060A (en) | 2016-10-31 | 2016-10-31 | Application-lock implementation method and system based on android system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106355060A true CN106355060A (en) | 2017-01-25 |
Family
ID=57864938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610929134.0A Pending CN106355060A (en) | 2016-10-31 | 2016-10-31 | Application-lock implementation method and system based on android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106355060A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107133531A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | The use based reminding method and device of application lock |
CN107357591A (en) * | 2017-07-25 | 2017-11-17 | 努比亚技术有限公司 | Interface method for implantation, mobile terminal and the storage medium of application program |
CN107577955A (en) * | 2017-08-23 | 2018-01-12 | 北京国信云服科技有限公司 | A kind of android system application Hook methods and application lock |
CN108616659A (en) * | 2018-04-13 | 2018-10-02 | 深圳市沃特沃德股份有限公司 | Using startup method and device |
CN108846272A (en) * | 2018-07-13 | 2018-11-20 | 厦门美图移动科技有限公司 | Using method for managing security, device and electronic equipment |
CN109144677A (en) * | 2017-06-16 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | The method and apparatus of keep-alive process for Android system |
CN111581617A (en) * | 2020-05-18 | 2020-08-25 | 北京字节跳动网络技术有限公司 | Software access method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110321153A1 (en) * | 2010-06-25 | 2011-12-29 | Research In Motion Limited | Security mechanism for increased personal data protection |
CN103336924A (en) * | 2013-07-03 | 2013-10-02 | 上海斐讯数据通信技术有限公司 | Starting lock for mobile terminal application program |
CN105933327A (en) * | 2016-06-08 | 2016-09-07 | 北京奇虎科技有限公司 | Application unlocking method, device and facility |
-
2016
- 2016-10-31 CN CN201610929134.0A patent/CN106355060A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110321153A1 (en) * | 2010-06-25 | 2011-12-29 | Research In Motion Limited | Security mechanism for increased personal data protection |
CN103336924A (en) * | 2013-07-03 | 2013-10-02 | 上海斐讯数据通信技术有限公司 | Starting lock for mobile terminal application program |
CN105933327A (en) * | 2016-06-08 | 2016-09-07 | 北京奇虎科技有限公司 | Application unlocking method, device and facility |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107133531A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | The use based reminding method and device of application lock |
CN107133531B (en) * | 2017-05-24 | 2020-09-11 | 北京小米移动软件有限公司 | Application lock use reminding method and device |
CN109144677A (en) * | 2017-06-16 | 2019-01-04 | 百度在线网络技术(北京)有限公司 | The method and apparatus of keep-alive process for Android system |
CN109144677B (en) * | 2017-06-16 | 2022-08-26 | 百度在线网络技术(北京)有限公司 | Keep-alive process method and device for android system |
CN107357591A (en) * | 2017-07-25 | 2017-11-17 | 努比亚技术有限公司 | Interface method for implantation, mobile terminal and the storage medium of application program |
CN107357591B (en) * | 2017-07-25 | 2022-08-19 | 努比亚技术有限公司 | Application program interface implantation method, mobile terminal and storage medium |
CN107577955A (en) * | 2017-08-23 | 2018-01-12 | 北京国信云服科技有限公司 | A kind of android system application Hook methods and application lock |
CN108616659A (en) * | 2018-04-13 | 2018-10-02 | 深圳市沃特沃德股份有限公司 | Using startup method and device |
CN108846272A (en) * | 2018-07-13 | 2018-11-20 | 厦门美图移动科技有限公司 | Using method for managing security, device and electronic equipment |
CN111581617A (en) * | 2020-05-18 | 2020-08-25 | 北京字节跳动网络技术有限公司 | Software access method, device, equipment and storage medium |
CN111581617B (en) * | 2020-05-18 | 2023-04-28 | 北京字节跳动网络技术有限公司 | Software access method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106355060A (en) | Application-lock implementation method and system based on android system | |
US11100202B2 (en) | Fingerprint recognition method and device for touch screen, and touch screen | |
US9787654B2 (en) | Resolving authenticating issues with a second device | |
EP3509270B1 (en) | Data backup method and device, storage medium and electronic apparatus | |
CN103714459A (en) | Secure payment system and method of intelligent terminal | |
US9485255B1 (en) | Authentication using remote device locking | |
CN107193666B (en) | Control method and device for calling between application programs | |
CN104424028A (en) | Terminal device and switching method thereof | |
CN107924449A (en) | A kind of notification message processing method, device and terminal | |
US8689321B2 (en) | Restricting access to the resources of a terminal | |
CN107888589A (en) | A kind of method and its system for calling trusted application | |
CN105279423A (en) | Password management method and password management device | |
CN104700270A (en) | Payment request processing method, payment request processing device and terminal | |
CN104104671B (en) | Establish the unified dynamic authorization code system of business entity's account | |
CN113192237A (en) | Internet of things equipment supporting TEE and REE and method for realizing communication between TEE and REE | |
CN107862525A (en) | Dynamic adjusts the methods, devices and systems of mobile payment amount | |
EP3467693B1 (en) | Identity verification method and apparatus | |
CN105335673A (en) | Information safety processing method and device | |
CN104715172A (en) | Starting method and device of application programs | |
US20210076201A1 (en) | Systems and methods for reactive remote sim unlocking | |
US20170032353A1 (en) | Methods and systems for financial account access management | |
CN105556536A (en) | One-time power-on password | |
CN112836203A (en) | Method for realizing android system equipment management and control based on kernel customization | |
CN115686694A (en) | Automatic screen unlocking method and device for operating system applied to RPA platform | |
CN107016277B (en) | Information processing method and information safety devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170125 |
|
RJ01 | Rejection of invention patent application after publication |