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

#
harishkumar - August 4, 2009 at 6:53 p.m.

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

#
Steven - March 5, 2010 at 3:44 a.m.

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