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/800x480/res/images/exclamation150.png | Bin 6460 -> 0 bytes gui/devices/800x480/res/ui.xml | 977 +++++++--------------- 2 files changed, 301 insertions(+), 676 deletions(-) delete mode 100644 gui/devices/800x480/res/images/exclamation150.png (limited to 'gui/devices/800x480') diff --git a/gui/devices/800x480/res/images/exclamation150.png b/gui/devices/800x480/res/images/exclamation150.png deleted file mode 100644 index 6e05987c1..000000000 Binary files a/gui/devices/800x480/res/images/exclamation150.png and /dev/null differ diff --git a/gui/devices/800x480/res/ui.xml b/gui/devices/800x480/res/ui.xml index 82423709f..97fdf44cd 100755 --- a/gui/devices/800x480/res/ui.xml +++ b/gui/devices/800x480/res/ui.xml @@ -41,7 +41,6 @@ - @@ -180,8 +179,24 @@ - - + + + + + + + + + + + + + + + + + + @@ -515,51 +530,15 @@ - - - - - - - Using external SD - - external - - - - - - - - - - Using external SD - - external - - - - - - - - - - Using internal storage - - internal - - - - - - - - - - Using internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=install + selectstorage + @@ -864,15 +843,6 @@ - - - - - - - - - @@ -1271,220 +1241,92 @@ - + - - - - Mount Menu - - - - - - - Mount USB Storage - - usb_mount + + + +
+ + Select Storage: + + + + + +
- - - - - Mount System - - /system + + + main - - - - - Unmount System - - /system + + + + %tw_back% + - - - - - Mount Data - - /data - + + - - - - - Unmount Data - - /data - + + - - - - - Mount Cache - - /cache + + + + Mount Menu - - - - - Unmount Cache - - /cache + + + +
+ + Select Partitions to Mount: + + + + +
- - - - - - - Mount SDCard - - EXTERNAL - - - - - - - - - - Unmount SDCard - - EXTERNAL - - - - - - - - - - - Mount Internal Storage - - INTERNAL - - - - - - - - - - - Unmount Internal Storage - - INTERNAL - - - - - - - - - - Mount SD-Ext - - /sd-ext - - - - - - - Unmount SD-Ext - - /sd-ext - - - - - - - - - Mount Boot - - /boot - - - - - - - - - - Unmount Boot - - /boot - - - - - - - - - - Using external SD - - external - - - - - - - - + + - Using external SD - - external + + + Decrypt Data + + decrypt - - - - - - - Using internal storage - - internal + + + + Mount USB Storage + + usb_mount - - - - - - - Using internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=mount + selectstorage + @@ -1549,191 +1391,133 @@ - Wipe Menu + Factory Reset: Wipes Data, Cache, and Dalvik + + + + + + + .android_secure + + + + + + + (not including internal storage) + + + + + + + SD-EXT + + + + + + Most of the time this is the only wipe that you need. - + - Cache + Advanced Wipe - - 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 - + advancedwipe + + + + - + - Dalvik Cache + Format Data - 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 + formatdata - - - - - Factory Reset - + + + + Press back button to cancel. + + + + + 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 + action_page - - - - - 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 - + + + + Swipe to Factory Reset - - - - - - 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 - + + + main - - - - - - Internal Storage - - - 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 - + + + main - - - - - - - - - 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 media - 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 - + + + + + + + + + +
+ + Select Partitions to Wipe: + + + + + +
- - - - - - Android Secure - + + + - tw_back=wipe + tw_back=advancedwipe 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=LIST + tw_text1=Wipe Selected Partition(s)? + tw_action_text1=Wiping Partition(s)... + tw_complete_text1=Wipe 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 Wipe @@ -1743,182 +1527,160 @@ - main + wipe - + - Back Up Device + Format Data will wipe all of your apps, backups, pictures, - - Free Space: %tw_storage_free_size% MB + + videos, media, and removes encryption on internal storage. - - Backup Name: %tw_backup_name% + + This cannot be undone. Press back to cancel. - - - - System (%tw_backup_system_size% MB) - - + + + + Type yes to continue. - - + + + + - Data (%tw_backup_data_size% MB) - - + %tw_confirm_formatdata% + + + formatdata_confirm - - - - - Boot (%tw_backup_boot_size% MB) - - - + - - - - - Recovery (%tw_backup_recovery_size% MB) - - + + + main - - - - Cache (%tw_backup_cache_size% MB) - - + + + wipe - - - - - .android_secure (%tw_backup_andsec_size% MB) - - - + + - - - - - sd-ext (%tw_backup_sdext_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_sp1_name% (%tw_backup_sp1_size% MB) - - + + + formatdata + - - - - - %tw_sp2_name% (%tw_backup_sp2_size% MB) - - - + + - - - - - %tw_sp3_name% (%tw_backup_sp3_size% MB) - - + + + + Back Up Device - - - - Enable Compression (Requires more time) - - + + + +
+ + Select Partitions to Back Up: + + + + + +
- - - - Skip MD5 generation on backups - - + + + + Backup Name: %tw_backup_name% - - - - - - - Using external SD - - external + + + + Refresh Sizes + + - - - - - - - Using external SD - - external + + + + Set Backup Name + + + tw_fileexists=0 + backupname1 + - + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=backup + selectstorage + + + + + - - - - - Using internal storage - - internal + Enable Compression (Requires more time) + + - + - - - - - Using internal storage - - internal + Skip MD5 generation on backups + + @@ -1936,27 +1698,6 @@ Swipe to Back Up - - - - - Refresh Sizes - - - - - - - - - Set Backup Name - - - tw_fileexists=0 - backupname1 - - - main @@ -2080,51 +1821,15 @@ - - - - - - - Using external SD - - external - - - - - - - - - - Using external SD - - external - - - - - - - - - - Using internal storage - - internal - - - - - - - - - - Using internal storage - - internal + + + + + Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) + + tw_back=restore + selectstorage + @@ -2154,19 +1859,6 @@ - - - - - - - - - Decrypt Data - - decrypt - - main @@ -2195,89 +1887,22 @@ Package Date: %tw_restore_file_date% - - - - System - - - - - - - - - Data - - - - - - - - - Boot - - - - - - - - - Cache - - - - - - - - - .android_secure - - - - - - - - - sd-ext - - - - - - - - - %tw_sp1_name% - - - - - - - - - %tw_sp2_name% - - - - - - - - - %tw_sp3_name% - - - + + + +
+ + Select Partitions to Restore: + + + + + +
- + Enable MD5 checking of backup files @@ -2299,7 +1924,7 @@ - + Delete Backup -- cgit v1.2.3