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:
Reboot your device into bootloader
Lock the critical partition:
fastboot flashing lock_critical
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…
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.
ok, then anti-rollback should not be an issue /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.
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:
Reinstall the official Fairphone OS factory image
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
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…
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).