Disable the screen lock when the Android OS startup

952 views
Skip to first unread message

CMF

unread,
Jul 2, 2010, 1:08:02 PM7/2/10
to android-porting
HI all,
I want to make my app launched when the Android OS startup.
I can make it, but when the Android OS startup, the screen lock is
launched,
how can I remove the screen lock launch so that I can get into my app
directly?
I am doing this in my embedded system.Thanks

CMF

unread,
Jul 6, 2010, 9:57:47 PM7/6/10
to android-porting
anybody knows?

Deva R

unread,
Jul 7, 2010, 4:18:40 AM7/7/10
to man...@gmail.com, android-porting

The closest i've done is - to make system remain unlocked

# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value="-1" where name="screen_off_timeout";
sqlite> .quit

But it still wont prevent system to boot with locked screen.,
we are either missing an easy configuration or might require source change..

anybody knows?

suyog tajne

unread,
Jul 7, 2010, 6:44:57 AM7/7/10
to r.de...@gmail.com, man...@gmail.com, android-porting
I too have requirement which needs android to boot up with  screen unlocked.
can somebody point to sqlite file to change?

thanks

Pete

unread,
Jul 7, 2010, 9:12:34 AM7/7/10
to android-porting
I disabled the lock screen on my eclair build my commeting out
showLocked() in KeyguardViewMediator.java.

As far as I could tell there isn't a sql configuration option which
does this.

regards,

Pete.

diff --git a/phone/com/android/internal/policy/impl/
KeyguardViewMediator.java b/phone/com/android/internal/policy/impl/
KeyguardViewMediator.java
index 8d71146..6d971e9 100644
--- a/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/phone/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -520,7 +520,7 @@ public class KeyguardViewMediator implements
KeyguardViewCallback,
}

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

Peter Griffin

unread,
Jul 7, 2010, 4:50:08 AM7/7/10
to android...@googlegroups.com
I disabled the lock screen on my eclair build my commeting out showLocked() in KeyguardViewMediator.java.

As far as I could tell there isn't a configuration option which does this.

regards,

Pete.

nolockscreen.patch

Aadorn

unread,
Jul 7, 2010, 7:43:22 PM7/7/10
to android-porting
To disable lock screen only at system startup, instead of comment out
showLocked(), I commented out doKeyguard() inside the function
onSystemReady() in the same file KeyguardViewMediator.java

If there is a configuration option that does this, please let me know
too.

Thanks,
Aad
>  nolockscreen.patch
> < 1KViewDownload

Deva R

unread,
Jul 8, 2010, 8:54:18 AM7/8/10
to mrpgr...@gmail.com, android-porting
Hi Pete,
Thanks for sharing this., it helps a lot while debugging/developing..

Regards,
Deva


--
Reply all
Reply to author
Forward
0 new messages