aboutsummaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-05-04 09:34:29 -0700
committerTao Bao <tbao@google.com>2015-05-04 10:21:54 -0700
commit6d820f2c91f6cafcec5b378ae896b7118ca8921d (patch)
treecfde9b5ebc9da956e956e417caecc444c2512a8c /recovery.cpp
parent4cf34d5d297db4f7130a7f1472c394e38ea0e642 (diff)
downloadbootable_recovery-6d820f2c91f6cafcec5b378ae896b7118ca8921d.zip
bootable_recovery-6d820f2c91f6cafcec5b378ae896b7118ca8921d.tar.gz
bootable_recovery-6d820f2c91f6cafcec5b378ae896b7118ca8921d.tar.bz2
Turn on text display for debuggable builds
For userdebug and eng builds, turn on the text display automatically if no command is specified. (cherry-pick of 785d22c88cda46972331c04ebc9df97371a696da.) Bug: http://b/17489952 Change-Id: I38377c45f2a8e45ca788e5506695aa88c769cbcf
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 4dd8279..65172df 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1086,6 +1086,13 @@ main(int argc, char **argv) {
} else if (!just_exit) {
status = INSTALL_NONE; // No command specified
ui->SetBackground(RecoveryUI::NO_COMMAND);
+
+ // http://b/17489952
+ // If this is an eng or userdebug build, automatically turn on the
+ // text display if no command is specified.
+ if (is_ro_debuggable()) {
+ ui->ShowText(true);
+ }
}
if (!sideload_auto_reboot && (status == INSTALL_ERROR || status == INSTALL_CORRUPT)) {