From 1a737331553d1c4a25f06edc7865bd285b4c184e Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 7 Mar 2018 20:20:21 +0100 Subject: [PATCH] improve A/B support --- Full/nanodroid-functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Full/nanodroid-functions b/Full/nanodroid-functions index c2a2838..b91a1cf 100644 --- a/Full/nanodroid-functions +++ b/Full/nanodroid-functions @@ -145,6 +145,12 @@ mount_partitions () { mount -t ext4 -o ro $SYSTEMBLOCK /system fi + if [ -f /system/init.rc ]; then + mkdir /system_root 2>/dev/null + mount --move /system /system_root + mount -o bind /system_root/system /system + fi + [ ! -f /system/build.prop ] && error "failed to mount /system" }