# FP4 - Unable to relock bootloader

**URL:** <https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416>\
**Category:** System and Apps\
**Tags:** Fairphone4\
**Created:** [19 March 2022 09:12 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416 "2022-03-19T09:12:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiwih](https://community.iode.tech/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kiwih](https://community.iode.tech/u/Kiwih)\
**Post date:** [19 March 2022 09:12 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/1 "2022-03-19T09:12:00Z")

</div>

Hey there,

Firstly thank you for providing an alternative OS for the FP4 🙂  
I yesterday got my Fairphone 4 and installed iodéOS on it. Sadly whenever I try to relock the bootloader (with the command ‘fastboot flashing lock’ because the command provided in the instructions ‘fastboot oem lock’ did not work. Same thing for unlocking) I get the following error message:

```auto
<!>
Your device is corrupt. It can't be trusted and will not boot

```

After that I get trapped in the bootloader not even able to get into recovery mode (Getting to recovery is only possible after entering ‘fastboot boot iode-2.3-20220126-FP4-recovery.img’ and installing everything all over again).

I really hope you can help me out here because I really want to use this OS with a locked bootloader.

Cheers

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [19 March 2022 10:28 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/2 "2022-03-19T10:28:18Z")

</div>

Go back in bootloader  
Unlock it again  
Start from beginning with installation of recovery and iode  
Leaf bottlader open  
Start iode  
It works then also the updater

You have no other chance at the moment  
Problems with FP4 and relocking are known at the developers  
Trying to find a solution

Do not try to relock it at the moment!!!

And do nothing with lock\_critical or unlock\_critical  
This would brick it totally

At the moment you have a chance to unlock it again in boot mode

---

<div class="post-metadata">

**Author:** ![Kiwih](https://community.iode.tech/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kiwih](https://community.iode.tech/u/Kiwih)\
**Post date:** [19 March 2022 10:39 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/3 "2022-03-19T10:39:01Z")

</div>

Thank you for your reply.  
If the problem is already known I’m going to wait until the devs fixed it.  
Maybe someone should remove the locking part from the install instructions until it’s working as intended.

Have a nice day 🙂

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [19 March 2022 12:07 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/4 "2022-03-19T12:07:51Z")

</div>

> [@Kiwih](#):
>
> Maybe someone should remove the locking part from the install instructions until it’s working as intended.

That is also already reported in the beta telegram group  
should be done ASAP.

You’re safe until you do not relock the bootlaoder  
You can use iodé without limitations and the updater works, too.

If you have no worries with an open bootloader, you don’t have to wait

---

<div class="post-metadata">

**Author:** ![vince31fr](https://community.iode.tech/user_avatar/community.iode.tech/vince31fr/32/13_2.png) [@vince31fr](https://community.iode.tech/u/vince31fr)\
**Post date:** [20 March 2022 06:50 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/5 "2022-03-20T06:50:23Z")

</div>

You can try a solution that has been just posted in the beta telegram group, or wait for the next release that will hopefully solve this problem.

---

<div class="post-metadata">

**Author:** ![vince31fr](https://community.iode.tech/user_avatar/community.iode.tech/vince31fr/32/13_2.png) [@vince31fr](https://community.iode.tech/u/vince31fr)\
**Post date:** [21 March 2022 09:39 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/6 "2022-03-21T09:39:45Z")

</div>

The next release will not solve the problem, as an additional step is required in the bootloader. You can follow the updated instructions on [iode / ota · GitLab](https://gitlab.com/iode/ota). In brief for you:

- download [https://github.com/iodeOS/ota/releases/download/v2-FP4/avb\_custom\_key-FP4.bin](https://github.com/iodeOS/ota/releases/download/v2-FP4/avb_custom_key-FP4.bin)
- fastboot flash avb\_custom\_key [avb\_custom\_key-FP4.bin](https://github.com/iodeOS/ota/releases/download/v2-FP4/avb_custom_key-FP4.bin)

This defines iodéOS custom key as a root of trust used by the bootloader to verify rom authenticity, and permits to boot when the bootloader is relocked.

---

<div class="post-metadata">

**Author:** ![Kjell](https://community.iode.tech/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@Kjell](https://community.iode.tech/u/Kjell)\
**Post date:** [21 March 2022 11:58 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/7 "2022-03-21T11:58:05Z")

</div>

I relocked my bootlader and everything works just fine. Does this only affect some devices? Or will I get issues in the future?

---

<div class="post-metadata">

**Author:** ![vince31fr](https://community.iode.tech/user_avatar/community.iode.tech/vince31fr/32/13_2.png) [@vince31fr](https://community.iode.tech/u/vince31fr)\
**Post date:** [21 March 2022 22:55 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/8 "2022-03-21T22:55:15Z")

</div>

Strangely it seems that not all devices are concerned, but maybe after a firmware upgrade you could get that issue. Probably not before unlocking your bootloader again though, but it’s difficult to tell.

---

<div class="post-metadata">

**Author:** ![Kiwih](https://community.iode.tech/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@Kiwih](https://community.iode.tech/u/Kiwih)\
**Post date:** [22 March 2022 16:58 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/9 "2022-03-22T16:58:25Z")

</div>

Thank you so much for your efforts! I will try your solution after I get a Nextcloud running for the integrated backup tool.

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [23 March 2022 05:36 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/10 "2022-03-23T05:36:11Z")

</div>

Seedvault works also with USB stick and often better 😉

---

<div class="post-metadata">

**Author:** ![Dominic](https://community.iode.tech/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@Dominic](https://community.iode.tech/u/Dominic)\
**Post date:** [24 March 2022 21:05 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/11 "2022-03-24T21:05:57Z")

</div>

Hello,

I have the same problem.  
I installed the Fairphone 4 following the instructions and the command

_fastboot flash avb\_custom\_key_

Unfortunately, after relock the bootloader I get the error message

_Your device is corrupt. It can’t be trusted and will not boot_.

When I unlock the bootloader again iode starts.

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [25 March 2022 06:57 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/12 "2022-03-25T06:57:00Z")

</div>

I currently have two questions about the issue that the phone is corrupted when the bootloader is locked again.

1. are there two hardware revisions of the FP4?
2. Is it related to the last stock SW update of FP? 103.20220221 - February2022

In the 103.20220221 there is an interesting message in the changelog:  
“Addressed an issue that was causing an incorrect message to be shown when trying to toggle the bootloader unlock function and no internet connection was available.”

It seems to me that those of us who have not had or are not having any problems have been using the previous version of the SW. 0132.20211027 The October 2021 version.

All the problems now being reported seem to be on the latest stick from February 2022.

Somehow it smells like it. Especially because of this changelog…  
All PRoblems are reported by people who haven’t had their phone that long, or are on the new stock

And this does not only concern iodé, but also /e/OS and also the change back to stock. Even there it has massive problems.

---

<div class="post-metadata">

**Author:** ![Dominic](https://community.iode.tech/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@Dominic](https://community.iode.tech/u/Dominic)\
**Post date:** [25 March 2022 16:55 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/13 "2022-03-25T16:55:13Z")

</div>

Hello,

yes I updated my Fairphone to the latest version Feburar 2022 before installing iode.

Where can I find the hardware revision of the Fairphone?

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [25 March 2022 17:00 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/14 "2022-03-25T17:00:15Z")

</div>

sorry, that was just a thought of mine if there are possibly two versions.  
How and whether you can check this at all I do not know

---

<div class="post-metadata">

**Author:** ![A944684](https://community.iode.tech/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@A944684](https://community.iode.tech/u/A944684)\
**Post date:** [25 March 2022 18:22 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/15 "2022-03-25T18:22:42Z")

</div>

I had this issue when i switched 2 times from e/os/ to iodéos and from iodéos to /e/os.  
Relocking with /e/os installed on it the second time make the phone corrupted.  
Going back to iodéos os and relocking was accepted.

It didn’t make my phone bricked i was able to unlock and relock the phone althought it was corrupted.  
It just can’t boot.

Maybe a full recovery to stock rom before flash again to iode solve this ?  
Does someone tried to make a full flash to srtock rom ?

---

<div class="post-metadata">

**Author:** ![Dominic](https://community.iode.tech/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@Dominic](https://community.iode.tech/u/Dominic)\
**Post date:** [26 March 2022 16:36 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/16 "2022-03-26T16:36:38Z")

</div>

Hello,

perhaps I have some good news.  
I have installed the iode OS Version 2.4 Beta and I can lock the bootloader without any errors.

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [26 March 2022 17:13 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/17 "2022-03-26T17:13:00Z")

</div>

What OS and Version did you use before?

---

<div class="post-metadata">

**Author:** ![Dominic](https://community.iode.tech/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@Dominic](https://community.iode.tech/u/Dominic)\
**Post date:** [26 March 2022 18:25 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/18 "2022-03-26T18:25:04Z")

</div>

Iode 2.3 for Fairphone 4 from the Iode Website.

---

<div class="post-metadata">

**Author:** ![AlphaElwedritsch](https://community.iode.tech/user_avatar/community.iode.tech/alphaelwedritsch/32/496_2.png) [@AlphaElwedritsch](https://community.iode.tech/u/AlphaElwedritsch)\
**Post date:** [26 March 2022 22:58 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/19 "2022-03-26T22:58:28Z")

</div>

OK, so you did just do an update.  
But, was your bootloader unlocked on 2.3? And why?

---

<div class="post-metadata">

**Author:** ![Dominic](https://community.iode.tech/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@Dominic](https://community.iode.tech/u/Dominic)\
**Post date:** [27 March 2022 05:30 UTC](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416/20 "2022-03-27T05:30:03Z")

</div>

Hallo,

the bootloader is unlocked becouse when I locked the bootloader with 2.3, I get the error that my Fairphone is corrupt and the phone will not boot.

So, I left the bootloader unlocked and the Fairphone will boot.

I have installed Iode OS 2.4 Beta desciped here  
[iodéOS 2.4 beta available](https://community.iode.tech/t/iodeos-2-4-beta-available/412) (I have used the UpdaterIodeBetaAndroid11ToAndroid11V2.apk)

With Iode OS 2.4 Beta I can lock the bootloader and the Fairphone boots.  
I have tested to unlock and lock the bootloader again and it worked.

[Next page](https://community.iode.tech/t/fp4-unable-to-relock-bootloader/416.md?page=2)
