TWRP for Fairphone 4
Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no responsibility for any damage that may occur from installing or using TWRP.
Support Status: Current
Maintainer: z3ntu
Code Name: FP4
This means that installing TWRP or swiping to allow system modifications will prevent you from being able to boot. To bypass AVB's boot prevention, you will have to disable it or install a custom ROM that ships with disabled AVB.
To disable AVB via fastboot, grab the vbmeta image from the ROM you are on, and flash it with the following command:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
AVB should be now disabled on your device.
This means that TWRP will not allow modifications to any of the partitions that make up the Super partition on the stock ROM. All backups and restores will include the full Super partition rather than the individual dynamic partitions.
In order to flash the individual partitions, you will have to boot into fastbootd.
Current and past versions of TWRP can be found at one of the mirrors below:
Download the latest TWRP image file (.img) from the download link and boot TWRP. Go to install and find and select the Images... button. Browse to the image that you downloaded and select it. Choose recovery and swipe to flash.
You will need the platform-tools from the Android SDK on your computer. Download the platform-tools as per your operating system.
Windows users will need proper drivers installed on their computer. You can try the simple FWUL adb/fastboot ISO or the Naked ADB drivers or the Universal ADB drivers if you don't already have a working driver installed
On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
adb reboot bootloader
You should now be in fastboot mode.
Download the correct image file and copy the file into the same folder as your platform-tools. Rename the image to twrp.img and type:
fastboot flash recovery twrp.img
fastboot reboot
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
- Luca Weiss
2023-09-28T13:51:09Z
Remove direct android_device_qcom_common dependency This project is now included in the main manifest, remove it. - Luca Weiss
2023-09-28T13:05:01Z
Remove copy-pasted USB product string in init.recovery.usb.rc This is obviously not used on Fairphone 4. - Luca Weiss
2022-06-02T12:06:35Z
Include IBootControl HAL for slot switching Required with newer TWRP commits, previously just bootctrl was sufficient. - Luca Weiss
2022-06-02T10:27:02Z
Import init.recovery.usb.rc to fix MTP From TeamWin/android_device_asus_sm8350-common - Luca Weiss
2022-06-02T08:37:22Z
fstab: clean up flags