summaryrefslogtreecommitdiff
path: root/META-INF
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2017-01-16 15:12:53 -0400
committerosm0sis <osm0sis@outlook.com>2017-01-16 15:18:21 -0400
commita16879e4ca7fe443a47dd2922615773cf120ed52 (patch)
treeb37168eb5de74def3fa101a99885bd58899ae64e /META-INF
parentc13647eb2ea9cdc46a51e27a74a58b8271edbc6b (diff)
Backend: support /system/system (Pixel layout) for do.initd+do.modules
Diffstat (limited to 'META-INF')
-rwxr-xr-xMETA-INF/com/google/android/update-binary10
1 files changed, 6 insertions, 4 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index a828727..9d08706 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -40,8 +40,10 @@ ui_print "$(file_getprop /tmp/anykernel/anykernel.sh kernel.string)";
ui_print " ";
ui_print "AnyKernel2 by osm0sis @ xda-developers";
ui_print " ";
+umount /system;
mount -o ro -t auto /system;
mount /data;
+test -f /system/system/build.prop && root=/system;
if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then
ui_print "Checking device...";
@@ -62,8 +64,8 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.initd)" == 1 ]; then
ui_print "Creating init.d...";
ui_print " ";
mount -o rw,remount -t auto /system;
- mkdir /system/etc/init.d;
- set_perm_recursive 0 0 0755 0755 /system/etc/init.d;
+ mkdir $root/system/etc/init.d;
+ set_perm_recursive 0 0 0755 0755 $root/system/etc/init.d;
mount -o ro,remount -t auto /system;
fi;
@@ -83,8 +85,8 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.modules)" == 1 ]; then
ui_print " ";
ui_print "Pushing modules...";
mount -o rw,remount -t auto /system;
- cp -rf /tmp/anykernel/modules/* /system/lib/modules/;
- set_perm_recursive 0 0 0755 0644 /system/lib/modules;
+ cp -rf /tmp/anykernel/modules/* $root/system/lib/modules/;
+ set_perm_recursive 0 0 0755 0644 $root/system/lib/modules;
mount -o ro,remount -t auto /system;
fi;