From 0e2bfbd3450096ae9e4c22e18fb169429c25d1f4 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 27 Sep 2013 02:22:56 +0200 Subject: irecovery: Update code style, add "show mode" and "normal mode reboot" commands --- tools/irecovery.c | 286 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 191 insertions(+), 95 deletions(-) (limited to 'tools') diff --git a/tools/irecovery.c b/tools/irecovery.c index effd3fb..12f05b7 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -41,7 +41,9 @@ enum { kSendCommand, kSendFile, kSendExploit, - kSendScript + kSendScript, + kShowMode, + kRebootToNormalMode }; static unsigned int quit = 0; @@ -255,19 +257,51 @@ void print_progress_bar(double progress) { } } -static void print_usage() { - printf("iRecovery - iDevice Recovery Utility\n"); - printf("Usage: irecovery [args]\n"); - printf("\t-i \tTarget specific device by its hexadecimal ECID\n"); - printf("\t-v\t\tStart irecovery in verbose mode.\n"); - printf("\t-c \tSend command to client.\n"); - printf("\t-f \tSend file to client.\n"); - printf("\t-k [payload]\tSend usb exploit to client.\n"); - printf("\t-h\t\tShow this help.\n"); - printf("\t-r\t\tReset client.\n"); - printf("\t-s\t\tStart interactive shell.\n"); - printf("\t-e