nixos-configs/devices/nas/modules/arion/lineageos/scripts/before.sh
matt1432 a572a13f04
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(devices): rearrange some files to prepare for nas
2024-02-17 20:45:06 -05:00

20 lines
893 B
Bash
Executable file

#!/usr/bin/env bash
## See here for AndroidAuto: https://github.com/sn-00-x/aa4mg
## add MulchWebView
sed -i "1s;^;\$(call inherit-product-if-exists, vendor/mulch/mulch.mk)\n\n;" "/srv/src/LINEAGE_20_0/vendor/lineage/config/common.mk"
## add lawnchair overlay to build
sed -i "1s;^;\$(call inherit-product-if-exists, vendor/lawnchair/lawnchair.mk)\n\n;" "/srv/src/LINEAGE_20_0/vendor/lineage/config/common.mk"
## remove Trebuchet
sed -i 's/overrides.*/overrides: ["Home", "Launcher2", "Launcher3", "Launcher3QuickStep", "ParanoidQuickStep", "PixelLauncher", "TrebuchetQuickStep", "TrebuchetOverlay"],/' "/srv/src/LINEAGE_20_0/vendor/lawnchair/Android.bp"
## only add needed packages from microg
echo "PRODUCT_PACKAGES += \\
GmsCore \\
GsfProxy \\
FakeStore \\
IchnaeaNlpBackend \\
NominatimGeocoderBackend" > "/srv/src/LINEAGE_20_0/vendor/partner_gms/products/gms.mk"