From 83bd483f3db1df4b69c1612030e1a1be05b303ad Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Sat, 4 May 2013 12:39:56 +0000 Subject: Support encrypted backup files Also includes features merged from: Update twrpTar by kokotas Revised function entryExists(). Added function to get archive's uncompressed size. Added option to exclude item(s) from the archive. Revised forks() http://review.teamw.in/#/c/590/ Change-Id: I01fa2c81643161984eff2625247af75990684bd9 --- gui/devices/2560x1600/res/ui.xml | 416 +++++++++++++++++++++++++++++++-------- 1 file changed, 330 insertions(+), 86 deletions(-) (limited to 'gui/devices/2560x1600/res') diff --git a/gui/devices/2560x1600/res/ui.xml b/gui/devices/2560x1600/res/ui.xml index 12c032bd0..c9e6c6960 100644 --- a/gui/devices/2560x1600/res/ui.xml +++ b/gui/devices/2560x1600/res/ui.xml @@ -183,7 +183,7 @@ - + @@ -191,6 +191,7 @@ + @@ -1667,6 +1668,36 @@ + + + + + + + + + + No Encryption + + backupencryption + + + + + + + + + + + + + Using Encryption + + backupencryption + + + @@ -1787,6 +1818,140 @@ + + + + + + + Encrypt your backup? Please enter a password: + + + + + + + + %tw_backup_encrypt_display% + + + backupencryption2 + + + + + + + Passwords Do Not Match + + + + + + + Cancel + + + tw_encrypt_backup=0 + tw_backup_password= + tw_backup_password2= + tw_backup_encrypt_display= + tw_backup_encrypt_display2= + backup + + + + + + + + main + + + + + backup + + + + + + + + + + + + Encrypt your backup? Please Enter Password Again: + + + + + + + + %tw_backup_encrypt_display2% + + + + checkbackuppassword + + + + + + + + Cancel + + + tw_encrypt_backup=0 + tw_backup_password= + tw_backup_password2= + tw_backup_encrypt_display= + tw_backup_encrypt_display2= + backup + + + + + + + + main + + + + + backup + + + + + + + + + + tw_encrypt_backup=1 + backup + + + + + + + tw_encrypt_backup=0 + tw_password_not_match=1 + tw_backup_password= + tw_backup_password2= + tw_backup_encrypt_display= + tw_backup_encrypt_display2= + backupencryption + + + + @@ -1855,7 +2020,7 @@ - restore_select + restore_read @@ -1872,6 +2037,138 @@ + + + + + tw_password_fail=0 + restore_decrypt + + + + + + + restore_select + + + + + + + + + + + Backup encrypted. Please enter your password: + + + + + + + + %tw_restore_display% + + + + try_restore_decrypt + + + + + + + + Password Failed, Please Try Again + + + + + + + Cancel + + + tw_page_done=1 + restore + + + + + + + + Delete + + + tw_back=restore + tw_action=cmd + tw_action_param=cd %tw_backups_folder% && rm -rf "%tw_restore_name%" + tw_text1=Delete Backup? %tw_restore_name% + tw_text2=This cannot be undone! + tw_action_text1=Deleting Backup... + tw_complete_text1=Backup Delete Complete + tw_slider_text=Swipe to Delete + confirm_action + + + + + + + + main + + + + + restore + + + + + + + + + + + + Trying Decryption with Your Password + + + + + + + + + + + + + + + + + tw_password_fail=1 + restore_decrypt + + + + + + + + + + tw_page_done=1 + restore_select + + + + @@ -2297,100 +2594,47 @@ Screen Settings - - - - Screen Timeout: %tw_screen_timeout_secs% seconds - - - - - None - - tw_screen_timeout_secs=0 - - - - - - 60 - + + + + Enable screen timeout. + tw_screen_timeout_secs=60 - - - 120 - - tw_screen_timeout_secs=120 - - - - - - 180 - - tw_screen_timeout_secs=180 - - - - - - - Brightness: %tw_brightness_display% - - - - - - - 25% - - - echo %tw_brightness_25% > "%tw_brightness_file%" - tw_brightness_display=25% - tw_brightness=%tw_brightness_25% - - - - - - - - 50% - - - echo %tw_brightness_50% > "%tw_brightness_file%" - tw_brightness_display=50% - tw_brightness=%tw_brightness_50% - + + + + Enable screen timeout. + + tw_screen_timeout_secs=0 - - - - - 75% - - - echo %tw_brightness_75% > "%tw_brightness_file%" - tw_brightness_display=75% - tw_brightness=%tw_brightness_75% - + + + + + + + Screen timeout in seconds: + - + - - - 100% - - - echo %tw_brightness_100% > "%tw_brightness_file%" - tw_brightness_display=100% - tw_brightness=%tw_brightness_100% + + + + + Brightness: %tw_brightness_pct%% + + + tw_brightness=%tw_brightness_max% + tw_brightness*%tw_brightness_pct% + tw_brightness/100 + echo %tw_brightness% > "%tw_brightness_file%" -- cgit v1.2.3