Only delete verity_key if ! $KEEPVERITY

otherwise the device can't boot
This commit is contained in:
Tom Briden 2016-10-04 19:35:19 +01:00 committed by topjohnwu
parent cd9643fb15
commit 2d6fb1c45e

View File

@ -448,7 +448,9 @@ find . -type f -name "*fstab*" 2>/dev/null | while read FSTAB ; do
sed -i "s/forcefdeorfbe/encryptable/g" $FSTAB
fi
done
rm verity_key 2>/dev/null
if (! $KEEPVERITY); then
rm verity_key 2>/dev/null
fi
# sepolicy patches
$BINDIR/sepolicy-inject --magisk -P sepolicy