summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorjt1134 <jt1134@gmail.com>2013-02-23 06:26:10 +0100
committerDees_Troy <dees_troy@teamw.in>2013-02-27 19:50:44 +0100
commit113ee7344526132d33349f2c8cae111a6517a733 (patch)
tree8b011e8fce65dcce9df8a84bf84b4cfff6af60cf /recovery.cpp
parentMerge "use libblkid to get filesystem type we can now use libblkid to detect exfat" into twrp2.4 (diff)
downloadandroid_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar.gz
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar.bz2
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar.lz
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar.xz
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.tar.zst
android_bootable_recovery-113ee7344526132d33349f2c8cae111a6517a733.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 4da176a53..4f07fd44c 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -981,7 +981,7 @@ main(int argc, char **argv) {
rename("/system/recovery-from-boot.p", "/system/recovery-from-boot.bak");
ui_print("Renamed stock recovery file in /system to prevent\nthe stock ROM from replacing TWRP.\n");
}
- if (TWFunc::Path_Exists("/res/supersu/su") && !TWFunc::Path_Exists("/system/bin/su") && !TWFunc::Path_Exists("/system/xbin/su") && !TWFunc::Path_Exists("/system/bin/.ext/.su")) {
+ if (TWFunc::Path_Exists("/supersu/su") && !TWFunc::Path_Exists("/system/bin/su") && !TWFunc::Path_Exists("/system/xbin/su") && !TWFunc::Path_Exists("/system/bin/.ext/.su")) {
// Device doesn't have su installed
DataManager_SetIntValue("tw_busy", 1);
if (gui_startPage("installsu") != 0) {