diff --git a/module/common_setup.sh b/module/common_setup.sh index 56c8fc7..6b7005b 100644 --- a/module/common_setup.sh +++ b/module/common_setup.sh @@ -39,7 +39,7 @@ for APP in $(grep -v '^#' $LIST); do APK=$(readlink -f $APP); fi if [ -s "$APK" ]; then - PKGNAME=$(unzip -p $APK AndroidManifest.xml | tr -d '\0' | grep -oE 'android.*overlay' | strings | tr -d '\n' | sed -e 's/^android//' -e 's/application//' -e 's/*http.*android//' -e 's/manifest//' -e 's/overlay$//' | grep -oE '[[:alnum:].-_].*overlay' | cut -d\ -f2) + PKGNAME=$(unzip -p $APK AndroidManifest.xml | tr -d '\0' | grep -oE 'android.*overlay' | strings | tr -d '\n' | sed -e 's/^android//' -e 's/application//' -e 's;*http.*res/android;;' -e 's/manifest//' -e 's/overlay$//' | grep -oE '[[:alnum:].-_].*overlay' | cut -d\ -f2) if [ "$PKGNAME" ] && grep -q "overlay package=\"$PKGNAME" $CFG; then HIDECFG=$MODPATH$PREFIX$CFG if [ ! -f "$HIDECFG" ]; then