summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-01-31 20:08:29 -0400
committerosm0sis <osm0sis@outlook.com>2020-01-31 20:11:52 -0400
commite666adc66ffea06610661f08984451dc95f310f4 (patch)
tree99105f64be748a7074aa53a6aac85990935357d4
parentebd2b04b2c0eb3a50aecfed6413a8fe8c7230789 (diff)
AK3+Backend: mount and output fixes
- fix case where TWRP has /system_root mountpoint but ROM is non-SAR - fix regression in ui_print when final character is \
-rwxr-xr-xMETA-INF/com/google/android/update-binary9
-rwxr-xr-xtools/ak3-core.sh3
2 files changed, 9 insertions, 3 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 01a62af..21435dd 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -16,7 +16,8 @@ test "$ANDROID_ROOT" || ANDROID_ROOT=/system;
ui_print() {
until [ ! "$1" ]; do
- echo -e "ui_print $1\nui_print" > $OUTFD;
+ echo "ui_print $1
+ ui_print" > $OUTFD;
shift;
done;
}
@@ -113,7 +114,11 @@ mount_all() {
;;
esac;
if is_mounted /system_root; then
- $BB mount -o bind /system_root/system /system;
+ if [ -f /system_root/build.prop ]; then
+ $BB mount -o bind /system_root /system;
+ else
+ $BB mount -o bind /system_root/system /system;
+ fi;
fi;
$BOOTMODE || mount_apex;
}
diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh
index b9d238f..6d60158 100755
--- a/tools/ak3-core.sh
+++ b/tools/ak3-core.sh
@@ -15,7 +15,8 @@ split_img=$home/split_img;
# ui_print "<text>" [...]
ui_print() {
until [ ! "$1" ]; do
- echo -e "ui_print $1\nui_print" > /proc/self/fd/$OUTFD;
+ echo -e "ui_print $1
+ ui_print" > /proc/self/fd/$OUTFD;
shift;
done;
}