Android ignores screen unlock protection interface-Android mobile phone lock cracking

Source: Internet
Author: User

Android ignores screen unlock protection Interface1 PrincipleAndroid has three screen unlocking protections: Pattern unlocking, PIN password unlocking, and password unlocking. The interface is as follows: Chart 1: Unlock page; Chart 2: PIN password unlock page; Chart 3: Unlock page

We can use java. lang. object. android. app. keyguardLock, a subclass of KeyguardManger, can control the Disable screen lock interface, so as to directly go through the screen lock interface without entering a password to use the mobile phone. disableKeyguard () and KeyguardLock. enableKeyguard () method to Disable and enable screen lock interface 2 code description Demo main code: // get KeyguardManagerKeyguardManager manager = (KeyguardManager) getSystemService (KEYGUARD_SERVICE); If (manager. inKeyguardRestrictedInputMode () {// On the locked page, the KeyguardLock class is used to unlock Keygua. RdLock keyguard = manager. newKeyguardLock (getLocalClassName (); keyguard. disableKeyguard ();} requires the following permissions: <uses-permission android: name = "android. permission. DISABLE_KEYGUARD "/> 3 Conclusion 1. the pattern lock interface uses this method to call the disableKeyguard () method. After the disable pattern lock screen interface is called, pressing the home key will trigger the screen lock Interface enable to re-display the screen lock interface. 2. The Pin password lock interface uses this method to call the disableKeyguard () method. After the disable pattern interface is called, a pop-up screen will appear when you press the home Key. Does not return to the home page 3. The password lock interface uses this method to call the disableKeyguard () method. After the disable pattern interface is called, a pop-up screen will appear when you press the home Key. It does not return to the home page. Although Google does not know why such an api is provided by Google, developers can use this api to almost make the screen lock protection function of Android useless, the exception of the home key after this method is called should be a bug. 4 Demo because the screen lock can only install Apk through the software such as pods on the computer at regular intervals, and cannot start apk, this Demo program is written as start-up, that is, when the screen lock is enabled, after installing the software, such as a computer pea pod, restart the software to implement the Pass screen lock interface. Android 2.2, 2.3, and 4.0 platforms passed the test.Proof of vulnerability:Try it. Anyway, my 9100 directly bypasses...Solution:Google has love and provides such a good api

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.