summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-02-04 16:08:25 -0400
committerosm0sis <osm0sis@outlook.com>2020-02-04 16:09:00 -0400
commitdfcfb87e6e88562476c1a5b304385838ff802709 (patch)
tree7317e1620075e3ecf43d524b59849200970c8366
parent6bc4d96d3d66cc72473c09a836cec22a1c98de90 (diff)
Backend: support for upcoming recovery addon.d-v2
- for FlashAfterUpdate addon.d-v2 support while in recovery - recovery addon.d-v2 requires /system and /system_root stay mounted
-rwxr-xr-xMETA-INF/com/google/android/update-binary14
1 files changed, 8 insertions, 6 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 993885e..cf194dd 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -32,7 +32,7 @@ setup_mountpoint() {
test -L $1 && $BB mv -f $1 ${1}_link;
if [ ! -d $1 ]; then
rm -f $1;
- mkdir $1;
+ mkdir -p $1;
fi;
}
is_mounted() { $BB mount | $BB grep -q " $1 "; }
@@ -125,11 +125,13 @@ mount_all() {
umount_all() {
(if ! $BOOTMODE; then
umount_apex;
- $BB umount /system;
- $BB umount -l /system;
- if [ -e /system_root ]; then
- $BB umount /system_root;
- $BB umount -l /system_root;
+ if [ ! -d /postinstall/tmp ]; then
+ $BB umount /system;
+ $BB umount -l /system;
+ if [ -e /system_root ]; then
+ $BB umount /system_root;
+ $BB umount -l /system_root;
+ fi;
fi;
fi;
umount /vendor;