Building LineageOS for FP4

I’ve got LineageOS 18.1 running on my phone, together with microG and fdroid + FDroidPrivilegedExtension.

Before building I applied this patch with

patch -p1 -i /home/username/Documents/projects/FP4-lineageos/microgpatches/android_frameworks_base-R.patch

as described here.

Then I included these packages by adding

<project path="vendor/partner_gms" name="lineageos4microg/android_vendor_partner_gms" remote="github" revision="master" />

to my roomservice.xml file.

I also added two environment variables:

export WITH_GMS=true
export CUSTOM_PACKAGES="GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps FDroid FDroidPrivilegedExtension"

Although I’m not sure if the latter is necessary for the build.

MicroG’s self-check reports that everything is fine.

The phone warns me about using test keys (duh).

The only thing that’s different is that the camera looks worse than before - 12MP instead of 48MP and no access to the wide-angle camera. I’m thinking about bundling their camera app as a system app and seeing if it works.

5 Likes