How to remove android-2.2.1 screen lock feature

164 views
Skip to first unread message

Elvis Dowson

unread,
Jan 17, 2011, 6:37:35 PM1/17/11
to android-porting
Hi,
I have an embedded device that is not a phone, and it needs to
directly go to the home screen and launch an app directly, so that the
system directly boots into the android application.

I notice that on first boot, the screen lock feature is not activated.
It is only on reboot that the screen gets locked by default.

How can I permanently disable the screen lock feature?

Elvis Dowson

Deva R

unread,
Jan 18, 2011, 11:06:52 AM1/18/11
to elvis....@gmail.com, android-porting
to boot without lock and stay unlocked..

deva@ubunt:/data/build/android_omap4/froyo/frameworks/policies/base$ git diff
diff --git a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
index c255041..c602c1b 100644
--- a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -553,7 +553,7 @@ public class KeyguardViewMediator implements
KeyguardViewCallback,
}

if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen");
- showLocked();
+ //showLocked();
}
}


note: if you press lock button, ui will still lockup. try commenting
all showLocked() calls.

> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>

--
Regards,
Deva
www.bittoggler.com

aulty

unread,
May 22, 2012, 10:37:33 AM5/22/12
to android...@googlegroups.com, elvis....@gmail.com
Thanks for this, I can confirm that commenting out calls to showLocked( ) in KeyguardViewMediator.java still bypasses the lock screen in ICS.

> unsubscribe: android-porting+unsubscribe@googlegroups.com
> website: http://groups.google.com/group/android-porting
>

--
Regards,
Deva
www.bittoggler.com

Reply all
Reply to author
Forward
0 new messages