summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-11-20 16:29:03 +0100
committerDees Troy <dees_troy@teamw.in>2014-11-20 16:29:17 +0100
commitc8f58997e28e7330c73dd5a42e4b92ef30fe38cd (patch)
tree39bf241d75fb4626e75d873c31ce598e3bd0f46d
parentAdd /firmware to the mount list for L decrypt (diff)
downloadandroid_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar.gz
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar.bz2
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar.lz
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar.xz
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.tar.zst
android_bootable_recovery-c8f58997e28e7330c73dd5a42e4b92ef30fe38cd.zip
-rw-r--r--twrp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 2849af759..a633becfb 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -329,7 +329,7 @@ int main(int argc, char **argv) {
// Check for su to see if the device is rooted or not
if (PartitionManager.Mount_By_Path("/system", false)) {
// Disable flashing of stock recovery
- if (TWFunc::Path_Exists("/system/recovery-from-boot.p") && TWFunc::Path_Exists("/system/etc/install-recovery.sh")) {
+ if (TWFunc::Path_Exists("/system/recovery-from-boot.p")) {
rename("/system/recovery-from-boot.p", "/system/recovery-from-boot.bak");
gui_print("Renamed stock recovery file in /system to prevent\nthe stock ROM from replacing TWRP.\n");
}