> Alternatively, set a negative value to screen_off_timeout in > settings.db by SQLite access through adb connection. real neat way!!! :>
but when i reboot, the phone boots with locked screen.. i have to unlock once, and then it stays unlocked forever.. is controls of /data/data/com.android.providers.settings/databases/settings.db documented somewhere?? looks handy. thanks, deva On Thu, Apr 1, 2010 at 3:00 PM, mizmit1222 <[email protected]> wrote: > Alternatively, set a negative value to screen_off_timeout in > settings.db by SQLite access through adb connection. > > $ adb shell > # cd /data/data/com.android.providers.settings/databases > # sqlite3 settings.db > sqlite> update system set value="-1" where name="screen_off_timeout"; > sqlite> .quit > $ > > > On Apr 1, 4:43 pm, Deva R <[email protected]> wrote: >> I guess you are tocking about UI lock.. >> >> >>i can't unlock it. >> >> you can unlock a locked UI, by pressing and dragging the 'lock' button >> upwards.. >> we also mapped a hot key to unlock the screen., will check what >> keyevent it publishes. >> >> >>how to disable ANDROID to lock screen >> >> You can get handle to the keyguard manager in App, and disable it.. >> >> somebody posted a snippet for this >> (source:http://www.androidsnippets.org/snippets/43/) >> 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> >> >> 2010/4/1 íÁËÓÉÍ áÎÄÒÕÝÅÎËÏ <[email protected]>: >> >> >> >> > Hi. >> >> > I have no Android power driver. >> > I applied a patch: >> >http://gitorious.org/flow-g1-5/platform_frameworks_base/commit/4bc6cd... >> > to make for ANDROID fake battery. >> > It works. >> >> > But after 5 minutes working ANDROID locks screen, on the screen i see >> > message: charging(96%). >> >> > My question is, how to disable ANDROID to lock screen, because i can't >> > unlock it. >> > Is there any patch or solution for this. >> >> > Regards! >> >> > -- >> > unsubscribe: [email protected] >> > website:http://groups.google.com/group/android-porting >> >> > To unsubscribe, reply using "remove me" as the subject. > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
