A script to build LineageOS for Nexus 5X(bullhead) from source.
Just download build-lineage4me.sh, read and adjust for your needs and execute
- Signing, to pass SafetyNet
- Vendor blobs from TheMuppets repo
- FDroidPrivilegedExtension is built from source
- Patches for microg signature spoofing and non-system unifiednlp
- Adds latest signed microg apks as system apps
- Grant powersaving opt-out to microg via google.xml
- Root achieved by chaining latest Magisk beta zip
- A patch to make LineageOS Setup Wizard add the microg repo to F-Droid client, so that the microg apps get updates
- Removed some RCS(SMS replacement?), DM(Voice mail for US carriers?) and Google Fi related binaries I don't think I'll ever need
- Removed Jelly(browser) and Eleven(music) because there are better apps bundled
- Removed updater apps because there are no OTAs
- Adds some preinstalled apps to data: F-Droid client, VLC Nightly, Firefox, Firefox Focus, Amaze File Manager, Termux, Osmand~
- Move microg to /data, except for RemoteDroidGuard.
- Possible problem: how to automatically grant signature spoofing permission to GmsCore and FakeStore. Some special xml?
- Build ElementalX with patches for Kali NetHunter, instead of useless stock kernel
- Include battery-optimizing governor tweaks
- Put them into magisk late-start folder?