my-lineage/before.sh

22 lines
967 B
Bash
Executable file

#!/bin/bash
## add lawnchair overlay to build
sed -i "1s;^;\$(call inherit-product-if-exists, vendor/lawnchair/lawnchair.mk)\n\n;" "/srv/src/LINEAGE_19_1/vendor/lineage/config/common.mk"
## remove Trebuchet
sed -i 's/overrides.*/overrides: ["Home", "Launcher2", "Launcher3", "Launcher3QuickStep", "ParanoidQuickStep", "PixelLauncher", "TrebuchetQuickStep", "TrebuchetOverlay"],/' "/srv/src/LINEAGE_19_1/vendor/lawnchair/Android.bp"
## remove F-Droid
echo "PRODUCT_PACKAGES += \\
GmsCore \\
GsfProxy \\
FakeStore \\
IchnaeaNlpBackend \\
LocalGsmNlpBackend \\
AuroraServices \\
NominatimGeocoderBackend" | tee "/srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms.mk"
#rm /srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_aurora.mk
#rm /srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_fdroid.mk
#rm /srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_grapheneos.mk
rm -r /srv/src/LINEAGE_19_1/vendor/partner_gms/AuroraStore/