summaryrefslogtreecommitdiffstats
path: root/install.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-15 06:12:26 +0200
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-15 06:12:26 +0200
commit84cbfb6cb4a82824a662137282c689f40057b28b (patch)
tree30b5d33a047b5ae2eb86f53fa16de49d47486b1f /install.c
parentam 8edb00c9: edify extensions for OTA package installation, part 2 (diff)
parentfixes to edify and updater script (diff)
downloadandroid_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar.gz
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar.bz2
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar.lz
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar.xz
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.tar.zst
android_bootable_recovery-84cbfb6cb4a82824a662137282c689f40057b28b.zip
Diffstat (limited to 'install.c')
-rw-r--r--install.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/install.c b/install.c
index cca940021..c2e1385b0 100644
--- a/install.c
+++ b/install.c
@@ -196,6 +196,9 @@ try_update_binary(const char *path, ZipArchive *zip) {
// arrange to install the contents of <filename> in the
// given partition on reboot.
//
+ // ui_print <string>
+ // display <string> on the screen.
+ //
// - the name of the package zip file.
//
@@ -248,6 +251,13 @@ try_update_binary(const char *path, ZipArchive *zip) {
firmware_filename = strdup(filename);
}
}
+ } else if (strcmp(command, "ui_print") == 0) {
+ char* str = strtok(NULL, "\n");
+ if (str) {
+ ui_print(str);
+ } else {
+ ui_print("\n");
+ }
} else {
LOGE("unknown command [%s]\n", command);
}