diff options
author | Davis Mosenkovs <davikovs@gmail.com> | 2015-09-26 22:48:23 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2015-10-14 21:19:08 +0200 |
commit | b909aae78f8793bb9285f7489fb17c6d0ab54f76 (patch) | |
tree | 390e8b87a82cb9cb54dfd3eb1af841c4c9d9b9a7 | |
parent | Add support for RGBA_8888 pixel format (diff) | |
download | android_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 |
-rw-r--r-- | twrp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |