summaryrefslogtreecommitdiffstats
path: root/install.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-12 21:24:39 +0200
committerDoug Zongker <dougz@android.com>2009-06-12 23:05:03 +0200
commitd9c9d10d9da76f067d3955bea71f7bb39e859fa5 (patch)
tree1e49a3a616c3147f871e79b1b15e2b2a63379cc1 /install.c
parentedify extensions for OTA package installation, part 2 (diff)
downloadandroid_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar.gz
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar.bz2
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar.lz
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar.xz
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.tar.zst
android_bootable_recovery-d9c9d10d9da76f067d3955bea71f7bb39e859fa5.zip
Diffstat (limited to '')
-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);
}