summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-15 19:49:26 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-15 19:49:26 +0200
commitd5cc7099c84197dec330646fae68752fdb87389b (patch)
treefa39003f9127c243b686264b48d5d2671e2ce8ac /recovery.cpp
parentam cbdc7e84: am 17b032e1: Merge "Add missing \n after "Mounting /system." message." (diff)
parentam 6e435abf: Merge "Move the menu header out of the menu." (diff)
downloadandroid_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar.gz
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar.bz2
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar.lz
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar.xz
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.tar.zst
android_bootable_recovery-d5cc7099c84197dec330646fae68752fdb87389b.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/recovery.cpp b/recovery.cpp
index f7ae5e71b..4dd827919 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -629,7 +629,7 @@ static char* browse_directory(const char* path, Device* device) {
z_size += d_size;
zips[z_size] = NULL;
- const char* headers[] = { "Choose a package to install:", path, "", NULL };
+ const char* headers[] = { "Choose a package to install:", path, NULL };
char* result;
int chosen_item = 0;
@@ -668,7 +668,7 @@ static char* browse_directory(const char* path, Device* device) {
}
static bool yes_no(Device* device, const char* question1, const char* question2) {
- const char* headers[] = { question1, question2, "", NULL };
+ const char* headers[] = { question1, question2, NULL };
const char* items[] = { " No", " Yes", NULL };
int chosen_item = get_menu_selection(headers, items, 1, 0, device);
@@ -743,7 +743,7 @@ static void choose_recovery_file(Device* device) {
entries[n++] = filename;
}
- const char* headers[] = { "Select file to view", "", NULL };
+ const char* headers[] = { "Select file to view", NULL };
while (true) {
int chosen_item = get_menu_selection(headers, entries, 1, 0, device);
@@ -791,8 +791,6 @@ static int apply_from_sdcard(Device* device, bool* wipe_cache) {
// on if the --shutdown_after flag was passed to recovery.
static Device::BuiltinAction
prompt_and_wait(Device* device, int status) {
- const char* const* headers = device->GetMenuHeaders();
-
for (;;) {
finish_recovery(NULL);
switch (status) {
@@ -808,7 +806,7 @@ prompt_and_wait(Device* device, int status) {
}
ui->SetProgressType(RecoveryUI::EMPTY);
- int chosen_item = get_menu_selection(headers, device->GetMenuItems(), 0, 0, device);
+ int chosen_item = get_menu_selection(nullptr, device->GetMenuItems(), 0, 0, device);
// device-specific code may take some action here. It may
// return one of the core actions handled in the switch
@@ -1038,10 +1036,6 @@ main(int argc, char **argv) {
property_list(print_property, NULL);
printf("\n");
- char recovery_build[PROPERTY_VALUE_MAX];
- property_get("ro.build.display.id", recovery_build, "");
-
- ui->Print("%s\n", recovery_build);
ui->Print("Supported API: %d\n", RECOVERY_API_VERSION);
int status = INSTALL_SUCCESS;