From 3b963ad1b26694ae891f5f3a6ca0c569dbd71945 Mon Sep 17 00:00:00 2001 From: Pat Erley Date: Tue, 2 Feb 2016 11:01:21 -0800 Subject: recovery: Fix media wipe During the Android 6 rebase, the 'm' options was missed in the getopt handler, breaking the ability to do a full wipe triggered from inside of Android. CYNGNOS-1817 Change-Id: Ic88006abd18cc83dd4a9d7917f34d6c6c8115538 --- recovery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/recovery.cpp b/recovery.cpp index 9b87cd8..5c9f43f 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1317,6 +1317,7 @@ main(int argc, char **argv) { case 'h': headless = true; break; case 'w': should_wipe_data = true; break; case 'c': should_wipe_cache = true; break; + case 'm': should_wipe_media = true; break; case 't': show_text = true; break; case 's': sideload = true; break; case 'a': sideload = true; sideload_auto_reboot = true; break; -- cgit v1.1