diff options
author | Tianjie Xu <xunchang@google.com> | 2016-05-02 19:47:52 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-02 19:47:52 +0200 |
commit | 23c7af797a2596f57490b76bd33232a80d1a9a74 (patch) | |
tree | fbf0ec7c816f99a8f4bbbad6a008a10f46be3719 /recovery.cpp | |
parent | recovery: Always log the update attempt. (diff) | |
parent | Merge "Add ability to show "installing security update"" into nyc-dev (diff) | |
download | android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar.gz android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar.bz2 android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar.lz android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar.xz android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.tar.zst android_bootable_recovery-23c7af797a2596f57490b76bd33232a80d1a9a74.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) { |