maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Resetting lock code (https://talk.maemo.org/showthread.php?t=37808)

pali 2012-05-24 14:34

Re: Resetting lock code
 
not storing anything secure in n900 :-)
..but LUKS is good method for crypting data

edie.cook 2012-05-24 14:56

Re: Resetting lock code
 
thanks... the Iphone 4 or N9 also are unsafe?

peterleinchen 2012-05-25 21:04

Re: Resetting lock code
 
Quote:

Originally Posted by pali (Post 1211770)
If you use RescueOS or other bootable system for Maemo which is booted from flasher, eMMC and rootfs can be read without problem.

Yep, true. Sorry for not considering.
Thanks for clarification!

Quote:

Originally Posted by pali (Post 1211770)
So *nothing* is safe unless is *strong* encrypted!

Seems to be true for any digital data nowadays ...

sLumPia 2012-05-27 04:34

Re: Resetting lock code
 
Quote:

Originally Posted by peterleinchen (Post 1210406)
Cmon, you are not serious, or?
Menu - System Settings - Section General, Device lock

sorry if my question is not clear enough.
Let me rephrase my question:
Is it possible to change the device autolock timeout to lower/faster timeout?
say 1 minute or 30 seconds. right now the most faster timout is 5 minutes

peterleinchen 2012-05-28 11:49

Re: Resetting lock code
 
1 Attachment(s)
Ah, okay.
Now I got it.

Please check this code:
PHP 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 
-/system/osso/dsm/locks/devicelock_autolock_enabled 
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_timeout
#applet
echo old applet settings
gconftool 
-/apps/osso/applet/osso-applet-devicelock/device_lock
gconftool 
-/apps/osso/applet/osso-applet-devicelock/autolock_period

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

#new values
echo new system settings
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_enabled 
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_timeout
echo "new (maybe not displayable) applet settings"
gconftool -/apps/osso/applet/osso-applet-devicelock/device_lock
gconftool 
-/apps/osso/applet/osso-applet-devicelock/autolock_period 

Please be aware, that you have to specify timeout in full minutes ( so 90 second is not possible ).

For noobies: download att, put it in N900, open x-term and type
"sh MyDocs/DeviceLock.txt"

sLumPia 2012-05-28 14:54

Re: Resetting lock code
 
peterleinche,
Thanks for the script
Are your script replace the the lowest value (5 minutes)?
Is it permanent? Will it still there after reboot?

btw, your echo line need "\", otherwise it complain about unexpected ")"
echo new \(maybe not displayable\) applet settings

peterleinchen 2012-05-28 19:12

Re: Resetting lock code
 
Quote:

Originally Posted by sLumPia (Post 1213853)
peterleinchen,
Thanks for the script

You are welcome.

Quote:

Originally Posted by sLumPia (Post 1213853)
Are your script replace the the lowest value (5 minutes)?
Is it permanent? Will it still there after reboot?

Yes, the read command may accept any integer value from 1 (1 minute timeout, tested) up to maybe 60 or 999 minutes (not tested ;)).
It should stay after reboot, just test it yourself.

Quote:

Originally Posted by sLumPia (Post 1213853)
btw, your echo line need "\", otherwise it complain about unexpected ")"
echo new \(maybe not displayable\) applet settings

Sorry, ut it does not disturb functionality :D. Just put some more comments afterwards and it slipped in :mad: ....

Edited above post and script.

sLumPia 2012-05-29 05:46

Re: Resetting lock code
 
1 Attachment(s)
peterleinchen,
I have edited your script, to make it cleaner.
Code:

#!/bin/sh
#configure timeout, may be any integer value from 1 to 999?
lock=`gconftool -g /system/osso/dsm/locks/devicelock_autolock_enabled`
Timeout=`gconftool -g /system/osso/dsm/locks/devicelock_autolock_timeout`
if $lock ; then
 echo "input timeout in minutes (integer)"
 read iTimeout
 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
 echo Change device lock timeout from $Timeout minute\(s\) to $iTimeout minute\(s\)
else
 echo "Device autolock disable. Enable it from Menu->System->Settings->Device lock."
fi

Thanks again. Sorry for asking an oot question.

akode 2012-05-29 07:51

Re: Resetting lock code
 
Hi, Im new to this forum, wonder can anyone help me out. One day, my lock code suddenly not recognised by my n900, I m sure i didnt change the code, and no one can access my n900 and change it. It just happened, I keep getting the error lock code message. I have reflash both the firmware and EMMC many time, after it reboots, the lock code window appears. How can I get over the lock code window? Lucky enough, I have backed up all my media before it happens. So I dont mind to erase everything in the phone. Can someone help me out?? Many thanks.

peterleinchen 2012-05-29 12:16

Re: Resetting lock code
 
Quote:

Originally Posted by sLumPia (Post 1214216)
peterleinchen,
I have edited your script, to make it cleaner.

Thanks again. Sorry for asking an oot question.

But now you have to first enable it from applet and then set the interval. The applet will only show enabled when 5, 10, 30, 60 minutes timeout is selected.
But please feel free to use and modify as you like. :)

In the end it was not an oot (?, are you scottish or from MA?) question at all :D


All times are GMT. The time now is 16:23.

vBulletin® Version 3.8.8