Can I relock my FP5 on e/OS?

I have installed e/OS (official build) on my FP5 and unlocked the bootloader to do so. Now I want to relock it again, which should be possible.

The instructions from e/OS are clear and simple:

  1. Reboot your device into bootloader

  2. Lock the critical partition:

    fastboot flashing lock_critical
    
    
  3. Lock the device:

    fastboot flashing lock
    
    

What worries me is what is mentioned here:

“Devices should deny the fastboot flashing unlock command unless the get_unlock_ability is set to 1. If set to 0, the user needs to boot to the home screen, open the Settings > System > Developer options menu and enable the OEM unlocking option (which sets the get_unlock_ability to 1).”

I unlocked following e/OS instructions, but get_unlock_ability returns 0.

I cannot (re)enable the OEM unlock option in Developer options. It is fixed in the OFF position and reads “Bootloader is already unlocked”.

Elsewhere I read that re-locking in this situation will brick the device…

Please advice.

Thanks for your help,

Johan Spee

You might want to add which version of /e/OS is now installed on your device. The most recent version for your FP5 is 4.4.2 and 4.5.1 is expected any other day.

If the version on your FP5 right now is lower than 4.4.2, then your security patches are older than they are on the most recent version of Fairphone OS – this usually triggers the “anti-rollback” mechanism when locking the bootloader. In this case, I would recommend you wait until you get a more recent /e/OS update.

The version installed on my phone is 4.4.2

Does that also trigger the get_unlock_ability = 0?

The SPL for the current stock rom is September 5, 2026, see:

https://support.fairphone.com/hc/en-us/articles/18896094650513-How-to-manually-install-Android-on-your-Fairphone

The version that was on my phone when I locked it was probably older (I did not update)

The SPL (shown as ASP) for my e/OS version is Oct 1, 2026, see:

So…no problem there I would think.

ok, then anti-rollback should not be an issue :+1: /e/OS 4.4.2 should be a security upgrade vs. the most recent Fairphone OS version for the FP5. Perhaps someone else has an idea then.

Cross-reference for others reading along here:

AI tell me e/OS is the cause of this:

On the Fairphone 5, the official /e/OS installation script routinely wipes or modifies the Factory Reset Protection (frp) partition. This action sets the get_unlock_ability state to 0 inside the bootloader. Once it hits 0, the /e/OS userland grays out the “OEM unlocking” toggle inside Developer Options because the system detects that the bootloader is already open, but it locks the fallback safety switch to OFF

It also gives me a solution:

  1. Reinstall the official Fairphone OS factory image

  2. Go to Settings > System > Developer Options.
    The OEM Unlocking toggle should now be interactive. Toggle it ON. This actively forces the device to set get_unlock_ability back to 1

  3. Reinstall e/OS**

    And here is the most essential part:
    Once /e/OS is reinstalled, boot directly into fastboot mode before letting the phone boot to the /e/OS system for the first time.
    Run fastboot flashing get_unlock_ability. Only if it returns 1 can you safely lock your bootloader.

The FP5 e/OS install page does not mention this. On the contrary: it says “After you have completed the installation and verified it starts up successfully, you can lock the bootloader on your FP5”

Hasn’t anyone noticed this before? The FP5 has been on the market for years…

Section 3. is true. Section 1. is AFAIK not needed (and 2. might even be AI hallucination).
Well, the documentation is unfortunately rather not helpful here…

Including the "boot directly into fastboot mode before letting the phone boot to the /e/OS system for the first time" part I suppose?

If that is the case, how is it possible that the FP5 installation instructions have always been wrong?

I can’t contribute much knowledge as I don’t have a Fairphone 5, but there’s a direct feedback mechanism in place …

It can brick, however, when you respect the “SPL rule” there is normally no need to check get unlock ability on the FP5 before relocking.

And it can even relock without bricking it when its 0 in that moment.

So if you want to take the precautionary step and check get unlock ability, you must not boot into the system before checking.

As much as I would like to trust you in this, it contravenes all other advise in this matter.

Have you tried this yourself?

Its no advice its a fact.

You can relock without bricking.

The chance to get a brick is higher, however its no rule it will brick 100%. So I just wanted to correct you statement and I did not advice to do so.

I remember fighting the same fight 3 years ago, unfortunatelly I havent made notes and forgot the details.

But the concept of locking before anything gets written on a fresh flash rings a bell and I think the fight was long becayae I really wanted to avoid it (it meant losing a lot of setups).

I installed the new 4.5.1 from scratch, intercepted the reboot and pressed Vol-down + Power to boot into fastboot.

Now get_unlock_ability should return 1 - but it it did not. It still returned 0.

So, bearing your “You can relock without bricking” in mind I went ahead and re-locked the phone.

And it worked like a charm.

Thanks for the tip!

You are brave :face_with_peeking_eye: is the OEM unlock setting greyed out?

No, it is enabled (and ‘off’).

Oh, that’s not good news. Anyway, thanks for checking!