I got a new FP4 and first thing after registration was to wipe the system and install Calyx OS. For anyone out there who wants to try it, I’d like to share my experience, since at the time of this writing, the CalyxOS easy device flasher does not support FP4 yet and installation can be a bit scary. So this is exactly what I did.
Warning and Disclaimer: While this worked for me, there is no guarantee that this can be reliably reproduced. So proceed with caution. I am not responsible for any damages that might occur by following this how to. If you brick your phone, that’s your own responsibility, do not blame me. You have been warned!
Additional Warning: This will wipe all user data. So make backups.
I used Arch Linux with android-sdk-platform-tools 33.0.1-1 (aur) and android-udev 20220102-1 installed.
Download the FP4 CalyxOS install image: https://release.calyxinstitute.org/FP4-factory-22305000.zip (check if a newer one is available)
cd FP4-sp2a.220505.002(we will run the script
flash_all.shin this directory later during installation)
Go through Fairphone setup and install all available updates
Enable Developer Options. Settings → About Phone → Hit ‘Build Number’ until activated
Get Bootloader Unlocking Code for Fairphone 3 - Fairphone and follow instructions to enable OEM unlocking in Developer Options
in Developer Options enable USB Debugging
Connect phone to PC via USB and run
adb reboot bootloader. From now on, just keep it connected until we are finished. Phone reboots into fastboot mode. If
adbcannot find your device, try different USB cables and ports. Also make sure that your phone’s USB usage is set to “Transfer Data”. Try
adb kill-server; adb start-server, reconnect and try again. Allow access on the phone from your computer.
When the phone has rebooted into fastboot mode run
fastboot flashing unlock. Confirm with Vol Down + Power. This will wipe your data. You might need
sudoif udev rules are missing. If
fastbootcannot find your device, again try different cables and ports, it seems to be very picky. The phone erases all data and reboots into FPOS. Skip through setup and again enable Developer Options and USB Debugging. Make sure OEM unlock is still enabled.
adb reboot bootloader.
Now from the extracted FP4-sp2a.220505.002 directory run
This is the scary part, this will wipe your OS! For me, there were a lot of errors that said
FAILED (remote: 'Flashing is not allowed for Critical Partitions')but it still worked out in the end, so bear with me. The device will reboot a couple of times.
When the script finished my Phone tried to reboot twice and then went to recovery mode with the following error:
Cannot load Android system. Your data may be corrupt. If you continue to get this message, you may need to perform a factory data reset and erase all user data stored on this device.
With Vol Down select
Factory Data Resetand confirm with Power. System will again erase all data and finally reboot into CalyxOS.
If boot was succesfull, skip through setup and again enabled Developer Options and USB Debugging. We will wipe data one last time.
adb reboot bootloader
Relock the bootloader:
fastboot flashing lock. This is strictly not required but highly recommended. Also if you want to have SafetyNet Attestation, you must relock your bootloader. Again, this will erase all user data. Beware: there have been reports of unrecoverable bootloader loops after relocking, this can brick your phone. Before relocking, make absolutely sure, that your phone can boot into Calyx and that OEM Unlock is enabled in Developer Options. Double check if unsure!
Watch reboot into CalyxOS and enjoy your new degoogled privacy OS!