munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#1
Can anyone tell me where the configuration file is for the lock code so I can change it or delete it using emelfm2? I forgot my code and would like to change it. Any one know?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#2
I'm guessing that we are talking about the lock code for a N800 or N810 device?

Well the lock code is not stored in a file in the regular filesystem, and reflashing your device won't clear it.

It is stored in the partition /dev/mtd1, and as far as I know there's a way to clear it from a booted device, but I don't remember off-hand the procedure...
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#3
A precision: reflashing the device will unlock the device but won't clear the lock code.

there's a procedure
here to retrieve the lost code, so that you can change it to something else, but for that you will need to have access either via SSH or to an xterm on the device.

Standard disclaimer: Use the script at your own risk, of course
 

The Following 4 Users Say Thank You to lorelei For This Useful Post:
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#4
Is there something on that page im supposed to download to run? How exactly do I do it, can you give me a step by step?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#5
Can anyone tell me exactly how to take whats on that page and make it a script I can run to get my code?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#6
Here are the step by step instructions:

- copy and paste in a file named unlock.pl (somewhere on your tablet) the script on that page (starting at the line with "#!/usr/bin/perl" and ending at the line with "close(INFILE);"
- modify the line saying my $LOCK_OFFSET = 0x41028; and replace it with: my $LOCK_OFFSET = 0x40024; (I don't know if the offset is always the same for all devices...if it doesn't work for you, please let me know, and I will modify the script so that it is a little bit more intelligent about detecting the lock code. Disclaimer again: the original script is not mine!)
- open an xterm
- get a root prompt (sudo gainroot should do the trick, if you installed the gainroot package)
- go to the directory where you saved the script (cd name_of_directory)
- run the script with the following command "perl unlock.pl"
- you should now get your lock code
 
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#7
It worked, though, when it displayed the code the last two digits were cut off. I was able to remember what they were by the rest of the code so everything worked. Thanks! Now I can keep my nosy *** girlfriend out of it. lol
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#8
ok...great...glad it worked for you

I guess that the offset I gave you wasn't 100% correct though, which should explain the partial lock code retrieval..
 

The Following 2 Users Say Thank You to lorelei For This Useful Post:
munky261's Avatar
Posts: 1,674 | Thanked: 171 times | Joined on Mar 2007 @ Anderson, IN
#9
Does the offset govern the length of the code it is looking for?
__________________
There is only one Return, and it's not of the King, it's of the Jedi.
 
JayOnThaBeat's Avatar
Posts: 1,028 | Thanked: 578 times | Joined on Mar 2009 @ Chicago
#10
Originally Posted by lorelei View Post
A precision: reflashing the device will unlock the device but won't clear the lock code.

there's a procedure
here to retrieve the lost code, so that you can change it to something else, but for that you will need to have access either via SSH or to an xterm on the device.

Standard disclaimer: Use the script at your own risk, of course
Hey lorelei, good work.

Would you (or someone less lazy than myself) add this info to the wiki?

IMHO this is invaluable information, as it is bound to happen to many people over the course of time.
__________________
maemo.org search
I AM NOT A ROLE-MODEL.
 

The Following User Says Thank You to JayOnThaBeat For This Useful Post:
Reply

Thread Tools

 
Forum Jump


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