fastboot flashing lock_critical worked (with phone confirmation):
Then, I made a fastboot flashing lock successfully (with phone confirmation) and rebooted. My phone was then unable to boot (" Your device is corrupt. It can’t be trusted and may not work properly.") red message. I had to unlock it and thus reinstall LineageOS.
I’ve an idea that the problem here will be the Android security patch level. The SPL of the ROM you install needs to be the same or later than that of the ROM that you’re replacing. If you had just updated FPOS before flashing Lineage that’s a likely problem situation.
However I’m no expert so let’s try and contact someone who is! @hirnsushi are you there?
In the mean time kzoip, can you report back with the previous FPOS version you had on the phone?
And in case you continue trying to lock it, always check if get_unlock_ability is 1 before you start your attempt. If not you might hard brick your device.
Thanks for your response. I didn’t check the FP5 OS version before installing LineageOS but performed (as stated in the LineageOS documentation) an upgraded (from the regular Android GUI) before anything else so, I guess I had the last FP5 OS ( FP5.TT4D.A.157).
Thanks. I may have a try. But I wonder : why would explain that these OS allow relocking and not LineageOS ? according to https://www.reddit.com/r/LineageOS/comments/n7yo7u/a_discussion_about_bootloader_lockingunlocking/ stateed before by OldRoutard (thanks to him), the problem is the fact that the hardware has none knowledge of the alternative ROM private key. Why would PF5 support some alternative ROM private key and not the LineageOS (which is AFAIK the most widespread) ?
Another subject I find interesting but still unclear to me is the fact that -as stated- my phone is half locked/half unlocked : My critical partitions are locked ( Device critical unlocked: false) , through my bootloader is not.
I very new to this suspect so maybe naive but I feel that it could mitigate the Evil Maid attacks risk because as stated in the FF doc [1], a critical partitions unlocking would wipe my data (my final goal) and I suppose that an attacker, even if he can tamper easily my bootloader has to alter as well my critical partitions to do something useful , thus wiping all my data all together, what do you think ?
[1] " Type in fastboot flashing unlock_critical and press Enter . Once again, follow the instructions on your Fairphone to finish unlocking. This action will wipe all the personal data on your phone."
LOS has weekly updates that are not tested before release. If an error occurs while the bootloader is locked, it may not be possible to simply boot the previous ROM.