[HOWTO] Permanent Device Lock - Recover your Data onto SDCard (IF you know the pin)
So i let my little cousin play with my phone and tada, its in permanent lock mode now.. I recently made a backup with the integrated Function, so i wanted to save that & the pictures made since then etc.
Start device in Recovery mode https://together.jolla.com/question/22079/howto-all-pc-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/
Enter 4 for Shell
Enter your pin
Do bklid and note the first part, example output .. /dev/mmcblk1p1: UUID="B474E96674E92BB4" LABEL="SDCARD" TYPE="vfat" ..
Edit /etc/fstab and add following line: /dev/mmcblk1p1 /mnt/SDCARD vfat rw,defaults 0 0 This is an example for a Fat32 partition (note the vfat), you have to use the TYPE which blkid returned you
Enter this command: mkdir /mnt/SDCARD
Do mount /dev/mmcblk1p1
Enter following commands: MOUNT_DIR=/mnt
ROOT=$(cat /proc/cmdline | sed -e "s/ /\n/g" | grep ^root= | cut -d "=" -f2)
mount -o subvolid=0 $ROOT $MOUNT_DIR
Now you have your SD Card under /mnt/SDCARD and your home directory under /mnt/@home
Copy the files you need with cp command
If you want to save the backup file (.vault) do this: tar cf /mnt/SDCARD/vault.tar -c /mnt/@home/nemo/.vault
Now shut down your phone (take out battery + USB) and remove SDCard
Go into Recovery mode again
Make a factory reset
Start phone and enable developer mode + SSH
Use a SCP program (i used winscp) to copy your documents + pictures, also copy the vault.tar file to the user home (~)
Unpack the tar tar -xvf vault.tar
Go to ~/mnt/\@home/ and use mv to copy the .vault folder into the home (~)
Do a restore
Im really tired, i shall retype this all, or at least correct the many typo's.
Hope this hels
One thing I do not get here, is what do you mean by "permanent lock mode", sure, if your cousin changed your PIN and locked the device, that'd be permanent lock mode.
However, you state that you KNOW what your PIN code is... How is your device locked then?
juiceme ( 2014-05-05 22:02:04 +0200 )editIf there a number of tries set under device lock, in my case it was 10. We are talking about device lock, not pin code btw. So after 10 tries a red font stating "permanently locked" appears. Rebooting, waiting 24h etc doesnt help ;)
ozzi ( 2014-05-06 08:18:36 +0200 )editOf course, I did not think of this long enough. And of course on my own device I have set unlimited tries to the lock code :)
juiceme ( 2014-05-06 08:23:05 +0200 )editWell i had the bad luck that i had set one, since there was no mentioning the device will get permanently locked.. I thought, oh well it will be locked for like 15 minutes and then give me new tries. Like most devices. #unlike ;)
ozzi ( 2014-05-06 15:19:07 +0200 )editSo, a factory reset removed the permanently locked screen?
gabriel ( 2014-06-21 19:19:55 +0200 )edit