Install /e/OS on a Fairphone FP4 - “FP4”
The instructions in this guide will assist you to install /e/OS on your FP4. Please read through the instructions at least once before actually following them, so as to avoid any problems later.
It is important that you know that downgrading Smartphones on OS versions greater than the /e/OS OS version you plan to install, can cause instability or at worst brick some devices. We recommend that you check your current OS version, before attempting the installation.
It is advisable to flash your device only if you know what you are doing and are ok taking the associated risk. All /e/OS builds are provided as best effort, without any guarantee. The /e/OS project and its project members deny any and all responsibility about the consequences of using /e/OS software and or /e/OS services.
Requirements
- If required take a backup of all important data from your phone on an external storage device before proceeding.
- Do not take a backup on the same device as some of these actions will format the device and delete the backup.
- Ensure your phone is charged more than 50%
- Check that
adb
andfastboot
are enabled on your PC. If not you can find the setup instructions here - Download all the files and images mentioned in the download section below before starting the installation
-
Make sure you have a working data cable to connect your device to the PC. There are cables which are only for charging and do not transfer data.
-
Your device requires a code to unlock the bootloader. Get the code here before proceeding with the next steps
- Enable USB debugging on your device. You can find the instructions here
- Make sure that your model is listed in the Smartphone Selector. Check the model supported. Where available, information on the model supported should show as a pop-up when you hover the cursor on the Device name. The model number supported should be the exact same.
- Boot your device with the stock OS at least once and check every functionality.
Please share your experience , suggest tips or changes to this install guide documentation by visiting the FP4 specific topic on our community forum.
To report issues in /e/OS please refer this guide
If you try installing a version of /e/OS based on a security patch that is older than the one on your device, you will brick your device. Click on
Details
below for detailed informationTo check the security patch level on your phone with a locked bootloader, prior to installing /e/OS, open your phone
Settings
» About Phone
» Android Version
» Android Security Patch Level
.Then compare it against the level of the security patch on the /e/OS build as visible in the Downloads for FP4 section below.
The following values control whether anti-rollback features are triggered on FP4:
* Rollback protection errors trigger if you install an update whose version number is
LESS
than the rollback index’s value stored on device.
* The value of rollback index is
UPDATED
to match ro.build.version.security_patch
’s value of the currently installed version, but only if the bootloader is LOCKED
.
* The value of rollback index is
NOT
dependent on the currently installed ANDROID VERSION
.
* The value of rollback index can
NEVER
be DOWNGRADED
.
* Rollback protection errors are
FATAL
when the bootloader is LOCKED
.
* Rollback protection errors are
IGNORED
when the bootloader is UNLOCKED
.
Here are some examples to help you understand how anti-rollback features work:
Example 1
* Your FP4 with Google Android has a Security Patch Level saying June 5, 2022
* The /e/OS build available says: /e/OS build : R official (Security patch: 2022-05-05)
* In this example, the /e/OS build has an older Security Patch level than the origin, so the anti-roll back protection will trigger, and you will brick your phone
Example 2
* Your FP4 with Google Android has a Security Patch Level saying June 5, 2022.
* The /e/OS build available says: /e/OS build : R official (Security patch: 2022-06-05)
* In this example, the /e/OS build has the same Security Patch level than the origin, so the anti-roll back protection will pass, and you will be able to install /e/OS with no issues.
Example 3
* Your FP4 runs Google Android -R while /e/OS is now available based on AOSP -S.
* Your FP4 with Google Android has a Security Patch Level saying 2022-10-03 or October 3rd, 2022.
* The /e/OS build available says: /e/OS build : S official (Security patch: 2022-06-05)
* In this example, the /e/OS build has an older Security Patch level than the origin, so the anti-roll back protection will trigger, even if the /e/OS version runs on a more recent version of AOSP. In this example, you will brick your phone.
Downloads for FP4
-
/e/OS build : U community (Security patch: 2024-10-05)
-
/e/OS build : U official (Security patch: 2024-10-05)
To understand the difference between /e/OS builds check this guide
Before install
How to Boot into bootloader mode
This section will be relevant later throughout the guide, when you need to reboot into bootloader mode.
- Remove any USB-C cable and turn off your Fairphone 4
Tip: If you cannot turn your device off, remove the battery for about 5 seconds, then put it back in.
- Press and hold the Volume Down button.
- Insert a USB-C cable connected to the power (can either be a power outlet or a computer).
- Release the Volume Down button as soon you boot into bootloader mode
For more details on how to erase the data on your FP4 refer this guide
Unlocking the bootloader
- Boot the device
- Enable and connect Wifi
- Enable Developer options
- From developer options, enable OEM unlock
- Get the unlock code from this site and enter it
-
Reboot on fastboot by running the command in the PC console
adb reboot bootloader
Tip: All the console commands are run on an adb enabled PC and in theadb
console. - Ask for unlock with
fastboot flashing unlock
- Approve with volume + then power
- The device proceed with a factory reset, and automatically reboots
- Reboot again into bootloader
- Unlock critical with
fastboot flashing unlock_critical
- Approve with volume + then power
- The device proceeds with a factory reset, and automatically reboots
Installing /e/OS
Caution
in Requirements section of this guide, before proceeding.-
Unzip the archive
unzip <fileyoudownloaded>
Replace
<fileyoudownloaded>
with the name of the archive file you downloaded.Alternately you can create a folder and unzip the archive there.
-
Confirm that extracted directory contains following content:
bin-linux-x86 directory
- which contains linux tools including fastboot and adbbin-msys directory
- which contains Windows tools including fastboot and adbimg files
- Theimg
files that are to be flashed onto the device.flash_FP4_factory.sh
- The installer script.
-
Boot into bootloader/fastboot mode.
- Power OFF the device.
- While holding
Volume Down
button, plug in a USB Cable that’s connected to a PC on the other end.
-
Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
- Make sure you are in the current directory which contains the
flash_FP4_factory.sh
file.
Linux
- Right click -> Open terminal here
- Execute the following command:
chmod +x flash_FP4_factory.sh && ./flash_FP4_factory.sh
Windows
- Right click -> Git Bash here
- Execute the following command:
chmod +x flash_FP4_factory.sh && ./flash_FP4_factory.sh
The script will flash all required files and will wait for input at the last step. Proceed to locking the bootloader.
- Make sure you are in the current directory which contains the
Locking the Bootloader
Caution
in Requirements section of this guide, before proceeding.Once you have completed the above steps and before rebooting you can lock your Bootloader.
- Lock critical partition with the following command
fastboot flashing lock_critical
- Approve with Volume + then power
- Reboot your device into bootloader, and plug it to your computer
- Lock the device with the following command
fastboot flashing lock
- Approve with Volume + then power
Please share your experience , suggest tips or changes to this install guide documentation by visiting the FP4 specific topic on our community forum.
To report issues in /e/OS please refer this guide