Update, mostly for before.sh

This commit is contained in:
matt1432 2022-10-03 20:58:50 -04:00
parent 0609589d7f
commit 2e6812c586
6 changed files with 43 additions and 3 deletions

View file

@ -8,7 +8,20 @@ sed -i 's/overrides.*/overrides: ["Home", "Launcher2", "Launcher3", "Launcher3Qu
## remove F-Droid ## remove F-Droid
echo "PRODUCT_PACKAGES += \\ echo "PRODUCT_PACKAGES += \\
GmsCore \\
GsfProxy \\
FakeStore \\
IchnaeaNlpBackend \\
LocalGsmNlpBackend \\
NominatimGeocoderBackend \\
AuroraServices \\ AuroraServices \\
AuroraStore" | tee "/srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_aurora.mk" AuroraStore \\
PdfViewer" | tee "/srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms.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_fdroid.mk"
## magisk addon.d script
ADDONDIR="/build/lineage/src/LINEAGE_19_1/out/target/product/lemonadep/system/addon.d/"
mkdir -p $ADDONDIR
curl https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/addon.d.sh $ADDONDIR

View file

@ -17,7 +17,7 @@ services:
- "WITH_GMS=true" - "WITH_GMS=true"
- "ZIP_SUBDIR=false" - "ZIP_SUBDIR=false"
- "OTA_URL=https://ota.nelim.org/api" - "OTA_URL=https://ota.nelim.org/api"
- CUSTOM_PACKAGES="AndroidAuto gappsstub speechservicestub Droidify GCam GCamPhotosPreview GalleryAves" - "CUSTOM_PACKAGES=AndroidAuto gappsstub speechservicestub Droidify GCamPhotosPreview"
- "INCLUDE_PROPRIETARY=false" - "INCLUDE_PROPRIETARY=false"
- "PARALLEL_JOBS=6" - "PARALLEL_JOBS=6"
- "CLEAN_AFTER_BUILD=false" - "CLEAN_AFTER_BUILD=false"

2
magiskScripts/dos2unix Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
cat $*

2
magiskScripts/getprop Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo $*

View file

@ -6,3 +6,11 @@ wget https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@25.2/app-release.apk
unzip app-release.apk unzip app-release.apk
## helper scripts ## helper scripts
wget
chmod 755 root-img.sh
wget
chmod 755 dos2unix
wget
chmod 755 getprop

15
magiskScripts/root-img.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
export PATH=$PATH:$SCRIPT_DIR
export BOOTMODE=true
export KEEPVERITY=true
cp $SCRIPT_DIR/lib/x86/libmagiskboot.so $SCRIPT_DIR/assets/magiskboot
cp $SCRIPT_DIR/lib/arm64-v8a/libmagisk64.so $SCRIPT_DIR/assets/magisk64
cp $SCRIPT_DIR/lib/armeabi-v7a/libmagisk32.so $SCRIPT_DIR/assets/magisk32
cp $SCRIPT_DIR/lib/arm64-v8a/libmagiskinit.so $SCRIPT_DIR/assets/magiskinit
. $SCRIPT_DIR/assets/boot_patch.sh $*