2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

possibly fix A/B device detection

This commit is contained in:
Christopher Roy Bratusek 2018-07-31 20:18:18 +02:00
parent 97024b8ea4
commit 2a49ff28a6

View File

@ -203,13 +203,14 @@ mount_partitions () {
mount -t ext4 -o rw $SYSTEMBLOCK /system
fi
[ ! -f /system/build.prop ] && error "failed to mount /system (unsupported A/B device?)"
if [ -f /system/init ]; 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 (unsupported A/B device?)"
}
detect_mode () {