GSI ROMs for FP4 (WIP)

Hello there ^^

I’m asking myself whether there are any experiences with GSI ROMs for the Fairphone 4?
I switched from Fairphone OS to LineageOS 20 because of… features…

How to flash
  1. Get an up-to-date fastboot on your computer (fastboot —version should give version >= 29)
  2. Get vbmeta.img from https://dl.google.com/developers/android/qt/images/gsi/vbmeta.img
  3. Get A/B arm64 GSI
Naming scheme for GSI ROMs

{arm|a64|arm64}_{a|b}{v|g}{N|S}-{vndklite|secure|personal}

arm: ARM 32-bit (deprecated since Android 12)
a64: ARM 32-bit with 64-bit binder
arm64: ARM 64-bit

a: “A-only”, i.e. system-as-system (deprecated since Android 12)
b: “AB”, i.e. system-as-root

v: Vanilla, i.e. no GAPPS
g: With regular GAPPS
o: With Android Go GAPPS
(f): With built-in MicroG and FLOSS replacements of GAPPS (not offered here)

N: No Superuser
S: Built with PHH Superuser (app needed)
(Z): Built with eremitein’s Dynamic Superuser (not offered here)

vndklite: For VNDKLite devices or for read-writeable /system on regular devices
secure: Superuser removed and system props spoofed, for better chances of passing SafetyNet
personal: With personal mods, for reference

Sideload => SLIM means with GApps but reduced… depends on maintainer, which one are preloaded…

  1. From running Android, do adb reboot bootloader and select fastboot
  2. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
  3. fastboot reboot fastboot
  4. fastboot flash system system-xxxx.img
    6bis. If fastboot tells you there isn’t enough place, do fastboot delete-logical-partition product, fastboot delete-logical-partition producta, fastboot delete-logical-partition productb and run the fastboot flash command again
  5. On your phone, the screen should have a button “go back to recovery”, select it, then select “factory reset / wipe data” (for clean flash)
  6. Reboot and enjoy
  7. If you want to flash additional ZIPs, boot to TWRP => Wipe => Advnace Wipe => select System => Repair or change file system => Resize File System => DONE :slight_smile:
ROM Flash method Base ROM (what was before) Results
AncientOS v7.1 vanilla clean flash LineageOS 20 w/o Magisk :wavy_dash: (Works fine, daily usage aborted for personal reasons)
AncientOS v7.1 vanilla dirty flash LineageOS 20 w/ BitGApps & Magisk :x:
crDroid GSI v9.9 dirty flash LineageOS 20 w/ BitGApps & Magisk :x:
crDroid GSI v9.9 clean flash LineageOS 20 w/o Magisk :wavy_dash: (Boots up but after unlocking the touchscreen stops responding)
crDroid GSI v10.0 clean flash STOCK (FP4-TP1V-factory) :wavy_dash::watch:
SparkOS v13.7 dirty flash LineageOS 20 w/ BitGApps & Magisk :x:
1 Like

the search function might give answers

2 Likes

And the other one here? I mean, I could flash every day or week a new GSI ROM, but that’s just me…

Who knows, if someone else did that already like the idea of soldering a 2nd SIM card slot to the left solder pads and implement a small switch to switch between eSIM or 2nd physical SIM ^^

my GSI for FP3 could theoretically work on a FP4, or any other phone, because it’s a GSI

1 Like

Weird… I can’t edit my first post… meeh!

I’m currently experimenting with GSI ROMs and so far, I BELIEVE to understand how GSI works
(Please correct me, I didn’t read the technical stuff YET, I’m only talking about experiences!)

I’ve noticed that nowadays, there is a /vendor partition and there seems to be many hardware related stuff inside like drivers, config files and so on…

I have a tablet with /vendor which I had to modify to slim down the stock Android…

Now I’m abusing my old Sony XZ2C for testing and so far, every GSI works fine…
I’m thinking about to test soon how dirty flashing works out for people, who doesn’t want to config everything again although I would NEVER recommend doing this if you don’t use AOSP or LineageOS before (these ROMs are mostly used as a base for custom ROM and they are pretty bare…)

I also won’t test many GSI ROMs because I only have ONE main phone… I try to get hold of a FP4 for cheap for development purposes! But feel free to test some GSI ROMs and report your experiences :slight_smile:

Wish me luck!

Made it a wiki if you want to edit the first post still

2 Likes

@yvmuell Do you know, how I can resize the system partition? It need space for GApps installation :confused:

no I dont know, maybe this helps

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.