From 40003691d6af820a0e6062a7757232d8ba272dff Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 8 Aug 2023 01:29:05 +0800 Subject: [PATCH] manager.sh: check vbmeta device by getprop --- app/src/main/res/raw/manager.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/res/raw/manager.sh b/app/src/main/res/raw/manager.sh index b250e0b0f..57f694d04 100644 --- a/app/src/main/res/raw/manager.sh +++ b/app/src/main/res/raw/manager.sh @@ -202,8 +202,7 @@ get_flags() { ISENCRYPTED=false [ "$(getprop ro.crypto.state)" = "encrypted" ] && ISENCRYPTED=true KEEPFORCEENCRYPT=$ISENCRYPTED - # Although this most certainly won't work without root, keep it just in case - if [ -e /dev/block/by-name/vbmeta_a ] || [ -e /dev/block/by-name/vbmeta ]; then + if [ -n "$(getprop ro.boot.vbmeta.device)" ]; then VBMETAEXIST=true else VBMETAEXIST=false