summaryrefslogtreecommitdiff
path: root/META-INF
diff options
context:
space:
mode:
authorZackptg5 <5107713+Zackptg5@users.noreply.github.com>2020-01-04 16:35:19 -0500
committerChris Renshaw <osm0sis@outlook.com>2020-01-04 17:37:39 -0400
commit648f23fdaaaafd3e82e821c03be09ef330ba6d4f (patch)
tree9393e632413b4e9ee94e89aa2ae7cb17cfa5f689 /META-INF
parentbb144e1a517ccbcc0349fa8480c3a3dfc694995a (diff)
Should only run in recovery
Diffstat (limited to 'META-INF')
-rwxr-xr-xMETA-INF/com/google/android/update-binary4
1 files 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;