From 0ab42ee3ecb4c85a991e9da262c64ed38f69fa74 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Wed, 30 Nov 2016 21:24:07 -0400 Subject: [PATCH] Backend: Fixes for mount on certain Nougat+ toybox implementations --- META-INF/com/google/android/update-binary | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 0a04c57..6c6ba68 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -40,7 +40,7 @@ ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)"; ui_print " "; ui_print "AnyKernel2 by osm0sis @ xda-developers"; ui_print " "; -mount -o ro /system; +mount -o ro -t auto /system; mount /data; if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then @@ -61,10 +61,10 @@ fi; if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.initd)" == 1 ]; then ui_print "Creating init.d..."; ui_print " "; - mount -o remount,rw /system; + mount -o remount,rw -t auto /system; mkdir /system/etc/init.d; set_perm_recursive 0 0 0755 0755 /system/etc/init.d; - mount -o remount,ro /system; + mount -o remount,ro -t auto /system; fi; ui_print "Installing kernel..."; @@ -82,10 +82,10 @@ fi; if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.modules)" == 1 ]; then ui_print " "; ui_print "Pushing modules..."; - mount -o remount,rw /system; + mount -o remount,rw -t auto /system; cp -rf /tmp/anykernel/modules/* /system/lib/modules/; set_perm_recursive 0 0 0755 0644 /system/lib/modules; - mount -o remount,ro /system; + mount -o remount,ro -t auto /system; fi; if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.cleanup)" == 1 ]; then