28 lines
No EOL
1 KiB
Bash
Executable file
28 lines
No EOL
1 KiB
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"
|
|
|
|
## add OxygenOS overlay to build
|
|
sed -i "1s;^;\$(call inherit-product, vendor/OOS/OOS.mk)\n\n;" "/srv/src/LINEAGE_19_1/vendor/lineage/config/common.mk"
|
|
|
|
## remove unwanted app from OxygenOS
|
|
DIR="/srv/src/LINEAGE_19_1/vendor/OOS/OOS.mk"
|
|
|
|
sed -i "/ OP.*/d" $DIR;
|
|
echo " OPCamera \\
|
|
OPFileManager \\
|
|
OPGallery" | tee -a $DIR |