From a4c8aab03186807d2e3e521bccc0b5cf0a2e792f Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sun, 5 Jan 2025 22:57:13 -0400 Subject: [PATCH] Add other custom ROMs now using PIHooks --- module/common_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common_setup.sh b/module/common_setup.sh index 9af53eb..c9aa93f 100644 --- a/module/common_setup.sh +++ b/module/common_setup.sh @@ -59,8 +59,8 @@ for APP in $(grep -v '^#' $LIST); do fi done -# Work around AOSPA PropImitationHooks conflict when their persist props don't exist -if [ -n "$(resetprop ro.aospa.version)" ]; then +# Work around custom ROM PropImitationHooks conflict when their persist props don't exist +if [ -n "$(resetprop ro.aospa.version)" -o -n "$(resetprop net.pixelos.version)" -o -n "$(resetprop ro.afterlife.version)" ]; then for PROP in persist.sys.pihooks.first_api_level persist.sys.pihooks.security_patch; do resetprop | grep -q "\[$PROP\]" || resetprop -n -p "$PROP" "" done