blob: fe6167155aba0de32e1c38bf1f6bfcc6b8d7a9eb [file] [log] [blame]
<?xml version="1.0"?>
<recovery>
<pages>
<page name="main">
<object type="action">
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</object>
</page>
<page name="main2">
<object type="template" name="header" />
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Install</text>
<image resource="main_button" />
<actions>
<action function="queueclear"></action>
<action function="page">install</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe</text>
<image resource="main_button" />
<action function="page">wipe</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Backup</text>
<image resource="main_button" />
<action function="page">backup</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Restore</text>
<image resource="main_button" />
<action function="page">restore</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Mount</text>
<image resource="main_button" />
<action function="page">mount</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Settings</text>
<image resource="main_button" />
<action function="page">settings</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced</text>
<image resource="main_button" />
<action function="page">advanced</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot</text>
<image resource="main_button" />
<action function="page">reboot</action>
</object>
<object type="template" name="footer" />
</page>
<page name="install">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Select Zip to Install</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%row1_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
<actions>
<action function="set">tw_back=install</action>
<action function="page">selectstorage</action>
</actions>
</object>
<object type="fileselector">
<highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row3_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>%tw_zip_location%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".zip" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
<selection name="tw_file" />
</object>
<object type="template" name="sort_options" />
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Images...</text>
<image resource="medium_button" />
<actions>
<action function="page">install_image</action>
</actions>
</object>
<object type="action">
<condition var1="tw_filename" op="modified" />
<actions>
<action function="queuezip"></action>
<action function="page">flash_confirm</action>
</actions>
</object>
<object type="action">
<touch key="back" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="flash_confirm">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>This operation may install incompatible</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>software and render your device unusable.</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>Folder:</text>
</object>
<object type="text" color="%text_color%">
<font resource="mediumfont" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>%tw_zip_location%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row5_text_y%" placement="5" />
<text>File to flash:</text>
</object>
<object type="text" color="%text_color%">
<font resource="mediumfont" />
<placement x="%center_x%" y="%row6_text_y%" placement="5" />
<text>%tw_file%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row7_text_y%" placement="5" />
<text>Press back to cancel adding this zip.</text>
</object>
<object type="checkbox">
<placement x="%col1_x%" y="%row8_text_y%" />
<font resource="font" color="%text_color%" />
<text>Zip file signature verification.</text>
<data variable="tw_signed_zip_verify" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="checkbox">
<condition var1="tw_has_injecttwrp" var2="1" />
<placement x="%col1_x%" y="%row10_text_y%" />
<font resource="font" color="%text_color%" />
<text>Inject TWRP after install.</text>
<data variable="tw_inject_after_zip" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row11_text_y%" placement="5" />
<text>File %tw_zip_queue_count% of max of 10</text>
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" placement="5" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<action function="flash">flash_zip</action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Confirm Flash</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
<placement x="%col1_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Add More Zips</text>
<image resource="main_button" />
<action function="page">install</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row_queue_y%" />
<font resource="font" color="%button_text_color%" />
<text>Clear Zip Queue</text>
<image resource="main_button" />
<actions>
<action function="queueclear"></action>
<action function="page">install</action>
</actions>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="cancelzip"></action>
<action function="page">install</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="flash_zip">
<object type="template" name="header" />
<object type="console">
<placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_install_height%" />
<color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
<font resource="fixed" />
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row17_text_y%" placement="5" />
<text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
</object>
<object type="text" color="%text_color%">
<font resource="mediumfont" />
<placement x="%center_x%" y="%row18_text_y%" placement="5" />
<text>%tw_filename%</text>
</object>
<object type="template" name="progress_bar" />
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<action function="page">flash_done</action>
</object>
</page>
<page name="flash_done">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Zip Install Complete</text>
</object>
<object type="console">
<placement x="%console_x%" y="%row1_y%" w="%console_width%" h="%console_installdone_height%" />
<color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
<font resource="fixed" />
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe cache/dalvik</text>
<image resource="main_button" />
<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?</action>
<action function="set">tw_action_text1=Wiping Cache & Dalvik...</action>
<action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action>
<action function="set">tw_slider_text=Swipe to Wipe</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
<image resource="main_button" />
<actions>
<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 OS Installed! Are you</action>
<action function="set">tw_text2=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...</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_complete_text1=Rebooting...</action>
<action function="set">tw_slider_text=Swipe to Reboot</action>
<action function="page">rebootcheck</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Home</text>
<image resource="main_button" />
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_operation_status" op="!=" var2="0" />
<font resource="font" />
<placement x="%center_x%" y="%zip_status_y%" placement="5" />
<text>Failed</text>
</object>
<object type="text" color="%text_success_color%">
<condition var1="tw_operation_status" var2="0" />
<font resource="font" />
<placement x="%center_x%" y="%zip_status_y%" placement="5" />
<text>Successful</text>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="set">tw_clear_destination=install</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</object>
</page>
<page name="install_image">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Select Image to Install</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%row1_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
<actions>
<action function="set">tw_back=install_image</action>
<action function="page">selectstorage</action>
</actions>
</object>
<object type="fileselector">
<highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row3_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>%tw_zip_location%</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter extn=".img" folders="1" files="1" />
<path name="tw_zip_location" default="/sdcard" />
<data name="tw_filename" />
<selection name="tw_file" />
</object>
<object type="template" name="sort_options" />
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
<font resource="font" color="%button_text_color%" />
<text>Zips...</text>
<image resource="medium_button" />
<actions>
<action function="page">install</action>
</actions>
</object>
<object type="action">
<condition var1="tw_filename" op="modified" />
<action function="page">flashimage_confirm</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">install</action>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="flashimage_confirm">
<object type="template" name="header" />
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%flash_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Partition to Flash Image:</text>
<icon selected="radio_true" unselected="radio_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_flash_partition" />
<listtype name="flashimg" />
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row8_text_y%" placement="5" />
<text>Folder:</text>
</object>
<object type="text" color="%text_color%">
<font resource="mediumfont" />
<placement x="%center_x%" y="%row9_text_y%" placement="5" />
<text>%tw_zip_location%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row10_text_y%" placement="5" />
<text>File to flash:</text>
</object>
<object type="text" color="%text_color%">
<font resource="mediumfont" />
<placement x="%center_x%" y="%row11_text_y%" placement="5" />
<text>%tw_file%</text>
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" placement="5" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<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...</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_complete_text1=Image Flashed</action>
<action function="page">action_page</action>
</actions>
<action function="flashimage"></action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Confirm Flash</text>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="set">tw_clear_destination=install_image</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="template" name="footer" />
</page>
<page name="clear_vars">
<object type="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>
</object>
</page>
<page name="confirm_action">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_text1%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>%tw_text2%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>%tw_text3%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>%tw_text4%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row15_text_y%" placement="5" />
<text>Press back button to cancel.</text>
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<action function="page">action_page</action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>%tw_slider_text%</text>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="action_page">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_action_text1%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>%tw_action_text2%</text>
</object>
<object type="template" name="action_page_console" />
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_has_cancel" var2="1" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="medium_button" />
<action function="%tw_cancel_action%">%tw_cancel_param%</action>
</object>
<object type="template" name="progress_bar" />
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<actions>
<action function="page">action_complete</action>
</actions>
</object>
<object type="action">
<condition var1="tw_has_action2" var2="0" />
<actions>
<action function="%tw_action%">%tw_action_param%</action>
</actions>
</object>
<object type="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>
</object>
</page>
<page name="singleaction_page">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_action_text1%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>%tw_action_text2%</text>
</object>
<object type="template" name="action_page_console" />
<object type="template" name="progress_bar" />
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<actions>
<action function="set">tw_page_done=1</action>
</actions>
</object>
<object type="action">
<condition var1="tw_has_action2" var2="0" />
<actions>
<action function="%tw_action%">%tw_action_param%</action>
</actions>
</object>
<object type="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>
</object>
</page>
<page name="action_complete">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_complete_text1%</text>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_operation_status" op="!=" var2="0" />
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Failed</text>
</object>
<object type="text" color="%text_success_color%">
<condition var1="tw_operation_status" var2="0" />
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Successful</text>
</object>
<object type="template" name="action_page_console" />
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="0" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Back</text>
<image resource="main_button" />
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_show_reboot" var2="1" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Reboot System</text>
<image resource="main_button" />
<actions>
<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 OS Installed! Are you</action>
<action function="set">tw_text2=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...</action>
<action function="set">tw_action_text2=</action>
<action function="set">tw_complete_text1=Rebooting...</action>
<action function="set">tw_slider_text=Swipe to Reboot</action>
<action function="page">rebootcheck</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<actions>
<action function="set">tw_clear_destination=main2</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</object>
</page>
<page name="filecheck">
<object type="action">
<action function="fileexists">%tw_filecheck%</action>
</object>
<object type="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>
</object>
<object type="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>
</object>
</page>
<page name="rebootcheck">
<object type="action">
<condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%" />
<action function="reboot">%tw_action_param%</action>
</object>
<object type="action">
<condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%" />
<action function="page">confirm_action</action>
</object>
</page>
<page name="wipe">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>Factory Reset</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Wipes Data, Cache, and Dalvik</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_has_data_media" var2="1" />
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>(not including internal storage)</text>
</object>
<object type="text" color="%text_color%">
<conditions>
<condition var1="tw_has_android_secure" var2="1" />
<condition var1="fileexists" var2="/and-sec" />
</conditions>
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>Android Secure</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_has_sdext_partition" var2="1" />
<font resource="font" />
<placement x="%center_x%" y="%row5_text_y%" placement="5" />
<text>SD-EXT</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row6_text_y%" placement="5" />
<text>Most of the time this is</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row7_text_y%" placement="5" />
<text>the only wipe that you need.</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row16_text_y%" placement="5" />
<text>Press back button to cancel.</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%wipe_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Advanced Wipe</text>
<image resource="main_button" />
<actions>
<action function="set">partitionlisterror=0</action>
<action function="page">advancedwipe</action>
</actions>
</object>
<object type="button">
<condition var1="tw_has_data_media" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%wipe_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Format Data</text>
<image resource="main_button" />
<actions>
<action function="page">formatdata</action>
</actions>
</object>
<object type="button">
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_has_data_media" var2="0" />
</conditions>
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%wipe_button_y%" />
<font resource="font" color="%button_text_color%" />
<text>Wipe Encryption</text>
<image resource="main_button" />
<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 Encryption from Data?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting Data...</action>
<action function="set">tw_complete_text1=Data Format Complete</action>
<action function="set">tw_slider_text=Swipe to Format Data</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<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 Reset...</action>
<action function="set">tw_complete_text1=Factory Reset Complete</action>
<action function="page">action_page</action>
</actions>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Factory Reset</text>
</object>
<object type="action">
<touch key="back" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="advancedwipe">
<object type="template" name="header" />
<object type="action">
<action function="set">tw_wipe_list=</action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Wipe Menu</text>
</object>
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%wipe_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Partitions to Wipe:</text>
<icon selected="checkbox_true" unselected="checkbox_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_wipe_list" />
<listtype name="wipe" />
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<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 Selected Partition(s)?</action>
<action function="set">tw_action_text1=Wiping Partition(s)...</action>
<action function="set">tw_complete_text1=Wipe Complete</action>
<action function="page">action_page</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%wipe_button_row1%" w="%button_fill_full_width%" h="%button_fill_half_height%" />
<font resource="font" color="%button_text_color%" />
<text>Repair or Change File System</text>
<actions>
<action function="checkpartitionlist"></action>
<action function="page">checkpartitionlist</action>
</actions>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="partitionlisterror" var2="1" />
<font resource="font" />
<placement x="%center_x%" y="%wipe_button_row1%" placement="5" />
<text>Invalid partition selection</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Wipe</text>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">wipe</action>
</object>
<object type="template" name="footer" />
</page>
<page name="formatdata">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Format Data will wipe all of your apps,</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>backups, pictures, videos, media, and</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>removes encryption on internal storage.</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>This cannot be undone. Press back to cancel.</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>Type yes to continue.</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row6_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<text>%tw_confirm_formatdata%</text>
<data name="tw_confirm_formatdata" />
<restrict minlen="3" maxlen="3" allow="yes" />
<action function="page">formatdata_confirm</action>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">wipe</action>
</object>
<object type="template" name="footer" />
</page>
<page name="formatdata_confirm">
<object type="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...</action>
<action function="set">tw_complete_text1=Data Format Complete</action>
<action function="page">action_page</action>
</actions>
</object>
<object type="action">
<condition var1="tw_confirm_formatdata" op="!=" var2="yes" />
<action function="page">formatdata</function>
</object>
</page>
<page name="checkpartitionlist">
<object type="action">
<condition var1="tw_check_partition_list" op="=" var2="1" />
<actions>
<action function="set">partitionlisterror=0</action>
<action function="getpartitiondetails"></action>
<action function="page">partitionoptions</action>
</actions>
</object>
<object type="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>
</object>
</page>
<page name="partitionoptions">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Partition Options for: %tw_partition_name%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>Mount Point: %tw_partition_mount_point%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Current file system: %tw_partition_file_system%</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_partition_is_present" op="!=" var2="0" />
<font resource="font" />
<placement x="%col1_x%" y="%row3_text_y%" />
<text>Present: Yes</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_partition_is_present" op="=" var2="0" />
<font resource="font" />
<placement x="%col1_x%" y="%row3_text_y%" />
<text>Present: No</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_partition_removable" op="!=" var2="0" />
<font resource="font" />
<placement x="%col2_x%" y="%row3_text_y%" />
<text>Removable: Yes</text>
</object>
<object type="text" color="%text_color%">
<condition var1="tw_partition_removable" op="=" var2="0" />
<font resource="font" />
<placement x="%col2_x%" y="%row3_text_y%" />
<text>Removable: No</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%col1_x%" y="%row4_text_y%" />
<text>Size: %tw_partition_size%MB</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%col2_x%" y="%row4_text_y%" />
<text>Used: %tw_partition_used%MB</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%col1_x%" y="%row5_text_y%" />
<text>Free: %tw_partition_free%MB</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%col2_x%" y="%row5_text_y%" />
<text>Backup Size: %tw_partition_backup_size%MB</text>
</object>
<object type="button">
<condition var1="tw_partition_can_repair" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Repair</text>
<image resource="main_button" />
<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 %tw_partition_name%?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Repairing...</action>
<action function="set">tw_complete_text1=Repair Complete</action>
<action function="set">tw_slider_text=Swipe to Repair</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Change File System</text>
<image resource="main_button" />
<action function="page">selectfilesystem</action>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">advancedwipe</action>
</object>
<object type="template" name="footer" />
</page>
<page name="refreshfilesystem">
<object type="action">
<condition var1="tw_check_partition_list" op="=" var2="1" />
<actions>
<action function="set">partitionlisterror=0</action>
<action function="getpartitiondetails"></action>
<action function="page">selectfilesystem</action>
</actions>
</object>
<object type="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>
</object>
</page>
<page name="selectfilesystem">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Change file system for: %tw_partition_name%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>Mount Point: %tw_partition_mount_point%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Current file system: %tw_partition_file_system%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>Some ROMs or kernels may not support some</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>file systems. Proceed with caution!</text>
</object>
<object type="button">
<condition var1="tw_partition_ext" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT2</text>
<image resource="main_button" />
<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 %tw_partition_name% to EXT2?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<condition var1="tw_partition_ext" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT3</text>
<image resource="main_button" />
<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 %tw_partition_name% to EXT3?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<condition var1="tw_partition_ext" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>EXT4</text>
<image resource="main_button" />
<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 %tw_partition_name% to EXT4?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<condition var1="tw_partition_f2fs" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>F2FS</text>
<image resource="main_button" />
<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 %tw_partition_name% to F2FS?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<condition var1="tw_partition_vfat" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>FAT</text>
<image resource="main_button" />
<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 %tw_partition_name% to FAT?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="button">
<condition var1="tw_partition_exfat" op="=" var2="1" />
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>exFAT</text>
<image resource="main_button" />
<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 %tw_partition_name% to exFAT?</action>
<action function="set">tw_text2=</action>
<action function="set">tw_action_text1=Formatting...</action>
<action function="set">tw_complete_text1=Format Complete</action>
<action function="set">tw_slider_text=Swipe to Change</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">partitionoptions</action>
</object>
<object type="template" name="footer" />
</page>
<page name="backup">
<object type="template" name="header" />
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Backup Name: %tw_backup_name%</text>
<actions>
<action function="set">tw_fileexists=0</action>
<action function="page">backupname1</action>
</actions>
</object>
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row2_text_y%" w="%listbox_width%" h="%backup_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Partitions to Back Up:</text>
<icon selected="checkbox_true" unselected="checkbox_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_backup_list" />
<listtype name="backup" />
</object>
<object type="button">
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1" />
<condition var1="tw_encrypt_backup" var2="0" />
</conditions>
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>No Encryption</text>
<actions>
<action function="page">backupencryption</action>
</actions>
</object>
<object type="button">
<conditions>
<condition var1="tw_include_encrypted_backup" var2="1" />
<condition var1="tw_encrypt_backup" var2="1" />
</conditions>
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Using Encryption</text>
<actions>
<action function="set">tw_password_not_match=0</action>
<action function="page">backupencryption</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col2_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Refresh Sizes</text>
<actions>
<action function="refreshsizes"></action>
<action function="page">backup</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%backup_button_row2%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
<actions>
<action function="set">tw_back=backup</action>
<action function="page">selectstorage</action>
</actions>
</object>
<object type="checkbox">
<placement x="%col1_x%" y="%row15_text_y%" />
<font resource="font" color="%text_color%" />
<text>Enable compression.</text>
<data variable="tw_use_compression" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="checkbox">
<placement x="%col1_x%" y="%row16_text_y%" />
<font resource="font" color="%text_color%" />
<text>Skip MD5 generation during backup.</text>
<data variable="tw_skip_md5_generate" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<action function="page">backup_run</action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Back Up</text>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="backupname1">
<object type="action">
<condition var1="tw_backup_name" op="=" var2="(Auto Generate)" />
<action function="generatebackupname"></function>
</object>
<object type="action">
<action function="page">backupname2</function>
</object>
</page>
<page name="backupname2">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<font resource="font" />
<text>Please Enter a Backup Name</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<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=backupname2</action>
<action function="set">tw_notexistpage=backup</action>
<action function="page">filecheck</action>
</actions>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_fileexists" var2="1" />
<placement x="%center_x%" y="%row5_text_y%" placement="5" />
<font resource="font" />
<text>A backup with that name already exists!</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Append Date</text>
<image resource="main_button" />
<action function="appenddatetobackupname"></action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="main_button" />
<actions>
<action function="set">tw_backup_name=(Auto Generate)</action>
<action function="page">backup</action>
</actions>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<actions>
<action function="set">tw_backup_name=(Auto Generate)</action>
<action function="page">main</action>
</actions>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="set">tw_backup_name=(Auto Generate)</action>
<action function="page">backup</action>
</actions>
</object>
<object type="template" name="footer" />
</page>
<page name="backupencryption">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Encrypt your backup?</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Please Enter A Password:</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<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>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_password_not_match" var2="1" />
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>Passwords Do Not Match</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="main_button" />
<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">backup</action>
</actions>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">backup</action>
</object>
<object type="template" name="footer" />
</page>
<page name="backupencryption2">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Encrypt your backup?</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Please Enter Password Again:</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<text>%tw_backup_encrypt_display2%</text>
<data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2" />
<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
<actions>
<action function="page">checkbackuppassword</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="main_button" />
<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">backup</action>
</actions>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">backup</action>
</object>
<object type="template" name="footer" />
</page>
<page name="checkbackuppassword">
<object type="action">
<condition var1="tw_backup_password2" var2="tw_backup_password" />
<actions>
<action function="set">tw_encrypt_backup=1</action>
<action function="page">backup</action>
</actions>
</object>
<object type="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>
</object>
</page>
<page name="backup_run">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_operation% %tw_partition%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>%tw_file_progress%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row3_text_y%" placement="5" />
<text>%tw_size_progress%</text>
</object>
<object type="template" name="action_page_console" />
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_medium_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="medium_button" />
<actions>
<action function="cancelbackup"></action>
</actions>
</object>
<object type="template" name="progress_bar" />
<object type="action">
<action function="nandroid">backup</action>
</object>
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<condition var1="tw_cancel_backup" var2="0" />
<actions>
<action function="set">tw_back=backup</action>
<action function="set">tw_complete_text1=Backup Complete</action>
<action function="set">tw_show_reboot=1</action>
<action function="page">action_complete</action>
</actions>
</object>
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<condition var1="tw_cancel_backup" var2="1" />
<actions>
<action function="set">tw_back=backup</action>
<action function="set">tw_complete_text1=Backup Cancelled</action>
<action function="set">tw_show_reboot=1</action>
<action function="page">action_complete</action>
</actions>
</object>
</page>
<page name="restore">
<object type="template" name="header" />
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%row1_header_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
<actions>
<action function="set">tw_back=restore</action>
<action function="page">selectstorage</action>
</actions>
</object>
<object type="fileselector">
<highlight color="%fileselector_highlight_color%" />
<placement x="%fileselector_x%" y="%row2_text_y%" w="%fileselector_width%" h="%fileselector_install_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Package to Restore:</text>
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<sort name="tw_gui_sort_order" />
<icon folder="folder_icon" file="file_icon" />
<background color="%fileselector_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<filter folders="1" files="0" nav="0" />
<path name="tw_backups_folder" />
<data name="tw_restore" default="" />
<selection name="tw_restore_name" />
</object>
<object type="template" name="sort_options" />
<object type="action">
<condition var1="tw_restore" op="modified" />
<actions>
<action function="readBackup"></action>
<action function="page">restore_read</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="restore_read">
<object type="action">
<condition var1="tw_restore_encrypted" var2="1" />
<actions>
<action function="set">tw_password_fail=0</action>
<action function="page">restore_decrypt</action>
</actions>
</object>
<object type="action">
<condition var1="tw_restore_encrypted" var2="0" />
<actions>
<action function="page">restore_select</action>
</actions>
</object>
</page>
<page name="restore_decrypt">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Backup Encrypted</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>Please Enter Your Password:</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<text>%tw_restore_display%</text>
<data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
<actions>
<action function="page">try_restore_decrypt</action>
</actions>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_password_fail" var2="1" />
<font resource="font" />
<placement x="%center_x%" y="%row4_text_y%" placement="5" />
<text>Password Failed, Please Try Again</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="main_button" />
<actions>
<action function="set">tw_page_done=1</action>
<action function="page">restore</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col2_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Delete</text>
<image resource="main_button" />
<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% && rm -rf &quot;%tw_restore_name%&quot;</action>
<action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
<action function="set">tw_text2=This cannot be undone!</action>
<action function="set">tw_action_text1=Deleting Backup...</action>
<action function="set">tw_complete_text1=Backup Delete Complete</action>
<action function="set">tw_slider_text=Swipe to Delete</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">restore</action>
</object>
<object type="template" name="footer" />
</page>
<page name="try_restore_decrypt">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>Trying Decryption with Your Password</text>
</object>
<object type="template" name="action_page_console" />
<object type="template" name="progress_bar" />
<object type="action">
<action function="decrypt_backup"></action>
</object>
<object type="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>
</object>
<object type="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>
</object>
</page>
<page name="restore_select">
<object type="template" name="header" />
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%backup_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Restoring: %tw_restore_name%</text>
<icon selected="checkbox_true" unselected="checkbox_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_restore_list" selectedlist="tw_restore_selected" />
<listtype name="restore" />
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Rename Backup</text>
<actions>
<action function="set">tw_backup_rename=</action>
<action function="set">tw_fileexists=0</action>
<action function="page">renamebackup</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col2_x%" y="%backup_button_row1%" w="%button_fill_main_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>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% && rm -rf &quot;%tw_restore_name%&quot;</action>
<action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
<action function="set">tw_text2=This cannot be undone!</action>
<action function="set">tw_action_text1=Deleting Backup...</action>
<action function="set">tw_complete_text1=Backup Delete Complete</action>
<action function="set">tw_slider_text=Swipe to Delete</action>
<action function="page">confirm_action</action>
</actions>
</object>
<object type="checkbox">
<placement x="%col1_x%" y="%row15_text_y%" />
<font resource="font" color="%text_color%" />
<text>Enable MD5 verification of backup files.</text>
<data variable="tw_skip_md5_check" />
<image checked="checkbox_true" unchecked="checkbox_false" />
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row16_text_y%" placement="5" />
<text>Package Date: %tw_restore_file_date%</text>
</object>
<object type="slider">
<placement x="%slider_x%" y="%slider_y%" />
<resource base="slider" used="slider-used" touch="slider-touch" />
<action function="page">restore_run</action>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%slider_text_y%" placement="4" />
<text>Swipe to Restore</text>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">restore</action>
</object>
<object type="template" name="footer" />
</page>
<page name="renamebackup">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<font resource="font" />
<text>Please Enter a New Backup Name</text>
</object>
<object type="input">
<placement x="%col1_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
<background color="%input_background_color%" />
<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
<font resource="font" color="%text_color%" />
<text>%tw_backup_rename%</text>
<data name="tw_backup_rename" />
<restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
<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% && mv &quot;%tw_restore_name%&quot; &quot;%tw_backup_rename%&quot;</action>
<action function="set">tw_text1=Rename Backup?</action>
<action function="set">tw_text2=This cannot be undone!</action>
<action function="set">tw_action_text1=Renaming Backup...</action>
<action function="set">tw_complete_text1=Backup Rename Complete</action>
<action function="set">tw_slider_text=Swipe to Rename</action>
<action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
<action function="set">tw_existpage=renamebackup</action>
<action function="set">tw_notexistpage=confirm_action</action>
<action function="page">filecheck</action>
</actions>
</object>
<object type="text" color="%text_fail_color%">
<condition var1="tw_fileexists" var2="1" />
<placement x="%center_x%" y="%row5_text_y%" placement="5" />
<font resource="font" />
<text>A backup with that name already exists!</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Cancel</text>
<image resource="main_button" />
<action function="page">restore_select</action>
</object>
<object type="template" name="keyboardtemplate" />
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">restore_select</action>
</object>
<object type="template" name="footer" />
</page>
<page name="restore_run">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_text_y%" placement="5" />
<text>%tw_operation% %tw_partition%</text>
</object>
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row2_text_y%" placement="5" />
<text>%tw_size_progress%</text>
</object>
<object type="template" name="action_page_console" />
<object type="template" name="progress_bar" />
<object type="action">
<condition var1="tw_operation_state" var2="1" />
<actions>
<action function="set">tw_back=restore_select</action>
<action function="set">tw_complete_text1=Restore Complete</action>
<action function="set">tw_show_reboot=1</action>
<action function="page">action_complete</action>
</actions>
</object>
<object type="action">
<action function="nandroid">restore</action>
</object>
</page>
<page name="selectstorage">
<object type="template" name="header" />
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%storage_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Storage:</text>
<icon selected="radio_true" unselected="radio_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<data name="tw_storage_path" />
<listtype name="storage" />
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col_center_x%" y="%row4_y%" />
<font resource="font" color="%button_text_color%" />
<text>OK</text>
<image resource="main_button" />
<actions>
<action function="set">tw_clear_destination=%tw_back%</action>
<action function="page">clear_vars</action>
</actions>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<actions>
<action function="page">%tw_back%</action>
</actions>
</object>
<object type="template" name="footer" />
</page>
<page name="mount">
<object type="template" name="header" />
<object type="partitionlist">
<highlight color="%fileselector_highlight_color%" />
<placement x="%listbox_x%" y="%row1_header_y%" w="%listbox_width%" h="%mount_list_height%" />
<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
<text>Select Partitions to Mount:</text>
<icon selected="checkbox_true" unselected="checkbox_false" />
<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
<background color="%listbox_background%" />
<font resource="filelist" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
<listtype name="mount" />
</object>
<object type="button">
<highlight color="%highlight_color%" />
<fill color="%button_fill_color%" />
<placement x="%col1_x%" y="%mount_storage_row%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
<font resource="font" color="%button_text_color%" />
<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
<actions>
<action function="set">tw_back=mount</action>
<action function="page">selectstorage</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_has_usb_storage" var2="1" />
<placement x="%col1_x%" y="row4_y" />
<font resource="font" color="%button_text_color%" />
<text>Mount USB Storage</text>
<image resource="main_button" />
<action function="page">usb_mount</action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_mtp" var2="1" />
<condition var1="tw_mtp_enabled" var2="0" />
</conditions>
<placement x="%col2_x%" y="row4_y" />
<font resource="font" color="%button_text_color%" />
<text>Enable MTP</text>
<image resource="main_button" />
<action function="startmtp"></action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_has_mtp" var2="1" />
<condition var1="tw_mtp_enabled" var2="1" />
</conditions>
<placement x="%col2_x%" y="row4_y" />
<font resource="font" color="%button_text_color%" />
<text>Disable MTP</text>
<image resource="main_button" />
<action function="stopmtp"></action>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<conditions>
<condition var1="tw_is_encrypted" var2="1" />
<condition var1="tw_is_decrypted" var2="0" />
</conditions>
<placement x="%col2_x%" y="row4_y" />
<font resource="font" color="%button_text_color%" />
<text>Decrypt Data</text>
<image resource="main_button" />
<action function="page">decrypt</action>
</object>
<object type="action">
<touch key="home" />
<action function="page">main</action>
</object>
<object type="action">
<touch key="back" />
<action function="page">main</action>
</object>
<object type="template" name="footer" />
</page>
<page name="usb_mount">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>USB Storage Mounted</text>
</object>
<object type="text" color="%text_color%">
<placement x="%col1_x%" y="%row1_text_y%" />
<font resource="font" />
<text>Be sure to safely remove your device</text>
</object>
<object type="text" color="%text_color%">
<placement x="%col1_x%" y="%row2_text_y%" />
<font resource="font" />
<text>from your computer before unmounting!</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<placement x="%col1_x%" y="%row3_y%" />
<font resource="font" color="%button_text_color%" />
<text>Unmount</text>
<image resource="main_button" />
<action function="page">usb_umount</action>
</object>
<object type="action">
<action function="mount">usb</action>
<action function="set">tw_busy=1</action>
</object>
<object type="template" name="footer" />
</page>
<page name="usb_umount">
<object type="action">
<action function="unmount">usb</action>
</object>
<object type="action">
<action function="page">mount</action>
<action function="set">tw_busy=0</action>
</object>
</page>
<page name="reboot">
<object type="template" name="header" />
<object type="text" color="%text_color%">
<font resource="font" />
<placement x="%center_x%" y="%row1_header_y%" placement="5" />
<text>Reboot Menu</text>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_reboot_system" var2="1" />
<placement x="%col1_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>System</text>
<image resource="main_button" />
<actions>
<action function="set">tw_back=reboot</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 OS Installed! Are you</action>
<action function="set">tw_text2=sure you wish to reboot?</action>
<action function="set">tw_action_text1=Rebooting...</action>
<action function="set">tw_complete_text1=Rebooting...</action>
<action function="set">tw_slider_text=Swipe to Reboot</action>
<action function="page">rebootcheck</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_reboot_poweroff" var2="1" />
<placement x="%col2_x%" y="%row1_y%" />
<font resource="font" color="%button_text_color%" />
<text>Power Off</text>
<image resource="main_button" />
<actions>
<action function="set">tw_back=reboot</action>
<action function="set">tw_action=reboot</action>
<action function="set">tw_action_param=poweroff</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1=No OS Installed! Are you</action>
<action function="set">tw_text2=sure you wish to power off?</action>
<action function="set">tw_action_text1=Turning Off...</action>
<action function="set">tw_complete_text1=Turning Off...</action>
<action function="set">tw_slider_text=Swipe to Power Off</action>
<action function="page">rebootcheck</action>
</actions>
</object>
<object type="button">
<highlight color="%highlight_color%" />
<condition var1="tw_reboot_recovery" var2="1" />
<placement x="%col1_x%" y="%row2_y%" />
<font resource="font" color="%button_text_color%" />
<text>Recovery</text>
<image resource="main_button" />
<actions>
<action function="set">tw_back=reboot</action>
<action function="set">tw_action=reboot</action>
<action function="set">tw_action_param=recovery</action>
<action function="set">tw_has_action2=0</action>
<action function="set">tw_text1=No OS Installed! Are you</action>
<action function="set">tw_text2=sure you wish to reboot?</action>
<action function="set">tw_action_text1=Rebooting...</action>
<action function="set">tw_complete_text1=Rebooting...</action>
<action function="set">tw_slider_text=Swipe to Reboot</action>
<action function="page">rebootcheck</action>
</actions>
</object>
<object type="button">