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