From fa937983e85073b525e13ccc260597ef953e6509 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Tue, 11 Feb 2025 21:27:17 -0400 Subject: [PATCH] Improve overlay AndroidManifest.xml parsing, support YAAP --- module/common_setup.sh | 2 +- module/example.app_replace.list | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/common_setup.sh b/module/common_setup.sh index a6fc948..5b8e98d 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 '[[:alnum:].-_]+\*http' | cut -d\* -f1) + 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-) if [ "$PKGNAME" ] && grep -q "overlay package=\"$PKGNAME" $CFG; then HIDECFG=$MODPATH$PREFIX$CFG if [ ! -f "$HIDECFG" ]; then diff --git a/module/example.app_replace.list b/module/example.app_replace.list index 3297ee7..c778899 100644 --- a/module/example.app_replace.list +++ b/module/example.app_replace.list @@ -11,7 +11,7 @@ /system/app/EliteDevelopmentModule /system/app/XInjectModule -# helluvaOS / hentaiOS +# helluvaOS, hentaiOS /system_ext/app/helluvaProductDevice* /system_ext/app/helluvaProductSecretStub /system_ext/app/hentaiLewdbSVTDummy @@ -19,5 +19,5 @@ # Evolution X /system_ext/app/PifPrebuilt -# PixelOS +# PixelOS, YAAP /system_ext/overlay/CertifiedPropsOverlay.apk