summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorDavis Mosenkovs <davikovs@gmail.com>2015-09-26 22:48:23 +0200
committerDees Troy <dees_troy@teamw.in>2015-10-14 21:19:08 +0200
commitb909aae78f8793bb9285f7489fb17c6d0ab54f76 (patch)
tree390e8b87a82cb9cb54dfd3eb1af841c4c9d9b9a7 /twrp.cpp
parentAdd support for RGBA_8888 pixel format (diff)
downloadandroid_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar.gz
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar.bz2
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar.lz
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar.xz
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.tar.zst
android_bootable_recovery-b909aae78f8793bb9285f7489fb17c6d0ab54f76.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp.cpp b/twrp.cpp
index c6d98c025..50db72501 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -371,7 +371,7 @@ int main(int argc, char **argv) {
TWFunc::Disable_Stock_Recovery_Replace();
// Check for su to see if the device is rooted or not
if (PartitionManager.Mount_By_Path("/system", false) && DataManager::GetIntValue("tw_mount_system_ro") == 0) {
- 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")) {
+ if (TWFunc::Path_Exists("/supersu/su") && TWFunc::Path_Exists("/system/bin") && !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::SetValue("tw_busy", 1);
if (gui_startPage("installsu", 1, 1) != 0) {