From 648f23fdaaaafd3e82e821c03be09ef330ba6d4f Mon Sep 17 00:00:00 2001 From: Zackptg5 <5107713+Zackptg5@users.noreply.github.com> Date: Sat, 4 Jan 2020 16:35:19 -0500 Subject: Should only run in recovery --- META-INF/com/google/android/update-binary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index ab114e0..ea44708 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -57,7 +57,7 @@ setup_mountpoint() { } is_mounted() { $bb mount | $bb grep -q " $1 "; } umount_all() { - (umount_apex; + ($BOOTMODE || umount_apex; $bb umount /system; $bb umount -l /system; if [ -e /system_root ]; then @@ -199,7 +199,7 @@ if is_mounted /system_root; then $bb mount -o bind /system_root/system /system; fi; $bb mount -o ro -t auto /vendor 2>/dev/null; -mount_apex; +$BOOTMODE || mount_apex; if ! is_mounted /data; then $bb mount /data; umount_data=1; -- cgit v1.2.3