From 5cae445e43c5928daba0a76745b0dd2657274eda Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 25 Jan 2011 13:15:30 -0800 Subject: 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 --- common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common.h') diff --git a/common.h b/common.h index 97e87ee..d99daaf 100644 --- a/common.h +++ b/common.h @@ -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(); -- cgit v1.1