diff options
author | Doug Zongker <dougz@android.com> | 2011-01-25 13:15:30 -0800 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-01-25 13:50:16 -0800 |
commit | 5cae445e43c5928daba0a76745b0dd2657274eda (patch) | |
tree | 2afc1e07d1dbd6e677af74419b31c321641b33aa /common.h | |
parent | 8f132ed870b4b83727d59f8019b8fabe49fe8ed4 (diff) | |
download | bootable_recovery-5cae445e43c5928daba0a76745b0dd2657274eda.zip bootable_recovery-5cae445e43c5928daba0a76745b0dd2657274eda.tar.gz bootable_recovery-5cae445e43c5928daba0a76745b0dd2657274eda.tar.bz2 |
make recovery reboot after 2 minutes of no activity
If recovery sits for 2 minutes in prompt_and_wait(), and you've never
turned the screen on via the magic keypress, go ahead and reboot. (We
used to assume that the user could pull the battery to get out of this
state, but on devices with nonremovable batteries...)
If you've ever enabled display of the log/menu since recovery started,
we assume you know what you're doing and will stay in recovery until
you choose to reboot.
Bug: 3387873
Bug: 3387274
Change-Id: I041621e5db132df9a925e6808845a7c45e1b427a
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -26,6 +26,7 @@ void ui_init(); int ui_wait_key(); // waits for a key/button press, returns the code int ui_key_pressed(int key); // returns >0 if the code is currently pressed int ui_text_visible(); // returns >0 if text log is currently visible +int ui_text_ever_visible(); // returns >0 if text log was ever visible void ui_show_text(int visible); void ui_clear_key_queue(); |