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

Revision history [back]

click to hide/show revision 1
initial version

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

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

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

  1. Enter recovery-mode
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt
  5. sed -i "/nemo\\devicelock\\maximum_attempts=/c\nemo\\devicelock\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf
  6. reboot

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

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

  1. Enter recovery-mode
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt
  5. sed -i "/nemo\\devicelock\\maximum_attempts=/c\nemo\\devicelock\\maximum_attempts=-1" "/nemo\\\devicelock\\\maximum_attempts=/c\nemo\\\devicelock\\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf
  6. reboot

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

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

  1. Enter recovery-mode
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt
  5. sed -i "/nemo\\\devicelock\\\maximum_attempts=/c\nemo\\\devicelock\\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf
  6. reboot

the code wrapper destroys slashes so I had to use it this way to show everything, 5. is one line

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

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

  1. Enter recovery-mode
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt
  5. Enter sed -i "/nemo\\\devicelock\\\maximum_attempts=/c\nemo\\\devicelock\\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.confsed command shown below
  6. reboot

the code wrapper destroys slashes in list items so I had to use move it this way to show everything, 5. is one lineoutside of the list

sed -i "/nemo\\\devicelock\\\maximum_attempts=/c\nemo\\\devicelock\\\maximum_attempts=-1" /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf

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

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


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

  1. Enter recovery-mode
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /mnt
  5. Enter Either edit vi /mnt/usr/share/lipstick/devicelock/devicelock_settings.conf by hand or enter the sed command shown 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

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

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


Disclaimer: By following this guide you get into areas where you can easily brick your device for good, 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
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /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

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

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
  2. Enter recovery-shell (4)
  3. Enter your device-lock-code to unlock
  4. mount /dev/mmcblk0p28 /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

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

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)
  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

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

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)(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