From a13d74fc95324c4318fcc95956b07fe593669412 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Sun, 24 Mar 2013 08:54:55 -0500 Subject: Add partition list GUI element Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4 --- gui/devices/320x480/res/ui.xml | 1013 +++++++++++++--------------------------- 1 file changed, 319 insertions(+), 694 deletions(-) (limited to 'gui/devices/320x480/res/ui.xml') diff --git a/gui/devices/320x480/res/ui.xml b/gui/devices/320x480/res/ui.xml index 887505c6b..c85db3a23 100644 --- a/gui/devices/320x480/res/ui.xml +++ b/gui/devices/320x480/res/ui.xml @@ -39,7 +39,6 @@ - @@ -124,7 +123,7 @@ - + @@ -158,15 +157,26 @@ - - - + + + + + + + + + + + + + + @@ -465,56 +475,20 @@ - - - - - - - Use external SD - - external - - - - - - - - - - Use external SD - - external - - - - - - - - - - Use internal storage - - internal - - - - - - - - - - Use internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=install + selectstorage + - +
%tw_zip_location% @@ -826,15 +800,6 @@ - - - - - - - - - @@ -1111,352 +1076,303 @@ - - Wipe Menu + + Factory Reset - - - - - Cache - - - tw_back=wipe - tw_action=wipe - tw_action_param=/cache - tw_text1=Wipe Cache? - tw_action_text1=Wiping Cache... - tw_complete_text1=Cache Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + Wipes Data, Cache, and Dalvik - - - - - Dalvik Cache - - - tw_back=wipe - tw_action=wipe - tw_action_param=dalvik - tw_text1=Wipe Dalvik-Cache? - tw_action_text1=Wiping Dalvik-Cache... - tw_complete_text1=Dalvik-Cache Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + + .android_secure - - - - - Factory Reset - - - tw_back=wipe - tw_action=wipe - tw_action_param=data - tw_text1=Factory Reset? - tw_text2=(Wipes Data and Cache) - tw_action_text1=Factory Reset... - tw_complete_text1=Factory Reset Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + + (not including internal storage) - - - - - System - - - tw_back=wipe - tw_action=wipe - tw_action_param=/system - tw_text1=Wipe System? - tw_text2=This will wipe your ROM - tw_action_text1=Wiping System... - tw_complete_text1=System Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + + SD-EXT - - - - - - External Storage - - - tw_back=wipe - tw_action=wipe - tw_action_param=EXTERNAL - tw_has_action2=1 - tw_action2=set - tw_action2_param=tw_zip_location=/sdcard - tw_text1=Wipe External Storage (SD Card)? - tw_action_text1=Wiping External Storage... - tw_complete_text1=External Storage Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + Most of the time this is + + + + + + the only wipe that you need. + + + + + + Press back button to cancel. - - + - Internal Storage + Advanced Wipe - - tw_back=wipe - tw_action=wipe - tw_action_param=INTERNAL - tw_has_action2=1 - tw_action2=set - tw_action2_param=tw_zip_location=/sdcard - tw_text1=Wipe Internal Storage? - tw_action_text1=Wiping Internal Storage... - tw_complete_text1=Internal Storage Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + advancedwipe - - + + Format Data - tw_back=wipe - tw_action=wipe - tw_action_param=DATAMEDIA - tw_has_action2=1 - tw_action2=set - tw_action2_param=tw_zip_location=/sdcard - tw_text1=Format Data? (This wipes all internal storage - tw_text2=including backups & removes encryption) - tw_text3=Most of the time you do not need to do this. - tw_action_text1=Formatting Data... - tw_complete_text1=Data Format Complete - tw_slider_text=Swipe to Format - tw_show_exclamation=1 - confirm_action + formatdata - - - - - - Android Secure - + + + tw_back=wipe tw_action=wipe - tw_action_param=ANDROIDSECURE - tw_text1=Wipe Android Secure? - tw_action_text1=Wiping Android Secure... - tw_complete_text1=Wipe Android Secure Complete - tw_slider_text=Swipe to Format - confirm_action + tw_action_param=data + tw_action_text1=Factory Reset... + tw_complete_text1=Factory Reset Complete + action_page - - - - - - SD Ext - - - tw_back=wipe - tw_action=wipe - tw_action_param=/sd-ext - tw_text1=Wipe SD-Ext? - tw_action_text1=Wiping SD-Ext... - tw_complete_text1=SD-Ext Wipe Complete - tw_slider_text=Swipe to Wipe - confirm_action - + + + + Swipe to Factory Reset - + main - + main - + - Backup Name: %tw_backup_name% + Wipe Menu - - - - Backup Device + + + +
+ + Select Partitions to Wipe: + + + + + +
- + - backup_run + + tw_back=advancedwipe + tw_action=wipe + tw_action_param=LIST + tw_text1=Wipe Selected Partition(s)? + tw_action_text1=Wiping Partition(s)... + tw_complete_text1=Wipe Complete + action_page + - Swipe to Back Up + Swipe to Wipe - - - - - Refresh Sizes - - + + + main - - - - - Set Backup Name - - - tw_fileexists=0 - backupname1 - + + + wipe - - - - System (%tw_backup_system_size% MB) - - + + + + + + + + + + Format Data will wipe all of your apps, - - - - Data (%tw_backup_data_size% MB) - - + + + + backups, pictures, videos, media, and - - - - - Boot (%tw_backup_boot_size% MB) - - + + + + removes encryption on internal storage. - - - - - Recovery (%tw_backup_recovery_size% MB) - - + + + + This cannot be undone. Press back to cancel. - - - - Cache (%tw_backup_cache_size% MB) - - + + + + Type yes to continue. - - - + + + + - .android_secure (%tw_backup_andsec_size% MB) - - - + %tw_confirm_formatdata% + + + formatdata_confirm - - - - - sd-ext (%tw_backup_sdext_size% MB) - - - + + + + + main - - - - - %tw_sp1_name% (%tw_backup_sp1_size% MB) - - + + + wipe - - - - - %tw_sp2_name% (%tw_backup_sp2_size% MB) - - + + + + + + + + tw_back=formatdata + tw_action=wipe + tw_action_param=DATAMEDIA + tw_action_text1=Formatting Data... + tw_complete_text1=Data Format Complete + action_page + - - - - - %tw_sp3_name% (%tw_backup_sp3_size% MB) - - + + + formatdata + + + + - - Free Space: %tw_storage_free_size% MB + + Backup Name: %tw_backup_name% + + + + + +
+ + Select Partitions to Back Up: + + + + + + +
+ + + + + + + Set Backup Name + + tw_fileexists=0 + backupname1 + + + + + + + + + Refresh Sizes + + + + + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=backup + selectstorage + - + Enable compression. @@ -1464,59 +1380,23 @@ - + Skip MD5 generation during backup. - - - - - - - - Use external SD - - external - - - - - - - - - - Use external SD - - external - - - - - - - - - - Use internal storage - - internal + + + + backup_run - - - - - - - - Use internal storage - - internal + + + + Swipe to Back Up @@ -1640,56 +1520,20 @@ - - - - - - - Use external SD - - external - - - - - - - - - - Use external SD - - external - - - - - - - - - - Use internal storage - - internal - - - - - - - - - - Use internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=restore + selectstorage + - +
Select Package to Restore: @@ -1730,18 +1574,26 @@ - - - + + + +
+ Restoring: %tw_restore_name% + + + + + +
- + + Rename Backup - tw_backup_rename= tw_fileexists=0 @@ -1751,10 +1603,10 @@ - + + Delete Backup - tw_back=restore tw_action=cmd @@ -1768,111 +1620,30 @@ - - - - restore_run - - - - - - Swipe to Restore - - - - - System - - - - - - - - - Data - - - - - - - - - Boot - - - - - - - - - Cache - - - - - - - - - .android_secure - - - - - - - - - sd-ext - - - - - - - - - %tw_sp1_name% - - - - - - - + - %tw_sp2_name% - - + Enable MD5 verification of backup files. + - - - - %tw_sp3_name% - - - + + + + Package Date: %tw_restore_file_date% - - - - Enable MD5 verification of backup files. - - + + + + restore_run - - Package Date: %tw_restore_file_date% + + Swipe to Restore @@ -1980,216 +1751,70 @@ - + - - - - Mount Menu - - - - - - - Mount System - - /system - - - - - - - Unmount System - - /system - - - - - - - Mount Data - - /data - - - - - - - Unmount Data - - /data - - - - - - - Mount Cache - - /cache - - - - - - - Unmount Cache - - /cache - - - - - - - - - - Mount SD Card - - EXTERNAL - - - - - - - - - - Unmount SD Card - - EXTERNAL - - - - - - - - - - - Mount Internal - - INTERNAL - - - - - - - - - - - Unmount Internal - - INTERNAL - - - - - - - - - - Mount SD-Ext - - /sd-ext - - - - - - - Unmount SD-Ext - - /sd-ext + + + +
+ + Select Storage: + + + + + +
- - - - - - - - Mount Boot - - /boot + + + main - - - - - - - - Unmount Boot - - /boot + + + + %tw_back% + - - - - - - - - Use external SD - - external - + + - - - - - - - - Use external SD - - external - + + - - - - - - - - Use internal storage - - internal + + + +
+ + Select Partitions to Mount: + + + + +
- - - - - - - Use internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=mount + selectstorage + - + Mount USB Storage @@ -2202,7 +1827,7 @@ - + Decrypt Data -- cgit v1.2.3