summaryrefslogtreecommitdiffstats
path: root/gui/theme
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2019-01-12 05:49:52 +0100
committerEthan Yonker <dees_troy@teamw.in>2019-04-03 23:44:00 +0200
commit53796e73334ac9d87d4cb5a355fc8c1d205104f6 (patch)
treebb74fbf8593d23beddba9f899d05925b6fe03470 /gui/theme
parentFix build in 5.1 tree (diff)
downloadandroid_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.gz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.bz2
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.lz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.xz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.zst
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.zip
Diffstat (limited to 'gui/theme')
-rwxr-xr-xgui/theme/common/landscape.xml169
-rwxr-xr-xgui/theme/common/languages/en.xml22
-rwxr-xr-xgui/theme/common/portrait.xml169
-rwxr-xr-xgui/theme/common/watch.xml150
4 files changed, 510 insertions, 0 deletions
diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml
index a3e6ed82a..bb9878fd6 100755
--- a/gui/theme/common/landscape.xml
+++ b/gui/theme/common/landscape.xml
@@ -3398,6 +3398,41 @@
<action function="page">confirm_action</action>
</actions>
</listitem>
+ <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=0</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@install_kernel=Install Kernel}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=1</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=fixabrecoverybootloop</action>
+ <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
+ <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
+ <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
</listbox>
<action>
@@ -3657,6 +3692,140 @@
</action>
</page>
+ <page name="repackselect">
+ <template name="page"/>
+
+ <text style="text_l">
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_image_hdr=Select Image}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
+ </text>
+
+ <template name="sort_options"/>
+
+ <fileselector>
+ <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
+ <text>%tw_zip_location%</text>
+ <filter extn=".img" folders="1" files="1"/>
+ <path name="tw_zip_location" default="/sdcard"/>
+ <data name="tw_filename"/>
+ <selection name="tw_file"/>
+ </fileselector>
+
+ <button style="main_button_half_width_low">
+ <placement x="%col_button_right%" y="%row16a_y%"/>
+ <text>{@select_storage_btn=Select Storage}</text>
+ <actions>
+ <action function="set">tw_back=install</action>
+ <action function="overlay">select_storage</action>
+ </actions>
+ </button>
+
+ <action>
+ <conditions>
+ <condition var1="tw_filename" op="modified"/>
+ </conditions>
+ <action function="page">repackconfirm</action>
+ </action>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">advanced</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
+ <page name="repackconfirm">
+ <template name="page"/>
+
+ <text style="text_l">
+ <condition var1="tw_repack_kernel" var2="1"/>
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
+ </text>
+
+ <text style="text_l">
+ <condition var1="tw_repack_kernel" var2="0"/>
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
+ </text>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="1"/>
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@repack_kernel_confirm=Install Kernel?}</text>
+ </text>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="0"/>
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row2_y%"/>
+ <text>{@folder=Folder:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row3_y%"/>
+ <text>%tw_zip_location%</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row4_y%"/>
+ <text>{@file=File:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row5_y%"/>
+ <text>%tw_file%</text>
+ </text>
+
+ <checkbox>
+ <placement x="%indent%" y="%row7_y%"/>
+ <text>{@repack_backup_first=Back up existing image first}</text>
+ <data variable="tw_repack_backup_first"/>
+ </checkbox>
+
+ <button style="main_button_half_width">
+ <placement x="%col1_x_left%" y="%row15a_y%"/>
+ <text>{@install_cancel=Do not Install}</text>
+ <action function="page">repackselect</action>
+ </button>
+
+ <slider style="slider_centered">
+ <text>{@swipe_to_install=Swipe to Install}</text>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=repackimage</action>
+ <action function="set">tw_action_param=/boot</action>
+ <action function="set">tw_action_text1={@installing=Installing...}</action>
+ <action function="set">tw_action_text2=</action>
+ <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
+ <action function="page">action_page</action>
+ </actions>
+ </slider>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">repackselect</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
<page name="lock">
<background color="%semi_transparent%"/>
diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml
index e61f6c0a8..7a6012074 100755
--- a/gui/theme/common/languages/en.xml
+++ b/gui/theme/common/languages/en.xml
@@ -486,6 +486,28 @@
<string name="install_cancel">Do Not Install</string>
<string name="sel_storage_list">Select Storage</string>
<string name="ok_btn">OK</string>
+ <string name="install_twrp_ramdisk">Install Recovery Ramdisk</string>
+ <string name="install_kernel">Install Kernel</string>
+ <string name="repack_kernel_confirm_hdr">Install Kernel</string>
+ <string name="repack_ramdisk_confirm_hdr">Install Recovery</string>
+ <string name="repack_kernel_confirm">Install Kernel?</string>
+ <string name="repack_ramdisk_confirm">Install Recovery?</string>
+ <string name="repack_backup_first">Back up existing image first</string>
+ <string name="repack">Repack</string>
+ <string name="swipe_to_install">Swipe to Install</string>
+ <string name="installing">Installing...</string>
+ <string name="install_complete">Install Complete</string>
+ <string name="unpack_error">Error unpacking image.</string>
+ <string name="repack_error">Error repacking image.</string>
+ <string name="unpacking_image">Unpacking {1}...</string>
+ <string name="repacking_image">Repacking {1}...</string>
+ <string name="repack_image_hdr">Select Image</string>
+ <string name="fix_recovery_loop">Fix Recovery Bootloop</string>
+ <string name="fix_recovery_loop_confirm">Fix Recovery Bootloop?</string>
+ <string name="fixing_recovery_loop">Fixing Recovery Bootloop...</string>
+ <string name="fix_recovery_loop_complete">Fix Recovery Bootloop Complete</string>
+ <string name="fixing_recovery_loop_patch">Patching kernel...</string>
+ <string name="fix_recovery_loop_patch_error">Error patching kernel.</string>
<!-- Various console messages - these consist of user displayed messages, oftentimes errors -->
<string name="no_kernel_selinux">Kernel does not have support for reading SELinux contexts.</string>
diff --git a/gui/theme/common/portrait.xml b/gui/theme/common/portrait.xml
index c993225bb..691f149e0 100755
--- a/gui/theme/common/portrait.xml
+++ b/gui/theme/common/portrait.xml
@@ -3559,6 +3559,41 @@
<action function="page">confirm_action</action>
</actions>
</listitem>
+ <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=0</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@install_kernel=Install Kernel}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=1</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=fixabrecoverybootloop</action>
+ <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
+ <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
+ <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
</listbox>
<action>
@@ -3821,6 +3856,140 @@
</action>
</page>
+ <page name="repackselect">
+ <template name="page"/>
+
+ <text style="text_l">
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_image_hdr=Select Image}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
+ </text>
+
+ <template name="sort_options"/>
+
+ <fileselector>
+ <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
+ <text>%tw_zip_location%</text>
+ <filter extn=".img" folders="1" files="1"/>
+ <path name="tw_zip_location" default="/sdcard"/>
+ <data name="tw_filename"/>
+ <selection name="tw_file"/>
+ </fileselector>
+
+ <button style="main_button_half_height">
+ <placement x="%indent%" y="%row21a_y%"/>
+ <text>{@select_storage_btn=Select Storage}</text>
+ <actions>
+ <action function="set">tw_back=repackselect</action>
+ <action function="overlay">select_storage</action>
+ </actions>
+ </button>
+
+ <action>
+ <conditions>
+ <condition var1="tw_filename" op="modified"/>
+ </conditions>
+ <action function="page">repackconfirm</action>
+ </action>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">advanced</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
+ <page name="repackconfirm">
+ <template name="page"/>
+
+ <text style="text_l">
+ <condition var1="tw_repack_kernel" var2="1"/>
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
+ </text>
+
+ <text style="text_l">
+ <condition var1="tw_repack_kernel" var2="0"/>
+ <placement x="%col1_x_header%" y="%row3_header_y%"/>
+ <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
+ </text>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="1"/>
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@repack_kernel_confirm=Install Kernel?}</text>
+ </text>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="0"/>
+ <placement x="%col1_x_header%" y="%row4_header_y%"/>
+ <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row2_y%"/>
+ <text>{@folder=Folder:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row3_y%"/>
+ <text>%tw_zip_location%</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row4_y%"/>
+ <text>{@file=File:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row5_y%"/>
+ <text>%tw_file%</text>
+ </text>
+
+ <checkbox>
+ <placement x="%indent%" y="%row7_y%"/>
+ <text>{@repack_backup_first=Back up existing image first}</text>
+ <data variable="tw_repack_backup_first"/>
+ </checkbox>
+
+ <button style="main_button_half_height">
+ <placement x="%indent%" y="%row16_y%"/>
+ <text>{@install_cancel=Do not Install}</text>
+ <action function="page">repackselect</action>
+ </button>
+
+ <slider>
+ <text>{@swipe_to_install=Swipe to Install}</text>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=repackimage</action>
+ <action function="set">tw_action_param=/boot</action>
+ <action function="set">tw_action_text1={@installing=Installing...}</action>
+ <action function="set">tw_action_text2=</action>
+ <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
+ <action function="page">action_page</action>
+ </actions>
+ </slider>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">repackselect</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
<page name="lock">
<background color="%semi_transparent%"/>
diff --git a/gui/theme/common/watch.xml b/gui/theme/common/watch.xml
index 79ac5ecad..fcb00bccf 100755
--- a/gui/theme/common/watch.xml
+++ b/gui/theme/common/watch.xml
@@ -4170,6 +4170,41 @@
<action function="page">confirm_action</action>
</actions>
</listitem>
+ <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=0</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@install_kernel=Install Kernel}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_repack_kernel=1</action>
+ <action function="page">repackselect</action>
+ </actions>
+ </listitem>
+ <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
+ <conditions>
+ <condition var1="tw_has_boot_slots" var2="1"/>
+ <condition var1="tw_has_repack_tools" var2="1"/>
+ </conditions>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=fixabrecoverybootloop</action>
+ <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
+ <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
+ <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
+ <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
+ <action function="page">confirm_action</action>
+ </actions>
+ </listitem>
</listbox>
<button>
@@ -4576,6 +4611,121 @@
</action>
</page>
+ <page name="repackselect">
+ <template name="page"/>
+
+ <template name="statusbar"/>
+
+ <text style="text_m">
+ <placement x="%col1_x_left%" y="%row1_header_y%"/>
+ <text>{@repack_image_hdr=Select Image}</text>
+ </text>
+
+ <fileselector>
+ <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
+ <text>%tw_zip_location%</text>
+ <filter extn=".img" folders="1" files="1"/>
+ <path name="tw_zip_location" default="/sdcard"/>
+ <data name="tw_filename"/>
+ <selection name="tw_file"/>
+ </fileselector>
+
+ <button>
+ <placement x="%btn4_col4_x%" y="%row11_y%"/>
+ <highlight color="%highlight_color%"/>
+ <image resource="q_btn_storage"/>
+ <actions>
+ <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
+ <action function="set">tw_back=install</action>
+ <action function="page">select_storage</action>
+ </actions>
+ </button>
+
+ <action>
+ <conditions>
+ <condition var1="tw_filename" op="modified"/>
+ </conditions>
+ <action function="page">repackconfirm</action>
+ </action>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">advanced</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
+ <page name="repackconfirm">
+ <template name="page"/>
+
+ <template name="statusbar"/>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="1"/>
+ <placement x="%col1_x_left%" y="%row1_header_y%"/>
+ <text>{@repack_kernel_confirm=Install Kernel?}</text>
+ </text>
+
+ <text style="text_m">
+ <condition var1="tw_repack_kernel" var2="0"/>
+ <placement x="%col1_x_left%" y="%row1_header_y%"/>
+ <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row2_y%"/>
+ <text>{@folder=Folder:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row3_y%"/>
+ <text>%tw_zip_location%</text>
+ </text>
+
+ <text style="text_m_accent">
+ <placement x="%indent%" y="%row4_y%"/>
+ <text>{@file=File:}</text>
+ </text>
+
+ <text style="text_m">
+ <placement x="%indent%" y="%row5_y%"/>
+ <text>%tw_file%</text>
+ </text>
+
+ <checkbox>
+ <placement x="%indent%" y="%row7_y%"/>
+ <text>{@repack_backup_first=Back up existing image first}</text>
+ <data variable="tw_repack_backup_first"/>
+ </checkbox>
+
+ <slider>
+ <text>{@swipe_to_install=Swipe to Install}</text>
+ <actions>
+ <action function="set">tw_back=advanced</action>
+ <action function="set">tw_action=repackimage</action>
+ <action function="set">tw_action_param=/boot</action>
+ <action function="set">tw_action_text1={@installing=Installing...}</action>
+ <action function="set">tw_action_text2=</action>
+ <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
+ <action function="page">action_page</action>
+ </actions>
+ </slider>
+
+ <action>
+ <touch key="back"/>
+ <action function="page">repackselect</action>
+ </action>
+
+ <action>
+ <touch key="home"/>
+ <action function="page">main</action>
+ </action>
+ </page>
+
<page name="lock">
<background color="%semi_transparent%"/>