Disable (initial) screen lock
KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE); KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE); lock.disableKeyguard(); in androidmanifest: <uses-permission android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>
2 Comments
Marcus,
in which file, do i need to modify.
can i get the full source code.
i am having android on our custom board.
i need to disable keylock during booting-up.
Thanks and Regards,
HarishKumar.V
Markus
I want to disable screen lock after booing up. As not familiar with user space, could you please tell me where to modify? Thanks!
Add a Comment