From 2d6fb1c45e5f6b72b445bc1f5809cc4a8107feac Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Tue, 4 Oct 2016 19:35:19 +0100 Subject: [PATCH] Only delete verity_key if ! $KEEPVERITY otherwise the device can't boot --- zip_static/META-INF/com/google/android/update-binary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zip_static/META-INF/com/google/android/update-binary b/zip_static/META-INF/com/google/android/update-binary index ba559f265..f4e48218a 100644 --- a/zip_static/META-INF/com/google/android/update-binary +++ b/zip_static/META-INF/com/google/android/update-binary @@ -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