diff options
author | Doug Zongker <dougz@android.com> | 2012-04-12 11:01:22 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2012-04-12 11:01:22 -0700 |
commit | e5d5ac76cc8e5d11867aeff6a1d068215c1c3a7c (patch) | |
tree | c88149f2f9c48966f66533e7bbf0b66ae407a314 /install.cpp | |
parent | 48704798ea79a4cf0a4024ffcd18fc11ca03a43c (diff) | |
download | bootable_recovery-e5d5ac76cc8e5d11867aeff6a1d068215c1c3a7c.zip bootable_recovery-e5d5ac76cc8e5d11867aeff6a1d068215c1c3a7c.tar.gz bootable_recovery-e5d5ac76cc8e5d11867aeff6a1d068215c1c3a7c.tar.bz2 |
minor recovery changes
- add the --just_exit option to make recovery exit normally without doing anything
- make it possible to build updater extensions in C++
- add the clear_display command so that the updater binary can request
recovery switch to the NONE background UI
These are all used to support the notion of using OTA as a factory
reflash mechanism.
Change-Id: Ib00d1cbf540feff38f52a61a2cf198915b48488c
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp index 0783433..4d73aa9 100644 --- a/install.cpp +++ b/install.cpp @@ -156,6 +156,8 @@ try_update_binary(const char *path, ZipArchive *zip, int* wipe_cache) { } } else if (strcmp(command, "wipe_cache") == 0) { *wipe_cache = 1; + } else if (strcmp(command, "clear_display") == 0) { + ui->SetBackground(RecoveryUI::NONE); } else { LOGE("unknown command [%s]\n", command); } |