diff --git a/module/common/ADDITION b/module/common/ADDITION index 20bb98e..3c27a6d 100644 --- a/module/common/ADDITION +++ b/module/common/ADDITION @@ -6,4 +6,4 @@ com.google.android.gms io.github.vvb2060.keyattestation io.github.vvb2060.mahoshojo -icu.nullptr.nativetest \ No newline at end of file +icu.nullptr.nativetest diff --git a/module/common/EXCLUDE b/module/common/EXCLUDE index 306aef9..713d461 100644 --- a/module/common/EXCLUDE +++ b/module/common/EXCLUDE @@ -7,4 +7,4 @@ oneplus coloros com.android.patch me.bmax.apatch -me.garfieldhan.apatch.next \ No newline at end of file +me.garfieldhan.apatch.next diff --git a/module/customize.sh b/module/customize.sh index abefe44..1e16ec1 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -51,10 +51,9 @@ COMPATH="$MODPATH/common" CONFIG_DIR="/data/adb/tricky_store/target_list_config" SCRIPT_DIR="/data/adb/tricky_store" MODNAME=$(grep '^id=' "$MODPATH/module.prop" | awk -F= '{print $2}' | xargs) -EXCLUDE=$(grep -vE '^#|^$' "$CONFIG_DIR/EXLUDE") -ADDITION=$(grep -vE '^#|^$' "$CONFIG_DIR/ADDITION") add_exclude() { + EXCLUDE=$(grep -vE '^#|^$' "$CONFIG_DIR/EXCLUDE") for app in $EXCLUDE; do if ! grep -qx "$app" $COMPATH/EXCLUDE; then echo "$app" >> $COMPATH/EXCLUDE @@ -64,6 +63,7 @@ add_exclude() { } add_addition() { + ADDITION=$(grep -vE '^#|^$' "$CONFIG_DIR/ADDITION") for app in $ADDITION; do if ! grep -qx "$app" $COMPATH/ADDITION; then echo "$app" >> $COMPATH/ADDITION