diff options
author | Tianjie Xu <xunchang@google.com> | 2016-05-02 19:38:17 +0200 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-05-02 19:38:17 +0200 |
commit | 5823dd46df9667c43e8fc3f5ff79987b7432da3f (patch) | |
tree | 68f290826eddfe661871617006b7a1b18a8b58a8 /recovery.cpp | |
parent | recovery: Always log the update attempt. (diff) | |
parent | Add ability to show "installing security update" (diff) | |
download | android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar.gz android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar.bz2 android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar.lz android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar.xz android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.tar.zst android_bootable_recovery-5823dd46df9667c43e8fc3f5ff79987b7432da3f.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp index 70986e73d..9873f976c 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -75,6 +75,7 @@ static const struct option OPTIONS[] = { { "stages", required_argument, NULL, 'g' }, { "shutdown_after", no_argument, NULL, 'p' }, { "reason", required_argument, NULL, 'r' }, + { "security", no_argument, NULL, 'e'}, { NULL, 0, NULL, 0 }, }; @@ -1344,6 +1345,7 @@ int main(int argc, char **argv) { bool just_exit = false; bool shutdown_after = false; int retry_count = 0; + bool security_update = false; int arg; while ((arg = getopt_long(argc, argv, "", OPTIONS, NULL)) != -1) { @@ -1368,6 +1370,7 @@ int main(int argc, char **argv) { } case 'p': shutdown_after = true; break; case 'r': reason = optarg; break; + case 'e': security_update = true; break; case '?': LOGE("Invalid command argument\n"); continue; @@ -1387,6 +1390,9 @@ int main(int argc, char **argv) { ui->SetLocale(locale); ui->Init(); + // Set background string to "installing security update" for security update, + // otherwise set it to "installing system update". + ui->SetSystemUpdateText(security_update); int st_cur, st_max; if (stage != NULL && sscanf(stage, "%d/%d", &st_cur, &st_max) == 2) { |