View Single Post
Posts: 153 | Thanked: 81 times | Joined on Dec 2011 @ P town
#1521
I am using peterleinchen script to change the device lock timeout on my phone:
Code:
#!/bin/sh
#configure timeout, may be any integer value from 1 to 999? 
#iTimeout=1 
echo "input timeout in minutes (integer)" 
read iTimeout 

##read 
#system 
echo old system settings 
gconftool -g /system/osso/dsm/locks/devicelock_autolock_enabled  
gconftool -g /system/osso/dsm/locks/devicelock_autolock_timeout 
#applet 
echo old applet settings 
gconftool -g /apps/osso/applet/osso-applet-devicelock/device_lock 
gconftool -g /apps/osso/applet/osso-applet-devicelock/autolock_period 

##set 
#system  
gconftool -s /system/osso/dsm/locks/devicelock_autolock_enabled -t bool true  
gconftool -s /system/osso/dsm/locks/devicelock_autolock_timeout -t int $iTimeout 
#applet, will only accept and show 5, 10, 30, 60  
gconftool -s /apps/osso/applet/osso-applet-devicelock/device_lock -t bool true 
gconftool -s /apps/osso/applet/osso-applet-devicelock/autolock_period -t int $iTimeout 

#new values 
echo new system settings 
gconftool -g /system/osso/dsm/locks/devicelock_autolock_enabled  
gconftool -g /system/osso/dsm/locks/devicelock_autolock_timeout 
echo "new (maybe not displayable) applet settings" 
gconftool -g /apps/osso/applet/osso-applet-devicelock/device_lock 
gconftool -g /apps/osso/applet/osso-applet-devicelock/autolock_period
I am using this script because I want my phone to automatically lock if unused for 1 minute.
After running that script, I encounter this problem.

Is there something wrong with this script? Why does it make the "Secure device" button useless?

And again, I am sorry if I ask the question in the wrong thread.
 

The Following 2 Users Say Thank You to sLumPia For This Useful Post: