summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-01-15 11:49:40 -0400
committerosm0sis <osm0sis@outlook.com>2020-01-15 11:49:40 -0400
commitd225890532825ce338078c337e3bba28223bf6cc (patch)
tree203a86b00eb56072639fb663ab8a6dc2ec10dfa1
parent3f60a5e1e2eb4d695911f89d903b6f6319ffceb5 (diff)
Backend: don't attempt to unmount /system_root when booted
- work around booted flashing apps like FKM/EXKM which make /system busy to keep it from being unmounted but can't do the same with /system_root which can lead to sketchy behavior
-rwxr-xr-xMETA-INF/com/google/android/update-binary8
1 files changed, 4 insertions, 4 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 0dd5955..670bb2b 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -61,10 +61,10 @@ umount_all() {
umount_apex;
$bb umount /system;
$bb umount -l /system;
- fi;
- if [ -e /system_root ]; then
- $bb umount /system_root;
- $bb umount -l /system_root;
+ if [ -e /system_root ]; then
+ $bb umount /system_root;
+ $bb umount -l /system_root;
+ fi;
fi;
umount /vendor;
umount -l /vendor;