We have moved to a new Sailfish OS Forum. Please start new discussions there.
40

[how-to] recover from "Permanent Device Lock"

asked 2015-04-28 17:24:45 +0200

chemist gravatar image

updated 2016-12-09 13:08:32 +0200

First of all: You need to know your device-lock-code!


Disclaimer: By following this guide you get into areas where you can brick your device for good easily, just like anywhere you become root, so you better know what you are doing or you void your warranty!

  1. Enter recovery-mode for JollaC it is VolUp+PwrBtn held while device is off, display should show RECOVERY...
  2. Enter recovery-shell (4 on Jolla1, 3 on Intex)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt for Tablet and JollaC mount /dev/mapper/sailfish-root /mnt/
  5. Either edit vi /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf by hand or enter the sed command provided below
  6. reboot

the code wrapper destroys slashes in list items so I had to move it outside of the list

sed -i "/nemo\\\devicelock\\\maximum_attempts=/c\nemo\\\devicelock\\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf
edit retag flag offensive close delete

Comments

I really owe you one :)

MikErk ( 2015-05-05 19:45:08 +0200 )edit

thank you so much

v2px ( 2015-05-14 21:15:58 +0200 )edit

I first misread the sed statement but confirmed it working. Be sure to type it exactly as printed there. :)

Good work chemist :)

deelkar ( 2015-06-30 19:10:48 +0200 )edit

@deelkar copy&paste? ;)

chemist ( 2015-06-30 20:57:47 +0200 )edit

Did not quite help me. I rebooted the Jolla after making the modification. It seemed alright at first but just until i set my PIN again. After the lock engaged it was in permanent lock again. I tried deleting the file entirely, which cured the issue but now i can not set the device lock again. Any help is appreciated.

Shoppinguin ( 2015-07-01 22:10:18 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2017-09-04 09:08:07 +0200

Spark gravatar image

updated 2017-09-04 09:12:30 +0200

I also want to express my thankfulness. I put this as an answer as I add some info for Android connection. The accidential devicelock (no wrong code typing) just happened to me in holidays in the middle of nowhere in indonesia. Hard to find someone who lets you use his computer to setup a telnet connection...

I managed to do it with my rooted Android Tablet (CM10) using a USB OTG cable and the app "Terminal Emulator". By that I used "telnet 10.42.66.66" to get into jolla which was started into recovery mode before. Couldn't believe my eyes when the recovery menu showed up.

Next steps as described by @chemist above. Between step 5 and 6 type "exit" to get into menu again. Maybe it's worth noting that it worked with the original jolla usb cable attached to the OTG cable but not with another standard usb cable.

PS: Jolla1 on Sailfish 2.1.0. I didn't use vi but the sed-command stated above.

edit flag offensive delete publish link more

Comments

I tried this procedure on my Jolla1, but no luck from my side. Tried to change various numbers after that, but still my device is permanently locked. I don't have the original jolla usb cable anymore. Am I screwed?

EDIT: Renaming the devicelock_settings.conf tile to devicelock_settings.conf.bak seemed to have solved the problem (https://together.jolla.com/question/164958/bug-21124-jolla-devicelock-too-many-attempts-stright-after-initial-reboot/)

arno784 ( 2017-12-30 03:19:40 +0200 )edit
0

answered 2018-09-15 13:43:53 +0200

kandelabra gravatar image

Didn't help for SFOS 2.2.0.29

https://together.jolla.com/question/164958/bug-21124-jolla-devicelock-too-many-attempts-stright-after-initial-reboot/ hepled

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
17 followers

Stats

Asked: 2015-04-28 17:24:45 +0200

Seen: 5,544 times

Last updated: Sep 15 '18