fixes for fakeflash zips
For some reason fakeflash doesn't like to have superuser/su
in /res, move it to its own subdir in /supersu. This allows
a fakeflash zip built with 'make recoveryzip' to work correctly.
Change-Id: I32e2e0f6dba55281d5c917e931c3ef0034964bcb
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index d1f9e3d..a90be5a 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -716,11 +716,11 @@
if (!PartitionManager.Mount_By_Path("/system", true))
return false;
- if (copy_file("/res/supersu/su", "/system/xbin/su", 0755) != 0) {
+ if (copy_file("/supersu/su", "/system/xbin/su", 0755) != 0) {
LOGE("Failed to copy su binary to /system/bin\n");
return false;
}
- if (copy_file("/res/supersu/Superuser.apk", "/system/app/Superuser.apk", 0644) != 0) {
+ if (copy_file("/supersu/Superuser.apk", "/system/app/Superuser.apk", 0644) != 0) {
LOGE("Failed to copy Superuser app to /system/app\n");
return false;
}