From 38bd760b589d405db9a2e6bf304f07d1b0bae342 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 14 Sep 2012 13:33:53 -0400 Subject: Add wipe functions, compiles in CM7, text shows in UI, zips install Zip install works, had to move mincrypt code into TWRP to prevent a crash when checking the zip signature. Added wipe functions Made it compile in CM7 Made text show up in console and logging --- ui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index bd0fcae62..27ecc2805 100644 --- a/ui.cpp +++ b/ui.cpp @@ -28,7 +28,9 @@ #include #include +#ifdef ANDROID_RB_RESTART #include +#endif #include "common.h" #include "device.h" @@ -131,7 +133,9 @@ void RecoveryUI::process_key(int key_code, int updown) { break; case RecoveryUI::REBOOT: +#ifdef ANDROID_RB_RESTART android_reboot(ANDROID_RB_RESTART, 0, 0); +#endif break; case RecoveryUI::ENQUEUE: -- cgit v1.2.3