summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPat Erley <perley@cyngn.com>2016-02-02 11:01:21 -0800
committerPat Erley <perley@cyngn.com>2016-02-02 15:16:24 -0800
commit3b963ad1b26694ae891f5f3a6ca0c569dbd71945 (patch)
treef0283091e097ee0ebd51cd758d40d6df5679cd71
parenta6a4c8ae1775a9438df7612eca9ea935fc57c070 (diff)
downloadbootable_recovery-3b963ad1b26694ae891f5f3a6ca0c569dbd71945.zip
bootable_recovery-3b963ad1b26694ae891f5f3a6ca0c569dbd71945.tar.gz
bootable_recovery-3b963ad1b26694ae891f5f3a6ca0c569dbd71945.tar.bz2
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
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
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;