Manage the Bootloader
This process doesn't apply to the Fairphone 2! To install Fairphone OS on the Fairphone 2, follow the instructions in the article Fairphone 2 OS manual installation.
The Fairphone gives you the freedom to unlock your bootloader. Opening the bootloader allows you to install an alternative custom operating system (ROM) or install Fairphone OS offline.
Be aware that unlocking the bootloader also disables essential security features. Only open the bootloader if you know what you are doing!
An unlocked bootloader allows any expert users to take ownership of the device and perform operations that might compromise the security of your Fairphone and the data stored on it.
Part 1: On your Fairphone
To unlock the bootloader, you need a code. To get the code, you will have to provide the IMEI 1 and the serial number of your Fairphone.
After, you will also have to enable developer options on your device. Then you can use the unlock code to unlock your device. Follow the instructions below to guide you.
Before you start
Make sure you're running the latest software available. If you are not running the latest software, or you are not sure, update your Fairphone to the latest Fairphone OS.
If you skip this step, the procedure may not work.
Back up all your data from your Fairphone. Unlocking the bootloader will erase all your data.
Step 1. Get your unique unlock code
To get the code, follow these instructions:
1. Find the IMEI 1 of your device:
- On a working device: go to Settings → About phone → scroll down to IMEI (SIM slot 1).
- On a non-working device:
- Take off the battery cover.
- Take out the battery.
- On the side of the battery housing of the Core Module, there will be a white sticker with the IMEI and a barcode. Click to see how it looks on the Fairphone 3 and Fairphone 4.
- Printed on the underside of the original box of delivery.
- Printed on the delivery note.
2. Find your device's serial number.
Go to Settings → About phone → Model & Hardware → Serial number.
3. Generate the bootloader unlock code
- Go to the dedicated page for the bootloader code.
- Enter the IMEI 1 and serial number in the text fields of the form.
- Click the blue button Get your unlock code.
- You will then get your unique unlock code with further details.
- Write down the code somewhere. You'll need it later.
If you encounter an error:
- Try again at a later time.
- Try with another browser.
- Try on another device.
- Retype the identifiers, you could have made a typo.
The code changes each time. If you wish to unlock your bootloader again, you will have to repeat the procedure.
If it doesn't work, contact our Customer Support.
Step 2. Enable OEM unlocking
First, you will need to enable the Developer Options on your Fairphone. To do so:
- Go to Settings → About phone.
- Scroll all the way down and tap the Build number seven times until your phone asks for your screen lock (PIN, Password or Pattern). After you enter your screen lock, a small pop-up will appear, saying "You are now a developer".
- Go to Settings → System → Advanced → Developer options.
- Scroll down until you find OEM unlocking and set the toggle to On.
- If asked, enter your PIN, password, or pattern for unlocking the lock screen of your Fairphone.
- Enter the unlock code you wrote down in step 1.3.3 and press Enable.
Note: If it is not possible to enter the code into your device, make sure you are connected to the internet and you have updated to the latest software version. - Scroll down some more, until you find USB debugging and set the toggle to ON.
You're now ready to follow the next part of the instructions.
Part 2: On your computer (Windows and macOS)
Prerequisite for Windows - Update USB drivers
- Windows 10 or newer.
- Your computer needs to have a working internet connection.
- Your system drivers need to be up to date.
- Click the Start menu, type Device Manager, then press the Enter key on your keyboard. A new window will open.
- Scroll down the list and select Other Devices. Follow the next steps if you see an item named simply Android, preceded by an escalation dot.
- Click the Start menu, type Check for updates, then type the Enter key on your keyboard. A new window will open.
- Click on the button Check for updates located in the top right part of this window and wait for a couple of minutes. Below the button, you will now see View optional updates.
- Click on View optional updates.
- Click on Driver and updates.
- Scroll down the list if needed and select all the drivers starting with Google, Inc -...
- Click on the button Download and install.
- Once done, reboot your computer.
- The connection should now work.
Check the animation below for additional help.
Unlock your bootloader
- Install the command-line tool fastboot on your computer.
- Connect your Fairphone to your computer using a USB data cable.
- Put your Fairphone in fastboot mode. There are two ways to do this:
Hardware (buttons)
Disconnect the USB cable, turn off your Fairphone, then connect the cable and hold the volume down button. After a few seconds, you'll see the fastboot mode.
With the command-line tool ADB
- Install ADB on your computer.
- Start a Command Prompt (Windows) or a terminal (macOS/Linux)
- Type
ADB reboot bootloader
and press the Enter ↩ key.
- In a Command Prompt (Windows) or a terminal (macOS/Linux) type
fastboot flashing unlock
and press the Enter ↩ key.
If this doesn't work, try./fastboot flashing unlock
and press the Enter ↩ key. - Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
- After the phone reboots, boot into the fastboot mode once again (step 3).
- In a Command Promp or a terminal, type
fastboot flashing unlock_critical
and press the Enter ↩ key.
If this doesn't work, try./fastboot flashing unlock_critical
and press the Enter ↩ key. - Follow the instructions on the Fairphone screen. This command will wipe all the personal data on your phone.
Congratulations - the bootloader is unlocked! You can now install Fairphone OS on your Fairphone 4 or Fairphone 3(+) or your preferred custom operating system.
Optional: Lock your bootloader
Be aware that:
- You should always use the latest available package to flash Fairphone OS on your device.
- If you installed a 3rd-party OS, locking your bootloader might prevent your device from booting correctly.
- To prevent unauthorized access to your data, locking the bootloader will delete all personal data on your phone.
- If you install an OS with an older security patch level than your previous OS, Android's roll-back protection might brick your device when locking the bootloader! Wait until you get a software update with the same or newer security patch level before locking the bootloader.
To protect your data in case of theft or loss of your Fairphone, we advise you to keep the bootloader of your Fairphone locked.
To lock the bootloader of your Fairphone again, follow the instructions below:
- If not done yet, install the command-line tool fastboot on your computer.
- Connect your Fairphone to your computer using a USB data cable and make sure USB debugging is enabled.
- Put your Fairphone in fastboot mode. There are two ways to do this:
Hardware (buttons)
Disconnect the USB cable, turn off your Fairphone, then connect the cable and hold the volume down button. After a few seconds, you'll see the fastboot mode.
With the command-line tool ADB
- Install ADB on your computer.
- Start a Command Prompt (Windows) or a terminal (macOS/Linux).
- Type
ADB reboot bootloader
and press the Enter ↩ key.
- In a Command Prompt (Windows) or a terminal (macOS/Linux), type
fastboot flashing lock_critical
and press the Enter ↩ key.
If this doesn't work, try./fastboot flashing lock_critical
and press the Enter ↩ key. - Follow the instructions on the Fairphone screen.
- Repeat steps 1-5, but in step 4, use
fastboot flashing lock
.
Now the bootloader is locked, and your Fairphone is safe again!
TWRP
Fairphone does not support the use of the TWRP (Team Win Recovery Project), as it might cause malfunctioning.
If you need our assistance after installing such software, you will have to restore your device to its original state. If not, usually we will consider it as out of warranty. For more information, you can check our Fairphone Warranty.
If after reading the article you need more help, contact our Customer Support.