From a2f726b633891a5e4da238db9cae190a72ed5561 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sat, 28 Jun 2025 00:52:06 -0300 Subject: [PATCH] Improve overlay AndroidManifest.xml parsing, support PixelOS 15 --- module/common_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common_setup.sh b/module/common_setup.sh index 3ddcb14..56c8fc7 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.*http' | sed -e 's/android//' -e 's/.application//' -e 's/*http//' | cut -c2-) + 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) if [ "$PKGNAME" ] && grep -q "overlay package=\"$PKGNAME" $CFG; then HIDECFG=$MODPATH$PREFIX$CFG if [ ! -f "$HIDECFG" ]; then