From 113ee7344526132d33349f2c8cae111a6517a733 Mon Sep 17 00:00:00 2001 From: jt1134 Date: Fri, 22 Feb 2013 23:26:10 -0600 Subject: 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 --- twrp-functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index d1f9e3dbd..a90be5a6d 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -716,11 +716,11 @@ bool TWFunc::Install_SuperSU(void) { 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; } -- cgit v1.2.3