summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-09-25 01:35:38 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-25 01:35:38 +0200
commite95ed95f05d22929e0bb8610a83c4e6a01fb3a33 (patch)
tree86945bb39a77f4527d5e8c0162bf8924b74e633a
parentam 530b61e0: Merge "Copy epoll(2) changes to minadb." (diff)
parentInclude reason when wiping data. (diff)
downloadandroid_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar.gz
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar.bz2
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar.lz
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar.xz
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.tar.zst
android_bootable_recovery-e95ed95f05d22929e0bb8610a83c4e6a01fb3a33.zip
-rw-r--r--recovery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index f78d6e46c..7f17b16ef 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -60,6 +60,7 @@ static const struct option OPTIONS[] = {
{ "locale", required_argument, NULL, 'l' },
{ "stages", required_argument, NULL, 'g' },
{ "shutdown_after", no_argument, NULL, 'p' },
+ { "reason", required_argument, NULL, 'r' },
{ NULL, 0, NULL, 0 },
};
@@ -80,6 +81,7 @@ RecoveryUI* ui = NULL;
char* locale = NULL;
char recovery_version[PROPERTY_VALUE_MAX+1];
char* stage = NULL;
+char* reason = NULL;
/*
* The recovery tool communicates with the main system through /cache files.
@@ -870,6 +872,7 @@ main(int argc, char **argv) {
break;
}
case 'p': shutdown_after = true; break;
+ case 'r': reason = optarg; break;
case '?':
LOGE("Invalid command argument\n");
continue;
@@ -881,6 +884,7 @@ main(int argc, char **argv) {
}
printf("locale is [%s]\n", locale);
printf("stage is [%s]\n", stage);
+ printf("reason is [%s]\n", reason);
Device* device = make_device();
ui = device->GetUI();