diff --git a/patcher/CommonPatcher b/patcher/CommonPatcher index 3bd6600..1dc3a92 100644 --- a/patcher/CommonPatcher +++ b/patcher/CommonPatcher @@ -128,7 +128,8 @@ detect_outfd () { } detect_bootmode () { - ps | grep zygote | grep -qv grep && BOOTMODE=true || BOOTMODE=false + [ -z ${BOOTMODE} ] && BOOTMODE=false + ${BOOTMODE} || ps | grep zygote | grep -qv grep && BOOTMODE=true ${BOOTMODE} || ps -A | grep zygote | grep -qv grep && BOOTMODE=true } diff --git a/uninstaller/META-INF/com/google/android/update-binary b/uninstaller/META-INF/com/google/android/update-binary index cd81c0c..86f8312 100644 --- a/uninstaller/META-INF/com/google/android/update-binary +++ b/uninstaller/META-INF/com/google/android/update-binary @@ -35,7 +35,8 @@ Vending WhisperPush" detect_bootmode () { - ps | grep zygote | grep -qv grep && BOOTMODE=true || BOOTMODE=false + [ -z ${BOOTMODE} ] && BOOTMODE=false + ${BOOTMODE} || ps | grep zygote | grep -qv grep && BOOTMODE=true ${BOOTMODE} || ps -A | grep zygote | grep -qv grep && BOOTMODE=true }