Hi to all you experts out there!
I tried to install the Iodé 3.4 Custom-ROM to my new Fairphone4 following the “official” instructions by Iodé found here
(All files were downloaded from here)
The installation went smoothly until step #12 where I should re-lock the bootloader via
fastboot flashing lock
The previous check for unlock_ability definitly returned 1, so locking should have been possible.
But what I got was a Phone trapped in a boot-loop and, after booting to the bootloader, an error message “your device is corrupt and will not boot”. Now the Phone always(!) rebooted to bootloader, no matter what option (Start, Restart to Bootloader, Recovery Mode, Power off) I choose.
So far, so known … from several other postings here and on other forums.
What was new and surprising to me was, that I could “cycle” through the lock-states “unlocked” and “locked” via the commands
fastboot flashing unlock / lock
with the bootloader showing the correct state afterwards.
Trying to solve the boot-loop problem I repeated the steps #5,#6 (flashing the recovery-image to both(!) slots) and #7 (flashing the “avb_custom_key”).
But that indeed didn’t get me out of the boot-loop.
What has helped here was, after showing all bootloader variables and recognizing that the “current-slot” was set to “b”, to switch the “current-slot” to “a” by running:
After that, the Phone surprisingly booted to Iodé, shortly showing the “erase” of something I couldn’t read in time and automatically rebooted again, but now to the regular Iodé-OS 3.4 (which is a really nice move of the Phone, saving me at least 30€ and some days of waiting time ) !
Note: Re-reading all bootloader variables after the successfull boot to Iodé-OS now shows the following changes:
(bootloader) partition-type:userdata:ext4 was: f2fs
(bootloader) partition-type:metadata:raw was: ext4
(bootloader) current-slot:a was: b
(bootloader) slot-unbootable:a:no was: yes
while all others remain unchanged, for example the following:
(bootloader) slot-successful:a: yes
(bootloader) slot-unbootable:b: yes
(bootloader) slot-successful:b: yes
So…finally(!) it comes to the following questions:
- After switching to slot “a”, can I now safely(!) re-lock the bootloader to get rid of the annoying “bootloader unlocked message” during boot-time ?
- Can I safely(!) do the OTA upgrade to iodé 4.0, that is offered to me under “Settings | System | Updater”? Does this even work with a locked bootloader ?
- When, if at all, should I disable “OEM unlocking” in the OS ?
Because of the trouble I had with the regular procedure any competent advice is warmly welcomed!