Thanks Hemanth, also do you know how to unlock the screen from adb, whitout user having to tap and slide it on the screen... needed to automate some test cases.
-Shanth 2011/8/25 Hemanth(ヘマント) <[email protected]> > You could change it in the settings database using > > Ex: to change it to one minute > sqlite3 /data/data/com.android.providers.settings/databases/ > settings.db "INSERT INTO system VALUES > (null,'screen_off_timeout','600000');" > > or > > sqlite3 /data/data/com.android.providers.settings/databases/ > settings.db "update system set value='600000' where > name='screen_off_timeout';" > > > But I find it kind of bad to be doing it this way (I can't think of > any particular reason, but it just seems hacky). > > Since the settings provider exposes SCREEN_OFF_TIMEOUT , I would feel > much better using that. > > http://developer.android.com/reference/android/provider/Settings.System.html#SCREEN_OFF_TIMEOUT > > > On Aug 24, 6:17 pm, Shanth Murthy <[email protected]> wrote: > > Thanks, > > -Shanth > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
