blob: f1984091f72067570bcd5d7e6969e703b3635e23 [file] [log] [blame]
<?xml version="1.0"?>
<recovery>
<styles>
<style name="text_l">
<font resource="font_l" color="%text_color%"/>
</style>
<style name="text_m">
<font resource="font_m" color="%text_color%"/>
</style>
<style name="text_m_accent">
<font resource="font_m" color="%accent_color%"/>
</style>
<style name="text_m_fail">
<font resource="font_m" color="%text_fail_color%"/>
</style>
<style name="text_s">
<font resource="font_s" color="%text_color%"/>
</style>
<style name="input">
<background color="%background_color%"/>
<cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
<font resource="font_m" color="%text_color%"/>
</style>
<style name="checkbox">
<font resource="font_m" color="%text_color%"/>
<image checked="checkbox_true" unchecked="checkbox_false"/>
</style>
<style name="main_button">
<highlight color="%highlight_color%"/>
<font resource="font_l" color="%text_button_color%"/>
<image resource="main_button"/>
</style>
<style name="main_button_full_width">
<highlight color="%highlight_color%"/>
<font resource="font_l" color="%text_button_color%"/>
<image resource="main_button_full_width"/>
</style>
<style name="main_button_quarter_width">
<highlight color="%highlight_color%"/>
<font resource="font_l" color="%text_button_color%"/>
<image resource="main_button_quarter_width"/>
</style>
<style name="main_button_half_height">
<highlight color="%highlight_color%"/>
<font resource="font_m" color="%text_button_color%"/>
<image resource="main_button_half_height"/>
</style>
<style name="main_button_half_height_full_width">
<highlight color="%highlight_color%"/>
<font resource="font_m" color="%text_button_color%"/>
<image resource="main_button_half_height_full_width"/>
</style>
<style name="button_third_width">
<highlight color="%highlight_color%"/>
<font resource="font_m" color="%text_button_color%"/>
<image resource="tab_3"/>
</style>
<style name="button_navbar">
<font resource="font_m" color="%text_button_color%"/>
</style>
<style name="console">
<color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
<font resource="fixed"/>
</style>
<style name="terminal">
<fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
<background color="%background_color%"/>
<font resource="fixed" spacing="2" color="%text_color%"/>
</style>
<style name="fileselector">
<highlight color="%fileselector_highlight_color%"/>
<header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
<fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<sort name="tw_gui_sort_order"/>
<icon folder="folder" file="file"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
</style>
<style name="listbox">
<highlight color="%fileselector_highlight_color%"/>
<header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<icon selected="radio_true" unselected="radio_false"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
</style>
<style name="listbox_headerless">
<highlight color="%fileselector_highlight_color%"/>
<fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<icon selected="radio_true" unselected="radio_false"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
</style>
<style name="listbox_options">
<background color="%background_color%"/>
<font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
<icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
</style>
<style name="scrolllist">
<highlight color="%fileselector_highlight_color%"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<icon selected="checkbox_true" unselected="checkbox_false"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
</style>
<style name="partitionlist">
<highlight color="%fileselector_highlight_color%"/>
<header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
<icon selected="checkbox_true" unselected="checkbox_false"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
<style name="partitionlist_summary">
<highlight color="%fileselector_highlight_color%"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
<icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
</style>
<style name="partitionlist_headerless_rb">
<highlight color="%fileselector_highlight_color%"/>
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
<fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
<icon selected="radio_true" unselected="radio_false"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
<style name="partitionlist_headerless_cb">
<highlight color="%fileselector_highlight_color%"/>
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
<fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
<icon selected="checkbox_true" unselected="checkbox_false"/>
<separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
<background color="%background_color%"/>
<font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
</style>
<style name="slider">
<placement x="%center_x%" y="%slider_y%"/>
<font resource="font_l" color="%text_color%"/>
<resource base="slider" used="slider_used" touch="slider_touch"/>
</style>
<style name="slidervalue">
<resource handle="handle"/>
<font resource="font_m" color="%text_color%"/>
<colors line="%fileselector_linecolor%"/>
<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
</style>
<style name="patternpassword">
<size name="tw_gui_pattern_grid_size" default="3"/>
</style>
</styles>
<pages>
<page name="main">
<action>
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</action>
</page>
<page name="main2">
<template name="page"/>
<button style="main_button">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@install_btn=Install}</text>
<action function="page">install_type</action>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row1_y%"/>
<text>{@wipe_btn=Wipe}</text>
<action function="page">wipe_type1</action>
</button>
<button style="main_button">
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@backup_btn=Backup}</text>
<actions>
<action function="set">tw_back=main</action>
<action function="page">backup</action>
</actions>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row6_y%"/>
<text>{@restore_btn=Restore}</text>
<action function="page">restore</action>
</button>
<button style="main_button">
<placement x="%col1_x_left%" y="%row11_y%"/>
<text>{@reboot_btn=Reboot}</text>
<action function="page">reboot</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<action function="page">main3</action>
</button>
</page>
<page name="main3">
<template name="page"/>
<button style="main_button">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@mount_btn=Mount}</text>
<action function="page">mount</action>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row1_y%"/>
<text>{@settings_btn=Settings}</text>
<action function="page">settings</action>
</button>
<button style="main_button">
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@files_btn=Files}</text>
<action function="page">filemanagerlist</action>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row6_y%"/>
<text>{@copy_log_btn=Copy Log}</text>
<actions>
<action function="set">tw_back=main3</action>
<action function="set">tw_action=copylog</action>
<action function="set">tw_text1={@copy_log_confirm=Copy Log to SD Card?}</action>
<action function="set">tw_action_text1={@copying_log=Copying Log to SD Card...}</action>
<action function="set">tw_complete_text1={@copy_log_complete=Log Copy Complete}</action>
<action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row11_y%"/>
<text>{@advanced_btn=Advanced}</text>
<action function="page">advanced</action>
</button>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">main2</action>
</button>
<action>
<touch key="back"/>
<action function="page">main2</action>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="install_type">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
</text>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@install_zip_btn=Install Zip}</text>
<actions>
<action function="queueclear"/>
<action function="set">tw_selectimage=0</action>
<action function="page">install</action>
</actions>
</button>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@install_image_btn=Install Image}</text>
<actions>
<action function="queueclear"/>
<action function="set">tw_selectimage=1</action>
<action function="page">install</action>
</actions>
</button>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row11_y%"/>
<text>{@adb_sideload_btn=ADB Sideload}</text>
<action function="page">sideload</action>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">main</action>
</action>
</page>
<page name="install">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<condition var1="tw_selectimage" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
</text>
<text style="text_m">
<condition var1="tw_selectimage" var2="1"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
</text>
<fileselector>
<condition var1="tw_selectimage" var2="0"/>
<placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
<text>%tw_zip_location%</text>
<filter extn=".zip" folders="1" files="1"/>
<path name="tw_zip_location" default="/sdcard"/>
<data name="tw_filename"/>
<selection name="tw_file"/>
</fileselector>
<fileselector>
<condition var1="tw_selectimage" var2="1"/>
<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_selectimage" var2="0"/>
<condition var1="tw_filename" op="modified"/>
</conditions>
<actions>
<action function="queuezip"/>
<action function="page">flash_queue</action>
</actions>
</action>
<action>
<conditions>
<condition var1="tw_selectimage" var2="1"/>
<condition var1="tw_filename" op="modified"/>
</conditions>
<action function="page">flashimage_type</action>
</action>
<action>
<touch key="back"/>
<action function="page">install_type</action>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="flash_queue">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
</text>
<text style="text_m_accent">
<placement x="%indent%" y="%row1_y%"/>
<text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row2_y%"/>
<text>%tw_file%</text>
</text>
<text style="text_m_accent">
<placement x="%indent%" y="%row4_y%"/>
<text>{@folder=Folder:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row5_y%"/>
<text>%tw_zip_location%</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row8_y%"/>
<text>{@zip_back_clear=Press back button to clear the queue.}</text>
</text>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<actions>
<action function="queueclear"/>
<action function="page">install</action>
</actions>
</button>
<button>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_addzip"/>
<action function="page">install</action>
</button>
<button>
<placement x="%btn4_col3_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept"/>
<action function="page">flash_confirm</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<action function="page">flash_options</action>
</button>
<action>
<touch key="back"/>
<actions>
<action function="queueclear"/>
<action function="page">install</action>
</actions>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="flash_options">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<condition var1="tw_selectimage" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
</text>
<checkbox>
<placement x="%indent%" y="%row1_y%"/>
<text>{@zip_sig_chk=Zip file signature verification}</text>
<data variable="tw_signed_zip_verify"/>
</checkbox>
<checkbox>
<condition var1="tw_has_injecttwrp" var2="1"/>
<placement x="%indent%" y="%row2a_y%"/>
<text>{@inject_twrp_chk=Inject TWRP after install}</text>
<data variable="tw_inject_after_zip"/>
</checkbox>
<checkbox>
<placement x="%indent%" y="%row4_y%" />
<text>{@install_reboot_chk=Reboot after installation is complete}</text>
<data variable="tw_install_reboot" />
</checkbox>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">flash_queue</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept_transp"/>
<action function="page">flash_confirm</action>
</button>
<action>
<touch key="back"/>
<action function="page">flash_queue</action>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="flash_confirm">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
</text>
<text style="text_m_accent">
<placement x="%indent%" y="%row1_y%"/>
<text>{@file=File:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row2_y%"/>
<text>%tw_file%</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
<action function="page">flash_queue</action>
</button>
<text style="text_m_accent">
<placement x="%indent%" y="%row4_y%"/>
<text>{@zip_queue=Queue:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row5_y%"/>
<text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
<action function="page">flash_queue</action>
</button>
<listbox style="listbox_options">
<placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
<listitem name="{@zip_sig_chk=Zip signature verification}">
<data variable="tw_signed_zip_verify"/>
</listitem>
</listbox>
<text style="text_m_accent">
<placement x="%indent%" y="%row7_y%"/>
<text>{@options=Options:}</text>
</text>
<text style="text_m">
<condition var1="tw_has_injecttwrp" var2="1"/>
<condition var1="tw_inject_after_zip" var2="1"/>
<placement x="%indent%" y="%row9_y%"/>
<text>{@inject_twrp_chk=Inject TWRP after install}</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
<action function="page">flash_options</action>
</button>
<slider>
<text>{@swipe_confirm= Confirm}</text>
<action function="flash">flash_zip</action>
</slider>
<action>
<touch key="back"/>
<actions>
<action function="cancelzip"/>
<action function="page">install</action>
</actions>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="flash_zip">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<action>
<condition var1="tw_operation_state" var2="1"/>
<action function="page">flash_done</action>
</action>
</page>
<page name="flash_done">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m_fail">
<condition var1="tw_operation_status" op="!=" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_failed=Installation Failed}</text>
</text>
<text style="text_m">
<condition var1="tw_operation_status" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_successful=Installation Successful}</text>
</text>
<template name="console"/>
<button style="main_button_half_height">
<placement x="%col1_x_left%" y="%row13_y%"/>
<text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
<actions>
<action function="set">tw_back=flash_done</action>
<action function="set">tw_action=wipe</action>
<action function="set">tw_action_param=/cache</action>
<action function="set">tw_has_action2=1</action>
<action function="set">tw_action2=wipe</action>
<action function="set">tw_action2_param=dalvik</action>
<action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
<action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
<action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
<action function="set">tw_slider_text={@swipe_wipe_s= Wipe}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@reboot_system_btn=Reboot System}</text>
<actions>
<action function="set">tw_back=main2</action>
<action function="page">reboot_system_routine</action>
</actions>
</button>
<action>
<touch key="back"/>
<actions>
<action function="set">tw_clear_destination=install_type</action>
<action function="page">clear_vars</action>
</actions>
</action>
<action>
<touch key="home"/>
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</action>
<action>
<conditions>
<condition var1="tw_install_reboot" var2="1"/>
<condition var1="tw_operation_status" var2="0"/>
<condition var1="tw_reboot_system" var2="1"/>
</conditions>
<actions>
<action function="set">tw_sleep=%tw_sleep_total%</action>
<action function="page">flash_sleep_and_reboot</action>
</actions>
</action>
</page>
<page name="flash_sleep_and_reboot">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<button style="main_button_half_height">
<condition var1="tw_sleep" op="&gt;" var2="0"/>
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@cancel_btn=Cancel}</text>
<actions>
<action function="set">tw_install_reboot=0</action>
<action function="page">flash_done</action>
</actions>
</button>
<action>
<conditions>
<condition var1="tw_sleep" var2="tw_sleep_total"/>
<condition var1="tw_install_reboot" var2="1"/>
</conditions>
<action function="sleepcounter">%tw_sleep_total%</action>
</action>
<action>
<conditions>
<condition var1="tw_sleep" var2="0"/>
<condition var1="tw_install_reboot" var2="1"/>
</conditions>
<actions>
<action function="sleep">50000</action>
<action function="set">tw_back=main2</action>
<action function="page">reboot_system_routine</action>
</actions>
</action>
</page>
<page name="flashimage_type">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
</text>
<partitionlist style="partitionlist_headerless_rb">
<data name="tw_flash_partition"/>
<listtype name="flashimg"/>
</partitionlist>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">install</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept_transp"/>
<action function="page">flashimage_confirm</action>
</button>
<action>
<touch key="back"/>
<action function="page">install</action>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="flashimage_confirm">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
</text>
<text style="text_m_accent">
<placement x="%indent%" y="%row1_y%"/>
<text>{@file=File:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row2_y%"/>
<text>%tw_file%</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
<action function="page">install</action>
</button>
<text style="text_m_accent">
<placement x="%indent%" y="%row4_y%"/>
<text>{@target_partition=Target Partition:}</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row5_y%"/>
<text>%tw_flash_partition%</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
<action function="page">flashimage_type</action>
</button>
<slider>
<text>{@swipe_confirm= Confirm}</text>
<actions>
<action function="set">tw_back=flashimage_confirm</action>
<action function="set">tw_action=flashimage</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
<action function="page">action_page</action>
</actions>
<action function="flashimage"/>
</slider>
<action>
<touch key="back"/>
<actions>
<action function="set">tw_clear_destination=install</action>
<action function="page">clear_vars</action>
</actions>
</action>
<action>
<touch key="home"/>
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</action>
</page>
<page name="clear_vars">
<action>
<action function="set">tw_operation_state=0</action>
<action function="set">tw_text1=</action>
<action function="set">tw_text2=</action>
<action function="set">tw_text3=</action>
<action function="set">tw_text4=</action>
<action function="set">tw_action_text1=</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_action_param=</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_action2=</action>
<action function="set">tw_action2_param=</action>
<action function="set">tw_has_cancel=0</action>
<action function="set">tw_cancel_action=</action>
<action function="set">tw_cancel_param=</action>
<action function="set">tw_show_exclamation=0</action>
<action function="set">tw_show_reboot=0</action>
<action function="page">%tw_clear_destination%</action>
</action>
</page>
<page name="reboot_system_routine">
<action>
<action function="set">tw_back=main2</action>
<action function="set">tw_action=reboot</action>
<action function="set">tw_action_param=system</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
<action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
<action function="set">tw_text3=</action>
<action function="set">tw_text4=</action>
<action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
<action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
<action function="page">rebootcheck</action>
</action>
</page>
<page name="confirm_action">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@confirm_action=Confirm Action}</text>
</text>
<text style="text_m_accent">
<placement x="%center_x%" y="%row2_y%" placement="5"/>
<text>%tw_text1%</text>
</text>
<text style="text_m_accent">
<placement x="%center_x%" y="%row3_y%" placement="5"/>
<text>%tw_text2%</text>
</text>
<text style="text_m">
<condition var1="tw_action" op="!=" var2="changefilesystem"/>
<placement x="%center_x%" y="%row5_y%" placement="5"/>
<text>%tw_text3%</text>
</text>
<text style="text_m">
<condition var1="tw_action" op="!=" var2="changefilesystem"/>
<placement x="%center_x%" y="%row6_y%" placement="5"/>
<text>%tw_text4%</text>
</text>
<text style="text_m_fail">
<condition var1="tw_action" var2="changefilesystem"/>
<placement x="%center_x%" y="%row5_y%" placement="5"/>
<text>%tw_text3%</text>
</text>
<text style="text_m_fail">
<condition var1="tw_action" var2="changefilesystem"/>
<placement x="%center_x%" y="%row6_y%" placement="5"/>
<text>%tw_text4%</text>
</text>
<text style="text_m">
<placement x="%center_x%" y="%row8_y%" placement="5"/>
<text>{@back_cancel=Press back button to cancel.}</text>
</text>
<slider>
<text>%tw_slider_text%</text>
<action function="page">action_page</action>
</slider>
<action>
<touch key="back"/>
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="action_page">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>%tw_action_text1% %tw_action_text2%</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<button style="main_button_half_height">
<condition var1="tw_has_cancel" var2="1"/>
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@cancel_btn=Cancel}</text>
<action function="%tw_cancel_action%">%tw_cancel_param%</action>
</button>
<action>
<condition var1="tw_operation_state" var2="1"/>
<actions>
<action function="page">action_complete</action>
</actions>
</action>
<action>
<condition var1="tw_has_action2" var2="0"/>
<actions>
<action function="%tw_action%">%tw_action_param%</action>
</actions>
</action>
<action>
<condition var1="tw_has_action2" var2="1"/>
<actions>
<action function="%tw_action%">%tw_action_param%</action>
<action function="%tw_action2%">%tw_action2_param%</action>
</actions>
</action>
</page>
<page name="singleaction_page">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>%tw_action_text1% %tw_action_text2%</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<action>
<condition var1="tw_operation_state" var2="1"/>
<actions>
<action function="set">tw_page_done=1</action>
</actions>
</action>
<action>
<condition var1="tw_has_action2" var2="0"/>
<actions>
<action function="%tw_action%">%tw_action_param%</action>
</actions>
</action>
<action>
<condition var1="tw_has_action2" var2="1"/>
<actions>
<action function="%tw_action%">%tw_action_param%</action>
<action function="%tw_action2%">%tw_action2_param%</action>
</actions>
</action>
</page>
<page name="action_complete">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m_fail">
<condition var1="tw_operation_status" op="!=" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>%tw_complete_text1% {@failed=Failed}</text>
</text>
<text style="text_m">
<condition var1="tw_operation_status" var2="0"/>
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>%tw_complete_text1% {@successful=Successful}</text>
</text>
<template name="console"/>
<button style="main_button_half_height">
<placement x="%col1_x_left%" y="%row13_y%"/>
<text>{@back_btn=Back}</text>
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</button>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@reboot_system_btn=Reboot System}</text>
<actions>
<action function="set">tw_back=main2</action>
<action function="page">reboot_system_routine</action>
</actions>
</button>
<action>
<touch key="home"/>
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</action>
<action>
<touch key="back"/>
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</action>
</page>
<page name="filecheck">
<action>
<action function="fileexists">%tw_filecheck%</action>
</action>
<action>
<conditions>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_operation_status" var2="0"/>
</conditions>
<actions>
<action function="set">tw_fileexists=1</action>
<action function="page">%tw_existpage%</action>
</actions>
</action>
<action>
<conditions>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_operation_status" var2="1"/>
</conditions>
<actions>
<action function="set">tw_fileexists=0</action>
<action function="page">%tw_notexistpage%</action>
</actions>
</action>
</page>
<page name="rebootcheck">
<action>
<condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
<action function="reboot">%tw_action_param%</action>
</action>
<action>
<condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
<action function="page">confirm_action</action>
</action>
</page>
<page name="wipe_type1">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
</text>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@factory_reset_btn=Factory Reset}</text>
<action function="page">wipe</action>
</button>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@advanced_wipe_btn=Advanced Wipe}</text>
<actions>
<action function="set">partitionlisterror=0</action>
<action function="page">advancedwipe</action>
</actions>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<action function="page">wipe_type2</action>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">main</action>
</action>
</page>
<page name="wipe_type2">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
</text>
<button style="main_button_full_width">
<condition var1="tw_has_data_media" var2="1"/>
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@format_data_btn=Format Data}</text>
<action function="page">formatdata</action>
</button>
<button style="main_button_full_width">
<conditions>
<condition var1="tw_is_encrypted" var2="1"/>
<condition var1="tw_has_data_media" var2="0"/>
</conditions>
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@wipe_enc_btn=Wipe Encryption}</text>
<actions>
<action function="set">tw_back=wipe</action>
<action function="set">tw_action=wipe</action>
<action function="set">tw_action_param=DATAMEDIA</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
<action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
<action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button_full_width">
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@file_sys_opt=File System Options}</text><actions>
<action function="set">partitionlisterror=0</action>
<action function="page">partitionoptions_select</action>
</actions>
</button>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">wipe_type1</action>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">main</action>
</action>
</page>
<page name="wipe">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
</text>
<text style="text_m_accent">
<placement x="%center_x%" y="%row1_y%" placement="5"/>
<text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
</text>
<text style="text_m_accent">
<condition var1="tw_has_data_media" var2="1"/>
<placement x="%center_x%" y="%row2_y%" placement="5"/>
<text>{@factory_reset2=(not including internal storage)}</text>
</text>
<text style="text_m_accent">
<conditions>
<condition var1="tw_has_android_secure" var2="1"/>
<condition var1="fileexists" var2="/and-sec"/>
</conditions>
<placement x="%center_x%" y="%row3_y%" placement="5"/>
<text>{@android_secure=Android Secure}</text>
</text>
<text style="text_m_accent">
<condition var1="tw_has_sdext_partition" var2="1"/>
<placement x="%center_x%" y="%row4_y%" placement="5"/>
<text>{@sdext=SD-EXT}</text>
</text>
<text style="text_m">
<placement x="%center_x%" y="%row6_y%" placement="5"/>
<text>{@factory_reset3=Most of the time this is}</text>
</text>
<text style="text_m">
<placement x="%center_x%" y="%row7_y%" placement="5"/>
<text>{@factory_reset4=the only wipe that you need.}</text>
</text>
<text style="text_m">
<placement x="%center_x%" y="%row9_y%" placement="5"/>
<text>{@back_cancel=Press back button to cancel.}</text>
</text>
<slider>
<text>{@swipe_wipe_s= Wipe}</text>
<actions>
<action function="set">tw_back=wipe</action>
<action function="set">tw_action=wipe</action>
<action function="set">tw_action_param=data</action>
<action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
<action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
<action function="page">action_page</action>
</actions>
</slider>
<action>
<touch key="back"/>
<action function="page">wipe_type1</action>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
</page>
<page name="advancedwipe">
<action>
<action function="set">tw_wipe_list=</action>
</action>
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
</text>
<partitionlist style="partitionlist_headerless_cb">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<data name="tw_wipe_list"/>
<listtype name="wipe"/>
</partitionlist>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
</fill>
<slider>
<text>{@swipe_wipe_s= Wipe}</text>
<actions>
<action function="set">tw_back=advancedwipe</action>
<action function="set">tw_action=wipe</action>
<action function="set">tw_action_param=LIST</action>
<action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
<action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
<action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
<action function="page">action_page</action>
</actions>
</slider>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">wipe_type1</action>
</action>
</page>
<page name="formatdata">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
</text>
<text style="text_m_fail">
<placement x="%center_x%" y="%row1_y%" placement="5"/>
<text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
</text>
<text style="text_m_fail">
<placement x="%center_x%" y="%row2_y%" placement="5"/>
<text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
</text>
<text style="text_m">
<placement x="%center_x%" y="%row3_y%" placement="5"/>
<text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
</text>
<input>
<placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
<text>%tw_confirm_formatdata%</text>
<data name="tw_confirm_formatdata"/>
<restrict minlen="3" maxlen="3" allow="yes"/>
<action function="page">formatdata_confirm</action>
</input>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
</fill>
<template name="keyboardtemplate"/>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">wipe_type2</action>
</action>
</page>
<page name="formatdata_confirm">
<action>
<condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
<actions>
<action function="set">tw_back=formatdata</action>
<action function="set">tw_action=wipe</action>
<action function="set">tw_action_param=DATAMEDIA</action>
<action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
<action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
<action function="page">action_page</action>
</actions>
</action>
<action>
<condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
<action function="page">formatdata</action>
</action>
</page>
<page name="checkpartitionlist">
<action>
<condition var1="tw_check_partition_list" op="=" var2="1"/>
<actions>
<action function="set">partitionlisterror=0</action>
<action function="getpartitiondetails">tw_wipe_list</action>
<action function="page">partitionoptions</action>
</actions>
</action>
<action>
<condition var1="tw_check_partition_list" op="!=" var2="1"/>
<actions>
<action function="set">partitionlisterror=1</action>
<action function="page">partitionoptions_select</action>
</actions>
</action>
</page>
<page name="partitionoptions_select">
<action>
<action function="set">tw_wipe_list=</action>
</action>
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
</text>
<partitionlist style="partitionlist_headerless_cb">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<data name="tw_wipe_list"/>
<listtype name="wipe"/>
</partitionlist>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
</fill>
<text style="text_m_fail">
<condition var1="partitionlisterror" var2="1"/>
<placement x="%col1_x_left%" y="%row12_y%"/>
<text>{@invalid_part_sel=Invalid partition selection}</text>
</text>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/><actions>
<action function="checkpartitionlist">tw_wipe_list</action>
<action function="page">checkpartitionlist</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">wipe_type2</action>
</action>
</page>
<page name="partitionoptions">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@partition=Partition: %tw_partition_name%}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_right%" y="%row1_y%"/>
<text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
</text>
<text style="text_m">
<condition var1="tw_partition_is_present" var2="1"/>
<placement x="%col1_x_left%" y="%row2a_y%"/>
<text>{@part_present_yes=Present: Yes}</text>
</text>
<text style="text_m">
<condition var1="tw_partition_is_present" var2="0"/>
<placement x="%col1_x_left%" y="%row2a_y%"/>
<text>{@part_present_no=Present: No}</text>
</text>
<text style="text_m">
<condition var1="tw_partition_removable" var2="1"/>
<placement x="%col1_x_right%" y="%row2a_y%"/>
<text>{@part_removable_yes=Removable: Yes}</text>
</text>
<text style="text_m">
<condition var1="tw_partition_removable" var2="0"/>
<placement x="%col1_x_right%" y="%row2a_y%"/>
<text>{@part_removable_no=Removable: No}</text>
</text>
<text style="text_m">
<placement x="%col1_x_left%" y="%row3a_y%"/>
<text>{@part_size=Size: %tw_partition_size%MB}</text>
</text>
<text style="text_m">
<placement x="%col1_x_right%" y="%row3a_y%"/>
<text>{@part_used=Used: %tw_partition_used%MB}</text>
</text>
<text style="text_m">
<placement x="%col1_x_left%" y="%row4a_y%"/>
<text>{@part_free=Free: %tw_partition_free%MB}</text>
</text>
<text style="text_m">
<placement x="%col1_x_right%" y="%row4a_y%"/>
<text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
</text>
<button style="main_button">
<condition var1="tw_partition_can_resize" op="=" var2="1"/>
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>{@resize_btn_s=Resize}</text>
<actions>
<action function="set">tw_back=partitionoptions</action>
<action function="set">tw_action=resize</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_has_action2=1</action>
<action function="set">tw_action2=getpartitiondetails</action>
<action function="set">tw_action2_param=tw_wipe_list</action>
<action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1={@resizing=Resizing...}</action>
<action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
<action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_can_repair" op="=" var2="1"/>
<placement x="%col1_x_right%" y="%row6_y%"/>
<text>{@repair_btn_s=Repair}</text>
<actions>
<action function="set">tw_back=partitionoptions</action>
<action function="set">tw_action=repair</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1={@repairing=Repairing...}</action>
<action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
<action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">partitionoptions_select</action>
</button>
<button style="main_button">
<placement x="%col1_x_right%" y="%row11_y%"/>
<text>{@change_fs_btn_s=Change}</text>
<action function="page">selectfilesystem</action>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">partitionoptions_select</action>
</action>
</page>
<page name="refreshfilesystem">
<action>
<condition var1="tw_check_partition_list" op="=" var2="1"/>
<actions>
<action function="set">partitionlisterror=0</action>
<action function="getpartitiondetails">tw_wipe_list</action>
<action function="page">selectfilesystem</action>
</actions>
</action>
<action>
<condition var1="tw_check_partition_list" op="!=" var2="1"/>
<actions>
<action function="set">partitionlisterror=1</action>
<action function="set">tw_wipe_list=</action>
<action function="page">advancedwipe</action>
</actions>
</action>
</page>
<page name="selectfilesystem">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
</text>
<button style="main_button">
<condition var1="tw_partition_ext" op="=" var2="1"/>
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>EXT2</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=ext2</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=EXT2</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_ext" op="=" var2="1"/>
<placement x="%col1_x_left%" y="%row6_y%"/>
<text>EXT3</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=ext3</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=EXT3</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_ext" op="=" var2="1"/>
<placement x="%col1_x_left%" y="%row11_y%"/>
<text>EXT4</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=ext4</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=EXT4</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_vfat" op="=" var2="1"/>
<placement x="%col1_x_right%" y="%row1_y%"/>
<text>FAT</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=vfat</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=FAT</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_exfat" op="=" var2="1"/>
<placement x="%col1_x_right%" y="%row6_y%"/>
<text>exFAT</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=exfat</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=exFAT</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button style="main_button">
<condition var1="tw_partition_f2fs" op="=" var2="1"/>
<placement x="%col1_x_right%" y="%row11_y%"/>
<text>F2FS</text>
<actions>
<action function="set">tw_back=refreshfilesystem</action>
<action function="set">tw_action=changefilesystem</action>
<action function="set">tw_action_param=%tw_partition_mount_point%</action>
<action function="set">tw_action_new_file_system=f2fs</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
<action function="set">tw_text2=F2FS</action>
<action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
<action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
<action function="set">tw_action_text1={@formatting=Formatting...}</action>
<action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
<action function="set">tw_slider_text={@swipe_change_s= Change}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">partitionoptions</action>
</action>
</page>
<page name="backup">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
</text>
<partitionlist style="partitionlist_headerless_rb">
<data name="tw_storage_path"/>
<listtype name="storage"/>
</partitionlist>
<button>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_refresh"/>
<actions>
<action function="refreshsizes"/>
<action function="page">backup</action>
</actions>
</button>
<button>
<condition var1="tw_back" var2="backup_confirm"/>
<placement x="%btn4_col3_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept"/>
<action function="page">backup_confirm</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<actions>
<action function="set">tw_back=backup</action>
<action function="page">backup_selectpartitions</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
<action>
<touch key="power+voldown"/>
<action function="screenshot"/>
</action>
</page>
<page name="backup_selectpartitions">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
</text>
<partitionlist style="partitionlist_headerless_cb">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<data name="tw_backup_list"/>
<listtype name="backup"/>
</partitionlist>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
</fill>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">backup</action>
</button>
<button>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_refresh"/>
<action function="page">backup_selectpartitions</action>
</button>
<button>
<placement x="%btn4_col3_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept"/>
<action function="page">backup_confirm</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<actions>
<action function="set">tw_back=backup_selectpartitions</action>
<action function="page">backup_options</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
<action>
<touch key="power+voldown"/>
<action function="screenshot"/>
</action>
</page>
<page name="backup_options">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
</text>
<listbox style="scrolllist">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<listitem name="{@enable_backup_comp_chk=Enable compression}">
<data variable="tw_use_compression"/>
</listitem>
<listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
<data variable="tw_skip_md5_generate"/>
</listitem>
<listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
<data variable="tw_disable_free_space"/>
</listitem>
</listbox>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">backup_selectpartitions</action>
</button>
<button>
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1"/>
<condition var1="tw_encrypt_backup" var2="0"/>
<condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
</conditions>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_encryption_dis"/>
<actions>
<action function="set">tw_password_not_match=0</action>
<action function="set">tw_back=backup_options</action>
<action function="page">backupencryption</action>
</actions>
</button>
<button>
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1"/>
<condition var1="tw_encrypt_backup" var2="1"/>
<condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
</conditions>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_encryption_en"/>
<actions>
<action function="set">tw_password_not_match=0</action>
<action function="set">tw_back=backup_options</action>
<action function="page">backupencryption</action>
</actions>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept_transp"/>
<actions>
<action function="set">tw_back=backup_options</action>
<action function="page">backup_confirm</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
<action>
<touch key="power+voldown"/>
<action function="screenshot"/>
</action>
</page>
<page name="backup_confirm">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@name=Name:}</text>
</text>
<text style="text_m">
<placement x="%col1_x_left%" y="%row2_y%"/>
<text>%tw_backup_name%</text>
</text>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
</fill>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
<actions>
<action function="set">tw_back=backup_confirm</action>
<action function="set">tw_fileexists=0</action>
<action function="page">backup_name1</action>
</actions>
</button>
<fill color="%background_color%">
<placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
</fill>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row3a_y%"/>
<text>{@partitions=Partitions:}</text>
</text>
<partitionlist style="partitionlist_summary">
<placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
<data name="tw_backup_list"/>
<listtype name="backup"/>
</partitionlist>
<button>
<fill color="%transparent%"/>
<placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
<actions>
<action function="set">tw_back=backup_confirm</action>
<action function="page">backup_selectpartitions</action>
</actions>
</button>
<text style="text_m_accent">
<placement x="%col1_x_right%" y="%row1_y%"/>
<text>{@storage=Storage:}</text>
</text>
<text style="text_m">
<placement x="%col1_x_right%" y="%row2_y%"/>
<text>%tw_storage_display_name%</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
<actions>
<action function="set">tw_back=backup_confirm</action>
<action function="page">backup</action>
</actions>
</button>
<text style="text_m_accent">
<placement x="%col1_x_right%" y="%row3a_y%"/>
<text>{@encryption=Encryption:}</text>
</text>
<text style="text_m">
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1"/>
<condition var1="tw_encrypt_backup" var2="0"/>
<condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
</conditions>
<placement x="%col1_x_right%" y="%row4a_y%"/>
<text>{@disabled=Disabled}</text>
</text>
<text style="text_m">
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1"/>
<condition var1="tw_encrypt_backup" var2="1"/>
<condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
</conditions>
<placement x="%col1_x_right%" y="%row4a_y%"/>
<text>{@enabled=Enabled}</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
<actions>
<action function="set">tw_back=backup_confirm</action>
<action function="page">backupencryption</action>
</actions>
</button>
<listbox style="listbox_options">
<placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
<listitem name="{@enable_backup_comp_chk=Enable compression}">
<data variable="tw_use_compression"/>
</listitem>
<listitem name="{@skip_md5_backup_chk=Skip MD5 generation during backup}">
<data variable="tw_skip_md5_generate"/>
</listitem>
<listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
<data variable="tw_disable_free_space"/>
</listitem>
</listbox>
<text style="text_m_accent">
<placement x="%col1_x_right%" y="%row6_y%"/>
<text>{@options=Options:}</text>
</text>
<button>
<fill color="%transparent%"/>
<placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
<actions>
<action function="set">tw_back=backup_confirm</action>
<action function="page">backup_options</action>
</actions>
</button>
<slider>
<text>{@swipe_confirm= Confirm}</text>
<action function="page">backup_run</action>
</slider>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">backup</action>
</action>
</page>
<page name="backup_name1">
<action>
<condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
<action function="generatebackupname"/>
</action>
<action>
<action function="page">backup_name2</action>
</action>
</page>
<page name="backup_name2">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@name=Name:}</text>
</text>
<input>
<placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
<text>%tw_backup_name%</text>
<data name="tw_backup_name"/>
<restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
<actions>
<action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
<action function="set">tw_existpage=backup_name2</action>
<action function="set">tw_notexistpage=backup_confirm</action>
<action function="page">filecheck</action>
</actions>
</input>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
</fill>
<fill color="%text_fail_color%">
<condition var1="tw_fileexists" var2="1"/>
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
</fill>
<text style="text_m_fail">
<condition var1="tw_fileexists" var2="1"/>
<placement x="%col1_x_left%" y="%row3_input_y%"/>
<text>{@backup_name_exists=A backup with that name already exists!}</text>
</text>
<button style="main_button_half_height">
<placement x="%col1_x_left%" y="%row4_y%"/>
<text>{@cancel_btn=Cancel}</text>
<actions>
<action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
<action function="page">backup_confirm</action>
</actions>
</button>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row4_y%"/>
<text>{@append_date_btn=Append Date}</text>
<action function="appenddatetobackupname"/>
</button>
<template name="keyboardtemplate"/>
<action>
<touch key="home"/>
<actions>
<action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
<action function="page">main</action>
</actions>
</action>
<action>
<touch key="back"/>
<actions>
<action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
<action function="page">backup_confirm</action>
</actions>
</action>
</page>
<page name="backupencryption">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@enter_pass=Enter Password:}</text>
</text>
<input>
<placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
<text>%tw_backup_encrypt_display%</text>
<data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
<action function="page">backupencryption2</action>
</input>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
</fill>
<fill color="%text_fail_color%">
<condition var1="tw_password_not_match" var2="1"/>
<placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
</fill>
<text style="text_m_fail">
<condition var1="tw_password_not_match" var2="1"/>
<placement x="%col1_x_left%" y="%row3_input_y%"/>
<text>{@pass_not_match=Passwords do not match!}</text>
</text>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row4_y%"/>
<text>{@cancel_btn=Cancel}</text>
<actions>
<action function="set">tw_encrypt_backup=0</action>
<action function="set">tw_backup_password=</action>
<action function="set">tw_backup_password2=</action>
<action function="set">tw_backup_encrypt_display=</action>
<action function="set">tw_backup_encrypt_display2=</action>
<action function="page">%tw_back%</action>
</actions>
</button>
<template name="keyboardtemplate"/>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
</page>
<page name="backupencryption2">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@enter_pass2=Enter Password again:}</text>
</text>
<input>
<placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
<text>%tw_backup_encrypt_display2%</text>
<data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
<action function="page">checkbackuppassword</action>
</input>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
</fill>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row4_y%"/>
<text>{@cancel_btn=Cancel}</text>
<actions>
<action function="set">tw_encrypt_backup=0</action>
<action function="set">tw_backup_password=</action>
<action function="set">tw_backup_password2=</action>
<action function="set">tw_backup_encrypt_display=</action>
<action function="set">tw_backup_encrypt_display2=</action>
<action function="page">%tw_back%</action>
</actions>
</button>
<template name="keyboardtemplate"/>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
</page>
<page name="checkbackuppassword">
<action>
<condition var1="tw_backup_password2" var2="tw_backup_password"/>
<actions>
<action function="set">tw_encrypt_backup=1</action>
<action function="page">%tw_back%</action>
</actions>
</action>
<action>
<condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
<actions>
<action function="set">tw_encrypt_backup=0</action>
<action function="set">tw_password_not_match=1</action>
<action function="set">tw_backup_password=</action>
<action function="set">tw_backup_password2=</action>
<action function="set">tw_backup_encrypt_display=</action>
<action function="set">tw_backup_encrypt_display2=</action>
<action function="page">backupencryption</action>
</actions>
</action>
</page>
<page name="backup_run">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>%tw_operation% %tw_partition%</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<text style="text_m">
<placement x="%indent%" y="%row13a_y%"/>
<text>%tw_file_progress%</text>
</text>
<text style="text_m">
<placement x="%indent%" y="%row14a_y%"/>
<text>%tw_size_progress%</text>
</text>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row13_y%"/>
<text>{@cancel_btn=Cancel}</text>
<action function="cancelbackup"/>
</button>
<action>
<action function="nandroid">backup</action>
</action>
<action>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_cancel_backup" var2="0"/>
<actions>
<action function="set">tw_back=backup_selectpartitions</action>
<action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
<action function="set">tw_show_reboot=1</action>
<action function="page">action_complete</action>
</actions>
</action>
<action>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_cancel_backup" var2="1"/>
<actions>
<action function="set">tw_back=backup_selectpartitions</action>
<action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
<action function="set">tw_show_reboot=1</action>
<action function="page">action_complete</action>
</actions>
</action>
</page>
<page name="restore">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
</text>
<fileselector>
<placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
<text>%tw_storage_display_name%</text>
<filter folders="1" files="0" nav="0"/>
<path name="tw_backups_folder"/>
<data name="tw_restore" default=""/>
<selection name="tw_restore_name"/>
</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={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
<action function="set">tw_back=restore</action>
<action function="page">select_storage</action>
</actions>
</button>
<action>
<condition var1="tw_restore" op="modified"/>
<actions>
<action function="readBackup"/>
<action function="set">tw_back=restore</action>
<action function="page">restore_read</action>
</actions>
</action>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">main</action>
</action>
</page>
<page name="restore_read">
<action>
<condition var1="tw_restore_encrypted" var2="1"/>
<actions>
<action function="set">tw_password_fail=0</action>
<action function="page">restore_decrypt</action>
</actions>
</action>
<action>
<condition var1="tw_restore_encrypted" var2="0"/>
<actions>
<action function="page">restore_select</action>
</actions>
</action>
</page>
<page name="restore_decrypt">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
</text>
<text style="text_m_accent">
<placement x="%col1_x_left%" y="%row1_y%"/>
<text>{@enter_pass=Enter Password:}</text>
</text>
<input>
<placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
<text>%tw_restore_display%</text>
<data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
<action function="page">try_restore_decrypt</action>
</input>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
</fill>
<fill color="%text_fail_color%">
<condition var1="tw_password_fail" var2="1"/>
<placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
</fill>
<text style="text_m_fail">
<condition var1="tw_password_fail" var2="1"/>
<placement x="%col1_x_left%" y="%row3_input_y%"/>
<text>{@restore_dec_fail=Password failed, please try again!}</text>
</text>
<button style="main_button_half_height">
<placement x="%col1_x_left%" y="%row4_y%"/>
<text>{@cancel_btn=Cancel}</text>
<actions>
<action function="set">tw_page_done=1</action>
<action function="page">restore</action>
</actions>
</button>
<button style="main_button_half_height">
<placement x="%col1_x_right%" y="%row4_y%"/>
<text>{@del_backup_btn=Delete Backup}</text>
<actions>
<action function="set">tw_back=restore</action>
<action function="set">tw_action=cmd</action>
<action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
<action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
<action function="set">tw_text2=%tw_restore_name%</action>
<action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
<action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
<action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
<action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<template name="keyboardtemplate"/>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">restore</action>
</action>
</page>
<page name="try_restore_decrypt">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
</text>
<template name="console"/>
<template name="progress_bar"/>
<action>
<action function="decrypt_backup"/>
</action>
<action>
<conditions>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_operation_status" op="!=" var2="0"/>
</conditions>
<actions>
<action function="set">tw_password_fail=1</action>
<action function="page">restore_decrypt</action>
</actions>
</action>
<action>
<conditions>
<condition var1="tw_operation_state" var2="1"/>
<condition var1="tw_operation_status" op="=" var2="0"/>
</conditions>
<actions>
<action function="set">tw_page_done=1</action>
<action function="page">restore_select</action>
</actions>
</action>
</page>
<page name="restore_select">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
</text>
<partitionlist style="partitionlist_headerless_cb">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<data name="tw_restore_list" selectedlist="tw_restore_selected"/>
<listtype name="restore"/>
</partitionlist>
<fill color="%accent_color%">
<placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
</fill>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">restore</action>
</button>
<button>
<placement x="%btn4_col2_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_delete"/>
<actions>
<action function="set">tw_back=restore</action>
<action function="set">tw_action=cmd</action>
<action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
<action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
<action function="set">tw_text2=%tw_restore_name%</action>
<action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
<action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
<action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
<action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
<action function="page">confirm_action</action>
</actions>
</button>
<button>
<placement x="%btn4_col3_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept"/>
<action function="page">restore_confirm</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_right"/>
<actions>
<action function="set">tw_back=restore_select</action>
<action function="page">restore_options</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
</page>
<page name="restore_options">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
</text>
<listbox style="scrolllist">
<placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
<listitem name="{@restore_enable_md5_chk=Enable MD5 Verification of Backup Files}">
<data variable="tw_skip_md5_check"/>
</listitem>
</listbox>
<button>
<placement x="%col1_x_left%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_arrow_left"/>
<action function="page">restore_select</action>
</button>
<button>
<placement x="%btn4_col4_x%" y="%row11_y%"/>
<highlight color="%highlight_color%"/>
<image resource="q_btn_accept_transp"/>
<actions>
<action function="set">tw_back=restore_options</action>
<action function="page">restore_confirm</action>
</actions>
</button>
<action>
<touch key="home"/>
<action function="page">main</action>
</action>
<action>
<touch key="back"/>
<action function="page">%tw_back%</action>
</action>
<action>
<touch key="power+voldown"/>
<action function="screenshot"/>
</action>
</page>
<page name="renamebackup">
<template name="page"/>
<template name="statusbar"/>
<text style="text_m">
<placement x="%col1_x_left%" y="%row1_header_y%"/>
<text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
</text>
<text style="text_m_accent">
<placement<