# How to unlock bootloader when OS won't start?

**URL:** <https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112>\
**Category:** Fairphone 3\
**Tags:** bootloader, solved\
**Created:** [December 16, 2020, 8:15pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112 "2020-12-16T20:15:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 8:15pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/1 "2020-12-16T20:15:15Z")

</div>

I installed LinageOS 16.0 on my Fairphone 3 successfully, went to the settings and disabled the “oem unlocking” option. Then I started the device into recovery mode and installed Magisk via `adb install Magisk-v21.1.zip`. This made my phone crash and gave me the error message “Your device is corrupt. It can’t be trusted and won’t start”. I tried to completely [reinstall](https://support.fairphone.com/hc/en-us/articles/360048660371-Install-Fairphone-OS-on-FP3-FP3-Linux-Ubuntu-) FairphoneOS, but the bootloader is locked and I do not have permission to unlock it. Is there a way to unlock the bootloader or to make any android OS boot?

---

<div class="post-metadata">

**Author:** ![Alex.A](https://forum.fairphone.com/user_avatar/forum.fairphone.com/alex.a/32/33500_2.png) [@Alex.A](https://forum.fairphone.com/u/Alex.A)\
**Post date:** [December 16, 2020, 9:24pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/2 "2020-12-16T21:24:18Z")

</div>

> [@dekay1](#):
>
> adb install Magisk-v21.1.zip

I’m afraid that’s not the right way. Where did you get this command from?  
The right way is booting in [TWRP](https://twrp.me/fairphone/fairphone3.html), going in Advanced, ADB Sideload and then running `adb sideload Magisk-v21.1.zip`.  
Alternatively you can push the .zip file to an SD card with `adb push Magisk-v21.1.zip /sdcard` (or you can do it manually from your computer’s file explorer) and then in TWRP going in Install and choosing the .zip file from the SD card.

> [@dekay1](#):
>
> Is there a way to unlock the bootloader or to make any android OS boot?

Start in Fastboot mode and run ~~`adb oem unlock`~~ `fastboot oem unlock`. If that doesn’t work, run ~~`adb oem 8901_unlock`~~ `fastboot oem 8901_unlock`

---

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 9:36pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/3 "2020-12-16T21:36:29Z")

</div>

I got it by trial and error. Thought that might be correct… Thanks for correcting me!

I tried your solutions but it did not work:

```auto
$ adb oem unlock
adb: usage: unknown command oem
$ adb oem 8901_unlock
adb: usage: unknown command oem

```

When I am in fastboot I cannot access my device via `adb`. `adb devices -l` is empty.

---

<div class="post-metadata">

**Author:** ![Alex.A](https://forum.fairphone.com/user_avatar/forum.fairphone.com/alex.a/32/33500_2.png) [@Alex.A](https://forum.fairphone.com/u/Alex.A)\
**Post date:** [December 16, 2020, 9:40pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/4 "2020-12-16T21:40:59Z")

</div>

> [@dekay1](#):
>
> I got it by trial and error. Thought that might be correct…

`adb install` is only for .apk files, not for .zip or .img 😉

> [@dekay1](#):
>
> Thanks for correcting me!

You’re welcome!

> [@dekay1](#):
>
> I tried your solutions but it did not work:

Oops, my bad! Sorry… Of course adb won’t work in fastboot mode… 🤦‍♂️  
Start in Fastboot mode and run `fastboot oem unlock`, or ~~`fastboot oem 8019_unlock`~~ `fastboot oem 8901_unlock`

---

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 9:43pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/5 "2020-12-16T21:43:02Z")

</div>

```auto
$ fastboot oem unlock
...
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.020s
$ fastboot oem 8019_unlock
...
FAILED (remote: unknown command)
finished. total time: 0.010s

```

I cannot unlock bootloader, because I disabled the “oem unlocking” option and I cannot enable the option because no OS is starting 😓

---

<div class="post-metadata">

**Author:** ![Alex.A](https://forum.fairphone.com/user_avatar/forum.fairphone.com/alex.a/32/33500_2.png) [@Alex.A](https://forum.fairphone.com/u/Alex.A)\
**Post date:** [December 16, 2020, 9:46pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/6 "2020-12-16T21:46:48Z")

</div>

Opps, I have to be careful with my typos…

> [@dekay1](#):
>
> `fastboot oem 8019_unlock`

Actually it’s `fastboot oem 8901_unlock`  
My bad again.

---

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 9:47pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/7 "2020-12-16T21:47:54Z")

</div>

```auto
$ fastboot oem 8901_unlock
...
FAILED (remote: unknown command)
finished. total time: 0.020s

```

---

<div class="post-metadata">

**Author:** ![Alex.A](https://forum.fairphone.com/user_avatar/forum.fairphone.com/alex.a/32/33500_2.png) [@Alex.A](https://forum.fairphone.com/u/Alex.A)\
**Post date:** [December 16, 2020, 9:50pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/8 "2020-12-16T21:50:29Z")

</div>

Are you in fastboot mode? What does `fastboot devices` output?  
Otherwise, I’m afraid I don’t know how to help you further. I hope someone will!

---

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 9:50pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/9 "2020-12-16T21:50:56Z")

</div>

Yes

```auto
$ fastboot devices
A209KYD10202	fastboot

```

Thank you nevertheless

---

<div class="post-metadata">

**Author:** ![k4y0z](https://forum.fairphone.com/letter_avatar/k4y0z/32/6_449c533f586939b6e5f246632a46421f.png) [@k4y0z](https://forum.fairphone.com/u/k4y0z)\
**Post date:** [December 16, 2020, 10:05pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/10 "2020-12-16T22:05:38Z")

</div>

I believe the 8901\_unlock command has been removed in recent firmwares.  
You can try [Fairphone 3 unlocking without oem unlocking](https://forum.fairphone.com/t/fairphone-3-unlocking-without-oem-unlocking/57683)

---

<div class="post-metadata">

**Author:** ![dekay1](https://forum.fairphone.com/letter_avatar/dekay1/32/6_449c533f586939b6e5f246632a46421f.png) [@dekay1](https://forum.fairphone.com/u/dekay1)\
**Post date:** [December 16, 2020, 11:00pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/11 "2020-12-16T23:00:28Z")

</div>

It worked! Thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://forum.fairphone.com/uploads/default/original/3X/1/1/11e17f7340474b66653aecb35249cc1ba19b7b52.png) [@system](https://forum.fairphone.com/u/system)\
**Post date:** [March 16, 2021, 11:00pm UTC](https://forum.fairphone.com/t/how-to-unlock-bootloader-when-os-wont-start/68112/12 "2021-03-16T23:00:33Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
