From b4bff5e9d1f514063aaef9ffad870fe13ed70bfb Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 16 Dec 2016 07:47:58 -0600 Subject: Add TWRP app install via TWRP recovery Note: I will have to add a build flag for excluding the app later for watches and maybe Android TV. I will also have to add support in the tablet and watch layouts later. I will merge this for the initial roll out to select devices and finish up later. Change-Id: Ia4ce5522fae542afa1539b10c0691315392a19ab --- gui/theme/common/languages/en.xml | 7 +++ gui/theme/common/portrait.xml | 111 +++++++++++++++++++++++++++++++++++--- 2 files changed, 112 insertions(+), 6 deletions(-) (limited to 'gui/theme') diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml index 77164184a..d91131293 100644 --- a/gui/theme/common/languages/en.xml +++ b/gui/theme/common/languages/en.xml @@ -114,6 +114,13 @@ Rebooting... Swipe to Reboot Reboot + Install TWRP App? + Would you like to install the Official TWRP App? + The app can check for new TWRP versions. + Prompt to install TWRP app if not installed + Install as a System App + Installing App... + Swipe to Install TWRP App Swipe to confirm Flash Confirm Action Press back button to cancel. diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml index f0ba791fb..b36b5a615 100644 --- a/gui/theme/common/portrait.xml +++ b/gui/theme/common/portrait.xml @@ -678,7 +678,7 @@ tw_action=reboot - tw_action_param=system + tw_reboot_param=system tw_has_action2=0 tw_text1={@no_os1=No OS Installed! Are you} tw_text2={@no_osrb=sure you wish to reboot?} @@ -924,7 +924,7 @@ - %tw_action_param% + appcheck @@ -933,6 +933,28 @@ + + + + + + + + + %tw_reboot_param% + + + + + rebootapp + + + + + %tw_reboot_param% + + +