summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authormauronofrio <poronofrio@gmail.com>2018-10-03 13:38:16 +0200
committerEthan Yonker <dees_troy@teamw.in>2019-03-20 16:57:07 +0100
commite9a49efe75918183a32164fea91ddddf65ce7964 (patch)
tree58aa58d6fcceac53c5c1e32f1d1ba6f353f46ed7 /twrp-functions.cpp
parentgpt: Add -Wno-format-security (diff)
downloadandroid_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar.gz
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar.bz2
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar.lz
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar.xz
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.tar.zst
android_bootable_recovery-e9a49efe75918183a32164fea91ddddf65ce7964.zip
Diffstat (limited to 'twrp-functions.cpp')
-rwxr-xr-xtwrp-functions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 37dd0df48..ff34828e2 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -626,6 +626,13 @@ int TWFunc::tw_reboot(RebootCommand command)
#else
return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, (void*) "download");
#endif
+ case rb_edl:
+ check_and_run_script("/sbin/rebootedl.sh", "reboot edl");
+#ifdef ANDROID_RB_PROPERTY
+ return property_set(ANDROID_RB_PROPERTY, "reboot,edl");
+#else
+ return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, (void*) "edl");
+#endif
default:
return -1;
}