Merge commit '28cae98c834fb4bc47588b34dc3fe19811d5162b' * commit '28cae98c834fb4bc47588b34dc3fe19811d5162b': add --show_text option to recovery
This commit is contained in:
commit
b56db27d08
1
common.h
1
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
|
||||
void ui_show_text(int visible);
|
||||
void ui_clear_key_queue();
|
||||
|
||||
// Write a message to the on-screen log shown with Alt-L (also to stderr).
|
||||
|
@ -46,6 +46,7 @@ static const struct option OPTIONS[] = {
|
||||
{ "wipe_data", no_argument, NULL, 'w' },
|
||||
{ "wipe_cache", no_argument, NULL, 'c' },
|
||||
{ "set_encrypted_filesystems", required_argument, NULL, 'e' },
|
||||
{ "show_text", no_argument, NULL, 't' },
|
||||
{ NULL, 0, NULL, 0 },
|
||||
};
|
||||
|
||||
@ -718,6 +719,7 @@ main(int argc, char **argv) {
|
||||
case 'w': wipe_data = wipe_cache = 1; break;
|
||||
case 'c': wipe_cache = 1; break;
|
||||
case 'e': encrypted_fs_mode = optarg; toggle_secure_fs = 1; break;
|
||||
case 't': ui_show_text(1); break;
|
||||
case '?':
|
||||
LOGE("Invalid command argument\n");
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user