TWRP for Fairphone 5

Here you can find TWRP (TeamWin Recovery Project) builds for the Fairphone 5.

Please remember that TWRP is not officially supported by Fairphone!

You can now find TWRP directly on twrp.me!

Known issues:

  • Encrypted userdata not supported
  • Vibration not supported
  • Other undiscovered things?

Please also note that Android security features like AVB (Android Verified Boot) & dm-verity might make your device unbootable if you tamper with some partitions. Keep your important data always backed up off-device!

Device repository (incl. build instructions):

Previous releases:

twrp-3.7.0_12_FP5-UNOFFICIAL-20230825:

Uncompress the .gz file and then you can boot TWRP using: fastboot boot twrp-3.7.0_12_FP5-UNOFFICIAL-20230825.img

Device repository (incl. build instructions):

26 Likes

Awesome! That was fast!

1 Like

Wow. Nice to see that one provided right off the bat. :slight_smile:

2 Likes

Is there any way you could provide the zip (or a modified boot.img) as well, so we can install it permanently instead of just manually booting into it with fastboot?

or am I getting something wrong here? Still used to having a recovery partition, I don’t know if I fully understand all implications of the A/B partitioning yet.

I yet need to receive my FP5 and there is already an unofficial TWRP… This is awesome.

@rob87 Well… fastboot boot [img_file] is for testing and is indeed loaded into memory.
Flashing can be done using: fastboot flash recovery [img_file], which I do not recommend yet, since I didn’t test it myself :lollipop: … (WARNING: This might and will override your recovery)

1 Like

Indeed be careful with such advice without the device in your hands or definitive sources.
There might not be a recovery partition to flash to (as the Fairphone 3 has shown, for example).

5 Likes

Hence my warning… :sweat_smile: . But still sharing it.

The More You Know The More You Realize You Don’t Know.

FP5 does not have a recovery partition. You have two boot partitions A/B and the recovery is installed onto those boot partitions. Simply flashing with fastboot flash basically works but will overwrite the whole boot partition resulting in a device which just boots into TWRP.

1 Like

I’ve honestly not really looked into how to install TWRP permanently. I assume it requires patching the ramdisk in the boot partition (like on Fairphone 3 like others mentioned). But from searching around a bit I think these instructions should apply to Fairphone 5 (haven’t tried myself though): _includes/fastbootabinstall.html - twrpme - Gitiles

So in short, there should be an “Advanced” > “Flash Current TWRP” option, or “Install Recovery Ramdisk” option that will permanently install TWRP.

3 Likes

there is no such option when booting TWRP. Just “Install TWRP App” but that’s not really effective. AFAIK the App only searches and applies updates for TWRP.

I’m lurking on the fp5 and glad to see we already got a twrp.
What is the status of root on the FP5 ? I see there’s a “Fairphone 5 rooten” thread but my german is unfortunately way too rusty to figure it out :slight_smile:

I think the summary for now is:
someone is planning to root the FP5 using Magisk. But no one up to now has confirmed that it really works.

My FP5 is rooted. Fairphone’s instructions for unlocking work. The Magisk instructions for installing Magisk also work. :person_raising_hand:

4 Likes

Nice ! So same procedure as FP4, patching the boot.img using magisk, booting on patched boot.img then installing Magisk on the system?

We will open a topic once confirmed, could we keep that seperated from the TWRP topic please?

Is there a way to install a GSI system through TWRP on the SUPER partition system of the Fairphone?
Thanks in advance.

Will support for “Encrypted userdata” be available soon? Because without this function, twrp is relatively useless.

1 Like

Hopefully soon, but I can’t promise anything yet :slight_smile:

6 Likes

I’m happy to announce that you can now find TWRP builds directly on twrp.me! Currently there’s no change in supported features or known issues but userdata decryption is nearly ready if everything goes well!

Initial post has been update to point there :slight_smile:

9 Likes

That would be awesome :smiley:
Could you tell us a little more about your strategy to make it working? Is it similar to FP4 decryption or not?