blob: 526e9c0d6fa837e35dcb6507ec2087227ef0d06c [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_full_width">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_l" color="%text_button_color%"/>
44 <image resource="main_button_full_width"/>
45 </style>
46
47 <style name="main_button_quarter_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_l" color="%text_button_color%"/>
50 <image resource="main_button_quarter_width"/>
51 </style>
52
53 <style name="main_button_half_height">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="main_button_half_height"/>
57 </style>
58
59 <style name="main_button_half_height_full_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="main_button_half_height_full_width"/>
63 </style>
64
65 <style name="button_third_width">
66 <highlight color="%highlight_color%"/>
67 <font resource="font_m" color="%text_button_color%"/>
68 <image resource="tab_3"/>
69 </style>
70
Aleksa Saraib25a1832015-12-31 17:36:00 +010071 <style name="button_navbar">
72 <font resource="font_m" color="%text_button_color%"/>
73 </style>
74
z31s1g28f0a922015-11-07 18:50:22 +010075 <style name="console">
76 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
77 <font resource="fixed"/>
78 </style>
79
z31s1g56189522016-01-13 19:12:40 +010080 <style name="terminal">
81 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
82 <background color="%background_color%"/>
83 <font resource="fixed" spacing="2" color="%text_color%"/>
84 </style>
85
z31s1g28f0a922015-11-07 18:50:22 +010086 <style name="fileselector">
87 <highlight color="%fileselector_highlight_color%"/>
88 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
89 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
90 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
91 <sort name="tw_gui_sort_order"/>
92 <icon folder="folder" file="file"/>
93 <background color="%background_color%"/>
94 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
95 </style>
96
97 <style name="listbox">
98 <highlight color="%fileselector_highlight_color%"/>
99 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
100 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
101 <icon selected="radio_true" unselected="radio_false"/>
102 <background color="%background_color%"/>
103 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
104 </style>
105
106 <style name="listbox_headerless">
107 <highlight color="%fileselector_highlight_color%"/>
108 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
109 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
110 <icon selected="radio_true" unselected="radio_false"/>
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
113 </style>
114
115 <style name="listbox_options">
116 <background color="%background_color%"/>
117 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
118 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
119 </style>
120
121 <style name="scrolllist">
122 <highlight color="%fileselector_highlight_color%"/>
123 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
124 <icon selected="checkbox_true" unselected="checkbox_false"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300127 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100128 </style>
129
130 <style name="partitionlist">
131 <highlight color="%fileselector_highlight_color%"/>
132 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
133 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
134 <icon selected="checkbox_true" unselected="checkbox_false"/>
135 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
136 <background color="%background_color%"/>
137 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
138 </style>
139
140 <style name="partitionlist_summary">
141 <highlight color="%fileselector_highlight_color%"/>
142 <background color="%background_color%"/>
143 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
144 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
145 </style>
146
147 <style name="partitionlist_headerless_rb">
148 <highlight color="%fileselector_highlight_color%"/>
149 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
150 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
151 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
152 <icon selected="radio_true" unselected="radio_false"/>
153 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
154 <background color="%background_color%"/>
155 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
156 </style>
157
158 <style name="partitionlist_headerless_cb">
159 <highlight color="%fileselector_highlight_color%"/>
160 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
161 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
162 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
163 <icon selected="checkbox_true" unselected="checkbox_false"/>
164 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
165 <background color="%background_color%"/>
166 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
167 </style>
168
Ethan Yonker64e0a652018-07-25 09:52:17 -0500169 <style name="advanced_listbox">
170 <highlight color="%fileselector_highlight_color%"/>
171 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
172 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
173 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
174 <icon selected="handle" unselected="handle"/>
175 <background color="%background_color%"/>
176 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
177 </style>
178
epicX9597b842021-03-20 21:58:17 +0530179 <style name="options_listbox">
180 <highlight color="%fileselector_highlight_color%"/>
181 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
182 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
183 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
184 <background color="%background_color%"/>
185 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
186 </style>
187
z31s1g28f0a922015-11-07 18:50:22 +0100188 <style name="slider">
189 <placement x="%center_x%" y="%slider_y%"/>
190 <font resource="font_l" color="%text_color%"/>
191 <resource base="slider" used="slider_used" touch="slider_touch"/>
192 </style>
193
194 <style name="slidervalue">
195 <resource handle="handle"/>
196 <font resource="font_m" color="%text_color%"/>
197 <colors line="%fileselector_linecolor%"/>
198 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
199 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100200
201 <style name="patternpassword">
202 <size name="tw_gui_pattern_grid_size" default="3"/>
203 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100204 </styles>
205
206 <pages>
207 <page name="main">
208 <action>
209 <actions>
210 <action function="set">tw_clear_destination=main2</action>
211 <action function="page">clear_vars</action>
212 </actions>
213 </action>
214 </page>
215
216 <page name="main2">
217 <template name="page"/>
218
219 <button style="main_button">
220 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">install_type</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">wipe_type1</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <actions>
235 <action function="set">tw_back=main</action>
bigbiffce8f83c2015-12-12 18:30:21 -0500236 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +0100237 </actions>
238 </button>
239
240 <button style="main_button">
241 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500242 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100243 <action function="page">restore</action>
244 </button>
245
246 <button style="main_button">
247 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500248 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100249 <action function="page">reboot</action>
250 </button>
251
252 <button>
253 <placement x="%btn4_col4_x%" y="%row11_y%"/>
254 <highlight color="%highlight_color%"/>
255 <image resource="q_btn_arrow_right"/>
256 <action function="page">main3</action>
257 </button>
258 </page>
259
Matt Mower32676622017-01-18 18:56:13 -0600260 <page name="copylog">
261 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400262
Matt Mower32676622017-01-18 18:56:13 -0600263 <checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400264 <placement x="%indent%" y="%row1_y%"/>
Matt Mower32676622017-01-18 18:56:13 -0600265 <text>{@include_kernel_log=Include Kernel Log}</text>
266 <data variable="tw_include_kernel_log" value="1"/>
267 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400268
Captain Throwback52978932021-09-05 15:11:07 -0400269 <checkbox>
270 <condition var1="tw_logcat_exists" var2="1"/>
271 <placement x="%indent%" y="%row2_y%"/>
272 <text>{@include_logcat=Include Logcat}</text>
273 <data variable="tw_include_logcat" value="1"/>
274 </checkbox>
275
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400276 <slider>
277 <text>{@swipe_confirm= Confirm}</text>
278 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600279 <action function="set">tw_back=main3</action>
280 <action function="set">tw_action=copylog</action>
281 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
282 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400283 <action function="page">action_page</action>
284 </actions>
285 </slider>
286
287 <action>
288 <touch key="back"/>
289 <action function="page">main2</action>
290 </action>
291
292 <action>
293 <touch key="home"/>
294 <action function="page">main</action>
295 </action>
Matt Mower32676622017-01-18 18:56:13 -0600296 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400297
z31s1g28f0a922015-11-07 18:50:22 +0100298 <page name="main3">
299 <template name="page"/>
300
301 <button style="main_button">
302 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500303 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100304 <action function="page">mount</action>
305 </button>
306
307 <button style="main_button">
308 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500309 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100310 <action function="page">settings</action>
311 </button>
312
313 <button style="main_button">
314 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500315 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100316 <action function="page">filemanagerlist</action>
317 </button>
318
319 <button style="main_button">
320 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500321 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400322 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100323 </button>
324
325 <button style="main_button">
326 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500327 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100328 <action function="page">advanced</action>
329 </button>
330
331 <button>
332 <placement x="%col1_x_left%" y="%row11_y%"/>
333 <highlight color="%highlight_color%"/>
334 <image resource="q_btn_arrow_left"/>
335 <action function="page">main2</action>
336 </button>
337
338 <action>
339 <touch key="back"/>
340 <action function="page">main2</action>
341 </action>
342
343 <action>
344 <touch key="home"/>
345 <action function="page">main</action>
346 </action>
347 </page>
348
349 <page name="install_type">
350 <template name="page"/>
351
352 <template name="statusbar"/>
353
354 <text style="text_m">
355 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500356 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100357 </text>
358
359 <button style="main_button_full_width">
360 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500361 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100362 <actions>
363 <action function="queueclear"/>
364 <action function="set">tw_selectimage=0</action>
365 <action function="page">install</action>
366 </actions>
367 </button>
368
369 <button style="main_button_full_width">
370 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500371 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100372 <actions>
373 <action function="queueclear"/>
374 <action function="set">tw_selectimage=1</action>
375 <action function="page">install</action>
376 </actions>
377 </button>
378
379 <button style="main_button_full_width">
380 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500381 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100382 <action function="page">sideload</action>
383 </button>
384
385 <action>
386 <touch key="home"/>
387 <action function="page">main</action>
388 </action>
389
390 <action>
391 <touch key="back"/>
392 <action function="page">main</action>
393 </action>
394 </page>
395
396 <page name="install">
397 <template name="page"/>
398
399 <template name="statusbar"/>
400
401 <text style="text_m">
402 <condition var1="tw_selectimage" var2="0"/>
403 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500404 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100405 </text>
406
407 <text style="text_m">
408 <condition var1="tw_selectimage" var2="1"/>
409 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500410 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100411 </text>
412
413 <fileselector>
414 <condition var1="tw_selectimage" var2="0"/>
415 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
416 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200417 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100418 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100419 <path name="tw_zip_location" default="/sdcard"/>
420 <data name="tw_filename"/>
421 <selection name="tw_file"/>
422 </fileselector>
423
424 <fileselector>
425 <condition var1="tw_selectimage" var2="1"/>
426 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
427 <text>%tw_zip_location%</text>
428 <filter extn=".img" folders="1" files="1"/>
429 <path name="tw_zip_location" default="/sdcard"/>
430 <data name="tw_filename"/>
431 <selection name="tw_file"/>
432 </fileselector>
433
434 <button>
435 <placement x="%btn4_col4_x%" y="%row11_y%"/>
436 <highlight color="%highlight_color%"/>
437 <image resource="q_btn_storage"/>
438 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100440 <action function="set">tw_back=install</action>
441 <action function="page">select_storage</action>
442 </actions>
443 </button>
444
445 <action>
446 <conditions>
447 <condition var1="tw_selectimage" var2="0"/>
448 <condition var1="tw_filename" op="modified"/>
449 </conditions>
450 <actions>
451 <action function="queuezip"/>
452 <action function="page">flash_queue</action>
453 </actions>
454 </action>
455
456 <action>
457 <conditions>
458 <condition var1="tw_selectimage" var2="1"/>
459 <condition var1="tw_filename" op="modified"/>
460 </conditions>
epicX8f52c0a2021-02-24 23:12:08 +0530461 <actions>
462 <action function="set">tw_is_slot_part=0</action>
463 <action function="page">flashimage_type</action>
464 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100465 </action>
466
467 <action>
468 <touch key="back"/>
469 <action function="page">install_type</action>
470 </action>
471
472 <action>
473 <touch key="home"/>
474 <action function="page">main</action>
475 </action>
476 </page>
477
478 <page name="flash_queue">
479 <template name="page"/>
480
481 <template name="statusbar"/>
482
483 <text style="text_m">
484 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500485 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100486 </text>
487
488 <text style="text_m_accent">
489 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500490 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100491 </text>
492
493 <text style="text_m">
494 <placement x="%indent%" y="%row2_y%"/>
495 <text>%tw_file%</text>
496 </text>
497
498 <text style="text_m_accent">
499 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500500 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100501 </text>
502
503 <text style="text_m">
504 <placement x="%indent%" y="%row5_y%"/>
505 <text>%tw_zip_location%</text>
506 </text>
507
508 <text style="text_m">
509 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500510 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100511 </text>
512
513 <button>
514 <placement x="%col1_x_left%" y="%row11_y%"/>
515 <highlight color="%highlight_color%"/>
516 <image resource="q_btn_arrow_left"/>
517 <actions>
518 <action function="queueclear"/>
519 <action function="page">install</action>
520 </actions>
521 </button>
522
523 <button>
524 <placement x="%btn4_col2_x%" y="%row11_y%"/>
525 <highlight color="%highlight_color%"/>
526 <image resource="q_btn_addzip"/>
527 <action function="page">install</action>
528 </button>
529
530 <button>
531 <placement x="%btn4_col3_x%" y="%row11_y%"/>
532 <highlight color="%highlight_color%"/>
533 <image resource="q_btn_accept"/>
534 <action function="page">flash_confirm</action>
535 </button>
536
537 <button>
538 <placement x="%btn4_col4_x%" y="%row11_y%"/>
539 <highlight color="%highlight_color%"/>
540 <image resource="q_btn_arrow_right"/>
541 <action function="page">flash_options</action>
542 </button>
543
544 <action>
545 <touch key="back"/>
546 <actions>
547 <action function="queueclear"/>
548 <action function="page">install</action>
549 </actions>
550 </action>
551
552 <action>
553 <touch key="home"/>
554 <action function="page">main</action>
555 </action>
556 </page>
557
558 <page name="flash_options">
559 <template name="page"/>
560
561 <template name="statusbar"/>
562
563 <text style="text_m">
564 <condition var1="tw_selectimage" var2="0"/>
565 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500566 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100567 </text>
568
epicX9597b842021-03-20 21:58:17 +0530569 <listbox style="options_listbox">
570 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%listbox_options_height%"/>
571 <icon selected="checkbox_true" unselected="checkbox_false"/>
572 <listitem name="{@zip_sig_chk=Zip signature verification}">
573 <data variable="tw_signed_zip_verify"/>
574 </listitem>
575 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
576 <data variable="tw_skip_digest_check_zip"/>
577 </listitem>
nebrassyac29e692021-05-20 13:03:30 +0200578 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
579 <conditions>
580 <condition var1="tw_has_boot_slots" var2="1"/>
581 <condition var1="tw_has_repack_tools" var2="1"/>
582 </conditions>
583 <data variable="tw_auto_reflashtwrp"/>
584 </listitem>
epicX9597b842021-03-20 21:58:17 +0530585 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
586 <data variable="tw_install_reboot"/>
587 </listitem>
588 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
589 <condition var1="tw_has_injecttwrp" var2="1"/>
590 <data variable="tw_inject_after_zip"/>
591 </listitem>
592 </listbox>
bigbiffa869fc72016-03-01 19:40:36 -0500593
z31s1g28f0a922015-11-07 18:50:22 +0100594 <button>
595 <placement x="%col1_x_left%" y="%row11_y%"/>
596 <highlight color="%highlight_color%"/>
597 <image resource="q_btn_arrow_left"/>
598 <action function="page">flash_queue</action>
599 </button>
600
601 <button>
602 <placement x="%btn4_col4_x%" y="%row11_y%"/>
603 <highlight color="%highlight_color%"/>
604 <image resource="q_btn_accept_transp"/>
605 <action function="page">flash_confirm</action>
606 </button>
607
608 <action>
609 <touch key="back"/>
610 <action function="page">flash_queue</action>
611 </action>
612
613 <action>
614 <touch key="home"/>
615 <action function="page">main</action>
616 </action>
617 </page>
618
619 <page name="flash_confirm">
620 <template name="page"/>
621
622 <template name="statusbar"/>
623
624 <text style="text_m">
625 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500626 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100627 </text>
628
629 <text style="text_m_accent">
630 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500631 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100632 </text>
633
634 <text style="text_m">
635 <placement x="%indent%" y="%row2_y%"/>
636 <text>%tw_file%</text>
637 </text>
638
639 <button>
640 <fill color="%transparent%"/>
641 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
642 <action function="page">flash_queue</action>
643 </button>
644
645 <text style="text_m_accent">
646 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500647 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100648 </text>
649
650 <text style="text_m">
651 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500652 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100653 </text>
654
655 <button>
656 <fill color="%transparent%"/>
657 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
658 <action function="page">flash_queue</action>
659 </button>
660
661 <listbox style="listbox_options">
662 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500663 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100664 <data variable="tw_signed_zip_verify"/>
665 </listitem>
666 </listbox>
667
668 <text style="text_m_accent">
669 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500670 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100671 </text>
672
673 <text style="text_m">
674 <condition var1="tw_has_injecttwrp" var2="1"/>
675 <condition var1="tw_inject_after_zip" var2="1"/>
676 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500677 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100678 </text>
679
680 <button>
681 <fill color="%transparent%"/>
682 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
683 <action function="page">flash_options</action>
684 </button>
685
686 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500687 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100688 <action function="flash">flash_zip</action>
689 </slider>
690
691 <action>
692 <touch key="back"/>
693 <actions>
694 <action function="cancelzip"/>
695 <action function="page">install</action>
696 </actions>
697 </action>
698
699 <action>
700 <touch key="home"/>
701 <action function="page">main</action>
702 </action>
703 </page>
704
705 <page name="flash_zip">
706 <template name="page"/>
707
708 <template name="statusbar"/>
709
710 <text style="text_m">
711 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600712 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100713 </text>
714
715 <template name="console"/>
716
717 <template name="progress_bar"/>
718
719 <action>
720 <condition var1="tw_operation_state" var2="1"/>
721 <action function="page">flash_done</action>
722 </action>
723 </page>
724
725 <page name="flash_done">
726 <template name="page"/>
727
728 <template name="statusbar"/>
729
730 <text style="text_m_fail">
731 <condition var1="tw_operation_status" op="!=" var2="0"/>
732 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500733 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100734 </text>
735
736 <text style="text_m">
737 <condition var1="tw_operation_status" var2="0"/>
738 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500739 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100740 </text>
741
742 <template name="console"/>
743
744 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500745 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100746 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500747 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100748 <actions>
749 <action function="set">tw_back=flash_done</action>
750 <action function="set">tw_action=wipe</action>
751 <action function="set">tw_action_param=/cache</action>
752 <action function="set">tw_has_action2=1</action>
753 <action function="set">tw_action2=wipe</action>
754 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500755 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
756 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
757 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500758 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
759 <action function="page">confirm_action</action>
760 </actions>
761 </button>
762
763 <button style="main_button_half_height">
764 <condition var1="tw_ab_device" var2="1"/>
765 <placement x="%indent%" y="%row21a_y%"/>
766 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
767 <actions>
768 <action function="set">tw_back=flash_done</action>
769 <action function="set">tw_action=wipe</action>
770 <action function="set">tw_action_param=dalvik</action>
771 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
772 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
773 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
774 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100775 <action function="page">confirm_action</action>
776 </actions>
777 </button>
778
779 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100780 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100781 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500782 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100783 <actions>
784 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500785 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100786 </actions>
787 </button>
788
Chaosmaster7b66bf52020-02-07 20:33:43 +0100789 <button style="main_button_half_height">
790 <condition var1="tw_ab_device" var2="1"/>
791 <placement x="%col1_x_right%" y="%row13_y%"/>
792 <text>{@reboot_btn=Reboot}</text>
793 <actions>
794 <action function="set">tw_back=main2</action>
795 <action function="page">reboot</action>
796 </actions>
797 </button>
798
z31s1g28f0a922015-11-07 18:50:22 +0100799 <action>
800 <touch key="back"/>
801 <actions>
802 <action function="set">tw_clear_destination=install_type</action>
803 <action function="page">clear_vars</action>
804 </actions>
805 </action>
806
807 <action>
808 <touch key="home"/>
809 <actions>
810 <action function="set">tw_clear_destination=main2</action>
811 <action function="page">clear_vars</action>
812 </actions>
813 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500814
815 <action>
816 <conditions>
817 <condition var1="tw_install_reboot" var2="1"/>
818 <condition var1="tw_operation_status" var2="0"/>
819 <condition var1="tw_reboot_system" var2="1"/>
820 </conditions>
821 <actions>
822 <action function="set">tw_sleep=%tw_sleep_total%</action>
823 <action function="page">flash_sleep_and_reboot</action>
824 </actions>
825 </action>
826 </page>
827
828 <page name="flash_sleep_and_reboot">
829 <template name="page"/>
830
831 <template name="statusbar"/>
832
833 <text style="text_m">
834 <placement x="%col1_x_left%" y="%row1_header_y%"/>
835 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
836 </text>
837
838 <template name="console"/>
839
840 <template name="progress_bar"/>
841
842 <button style="main_button_half_height">
843 <condition var1="tw_sleep" op="&gt;" var2="0"/>
844 <placement x="%col1_x_right%" y="%row13_y%"/>
845 <text>{@cancel_btn=Cancel}</text>
846 <actions>
847 <action function="set">tw_install_reboot=0</action>
848 <action function="page">flash_done</action>
849 </actions>
850 </button>
851
852 <action>
853 <conditions>
854 <condition var1="tw_sleep" var2="tw_sleep_total"/>
855 <condition var1="tw_install_reboot" var2="1"/>
856 </conditions>
857 <action function="sleepcounter">%tw_sleep_total%</action>
858 </action>
859
860 <action>
861 <conditions>
862 <condition var1="tw_sleep" var2="0"/>
863 <condition var1="tw_install_reboot" var2="1"/>
864 </conditions>
865 <actions>
866 <action function="sleep">50000</action>
867 <action function="set">tw_back=main2</action>
868 <action function="page">reboot_system_routine</action>
869 </actions>
870 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100871 </page>
872
873 <page name="flashimage_type">
874 <template name="page"/>
875
876 <template name="statusbar"/>
877
878 <text style="text_m">
879 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600880 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100881 </text>
882
883 <partitionlist style="partitionlist_headerless_rb">
884 <data name="tw_flash_partition"/>
885 <listtype name="flashimg"/>
886 </partitionlist>
887
epicX8f52c0a2021-02-24 23:12:08 +0530888 <button style="checkbox">
889 <conditions>
890 <condition var1="tw_is_slot_part" op="=" var2="1"/>
891 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
892 <condition var1="tw_has_boot_slots" var2="1"/>
893 </conditions>
894 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
895 <text>{@flash_ab_both_slots=Flash to both slots}</text>
896 <image resource="checkbox_false"/>
897 <action function="set">tw_flash_both_slots=1</action>
898 </button>
899
900 <button style="checkbox">
901 <conditions>
902 <condition var1="tw_is_slot_part" op="=" var2="1"/>
903 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
904 <condition var1="tw_has_boot_slots" var2="1"/>
905 </conditions>
906 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
907 <text>{@flash_ab_both_slots=Flash to both slots}</text>
908 <image resource="checkbox_true"/>
909 <action function="set">tw_flash_both_slots=0</action>
910 </button>
911
z31s1g28f0a922015-11-07 18:50:22 +0100912 <button>
913 <placement x="%col1_x_left%" y="%row11_y%"/>
914 <highlight color="%highlight_color%"/>
915 <image resource="q_btn_arrow_left"/>
916 <action function="page">install</action>
917 </button>
918
919 <button>
920 <placement x="%btn4_col4_x%" y="%row11_y%"/>
921 <highlight color="%highlight_color%"/>
922 <image resource="q_btn_accept_transp"/>
923 <action function="page">flashimage_confirm</action>
924 </button>
925
926 <action>
927 <touch key="back"/>
928 <action function="page">install</action>
929 </action>
930
931 <action>
932 <touch key="home"/>
933 <action function="page">main</action>
934 </action>
935 </page>
936
937 <page name="flashimage_confirm">
938 <template name="page"/>
939
940 <template name="statusbar"/>
941
942 <text style="text_m">
943 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500944 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100945 </text>
946
947 <text style="text_m_accent">
948 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500949 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100950 </text>
951
952 <text style="text_m">
953 <placement x="%indent%" y="%row2_y%"/>
954 <text>%tw_file%</text>
955 </text>
956
957 <button>
958 <fill color="%transparent%"/>
959 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
960 <action function="page">install</action>
961 </button>
962
963 <text style="text_m_accent">
964 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500965 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100966 </text>
967
968 <text style="text_m">
969 <placement x="%indent%" y="%row5_y%"/>
970 <text>%tw_flash_partition%</text>
971 </text>
972
973 <button>
974 <fill color="%transparent%"/>
975 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
976 <action function="page">flashimage_type</action>
977 </button>
978
979 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500980 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100981 <actions>
982 <action function="set">tw_back=flashimage_confirm</action>
983 <action function="set">tw_action=flashimage</action>
984 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500985 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100986 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500987 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100988 <action function="page">action_page</action>
989 </actions>
990 <action function="flashimage"/>
991 </slider>
992
993 <action>
994 <touch key="back"/>
995 <actions>
996 <action function="set">tw_clear_destination=install</action>
997 <action function="page">clear_vars</action>
998 </actions>
999 </action>
1000
1001 <action>
1002 <touch key="home"/>
1003 <actions>
1004 <action function="set">tw_clear_destination=main2</action>
1005 <action function="page">clear_vars</action>
1006 </actions>
1007 </action>
1008 </page>
1009
1010 <page name="clear_vars">
1011 <action>
1012 <action function="set">tw_operation_state=0</action>
1013 <action function="set">tw_text1=</action>
1014 <action function="set">tw_text2=</action>
1015 <action function="set">tw_text3=</action>
1016 <action function="set">tw_text4=</action>
1017 <action function="set">tw_action_text1=</action>
1018 <action function="set">tw_action_text2=</action>
1019 <action function="set">tw_action_param=</action>
1020 <action function="set">tw_has_action2=0</action>
1021 <action function="set">tw_action2=</action>
1022 <action function="set">tw_action2_param=</action>
1023 <action function="set">tw_has_cancel=0</action>
1024 <action function="set">tw_cancel_action=</action>
1025 <action function="set">tw_cancel_param=</action>
1026 <action function="set">tw_show_exclamation=0</action>
1027 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001028 <action function="set">tw_crypto_user_id=</action>
1029 <action function="set">tw_multiuser_warning_accepted=</action>
1030 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +01001031 <action function="page">%tw_clear_destination%</action>
1032 </action>
1033 </page>
1034
Matt Mower908dd252016-05-25 02:26:50 -05001035 <page name="reboot_system_routine">
1036 <action>
1037 <action function="set">tw_back=main2</action>
1038 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05001039 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -05001040 <action function="set">tw_has_action2=0</action>
1041 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
1042 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
1043 <action function="set">tw_text3=</action>
1044 <action function="set">tw_text4=</action>
1045 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
1046 <action function="set">tw_action_text2=</action>
1047 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
1048 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
1049 <action function="page">rebootcheck</action>
1050 </action>
1051 </page>
1052
z31s1g28f0a922015-11-07 18:50:22 +01001053 <page name="confirm_action">
1054 <template name="page"/>
1055
1056 <template name="statusbar"/>
1057
1058 <text style="text_m">
1059 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001060 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001061 </text>
1062
1063 <text style="text_m_accent">
1064 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1065 <text>%tw_text1%</text>
1066 </text>
1067
1068 <text style="text_m_accent">
1069 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1070 <text>%tw_text2%</text>
1071 </text>
1072
1073 <text style="text_m">
1074 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1075 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1076 <text>%tw_text3%</text>
1077 </text>
1078
1079 <text style="text_m">
1080 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1081 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1082 <text>%tw_text4%</text>
1083 </text>
1084
1085 <text style="text_m_fail">
1086 <condition var1="tw_action" var2="changefilesystem"/>
1087 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1088 <text>%tw_text3%</text>
1089 </text>
1090
1091 <text style="text_m_fail">
1092 <condition var1="tw_action" var2="changefilesystem"/>
1093 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1094 <text>%tw_text4%</text>
1095 </text>
1096
1097 <text style="text_m">
1098 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001099 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001100 </text>
1101
1102 <slider>
1103 <text>%tw_slider_text%</text>
1104 <action function="page">action_page</action>
1105 </slider>
1106
1107 <action>
1108 <touch key="back"/>
1109 <actions>
1110 <action function="set">tw_clear_destination=%tw_back%</action>
1111 <action function="page">clear_vars</action>
1112 </actions>
1113 </action>
1114
1115 <action>
1116 <touch key="home"/>
1117 <action function="page">main</action>
1118 </action>
1119 </page>
1120
1121 <page name="action_page">
1122 <template name="page"/>
1123
1124 <template name="statusbar"/>
1125
1126 <text style="text_m">
1127 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1128 <text>%tw_action_text1% %tw_action_text2%</text>
1129 </text>
1130
1131 <template name="console"/>
1132
1133 <template name="progress_bar"/>
1134
1135 <button style="main_button_half_height">
1136 <condition var1="tw_has_cancel" var2="1"/>
1137 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1140 </button>
1141
1142 <action>
1143 <condition var1="tw_operation_state" var2="1"/>
1144 <actions>
1145 <action function="page">action_complete</action>
1146 </actions>
1147 </action>
1148
1149 <action>
1150 <condition var1="tw_has_action2" var2="0"/>
1151 <actions>
1152 <action function="%tw_action%">%tw_action_param%</action>
1153 </actions>
1154 </action>
1155
1156 <action>
1157 <condition var1="tw_has_action2" var2="1"/>
1158 <actions>
1159 <action function="%tw_action%">%tw_action_param%</action>
1160 <action function="%tw_action2%">%tw_action2_param%</action>
1161 </actions>
1162 </action>
1163 </page>
1164
1165 <page name="singleaction_page">
1166 <template name="page"/>
1167
1168 <template name="statusbar"/>
1169
1170 <text style="text_m">
1171 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1172 <text>%tw_action_text1% %tw_action_text2%</text>
1173 </text>
1174
1175 <template name="console"/>
1176
1177 <template name="progress_bar"/>
1178
1179 <action>
1180 <condition var1="tw_operation_state" var2="1"/>
1181 <actions>
1182 <action function="set">tw_page_done=1</action>
1183 </actions>
1184 </action>
1185
1186 <action>
1187 <condition var1="tw_has_action2" var2="0"/>
1188 <actions>
1189 <action function="%tw_action%">%tw_action_param%</action>
1190 </actions>
1191 </action>
1192
1193 <action>
1194 <condition var1="tw_has_action2" var2="1"/>
1195 <actions>
1196 <action function="%tw_action%">%tw_action_param%</action>
1197 <action function="%tw_action2%">%tw_action2_param%</action>
1198 </actions>
1199 </action>
1200 </page>
1201
1202 <page name="action_complete">
1203 <template name="page"/>
1204
1205 <template name="statusbar"/>
1206
1207 <text style="text_m_fail">
1208 <condition var1="tw_operation_status" op="!=" var2="0"/>
1209 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001210 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001211 </text>
1212
1213 <text style="text_m">
1214 <condition var1="tw_operation_status" var2="0"/>
1215 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001216 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001217 </text>
1218
1219 <template name="console"/>
1220
1221 <button style="main_button_half_height">
1222 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001223 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001224 <actions>
1225 <action function="set">tw_clear_destination=%tw_back%</action>
1226 <action function="page">clear_vars</action>
1227 </actions>
1228 </button>
1229
1230 <button style="main_button_half_height">
1231 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001232 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001233 <actions>
1234 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001235 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001236 </actions>
1237 </button>
1238
1239 <action>
1240 <touch key="home"/>
1241 <actions>
1242 <action function="set">tw_clear_destination=main2</action>
1243 <action function="page">clear_vars</action>
1244 </actions>
1245 </action>
1246
1247 <action>
1248 <touch key="back"/>
1249 <actions>
1250 <action function="set">tw_clear_destination=%tw_back%</action>
1251 <action function="page">clear_vars</action>
1252 </actions>
1253 </action>
1254 </page>
1255
1256 <page name="filecheck">
1257 <action>
1258 <action function="fileexists">%tw_filecheck%</action>
1259 </action>
1260
1261 <action>
1262 <conditions>
1263 <condition var1="tw_operation_state" var2="1"/>
1264 <condition var1="tw_operation_status" var2="0"/>
1265 </conditions>
1266 <actions>
1267 <action function="set">tw_fileexists=1</action>
1268 <action function="page">%tw_existpage%</action>
1269 </actions>
1270 </action>
1271
1272 <action>
1273 <conditions>
1274 <condition var1="tw_operation_state" var2="1"/>
1275 <condition var1="tw_operation_status" var2="1"/>
1276 </conditions>
1277 <actions>
1278 <action function="set">tw_fileexists=0</action>
1279 <action function="page">%tw_notexistpage%</action>
1280 </actions>
1281 </action>
1282 </page>
1283
1284 <page name="rebootcheck">
1285 <action>
1286 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001287 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001288 </action>
1289
1290 <action>
1291 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1292 <action function="page">confirm_action</action>
1293 </action>
1294 </page>
1295
1296 <page name="wipe_type1">
1297 <template name="page"/>
1298
1299 <template name="statusbar"/>
1300
1301 <text style="text_m">
1302 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001303 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001304 </text>
1305
1306 <button style="main_button_full_width">
1307 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001308 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001309 <action function="page">wipe</action>
1310 </button>
1311
1312 <button style="main_button_full_width">
1313 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001314 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001315 <actions>
1316 <action function="set">partitionlisterror=0</action>
1317 <action function="page">advancedwipe</action>
1318 </actions>
1319 </button>
1320
1321 <button>
1322 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1323 <highlight color="%highlight_color%"/>
1324 <image resource="q_btn_arrow_right"/>
1325 <action function="page">wipe_type2</action>
1326 </button>
1327
1328 <action>
1329 <touch key="home"/>
1330 <action function="page">main</action>
1331 </action>
1332
1333 <action>
1334 <touch key="back"/>
1335 <action function="page">main</action>
1336 </action>
1337 </page>
1338
1339 <page name="wipe_type2">
1340 <template name="page"/>
1341
1342 <template name="statusbar"/>
1343
1344 <text style="text_m">
1345 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001346 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001347 </text>
1348
1349 <button style="main_button_full_width">
1350 <condition var1="tw_has_data_media" var2="1"/>
1351 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001352 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001353 <action function="page">formatdata</action>
1354 </button>
1355
1356 <button style="main_button_full_width">
1357 <conditions>
1358 <condition var1="tw_is_encrypted" var2="1"/>
1359 <condition var1="tw_has_data_media" var2="0"/>
1360 </conditions>
1361 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001362 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001363 <actions>
1364 <action function="set">tw_back=wipe</action>
1365 <action function="set">tw_action=wipe</action>
1366 <action function="set">tw_action_param=DATAMEDIA</action>
1367 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001368 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001369 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001370 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1371 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1372 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001373 <action function="page">confirm_action</action>
1374 </actions>
1375 </button>
1376
1377 <button style="main_button_full_width">
1378 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001379 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001380 <action function="set">partitionlisterror=0</action>
1381 <action function="page">partitionoptions_select</action>
1382 </actions>
1383 </button>
1384
1385 <button>
1386 <placement x="%col1_x_left%" y="%row11_y%"/>
1387 <highlight color="%highlight_color%"/>
1388 <image resource="q_btn_arrow_left"/>
1389 <action function="page">wipe_type1</action>
1390 </button>
1391
1392 <action>
1393 <touch key="home"/>
1394 <action function="page">main</action>
1395 </action>
1396
1397 <action>
1398 <touch key="back"/>
1399 <action function="page">main</action>
1400 </action>
1401 </page>
1402
1403 <page name="wipe">
1404 <template name="page"/>
1405
1406 <template name="statusbar"/>
1407
1408 <text style="text_m">
1409 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001410 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001411 </text>
1412
1413 <text style="text_m_accent">
1414 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001415 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001416 </text>
1417
1418 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001419 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001420 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1421 </text>
1422
1423 <text style="text_m_accent">
1424 <condition var1="tw_has_data_media" var2="1"/>
1425 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001426 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001427 </text>
1428
1429 <text style="text_m_accent">
1430 <conditions>
1431 <condition var1="tw_has_android_secure" var2="1"/>
1432 <condition var1="fileexists" var2="/and-sec"/>
1433 </conditions>
1434 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001435 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001436 </text>
1437
1438 <text style="text_m_accent">
1439 <condition var1="tw_has_sdext_partition" var2="1"/>
1440 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001441 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001442 </text>
1443
1444 <text style="text_m">
1445 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001446 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001447 </text>
1448
1449 <text style="text_m">
1450 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001451 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001452 </text>
1453
1454 <text style="text_m">
1455 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001456 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001457 </text>
1458
1459 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001460 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001461 <actions>
1462 <action function="set">tw_back=wipe</action>
1463 <action function="set">tw_action=wipe</action>
1464 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001465 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1466 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001467 <action function="page">action_page</action>
1468 </actions>
1469 </slider>
1470
1471 <action>
1472 <touch key="back"/>
1473 <action function="page">wipe_type1</action>
1474 </action>
1475
1476 <action>
1477 <touch key="home"/>
1478 <action function="page">main</action>
1479 </action>
1480 </page>
1481
1482 <page name="advancedwipe">
1483 <action>
1484 <action function="set">tw_wipe_list=</action>
1485 </action>
1486
1487 <template name="page"/>
1488
1489 <template name="statusbar"/>
1490
1491 <text style="text_m">
1492 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001493 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001494 </text>
1495
1496 <partitionlist style="partitionlist_headerless_cb">
1497 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1498 <data name="tw_wipe_list"/>
1499 <listtype name="wipe"/>
1500 </partitionlist>
1501
1502 <fill color="%accent_color%">
1503 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1504 </fill>
1505
1506 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001507 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001508 <actions>
1509 <action function="set">tw_back=advancedwipe</action>
1510 <action function="set">tw_action=wipe</action>
1511 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001512 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1513 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1514 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001515 <action function="page">action_page</action>
1516 </actions>
1517 </slider>
1518
1519 <action>
1520 <touch key="home"/>
1521 <action function="page">main</action>
1522 </action>
1523
1524 <action>
1525 <touch key="back"/>
1526 <action function="page">wipe_type1</action>
1527 </action>
1528 </page>
1529
1530 <page name="formatdata">
1531 <template name="page"/>
1532
1533 <template name="statusbar"/>
1534
1535 <text style="text_m">
1536 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001537 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001538 </text>
1539
1540 <text style="text_m_fail">
1541 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001542 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001543 </text>
1544
1545 <text style="text_m_fail">
1546 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001547 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001548 </text>
1549
1550 <text style="text_m">
1551 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001552 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001553 </text>
1554
1555 <input>
1556 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1557 <text>%tw_confirm_formatdata%</text>
1558 <data name="tw_confirm_formatdata"/>
1559 <restrict minlen="3" maxlen="3" allow="yes"/>
1560 <action function="page">formatdata_confirm</action>
1561 </input>
1562
1563 <fill color="%accent_color%">
1564 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1565 </fill>
1566
1567 <template name="keyboardtemplate"/>
1568
1569 <action>
1570 <touch key="home"/>
1571 <action function="page">main</action>
1572 </action>
1573
1574 <action>
1575 <touch key="back"/>
1576 <action function="page">wipe_type2</action>
1577 </action>
1578 </page>
1579
1580 <page name="formatdata_confirm">
1581 <action>
1582 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1583 <actions>
1584 <action function="set">tw_back=formatdata</action>
1585 <action function="set">tw_action=wipe</action>
1586 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001587 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1588 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001589 <action function="page">action_page</action>
1590 </actions>
1591 </action>
1592
1593 <action>
1594 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1595 <action function="page">formatdata</action>
1596 </action>
1597 </page>
1598
1599 <page name="checkpartitionlist">
1600 <action>
1601 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1602 <actions>
1603 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001604 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001605 <action function="page">partitionoptions</action>
1606 </actions>
1607 </action>
1608
1609 <action>
1610 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1611 <actions>
1612 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001613 <action function="page">partitionoptions_select</action>
1614 </actions>
1615 </action>
1616 </page>
1617
1618 <page name="partitionoptions_select">
1619 <action>
1620 <action function="set">tw_wipe_list=</action>
1621 </action>
1622
1623 <template name="page"/>
1624
1625 <template name="statusbar"/>
1626
1627 <text style="text_m">
1628 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001629 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001630 </text>
1631
1632 <partitionlist style="partitionlist_headerless_cb">
1633 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1634 <data name="tw_wipe_list"/>
1635 <listtype name="wipe"/>
1636 </partitionlist>
1637
1638 <fill color="%accent_color%">
1639 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1640 </fill>
1641
z31s1g28f0a922015-11-07 18:50:22 +01001642 <text style="text_m_fail">
1643 <condition var1="partitionlisterror" var2="1"/>
1644 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001645 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </text>
1647
1648 <button>
1649 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1650 <highlight color="%highlight_color%"/>
1651 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001652 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001653 <action function="page">checkpartitionlist</action>
1654 </actions>
1655 </button>
1656
1657 <action>
1658 <touch key="home"/>
1659 <action function="page">main</action>
1660 </action>
1661
1662 <action>
1663 <touch key="back"/>
1664 <action function="page">wipe_type2</action>
1665 </action>
1666 </page>
1667
1668 <page name="partitionoptions">
1669
1670 <template name="page"/>
1671
1672 <template name="statusbar"/>
1673
1674 <text style="text_m">
1675 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001676 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001677 </text>
1678
1679 <text style="text_m_accent">
1680 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 </text>
1683
1684 <text style="text_m_accent">
1685 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001686 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001687 </text>
1688
1689 <text style="text_m">
1690 <condition var1="tw_partition_is_present" var2="1"/>
1691 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001692 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001693 </text>
1694
1695 <text style="text_m">
1696 <condition var1="tw_partition_is_present" var2="0"/>
1697 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001698 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001699 </text>
1700
1701 <text style="text_m">
1702 <condition var1="tw_partition_removable" var2="1"/>
1703 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001704 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001705 </text>
1706
1707 <text style="text_m">
1708 <condition var1="tw_partition_removable" var2="0"/>
1709 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001710 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001711 </text>
1712
1713 <text style="text_m">
1714 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001715 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001716 </text>
1717
1718 <text style="text_m">
1719 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001720 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001721 </text>
1722
1723 <text style="text_m">
1724 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001725 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001726 </text>
1727
1728 <text style="text_m">
1729 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001730 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001731 </text>
1732
1733 <button style="main_button">
1734 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1735 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001736 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001737 <actions>
1738 <action function="set">tw_back=partitionoptions</action>
1739 <action function="set">tw_action=resize</action>
1740 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1741 <action function="set">tw_has_action2=1</action>
1742 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001743 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001744 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001745 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001746 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1747 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1748 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001749 <action function="page">confirm_action</action>
1750 </actions>
1751 </button>
1752
1753 <button style="main_button">
1754 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1755 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001756 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001757 <actions>
1758 <action function="set">tw_back=partitionoptions</action>
1759 <action function="set">tw_action=repair</action>
1760 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1761 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001762 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001763 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001764 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1765 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1766 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001767 <action function="page">confirm_action</action>
1768 </actions>
1769 </button>
1770
1771 <button>
1772 <placement x="%col1_x_left%" y="%row11_y%"/>
1773 <highlight color="%highlight_color%"/>
1774 <image resource="q_btn_arrow_left"/>
1775 <action function="page">partitionoptions_select</action>
1776 </button>
1777
1778 <button style="main_button">
1779 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001780 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001781 <action function="page">selectfilesystem</action>
1782 </button>
1783
1784 <action>
1785 <touch key="home"/>
1786 <action function="page">main</action>
1787 </action>
1788
1789 <action>
1790 <touch key="back"/>
1791 <action function="page">partitionoptions_select</action>
1792 </action>
1793 </page>
1794
1795 <page name="refreshfilesystem">
1796 <action>
1797 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1798 <actions>
1799 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001800 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001801 <action function="page">selectfilesystem</action>
1802 </actions>
1803 </action>
1804
1805 <action>
1806 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1807 <actions>
1808 <action function="set">partitionlisterror=1</action>
1809 <action function="set">tw_wipe_list=</action>
1810 <action function="page">advancedwipe</action>
1811 </actions>
1812 </action>
1813 </page>
1814
1815 <page name="selectfilesystem">
1816 <template name="page"/>
1817
1818 <template name="statusbar"/>
1819
1820 <text style="text_m">
1821 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001822 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001823 </text>
1824
1825 <button style="main_button">
1826 <condition var1="tw_partition_ext" op="=" var2="1"/>
1827 <placement x="%col1_x_left%" y="%row1_y%"/>
1828 <text>EXT2</text>
1829 <actions>
1830 <action function="set">tw_back=refreshfilesystem</action>
1831 <action function="set">tw_action=changefilesystem</action>
1832 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1833 <action function="set">tw_action_new_file_system=ext2</action>
1834 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001835 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1836 <action function="set">tw_text2=EXT2</action>
1837 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1838 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1839 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1840 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1841 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001842 <action function="page">confirm_action</action>
1843 </actions>
1844 </button>
1845
1846 <button style="main_button">
1847 <condition var1="tw_partition_ext" op="=" var2="1"/>
1848 <placement x="%col1_x_left%" y="%row6_y%"/>
1849 <text>EXT3</text>
1850 <actions>
1851 <action function="set">tw_back=refreshfilesystem</action>
1852 <action function="set">tw_action=changefilesystem</action>
1853 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1854 <action function="set">tw_action_new_file_system=ext3</action>
1855 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001856 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1857 <action function="set">tw_text2=EXT3</action>
1858 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1859 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1860 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1861 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1862 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001863 <action function="page">confirm_action</action>
1864 </actions>
1865 </button>
1866
1867 <button style="main_button">
1868 <condition var1="tw_partition_ext" op="=" var2="1"/>
1869 <placement x="%col1_x_left%" y="%row11_y%"/>
1870 <text>EXT4</text>
1871 <actions>
1872 <action function="set">tw_back=refreshfilesystem</action>
1873 <action function="set">tw_action=changefilesystem</action>
1874 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1875 <action function="set">tw_action_new_file_system=ext4</action>
1876 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001877 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1878 <action function="set">tw_text2=EXT4</action>
1879 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1880 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1881 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1882 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1883 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001884 <action function="page">confirm_action</action>
1885 </actions>
1886 </button>
1887
1888 <button style="main_button">
1889 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1890 <placement x="%col1_x_right%" y="%row1_y%"/>
1891 <text>FAT</text>
1892 <actions>
1893 <action function="set">tw_back=refreshfilesystem</action>
1894 <action function="set">tw_action=changefilesystem</action>
1895 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1896 <action function="set">tw_action_new_file_system=vfat</action>
1897 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001898 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1899 <action function="set">tw_text2=FAT</action>
1900 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1901 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1902 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1903 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1904 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001905 <action function="page">confirm_action</action>
1906 </actions>
1907 </button>
1908
1909 <button style="main_button">
1910 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1911 <placement x="%col1_x_right%" y="%row6_y%"/>
1912 <text>exFAT</text>
1913 <actions>
1914 <action function="set">tw_back=refreshfilesystem</action>
1915 <action function="set">tw_action=changefilesystem</action>
1916 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1917 <action function="set">tw_action_new_file_system=exfat</action>
1918 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001919 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1920 <action function="set">tw_text2=exFAT</action>
1921 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1922 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1923 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1924 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1925 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">confirm_action</action>
1927 </actions>
1928 </button>
1929
1930 <button style="main_button">
1931 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1932 <placement x="%col1_x_right%" y="%row11_y%"/>
1933 <text>F2FS</text>
1934 <actions>
1935 <action function="set">tw_back=refreshfilesystem</action>
1936 <action function="set">tw_action=changefilesystem</action>
1937 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1938 <action function="set">tw_action_new_file_system=f2fs</action>
1939 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001940 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1941 <action function="set">tw_text2=F2FS</action>
1942 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1943 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1944 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1945 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1946 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001947 <action function="page">confirm_action</action>
1948 </actions>
1949 </button>
1950
1951 <action>
1952 <touch key="home"/>
1953 <action function="page">main</action>
1954 </action>
1955
1956 <action>
1957 <touch key="back"/>
1958 <action function="page">partitionoptions</action>
1959 </action>
1960 </page>
1961
bigbiffce8f83c2015-12-12 18:30:21 -05001962 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001963 <template name="page"/>
1964
Noah Jacobson81d638d2019-04-28 00:10:07 -04001965 <action>
1966 <conditions>
1967 <condition var1="tw_is_fbe" var2="1"/>
1968 <condition var1="tw_all_users_decrypted" var2="0"/>
1969 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1970 </conditions>
1971 <actions>
1972 <action function="set">tw_multiuser_warning_destination=backup</action>
1973 <action function="page">multiuser_warning</action>
1974 </actions>
1975 </action>
1976
z31s1g28f0a922015-11-07 18:50:22 +01001977 <template name="statusbar"/>
1978
1979 <text style="text_m">
1980 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001981 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001982 </text>
1983
1984 <partitionlist style="partitionlist_headerless_rb">
1985 <data name="tw_storage_path"/>
1986 <listtype name="storage"/>
1987 </partitionlist>
1988
1989 <button>
1990 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1991 <highlight color="%highlight_color%"/>
1992 <image resource="q_btn_refresh"/>
1993 <actions>
1994 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001995 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001996 </actions>
1997 </button>
1998
1999 <button>
2000 <condition var1="tw_back" var2="backup_confirm"/>
2001 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2002 <highlight color="%highlight_color%"/>
2003 <image resource="q_btn_accept"/>
2004 <action function="page">backup_confirm</action>
2005 </button>
2006
2007 <button>
2008 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2009 <highlight color="%highlight_color%"/>
2010 <image resource="q_btn_arrow_right"/>
2011 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05002012 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002013 <action function="page">backup_selectpartitions</action>
2014 </actions>
2015 </button>
2016
2017 <action>
2018 <touch key="home"/>
2019 <action function="page">main</action>
2020 </action>
2021
2022 <action>
2023 <touch key="back"/>
2024 <action function="page">%tw_back%</action>
2025 </action>
2026
2027 <action>
2028 <touch key="power+voldown"/>
2029 <action function="screenshot"/>
2030 </action>
2031 </page>
2032
2033 <page name="backup_selectpartitions">
2034 <template name="page"/>
2035
2036 <template name="statusbar"/>
2037
2038 <text style="text_m">
2039 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002040 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002041 </text>
2042
2043 <partitionlist style="partitionlist_headerless_cb">
2044 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2045 <data name="tw_backup_list"/>
2046 <listtype name="backup"/>
2047 </partitionlist>
2048
2049 <fill color="%accent_color%">
2050 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2051 </fill>
2052
2053 <button>
2054 <placement x="%col1_x_left%" y="%row11_y%"/>
2055 <highlight color="%highlight_color%"/>
2056 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002057 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002058 </button>
2059
2060 <button>
2061 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2062 <highlight color="%highlight_color%"/>
2063 <image resource="q_btn_refresh"/>
2064 <action function="page">backup_selectpartitions</action>
2065 </button>
2066
2067 <button>
2068 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2069 <highlight color="%highlight_color%"/>
2070 <image resource="q_btn_accept"/>
2071 <action function="page">backup_confirm</action>
2072 </button>
2073
2074 <button>
2075 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2076 <highlight color="%highlight_color%"/>
2077 <image resource="q_btn_arrow_right"/>
2078 <actions>
2079 <action function="set">tw_back=backup_selectpartitions</action>
2080 <action function="page">backup_options</action>
2081 </actions>
2082 </button>
2083
2084 <action>
2085 <touch key="home"/>
2086 <action function="page">main</action>
2087 </action>
2088
2089 <action>
2090 <touch key="back"/>
2091 <action function="page">%tw_back%</action>
2092 </action>
2093
2094 <action>
2095 <touch key="power+voldown"/>
2096 <action function="screenshot"/>
2097 </action>
2098 </page>
2099
Noah Jacobson81d638d2019-04-28 00:10:07 -04002100 <page name="multiuser_warning">
2101 <template name="page"/>
2102
2103 <text style="text_m">
2104 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2105 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
2106 </text>
2107
2108 <text style="text_m_fail">
2109 <placement x="%center_x%" y="%row6_y%" placement="5"/>
2110 <text>{@multiuser_warning1=Not all users decrypted!}</text>
2111 </text>
2112
2113 <text style="text_m_fail">
2114 <placement x="%center_x%" y="%row7_y%" placement="5"/>
2115 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
2116 </text>
2117
2118 <button style="main_button_full_width">
2119 <placement x="%col1_x_left%" y="%row6_y%"/>
2120 <text>{@decrypt_users=Decrypt Users}</text>
2121 <action function="page">decrypt_users</action>
2122 </button>
2123
2124 <slider>
2125 <text>{@multiuser_warning_accept=Continue Anyway}</text>
2126 <actions>
2127 <action function="set">tw_multiuser_warning_accepted=1</action>
2128 <action function="page">%tw_multiuser_warning_destination%</action>
2129 </actions>
2130 </slider>
2131
2132 <action>
2133 <touch key="home"/>
2134 <action function="page">main</action>
2135 </action>
2136
2137 <action>
2138 <touch key="back"/>
2139 <action function="page">main</action>
2140 </action>
2141 </page>
2142
z31s1g28f0a922015-11-07 18:50:22 +01002143 <page name="backup_options">
2144 <template name="page"/>
2145
2146 <template name="statusbar"/>
2147
2148 <text style="text_m">
2149 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002150 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002151 </text>
2152
2153 <listbox style="scrolllist">
2154 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002155 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002156 <data variable="tw_use_compression"/>
2157 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002158 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2159 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002160 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002161 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002162 <data variable="tw_disable_free_space"/>
2163 </listitem>
2164 </listbox>
2165
2166 <button>
2167 <placement x="%col1_x_left%" y="%row11_y%"/>
2168 <highlight color="%highlight_color%"/>
2169 <image resource="q_btn_arrow_left"/>
2170 <action function="page">backup_selectpartitions</action>
2171 </button>
2172
2173 <button>
2174 <conditions>
2175 <condition var1="tw_include_encrypted_backup" var2="1"/>
2176 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002177 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002178 </conditions>
2179 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2180 <highlight color="%highlight_color%"/>
2181 <image resource="q_btn_encryption_dis"/>
2182 <actions>
2183 <action function="set">tw_password_not_match=0</action>
2184 <action function="set">tw_back=backup_options</action>
2185 <action function="page">backupencryption</action>
2186 </actions>
2187 </button>
2188
2189 <button>
2190 <conditions>
2191 <condition var1="tw_include_encrypted_backup" var2="1"/>
2192 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002193 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002194 </conditions>
2195 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2196 <highlight color="%highlight_color%"/>
2197 <image resource="q_btn_encryption_en"/>
2198 <actions>
2199 <action function="set">tw_password_not_match=0</action>
2200 <action function="set">tw_back=backup_options</action>
2201 <action function="page">backupencryption</action>
2202 </actions>
2203 </button>
2204
2205 <button>
2206 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2207 <highlight color="%highlight_color%"/>
2208 <image resource="q_btn_accept_transp"/>
2209 <actions>
2210 <action function="set">tw_back=backup_options</action>
2211 <action function="page">backup_confirm</action>
2212 </actions>
2213 </button>
2214
2215 <action>
2216 <touch key="home"/>
2217 <action function="page">main</action>
2218 </action>
2219
2220 <action>
2221 <touch key="back"/>
2222 <action function="page">%tw_back%</action>
2223 </action>
2224
2225 <action>
2226 <touch key="power+voldown"/>
2227 <action function="screenshot"/>
2228 </action>
2229 </page>
2230
2231 <page name="backup_confirm">
2232 <template name="page"/>
2233
2234 <template name="statusbar"/>
2235
2236 <text style="text_m">
2237 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002238 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002239 </text>
2240
2241 <text style="text_m_accent">
2242 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002243 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002244 </text>
2245
2246 <text style="text_m">
2247 <placement x="%col1_x_left%" y="%row2_y%"/>
2248 <text>%tw_backup_name%</text>
2249 </text>
2250
2251 <fill color="%accent_color%">
2252 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2253 </fill>
2254
2255 <button>
2256 <fill color="%transparent%"/>
2257 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2258 <actions>
2259 <action function="set">tw_back=backup_confirm</action>
2260 <action function="set">tw_fileexists=0</action>
2261 <action function="page">backup_name1</action>
2262 </actions>
2263 </button>
2264
2265 <fill color="%background_color%">
2266 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2267 </fill>
2268
2269 <text style="text_m_accent">
2270 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002271 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002272 </text>
2273
2274 <partitionlist style="partitionlist_summary">
2275 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2276 <data name="tw_backup_list"/>
2277 <listtype name="backup"/>
2278 </partitionlist>
2279
2280 <button>
2281 <fill color="%transparent%"/>
2282 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2283 <actions>
2284 <action function="set">tw_back=backup_confirm</action>
2285 <action function="page">backup_selectpartitions</action>
2286 </actions>
2287 </button>
2288
2289 <text style="text_m_accent">
2290 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002291 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002292 </text>
2293
2294 <text style="text_m">
2295 <placement x="%col1_x_right%" y="%row2_y%"/>
2296 <text>%tw_storage_display_name%</text>
2297 </text>
2298
2299 <button>
2300 <fill color="%transparent%"/>
2301 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2302 <actions>
2303 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002304 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002305 </actions>
2306 </button>
2307
2308 <text style="text_m_accent">
2309 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002310 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002311 </text>
2312
2313 <text style="text_m">
2314 <conditions>
2315 <condition var1="tw_include_encrypted_backup" var2="1"/>
2316 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002317 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002318 </conditions>
2319 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002320 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002321 </text>
2322
2323 <text style="text_m">
2324 <conditions>
2325 <condition var1="tw_include_encrypted_backup" var2="1"/>
2326 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002327 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002328 </conditions>
2329 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002330 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002331 </text>
2332
2333 <button>
2334 <fill color="%transparent%"/>
2335 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2336 <actions>
2337 <action function="set">tw_back=backup_confirm</action>
2338 <action function="page">backupencryption</action>
2339 </actions>
2340 </button>
2341
2342 <listbox style="listbox_options">
2343 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002344 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002345 <data variable="tw_use_compression"/>
2346 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002347 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2348 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002349 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002350 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002351 <data variable="tw_disable_free_space"/>
2352 </listitem>
2353 </listbox>
2354
2355 <text style="text_m_accent">
2356 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002357 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002358 </text>
2359
2360 <button>
2361 <fill color="%transparent%"/>
2362 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2363 <actions>
2364 <action function="set">tw_back=backup_confirm</action>
2365 <action function="page">backup_options</action>
2366 </actions>
2367 </button>
2368
2369 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002370 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002371 <action function="page">backup_run</action>
2372 </slider>
2373
2374 <action>
2375 <touch key="home"/>
2376 <action function="page">main</action>
2377 </action>
2378
2379 <action>
2380 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002381 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002382 </action>
2383 </page>
2384
2385 <page name="backup_name1">
2386 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002387 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002388 <action function="generatebackupname"/>
2389 </action>
2390
2391 <action>
2392 <action function="page">backup_name2</action>
2393 </action>
2394 </page>
2395
2396 <page name="backup_name2">
2397 <template name="page"/>
2398
2399 <template name="statusbar"/>
2400
2401 <text style="text_m">
2402 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002403 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002404 </text>
2405
2406 <text style="text_m_accent">
2407 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002408 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002409 </text>
2410
2411 <input>
2412 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2413 <text>%tw_backup_name%</text>
2414 <data name="tw_backup_name"/>
2415 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2416 <actions>
2417 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2418 <action function="set">tw_existpage=backup_name2</action>
2419 <action function="set">tw_notexistpage=backup_confirm</action>
2420 <action function="page">filecheck</action>
2421 </actions>
2422 </input>
2423
2424 <fill color="%accent_color%">
2425 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2426 </fill>
2427
2428 <fill color="%text_fail_color%">
2429 <condition var1="tw_fileexists" var2="1"/>
2430 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2431 </fill>
2432
2433 <text style="text_m_fail">
2434 <condition var1="tw_fileexists" var2="1"/>
2435 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002436 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002437 </text>
2438
2439 <button style="main_button_half_height">
2440 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002441 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002442 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002443 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002444 <action function="page">backup_confirm</action>
2445 </actions>
2446 </button>
2447
2448 <button style="main_button_half_height">
2449 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002450 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002451 <action function="appenddatetobackupname"/>
2452 </button>
2453
2454 <template name="keyboardtemplate"/>
2455
2456 <action>
2457 <touch key="home"/>
2458 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002459 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002460 <action function="page">main</action>
2461 </actions>
2462 </action>
2463
2464 <action>
2465 <touch key="back"/>
2466 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002467 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002468 <action function="page">backup_confirm</action>
2469 </actions>
2470 </action>
2471 </page>
2472
2473 <page name="backupencryption">
2474 <template name="page"/>
2475
2476 <template name="statusbar"/>
2477
2478 <text style="text_m">
2479 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002480 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002481 </text>
2482
2483 <text style="text_m_accent">
2484 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002485 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002486 </text>
2487
2488 <input>
2489 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2490 <text>%tw_backup_encrypt_display%</text>
2491 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2492 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2493 <action function="page">backupencryption2</action>
2494 </input>
2495
2496 <fill color="%accent_color%">
2497 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2498 </fill>
2499
2500 <fill color="%text_fail_color%">
2501 <condition var1="tw_password_not_match" var2="1"/>
2502 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2503 </fill>
2504
2505 <text style="text_m_fail">
2506 <condition var1="tw_password_not_match" var2="1"/>
2507 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002508 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002509 </text>
2510
2511 <button style="main_button_half_height">
2512 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002513 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002514 <actions>
2515 <action function="set">tw_encrypt_backup=0</action>
2516 <action function="set">tw_backup_password=</action>
2517 <action function="set">tw_backup_password2=</action>
2518 <action function="set">tw_backup_encrypt_display=</action>
2519 <action function="set">tw_backup_encrypt_display2=</action>
2520 <action function="page">%tw_back%</action>
2521 </actions>
2522 </button>
2523
2524 <template name="keyboardtemplate"/>
2525
2526 <action>
2527 <touch key="home"/>
2528 <action function="page">main</action>
2529 </action>
2530
2531 <action>
2532 <touch key="back"/>
2533 <action function="page">%tw_back%</action>
2534 </action>
2535 </page>
2536
2537 <page name="backupencryption2">
2538 <template name="page"/>
2539
2540 <template name="statusbar"/>
2541
2542 <text style="text_m">
2543 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002544 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002545 </text>
2546
2547 <text style="text_m_accent">
2548 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002549 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002550 </text>
2551
2552 <input>
2553 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2554 <text>%tw_backup_encrypt_display2%</text>
2555 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2556 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2557 <action function="page">checkbackuppassword</action>
2558 </input>
2559
2560 <fill color="%accent_color%">
2561 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2562 </fill>
2563
2564 <button style="main_button_half_height">
2565 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002566 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002567 <actions>
2568 <action function="set">tw_encrypt_backup=0</action>
2569 <action function="set">tw_backup_password=</action>
2570 <action function="set">tw_backup_password2=</action>
2571 <action function="set">tw_backup_encrypt_display=</action>
2572 <action function="set">tw_backup_encrypt_display2=</action>
2573 <action function="page">%tw_back%</action>
2574 </actions>
2575 </button>
2576
2577 <template name="keyboardtemplate"/>
2578
2579 <action>
2580 <touch key="home"/>
2581 <action function="page">main</action>
2582 </action>
2583
2584 <action>
2585 <touch key="back"/>
2586 <action function="page">%tw_back%</action>
2587 </action>
2588 </page>
2589
2590 <page name="checkbackuppassword">
2591 <action>
2592 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2593 <actions>
2594 <action function="set">tw_encrypt_backup=1</action>
2595 <action function="page">%tw_back%</action>
2596 </actions>
2597 </action>
2598
2599 <action>
2600 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2601 <actions>
2602 <action function="set">tw_encrypt_backup=0</action>
2603 <action function="set">tw_password_not_match=1</action>
2604 <action function="set">tw_backup_password=</action>
2605 <action function="set">tw_backup_password2=</action>
2606 <action function="set">tw_backup_encrypt_display=</action>
2607 <action function="set">tw_backup_encrypt_display2=</action>
2608 <action function="page">backupencryption</action>
2609 </actions>
2610 </action>
2611 </page>
2612
2613 <page name="backup_run">
2614 <template name="page"/>
2615
2616 <template name="statusbar"/>
2617
2618 <text style="text_m">
2619 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2620 <text>%tw_operation% %tw_partition%</text>
2621 </text>
2622
2623 <template name="console"/>
2624
2625 <template name="progress_bar"/>
2626
2627 <text style="text_m">
2628 <placement x="%indent%" y="%row13a_y%"/>
2629 <text>%tw_file_progress%</text>
2630 </text>
2631
2632 <text style="text_m">
2633 <placement x="%indent%" y="%row14a_y%"/>
2634 <text>%tw_size_progress%</text>
2635 </text>
2636
2637 <button style="main_button_half_height">
2638 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002639 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002640 <action function="cancelbackup"/>
2641 </button>
2642
2643 <action>
2644 <action function="nandroid">backup</action>
2645 </action>
2646
2647 <action>
2648 <condition var1="tw_operation_state" var2="1"/>
2649 <condition var1="tw_cancel_backup" var2="0"/>
2650 <actions>
2651 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002652 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002653 <action function="set">tw_show_reboot=1</action>
2654 <action function="page">action_complete</action>
2655 </actions>
2656 </action>
2657
2658 <action>
2659 <condition var1="tw_operation_state" var2="1"/>
2660 <condition var1="tw_cancel_backup" var2="1"/>
2661 <actions>
2662 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002663 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002664 <action function="set">tw_show_reboot=1</action>
2665 <action function="page">action_complete</action>
2666 </actions>
2667 </action>
2668 </page>
2669
2670 <page name="restore">
2671 <template name="page"/>
2672
Noah Jacobson81d638d2019-04-28 00:10:07 -04002673 <action>
2674 <conditions>
2675 <condition var1="tw_is_fbe" var2="1"/>
2676 <condition var1="tw_all_users_decrypted" var2="0"/>
2677 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2678 </conditions>
2679 <actions>
2680 <action function="set">tw_multiuser_warning_destination=restore</action>
2681 <action function="page">multiuser_warning</action>
2682 </actions>
2683 </action>
2684
z31s1g28f0a922015-11-07 18:50:22 +01002685 <template name="statusbar"/>
2686
2687 <text style="text_m">
2688 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002689 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002690 </text>
2691
2692 <fileselector>
2693 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2694 <text>%tw_storage_display_name%</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002695 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002696 <path name="tw_backups_folder"/>
2697 <data name="tw_restore" default=""/>
2698 <selection name="tw_restore_name"/>
2699 </fileselector>
2700
2701 <button>
2702 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2703 <highlight color="%highlight_color%"/>
2704 <image resource="q_btn_storage"/>
2705 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002706 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002707 <action function="set">tw_back=restore</action>
2708 <action function="page">select_storage</action>
2709 </actions>
2710 </button>
2711
2712 <action>
2713 <condition var1="tw_restore" op="modified"/>
2714 <actions>
2715 <action function="readBackup"/>
2716 <action function="set">tw_back=restore</action>
2717 <action function="page">restore_read</action>
2718 </actions>
2719 </action>
2720
2721 <action>
2722 <touch key="home"/>
2723 <action function="page">main</action>
2724 </action>
2725
2726 <action>
2727 <touch key="back"/>
2728 <action function="page">main</action>
2729 </action>
2730 </page>
2731
2732 <page name="restore_read">
2733 <action>
2734 <condition var1="tw_restore_encrypted" var2="1"/>
2735 <actions>
2736 <action function="set">tw_password_fail=0</action>
2737 <action function="page">restore_decrypt</action>
2738 </actions>
2739 </action>
2740
2741 <action>
2742 <condition var1="tw_restore_encrypted" var2="0"/>
2743 <actions>
2744 <action function="page">restore_select</action>
2745 </actions>
2746 </action>
2747 </page>
2748
2749 <page name="restore_decrypt">
2750 <template name="page"/>
2751
2752 <template name="statusbar"/>
2753
2754 <text style="text_m">
2755 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002756 <text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002757 </text>
2758
2759 <text style="text_m_accent">
2760 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002761 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002762 </text>
2763
2764 <input>
2765 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2766 <text>%tw_restore_display%</text>
2767 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2768 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2769 <action function="page">try_restore_decrypt</action>
2770 </input>
2771
2772 <fill color="%accent_color%">
2773 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2774 </fill>
2775
2776 <fill color="%text_fail_color%">
2777 <condition var1="tw_password_fail" var2="1"/>
2778 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2779 </fill>
2780
2781 <text style="text_m_fail">
2782 <condition var1="tw_password_fail" var2="1"/>
2783 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002784 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002785 </text>
2786
2787 <button style="main_button_half_height">
2788 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002789 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002790 <actions>
2791 <action function="set">tw_page_done=1</action>
2792 <action function="page">restore</action>
2793 </actions>
2794 </button>
2795
2796 <button style="main_button_half_height">
2797 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002798 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002799 <actions>
2800 <action function="set">tw_back=restore</action>
2801 <action function="set">tw_action=cmd</action>
2802 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2804 <action function="set">tw_text2=%tw_restore_name%</action>
2805 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2806 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2807 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2808 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002809 <action function="page">confirm_action</action>
2810 </actions>
2811 </button>
2812
2813 <template name="keyboardtemplate"/>
2814
2815 <action>
2816 <touch key="home"/>
2817 <action function="page">main</action>
2818 </action>
2819
2820 <action>
2821 <touch key="back"/>
2822 <action function="page">restore</action>
2823 </action>
2824 </page>
2825
2826 <page name="try_restore_decrypt">
2827 <template name="page"/>
2828
2829 <template name="statusbar"/>
2830
2831 <text style="text_m">
2832 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002833 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002834 </text>
2835
2836 <template name="console"/>
2837
2838 <template name="progress_bar"/>
2839
2840 <action>
2841 <action function="decrypt_backup"/>
2842 </action>
2843
2844 <action>
2845 <conditions>
2846 <condition var1="tw_operation_state" var2="1"/>
2847 <condition var1="tw_operation_status" op="!=" var2="0"/>
2848 </conditions>
2849 <actions>
2850 <action function="set">tw_password_fail=1</action>
2851 <action function="page">restore_decrypt</action>
2852 </actions>
2853 </action>
2854
2855 <action>
2856 <conditions>
2857 <condition var1="tw_operation_state" var2="1"/>
2858 <condition var1="tw_operation_status" op="=" var2="0"/>
2859 </conditions>
2860 <actions>
2861 <action function="set">tw_page_done=1</action>
2862 <action function="page">restore_select</action>
2863 </actions>
2864 </action>
2865 </page>
2866
2867 <page name="restore_select">
2868 <template name="page"/>
2869
2870 <template name="statusbar"/>
2871
2872 <text style="text_m">
2873 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002874 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002875 </text>
2876
2877 <partitionlist style="partitionlist_headerless_cb">
2878 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2879 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2880 <listtype name="restore"/>
2881 </partitionlist>
2882
2883 <fill color="%accent_color%">
2884 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2885 </fill>
2886
2887 <button>
2888 <placement x="%col1_x_left%" y="%row11_y%"/>
2889 <highlight color="%highlight_color%"/>
2890 <image resource="q_btn_arrow_left"/>
2891 <action function="page">restore</action>
2892 </button>
2893
2894 <button>
2895 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2896 <highlight color="%highlight_color%"/>
2897 <image resource="q_btn_delete"/>
2898 <actions>
2899 <action function="set">tw_back=restore</action>
2900 <action function="set">tw_action=cmd</action>
2901 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002902 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002903 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002904 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2905 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2906 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2907 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002908 <action function="page">confirm_action</action>
2909 </actions>
2910 </button>
2911
2912 <button>
2913 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2914 <highlight color="%highlight_color%"/>
2915 <image resource="q_btn_accept"/>
2916 <action function="page">restore_confirm</action>
2917 </button>
2918
2919 <button>
2920 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2921 <highlight color="%highlight_color%"/>
2922 <image resource="q_btn_arrow_right"/>
2923 <actions>
2924 <action function="set">tw_back=restore_select</action>
2925 <action function="page">restore_options</action>
2926 </actions>
2927 </button>
2928
2929 <action>
2930 <touch key="home"/>
2931 <action function="page">main</action>
2932 </action>
2933
2934 <action>
2935 <touch key="back"/>
2936 <action function="page">%tw_back%</action>
2937 </action>
2938 </page>
2939
2940 <page name="restore_options">
2941 <template name="page"/>
2942
2943 <template name="statusbar"/>
2944
2945 <text style="text_m">
2946 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002947 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002948 </text>
2949
2950 <listbox style="scrolllist">
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002951 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002952 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002953 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
2954 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002955 </listitem>
2956 </listbox>
2957
2958 <button>
2959 <placement x="%col1_x_left%" y="%row11_y%"/>
2960 <highlight color="%highlight_color%"/>
2961 <image resource="q_btn_arrow_left"/>
2962 <action function="page">restore_select</action>
2963 </button>
2964
2965 <button>
2966 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2967 <highlight color="%highlight_color%"/>
2968 <image resource="q_btn_accept_transp"/>
2969 <actions>
2970 <action function="set">tw_back=restore_options</action>
2971 <action function="page">restore_confirm</action>
2972 </actions>
2973 </button>
2974
2975 <action>
2976 <touch key="home"/>
2977 <action function="page">main</action>
2978 </action>
2979
2980 <action>
2981 <touch key="back"/>
2982 <action function="page">%tw_back%</action>
2983 </action>
2984
2985 <action>
2986 <touch key="power+voldown"/>
2987 <action function="screenshot"/>
2988 </action>
2989 </page>
2990
2991 <page name="renamebackup">
2992 <template name="page"/>
2993
2994 <template name="statusbar"/>
2995
2996 <text style="text_m">
2997 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002998 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002999 </text>
3000
3001 <text style="text_m_accent">
3002 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003003 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003004 </text>
3005
3006 <input>
3007 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
3008 <text>%tw_backup_rename%</text>
3009 <data name="tw_backup_rename"/>
3010 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
3011 <actions>
3012 <action function="set">tw_back=restore</action>
3013 <action function="set">tw_action=cmd</action>
3014 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv "%tw_restore_name%" "%tw_backup_rename%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003015 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
3016 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
3017 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
3018 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
3019 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003020 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
3021 <action function="set">tw_existpage=renamebackup</action>
3022 <action function="set">tw_notexistpage=confirm_action</action>
3023 <action function="page">filecheck</action>
3024 </actions>
3025 </input>
3026
3027 <fill color="%accent_color%">
3028 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3029 </fill>
3030
3031 <fill color="%text_fail_color%">
3032 <condition var1="tw_fileexists" var2="1"/>
3033 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3034 </fill>
3035
3036 <text style="text_m_fail">
3037 <condition var1="tw_fileexists" var2="1"/>
3038 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003039 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003040 </text>
3041
3042 <button style="main_button_half_height">
3043 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003044 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003045 <action function="page">restore_confirm</action>
3046 </button>
3047
3048 <template name="keyboardtemplate"/>
3049
3050 <action>
3051 <touch key="home"/>
3052 <action function="page">main</action>
3053 </action>
3054
3055 <action>
3056 <touch key="back"/>
3057 <action function="page">restore_confirm</action>
3058 </action>
3059 </page>
3060
3061 <page name="restore_confirm">
3062 <template name="page"/>
3063
3064 <template name="statusbar"/>
3065
3066 <text style="text_m">
3067 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003068 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003069 </text>
3070
3071 <text style="text_m_accent">
3072 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003073 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003074 </text>
3075
3076 <text style="text_m">
3077 <placement x="%indent%" y="%row2_y%"/>
3078 <text>%tw_restore_name%</text>
3079 </text>
3080
3081 <fill color="%accent_color%">
3082 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
3083 </fill>
3084
3085 <button>
3086 <fill color="%transparent%"/>
3087 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
3088 <actions>
3089 <action function="set">tw_back=restore_confirm</action>
3090 <action function="set">tw_backup_rename=%tw_restore_name%</action>
3091 <action function="set">tw_fileexists=0</action>
3092 <action function="page">renamebackup</action>
3093 </actions>
3094 </button>
3095
3096 <text style="text_m_accent">
3097 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003098 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003099 </text>
3100
3101 <partitionlist style="partitionlist_summary">
3102 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
3103 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
3104 <listtype name="restore"/>
3105 </partitionlist>
3106
3107 <button>
3108 <fill color="%transparent%"/>
3109 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
3110 <actions>
3111 <action function="set">tw_back=restore_confirm</action>
3112 <action function="page">restore_select</action>
3113 </actions>
3114 </button>
3115
3116 <listbox style="listbox_options">
3117 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003118 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
3119 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003120 </listitem>
3121 </listbox>
3122
3123 <text style="text_m_accent">
3124 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003125 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003126 </text>
3127
3128 <button>
3129 <fill color="%transparent%"/>
3130 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
3131 <actions>
3132 <action function="set">tw_back=restore_confirm</action>
3133 <action function="page">restore_options</action>
3134 </actions>
3135 </button>
3136
3137 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003138 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003139 <action function="page">restore_run</action>
3140 </slider>
3141
3142 <action>
3143 <touch key="home"/>
3144 <action function="page">main</action>
3145 </action>
3146
3147 <action>
3148 <touch key="back"/>
3149 <action function="page">restore_options</action>
3150 </action>
3151 </page>
3152
3153 <page name="restore_run">
3154 <template name="page"/>
3155
3156 <template name="statusbar"/>
3157
3158 <text style="text_m">
3159 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3160 <text>%tw_operation% %tw_partition%</text>
3161 </text>
3162
3163 <template name="console"/>
3164
3165 <template name="progress_bar"/>
3166
3167 <text style="text_m">
3168 <placement x="%indent%" y="%row14a_y%"/>
3169 <text>%tw_size_progress%</text>
3170 </text>
3171
3172 <action>
3173 <condition var1="tw_operation_state" var2="1"/>
3174 <actions>
3175 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003176 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003177 <action function="set">tw_show_reboot=1</action>
3178 <action function="page">action_complete</action>
3179 </actions>
3180 </action>
3181
3182 <action>
3183 <action function="nandroid">restore</action>
3184 </action>
3185 </page>
3186
3187 <page name="mount">
3188 <template name="page"/>
3189
3190 <template name="statusbar"/>
3191
3192 <text style="text_m">
3193 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003194 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003195 </text>
3196
3197 <partitionlist style="partitionlist_headerless_cb">
3198 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3199 <listtype name="mount"/>
3200 </partitionlist>
3201
3202 <fill color="%accent_color%">
3203 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3204 </fill>
3205
3206 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003207 <conditions>
bigbiffb640d972021-10-12 19:08:10 -04003208 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
bigbiffee7b7ff2020-03-23 15:08:27 -04003209 <condition var1="tw_is_super" op="=" var2="0"/>
3210 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003211 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003212 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003213 <image resource="checkbox_false"/>
3214 <action function="mountsystemtoggle">1</action>
3215 </button>
3216
3217 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003218 <conditions>
3219 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3220 <condition var1="tw_is_super" op="=" var2="0"/>
3221 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003222 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003223 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003224 <image resource="checkbox_true"/>
3225 <actions>
3226 <action function="set">tw_lifetime_writes=2</action>
3227 <action function="page">system_readonly_check</action>
3228 </actions>
3229 </button>
3230
3231 <button style="checkbox">
3232 <conditions>
3233 <condition var1="tw_has_mtp" var2="1"/>
3234 <condition var1="tw_mtp_enabled" var2="0"/>
3235 </conditions>
3236 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3237 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003238 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003239 <action function="startmtp"/>
3240 </button>
3241
3242 <button style="checkbox">
3243 <conditions>
3244 <condition var1="tw_has_mtp" var2="1"/>
3245 <condition var1="tw_mtp_enabled" var2="1"/>
3246 </conditions>
3247 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3248 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003249 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003250 <action function="stopmtp"/>
3251 </button>
3252
3253 <button>
3254 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3255 <highlight color="%highlight_color%"/>
3256 <image resource="q_btn_storage"/>
3257 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003258 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003259 <action function="set">tw_back=mount</action>
3260 <action function="page">select_storage</action>
3261 </actions>
3262 </button>
3263
3264 <button>
3265 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3266 <highlight color="%highlight_color%"/>
3267 <image resource="q_btn_arrow_right"/>
3268 <action function="page">mount_options</action>
3269 </button>
3270
3271 <action>
3272 <touch key="home"/>
3273 <action function="page">main</action>
3274 </action>
3275
3276 <action>
3277 <touch key="back"/>
3278 <action function="page">main</action>
3279 </action>
3280 </page>
3281
3282 <page name="mount_options">
3283 <template name="page"/>
3284
3285 <template name="statusbar"/>
3286
3287 <text style="text_m">
3288 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 </text>
3291
3292 <button style="main_button_full_width">
3293 <condition var1="tw_has_usb_storage" var2="1"/>
3294 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003295 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003296 <action function="page">usb_mount</action>
3297 </button>
3298
3299 <button style="main_button_full_width">
3300 <conditions>
3301 <condition var1="tw_is_encrypted" var2="1"/>
3302 <condition var1="tw_is_decrypted" var2="0"/>
3303 </conditions>
3304 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003305 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003306 <action function="set">tw_crypto_user_id=0</action>
3307 <action function="set">tw_crypto_password=</action>
3308 <action function="set">tw_password_fail=0</action>
3309 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01003310 <action function="page">decrypt</action>
3311 </button>
3312
3313 <button>
3314 <placement x="%col1_x_left%" y="%row11_y%"/>
3315 <highlight color="%highlight_color%"/>
3316 <image resource="q_btn_arrow_left"/>
3317 <action function="page">mount</action>
3318 </button>
3319
3320 <action>
3321 <touch key="home"/>
3322 <action function="page">main</action>
3323 </action>
3324
3325 <action>
3326 <touch key="back"/>
3327 <action function="page">mount</action>
3328 </action>
3329 </page>
3330
3331 <page name="usb_mount">
3332 <template name="page"/>
3333
3334 <template name="statusbar"/>
3335
3336 <text style="text_m">
3337 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003338 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003339 </text>
3340
3341 <text style="text_m_accent">
3342 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003343 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003344 </text>
3345
3346 <text style="text_m_fail">
3347 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003348 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003349 </text>
3350
3351 <text style="text_m_fail">
3352 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003353 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003354 </text>
3355
3356 <button style="main_button">
3357 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003358 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003359 <action function="page">usb_umount</action>
3360 </button>
3361
3362 <action>
3363 <action function="mount">usb</action>
3364 <action function="set">tw_busy=1</action>
3365 </action>
3366 </page>
3367
3368 <page name="usb_umount">
3369 <action>
3370 <action function="unmount">usb</action>
3371 </action>
3372
3373 <action>
3374 <action function="page">mount_options</action>
3375 <action function="set">tw_busy=0</action>
3376 </action>
3377 </page>
3378
3379 <page name="system_readonly_check">
3380 <action>
3381 <action function="checkpartitionlifetimewrites">/system</action>
3382 </action>
3383
3384 <action>
3385 <condition var1="tw_lifetime_writes" var2="1"/>
3386 <actions>
3387 <action function="mountsystemtoggle">0</action>
3388 <action function="page">mount</action>
3389 </actions>
3390 </action>
3391
3392 <action>
3393 <condition var1="tw_lifetime_writes" var2="0"/>
3394 <actions>
3395 <action function="set">tw_back=mount</action>
3396 <action function="page">system_readonly</action>
3397 </actions>
3398 </action>
3399 </page>
3400
3401 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003402 <action>
3403 <action function="checkforapp"></action>
3404 <action function="page">reboot2</action>
3405 </action>
3406 </page>
3407
3408 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003409 <template name="page"/>
3410
3411 <template name="statusbar"/>
3412
3413 <text style="text_m">
3414 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003415 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003416 </text>
3417
3418 <button style="main_button">
3419 <condition var1="tw_reboot_system" var2="1"/>
3420 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003421 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003422 <actions>
3423 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003424 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003425 </actions>
3426 </button>
3427
3428 <button style="main_button">
3429 <condition var1="tw_reboot_poweroff" var2="1"/>
3430 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003431 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003432 <actions>
3433 <action function="set">tw_back=reboot</action>
3434 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003435 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003436 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003437 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003438 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3439 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3440 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3441 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3442 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003443 <action function="page">rebootcheck</action>
3444 </actions>
3445 </button>
3446
3447 <button style="main_button">
3448 <condition var1="tw_reboot_recovery" var2="1"/>
3449 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003450 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003451 <actions>
3452 <action function="set">tw_back=reboot</action>
3453 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003454 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003455 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003456 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003457 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3458 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3459 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3460 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3461 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003462 <action function="page">rebootcheck</action>
3463 </actions>
3464 </button>
3465
3466 <button style="main_button">
3467 <condition var1="tw_reboot_bootloader" var2="1"/>
3468 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003470 <actions>
3471 <action function="set">tw_back=reboot</action>
3472 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003473 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003474 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003475 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003476 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3477 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3478 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3479 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3480 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003481 <action function="page">rebootcheck</action>
3482 </actions>
3483 </button>
3484
3485 <button style="main_button">
3486 <condition var1="tw_download_mode" var2="1"/>
3487 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003488 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003489 <actions>
3490 <action function="set">tw_back=reboot</action>
3491 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003492 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003493 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003494 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003495 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3496 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3497 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3498 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3499 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003500 <action function="page">rebootcheck</action>
3501 </actions>
3502 </button>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003503
mauronofrioe9a49ef2018-10-03 13:38:16 +02003504 <button style="main_button">
3505 <condition var1="tw_edl_mode" var2="1"/>
3506 <placement x="%col1_x_right%" y="%row11_y%"/>
3507 <text>{@rb_edl_btn=Edl}</text>
3508 <actions>
3509 <action function="set">tw_back=reboot</action>
3510 <action function="set">tw_action=reboot</action>
3511 <action function="set">tw_action_param=edl</action>
3512 <action function="set">tw_reboot_param=edl</action>
3513 <action function="set">tw_has_action2=0</action>
3514 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3515 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3516 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3517 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3518 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
3519 <action function="page">rebootcheck</action>
3520 </actions>
3521 </button>
z31s1g28f0a922015-11-07 18:50:22 +01003522
3523 <action>
3524 <touch key="home"/>
3525 <action function="page">main</action>
3526 </action>
3527
3528 <action>
3529 <touch key="back"/>
3530 <action function="page">main</action>
3531 </action>
3532 </page>
3533
Ethan Yonker8581ab32020-12-17 14:51:50 -06003534 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003535 <template name="page"/>
3536
3537 <template name="statusbar"/>
3538
3539 <text style="text_m">
3540 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003541 <text>%tw_appinstall_title% &gt; {@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003542 </text>
3543
3544 <text style="text_m_accent">
3545 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3546 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3547 </text>
3548
3549 <text style="text_m">
3550 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3551 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3552 </text>
3553
3554 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003555 <condition var1="tw_mount_system_ro" var2="0"/>
3556 <placement x="%indent%" y="%row5_y%"/>
3557 <text>{@reboot_install_app_system=Install as a System App}</text>
3558 <data variable="tw_app_install_system"/>
3559 </checkbox>
3560
3561 <button style="main_button_half_height">
3562 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003563 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003564 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003565 </button>
3566
Ethan Yonker8581ab32020-12-17 14:51:50 -06003567 <slider>
3568 <text>{@swipe_confirm= Confirm}</text>
3569 <actions>
3570 <action function="set">tw_action=installapp</action>
3571 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3572 <action function="set">tw_action_text2=</action>
3573 <action function="set">tw_complete_text1={@successful=Successful}</action>
3574 <action function="page">action_page</action>
3575 </actions>
3576 </slider>
3577
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003578 <action>
3579 <touch key="home"/>
3580 <actions>
3581 <action function="set">tw_app_install_status=0</action>
3582 <action function="page">main</action>
3583 </actions>
3584 </action>
3585
3586 <action>
3587 <touch key="back"/>
3588 <actions>
3589 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003590 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003591 </actions>
3592 </action>
3593 </page>
3594
z31s1g28f0a922015-11-07 18:50:22 +01003595 <page name="system_readonly">
3596 <template name="page"/>
3597
3598 <template name="statusbar"/>
3599
3600 <text style="text_m">
3601 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003602 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003603 </text>
3604
3605 <text style="text_m_accent">
3606 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003607 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003608 </text>
3609
3610 <text style="text_m">
3611 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003612 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003613 </text>
3614
3615 <text style="text_m">
3616 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003617 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003618 </text>
3619
3620 <text style="text_m">
3621 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003622 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003623 </text>
3624
3625 <text style="text_m">
3626 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003627 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003628 </text>
3629
3630 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003631 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003632 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003633 </text>
3634
3635 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003636 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003637 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003638 </text>
3639
z31s1g608d7ff2016-01-18 19:47:25 +01003640 <button style="main_button_half_height">
3641 <placement x="%col1_x_right%" y="%row8a_y%"/>
3642 <text>{@sel_lang_btn=Select Language}</text>
3643 <action function="page">settings_language</action>
3644 </button>
3645
z31s1g28f0a922015-11-07 18:50:22 +01003646 <checkbox>
3647 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003648 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003649 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003650 <data variable="tw_never_show_system_ro_page"/>
3651 </checkbox>
3652
3653 <button style="main_button_half_height">
3654 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003655 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003656 <actions>
3657 <action function="mountsystemtoggle">1</action>
3658 <action function="set">tw_page_done=1</action>
3659 <action function="page">%tw_back%</action>
3660 </actions>
3661 </button>
3662
3663 <button style="main_button_half_height">
3664 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003665 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003666 <actions>
3667 <action function="mountsystemtoggle">0</action>
3668 <action function="set">tw_page_done=1</action>
3669 <action function="page">%tw_back%</action>
3670 </actions>
3671 </button>
3672 </page>
3673
3674 <page name="settings">
3675 <template name="page"/>
3676
3677 <template name="statusbar"/>
3678
3679 <text style="text_m">
3680 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003681 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003682 </text>
3683
3684 <button style="main_button">
3685 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003686 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003687 <action function="page">settings_general</action>
3688 </button>
3689
3690 <button style="main_button">
3691 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003692 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003693 <action function="page">settings_timezone</action>
3694 </button>
3695
3696 <button style="main_button">
3697 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003698 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003699 <action function="page">settings_screen</action>
3700 </button>
3701
3702 <button style="main_button">
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003703 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003704 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003705 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003706 <action function="page">settings_vibration</action>
3707 </button>
3708
3709 <button style="main_button">
3710 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003711 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003712 <action function="page">settings_language</action>
3713 </button>
3714
3715 <button>
3716 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3717 <highlight color="%highlight_color%"/>
3718 <image resource="q_btn_reset"/>
3719 <action function="restoredefaultsettings"/>
3720 </button>
3721
3722 <action>
3723 <touch key="home"/>
3724 <action function="page">main</action>
3725 </action>
3726
3727 <action>
3728 <touch key="back"/>
3729 <action function="page">main3</action>
3730 </action>
3731 </page>
3732
3733 <page name="settings_general">
3734 <template name="page"/>
3735
3736 <template name="statusbar"/>
3737
3738 <text style="text_m">
3739 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003740 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003741 </text>
3742
3743 <listbox style="scrolllist">
3744 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003745 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003746 <data variable="tw_signed_zip_verify"/>
3747 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003748 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3749 <data variable="tw_install_reboot"/>
3750 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003751 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003752 <data variable="tw_rm_rf"/>
3753 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003754 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3755 <data variable="tw_disable_free_space"/>
3756 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003757 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3758 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003759 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003760 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3761 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003762 </listitem>
epicX9597b842021-03-20 21:58:17 +05303763 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3764 <data variable="tw_skip_digest_check_zip"/>
3765 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003766 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003767 <data variable="tw_military_time"/>
3768 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003769 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003770 <data variable="tw_simulate_actions"/>
3771 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003772 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003773 <data variable="tw_simulate_fail"/>
3774 <condition var1="tw_simulate_actions" var2="1"/>
3775 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003776 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3777 <condition var1="tw_no_sha2" var2="0"/>
3778 <data variable="tw_use_sha2"/>
3779 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003780 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3781 <data variable="tw_unmount_system"/>
3782 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003783 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3784 <conditions>
3785 <condition var1="tw_has_boot_slots" var2="1"/>
3786 <condition var1="tw_has_repack_tools" var2="1"/>
3787 </conditions>
3788 <data variable="tw_auto_reflashtwrp"/>
3789 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003790 </listbox>
3791
3792 <action>
3793 <touch key="home"/>
3794 <action function="page">main</action>
3795 </action>
3796
3797 <action>
3798 <touch key="back"/>
3799 <action function="page">settings</action>
3800 </action>
3801 </page>
3802
3803 <page name="settings_timezone">
3804 <template name="page"/>
3805
3806 <template name="statusbar"/>
3807
3808 <text style="text_m">
3809 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003810 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003811 </text>
3812
3813 <text color="%text_color%">
3814 <font resource="font_m"/>
3815 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3816 <text>%tw_time%</text>
3817 </text>
3818
3819 <listbox style="listbox_headerless">
3820 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3821 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003822 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3823 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3824 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3825 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3826 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3827 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3828 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3829 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3830 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3831 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3832 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3833 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3834 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3835 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3836 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3837 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3838 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3839 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3840 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3841 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3842 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3843 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3844 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3845 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003846 </listbox>
3847
3848 <button>
3849 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3850 <highlight color="%highlight_color%"/>
3851 <image resource="q_btn_arrow_right"/>
3852 <actions>
3853 <action function="setguitimezone"/>
3854 <action function="page">settings_timezone2</action>
3855 </actions>
3856 </button>
3857
3858 <action>
3859 <condition var1="tw_time_zone_guisel" op="modified"/>
3860 <action function="setguitimezone"/>
3861 </action>
3862
3863 <action>
3864 <touch key="home"/>
3865 <actions>
3866 <action function="page">main</action>
3867 <action function="setguitimezone"/>
3868 </actions>
3869 </action>
3870
3871 <action>
3872 <touch key="back"/>
3873 <actions>
3874 <action function="page">settings</action>
3875 <action function="setguitimezone"/>
3876 </actions>
3877 </action>
3878
3879 <action>
3880 <touch key="power+voldown"/>
3881 <action function="screenshot"/>
3882 </action>
3883 </page>
3884
3885 <page name="settings_timezone2">
3886 <template name="page"/>
3887
3888 <template name="statusbar"/>
3889
3890 <text style="text_m">
3891 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003892 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003893 </text>
3894
3895 <text color="%text_color%">
3896 <font resource="font_m"/>
3897 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3898 <text>%tw_time%</text>
3899 </text>
3900
3901 <checkbox>
3902 <placement x="%col1_x_left%" y="%row1_y%"/>
3903 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003904 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003905 <data variable="tw_time_zone_guidst"/>
3906 <image checked="checkbox_true" unchecked="checkbox_false"/>
3907 </checkbox>
3908
3909 <text style="text_m_accent">
3910 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003911 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003912 </text>
3913
3914 <button style="main_button_quarter_width">
3915 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003916 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003917 <actions>
3918 <action function="set">tw_time_zone_guioffset=0</action>
3919 <action function="setguitimezone"/>
3920 </actions>
3921 </button>
3922
3923 <button style="main_button_quarter_width">
3924 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003925 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003926 <actions>
3927 <action function="set">tw_time_zone_guioffset=15</action>
3928 <action function="setguitimezone"/>
3929 </actions>
3930 </button>
3931
3932 <button style="main_button_quarter_width">
3933 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003934 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003935 <actions>
3936 <action function="set">tw_time_zone_guioffset=30</action>
3937 <action function="setguitimezone"/>
3938 </actions>
3939 </button>
3940
3941 <button style="main_button_quarter_width">
3942 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003943 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003944 <actions>
3945 <action function="set">tw_time_zone_guioffset=45</action>
3946 <action function="setguitimezone"/>
3947 </actions>
3948 </button>
3949
3950 <button>
3951 <placement x="%col1_x_left%" y="%row11_y%"/>
3952 <highlight color="%highlight_color%"/>
3953 <image resource="q_btn_arrow_left"/>
3954 <actions>
3955 <action function="setguitimezone"/>
3956 <action function="page">settings_timezone</action>
3957 </actions>
3958 </button>
3959
3960 <text style="text_m_accent">
3961 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003962 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003963 </text>
3964
3965 <text style="text_m">
3966 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3967 <text>%tw_time_zone%</text>
3968 </text>
3969
3970 <action>
3971 <condition var1="tw_time_zone_guidst" op="modified"/>
3972 <action function="setguitimezone"/>
3973 </action>
3974
3975 <action>
3976 <touch key="home"/>
3977 <actions>
3978 <action function="setguitimezone"/>
3979 <action function="page">main</action>
3980 </actions>
3981 </action>
3982
3983 <action>
3984 <touch key="back"/>
3985 <actions>
3986 <action function="setguitimezone"/>
3987 <action function="page">settings_timezone</action>
3988 </actions>
3989 </action>
3990 </page>
3991
3992 <page name="settings_screen">
3993 <template name="page"/>
3994
3995 <template name="statusbar"/>
3996
3997 <text style="text_m">
3998 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003999 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004000 </text>
4001
4002 <button style="checkbox">
4003 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
4004 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4005 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004006 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004007 <image resource="checkbox_false"/>
4008 <action function="set">tw_screen_timeout_secs=60</action>
4009 </button>
4010
4011 <button style="checkbox">
4012 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
4013 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4014 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004015 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004016 <image resource="checkbox_true"/>
4017 <action function="set">tw_screen_timeout_secs=0</action>
4018 </button>
4019
4020 <slidervalue>
4021 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4022 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004023 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004024 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
4025 </slidervalue>
4026
4027 <text style="text_m_fail">
4028 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
4029 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004030 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004031 </text>
4032
4033 <button>
4034 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4035 <highlight color="%highlight_color%"/>
4036 <image resource="q_btn_arrow_right"/>
4037 <action function="page">settings_screen2</action>
4038 </button>
4039
4040 <action>
4041 <touch key="home"/>
4042 <action function="page">main</action>
4043 </action>
4044
4045 <action>
4046 <touch key="back"/>
4047 <action function="page">settings</action>
4048 </action>
4049 </page>
4050
4051 <page name="settings_screen2">
4052 <template name="page"/>
4053
4054 <template name="statusbar"/>
4055
4056 <text style="text_m">
4057 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004058 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004059 </text>
4060
4061 <slidervalue>
4062 <condition var1="tw_has_brightnesss_file" var2="1"/>
4063 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004064 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004065 <data variable="tw_brightness_pct" min="10" max="100"/>
4066 <actions>
4067 <action function="set">tw_brightness=%tw_brightness_max%</action>
4068 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
4069 <action function="compute">tw_brightness/100</action>
4070 <action function="setbrightness">%tw_brightness%</action>
4071 </actions>
4072 </slidervalue>
4073
4074 <text style="text_m_fail">
4075 <condition var1="tw_has_brightnesss_file" var2="0"/>
4076 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004077 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004078 </text>
4079
4080 <button>
4081 <placement x="%col1_x_left%" y="%row11_y%"/>
4082 <highlight color="%highlight_color%"/>
4083 <image resource="q_btn_arrow_left"/>
4084 <action function="page">settings_screen</action>
4085 </button>
4086
4087 <action>
4088 <touch key="home"/>
4089 <action function="page">main</action>
4090 </action>
4091
4092 <action>
4093 <touch key="back"/>
4094 <action function="page">settings</action>
4095 </action>
4096 </page>
4097
4098 <page name="settings_vibration">
4099 <template name="page"/>
4100
4101 <template name="statusbar"/>
4102
4103 <text style="text_m">
4104 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004105 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004106 </text>
4107
4108 <slidervalue>
4109 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004110 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004111 <data variable="tw_button_vibrate" min="0" max="300"/>
4112 </slidervalue>
4113
4114 <button>
4115 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4116 <highlight color="%highlight_color%"/>
4117 <image resource="q_btn_arrow_right"/>
4118 <action function="page">settings_vibration2</action>
4119 </button>
4120
4121 <action>
4122 <touch key="home"/>
4123 <action function="page">main</action>
4124 </action>
4125
4126 <action>
4127 <touch key="back"/>
4128 <action function="page">settings</action>
4129 </action>
4130 </page>
4131
4132 <page name="settings_vibration2">
4133 <template name="page"/>
4134
4135 <template name="statusbar"/>
4136
4137 <text style="text_m">
4138 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004139 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004140 </text>
4141
4142 <slidervalue>
4143 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004144 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004145 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
4146 </slidervalue>
4147
4148 <button>
4149 <placement x="%col1_x_left%" y="%row11_y%"/>
4150 <highlight color="%highlight_color%"/>
4151 <image resource="q_btn_arrow_left"/>
4152 <action function="page">settings_vibration</action>
4153 </button>
4154
4155 <button>
4156 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4157 <highlight color="%highlight_color%"/>
4158 <image resource="q_btn_arrow_right"/>
4159 <action function="page">settings_vibration3</action>
4160 </button>
4161
4162 <action>
4163 <touch key="home"/>
4164 <action function="page">main</action>
4165 </action>
4166
4167 <action>
4168 <touch key="back"/>
4169 <action function="page">settings</action>
4170 </action>
4171 </page>
4172
4173 <page name="settings_vibration3">
4174 <template name="page"/>
4175
4176 <template name="statusbar"/>
4177
4178 <text style="text_m">
4179 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004180 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004181 </text>
4182
4183 <slidervalue>
4184 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004185 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004186 <data variable="tw_action_vibrate" min="0" max="500"/>
4187 </slidervalue>
4188
4189 <button>
4190 <placement x="%col1_x_left%" y="%row11_y%"/>
4191 <highlight color="%highlight_color%"/>
4192 <image resource="q_btn_arrow_left"/>
4193 <action function="page">settings_vibration2</action>
4194 </button>
4195
4196 <action>
4197 <touch key="home"/>
4198 <action function="page">main</action>
4199 </action>
4200
4201 <action>
4202 <touch key="back"/>
4203 <action function="page">settings</action>
4204 </action>
4205 </page>
4206
Ethan Yonker74db1572015-10-28 12:44:49 -05004207 <page name="settings_language">
4208 <template name="page"/>
4209
4210 <template name="statusbar"/>
4211
4212 <text style="text_m">
4213 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4214 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4215 </text>
4216
z31s1g608d7ff2016-01-18 19:47:25 +01004217 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004218 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4219 <icon selected="radio_true" unselected="radio_false" />
4220 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004221 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004222
4223 <button>
4224 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4225 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004226 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004227 <action function="setlanguage"></action>
4228 </button>
4229
z31s1g608d7ff2016-01-18 19:47:25 +01004230 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004231 <touch key="home" />
4232 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004233 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004234
z31s1g608d7ff2016-01-18 19:47:25 +01004235 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004236 <touch key="back" />
4237 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004238 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004239 </page>
4240
z31s1g28f0a922015-11-07 18:50:22 +01004241 <page name="advanced">
4242 <template name="page"/>
4243
4244 <template name="statusbar"/>
4245
4246 <text style="text_m">
4247 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004248 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004249 </text>
4250
4251 <button style="main_button">
4252 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004253 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004254 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004255 </button>
4256
4257 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004258 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004259 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004260 <text>{@fix_context_btn=Fix Contexts}</text>
4261 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004262 </button>
4263
Ethan Yonker64e0a652018-07-25 09:52:17 -05004264 <button>
4265 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4266 <highlight color="%highlight_color%"/>
4267 <image resource="q_btn_arrow_right"/>
4268 <action function="page">advanced2</action>
z31s1g28f0a922015-11-07 18:50:22 +01004269 </button>
4270
Ethan Yonker64e0a652018-07-25 09:52:17 -05004271 <action>
4272 <touch key="home"/>
4273 <action function="page">main</action>
4274 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004275
Ethan Yonker64e0a652018-07-25 09:52:17 -05004276 <action>
4277 <touch key="back"/>
4278 <action function="page">main3</action>
4279 </action>
4280 </page>
4281
4282 <page name="advanced2">
4283 <template name="page"/>
4284
4285 <template name="statusbar"/>
4286
4287 <text style="text_m">
4288 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4289 <text>{@advanced_hdr=Advanced}</text>
4290 </text>
4291
4292 <listbox style="advanced_listbox">
4293 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
epicXa721f952021-01-04 13:01:31 +05304294 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
4295 <condition var1="tw_is_encrypted" var2="0"/>
4296 <action function="page">changeTwrpFolder</action>
4297 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04004298 <listitem name="{@decrypt_users=Decrypt Users}">
4299 <conditions>
4300 <condition var1="tw_is_fbe" var2="1"/>
4301 <condition var1="tw_all_users_decrypted" var2="0"/>
4302 </conditions>
4303 <actions>
4304 <action function="set">tw_crypto_user_id=</action>
4305 <action function="page">decrypt_users</action>
4306 </actions>
4307 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004308 <listitem name="{@reload_theme_btn=Reload Theme}">
4309 <action function="reload"/>
4310 </listitem>
4311 <listitem name="{@part_sd_btn=Partition SD Card}">
4312 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4313 <actions>
4314 <action function="set">partitionlisterror=0</action>
4315 <action function="page">partsdcardsel</action>
4316 </actions>
4317 </listitem>
4318 <listitem name="{@dumlock_btn=HTC Dumlock}">
4319 <condition var1="tw_show_dumlock" var2="1"/>
4320 <action function="page">htcdumlock</action>
4321 </listitem>
4322 <listitem name="{@inject_twrp_btn=Inject TWRP}">
4323 <condition var1="tw_has_injecttwrp" var2="1"/>
4324 <actions>
4325 <action function="set">tw_back=advanced</action>
4326 <action function="set">tw_action=reinjecttwrp</action>
4327 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4328 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4329 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4330 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4331 <action function="page">confirm_action</action>
4332 </actions>
4333 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004334 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
4335 <conditions>
4336 <condition var1="tw_has_boot_slots" var2="1"/>
4337 <condition var1="tw_has_repack_tools" var2="1"/>
4338 </conditions>
4339 <actions>
4340 <action function="set">tw_repack_kernel=0</action>
4341 <action function="page">repackselect</action>
4342 </actions>
4343 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02004344 <listitem name="{@reflash_twrp=Flash Current TWRP}">
4345 <conditions>
4346 <condition var1="tw_has_boot_slots" var2="1"/>
4347 <condition var1="tw_has_repack_tools" var2="1"/>
4348 </conditions>
4349 <actions>
4350 <action function="set">tw_repack_kernel=0</action>
4351 <action function="set">tw_back=advanced</action>
4352 <action function="set">tw_action=reflashtwrp</action>
4353 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
4354 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
4355 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
4356 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4357 <action function="page">confirm_action</action>
4358 </actions>
4359 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004360 <listitem name="{@install_kernel=Install Kernel}">
4361 <conditions>
4362 <condition var1="tw_has_boot_slots" var2="1"/>
4363 <condition var1="tw_has_repack_tools" var2="1"/>
4364 </conditions>
4365 <actions>
4366 <action function="set">tw_repack_kernel=1</action>
4367 <action function="page">repackselect</action>
4368 </actions>
4369 </listitem>
4370 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
4371 <conditions>
4372 <condition var1="tw_has_boot_slots" var2="1"/>
4373 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwbackbc2cfa32021-09-16 10:04:26 -04004374 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06004375 </conditions>
4376 <actions>
4377 <action function="set">tw_back=advanced</action>
4378 <action function="set">tw_action=fixabrecoverybootloop</action>
4379 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
4380 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
4381 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
4382 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4383 <action function="page">confirm_action</action>
4384 </actions>
4385 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06004386 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
4387 <condition var1="tw_app_install_status" var2="1"/>
4388 <actions>
4389 <action function="set">tw_back=advanced2</action>
4390 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
4391 <action function="page">installapp</action>
4392 </actions>
4393 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05004394 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
4395 <condition var1="tw_app_installed_in_system" var2="1"/>
4396 <actions>
4397 <action function="set">tw_back=advanced</action>
4398 <action function="set">tw_action=uninstalltwrpsystemapp</action>
4399 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
4400 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
4401 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
4402 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4403 <action function="page">confirm_action</action>
4404 </actions>
4405 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04004406 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
4407 <actions>
4408 <action function="set">tw_back=advanced</action>
4409 <action function="set">tw_action=unmapsuperdevices</action>
4410 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
4411 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
4412 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
4413 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4414 <action function="page">confirm_action</action>
4415 </actions>
4416 </listitem>
bigbiffd21252f2021-09-18 15:56:32 -04004417 <listitem name="{@merges_snapshots=Merge Snapshots}">
4418 <actions>
4419 <action function="set">tw_back=advanced</action>
4420 <action function="set">tw_action=mergesnapshots</action>
4421 <action function="set">tw_text1={@merge_snapshots_confirm=Merge Snapshots?}</action>
4422 <action function="set">tw_action_text1={@merging_snapshots=Merging Snapshots...}</action>
4423 <action function="set">tw_complete_text1={@merging_snapshots_complete=Merged Snapshots}</action>
4424 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4425 <action function="page">confirm_action</action>
4426 </actions>
4427 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004428 </listbox>
4429
4430 <button>
z31s1g28f0a922015-11-07 18:50:22 +01004431 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004432 <highlight color="%highlight_color%"/>
4433 <image resource="q_btn_arrow_left"/>
4434 <action function="page">advanced</action>
z31s1g28f0a922015-11-07 18:50:22 +01004435 </button>
4436
4437 <action>
4438 <touch key="home"/>
4439 <action function="page">main</action>
4440 </action>
4441
4442 <action>
4443 <touch key="back"/>
4444 <action function="page">main3</action>
4445 </action>
4446 </page>
4447
Ethan Yonker483e9f42016-01-11 22:21:18 -06004448 <page name="partsdcardsel">
4449 <template name="page"/>
4450
4451 <template name="statusbar"/>
4452
4453 <text style="text_m">
4454 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4455 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4456 </text>
4457
4458 <partitionlist style="partitionlist_headerless_rb">
4459 <data name="tw_storage_path"/>
4460 <listtype name="storage"/>
4461 </partitionlist>
4462
4463 <text style="text_m_fail">
4464 <condition var1="partitionlisterror" var2="1"/>
4465 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4466 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4467 </text>
4468
4469 <button>
4470 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4471 <highlight color="%highlight_color%"/>
4472 <image resource="q_btn_refresh"/>
4473 <action function="refreshsizes"/>
4474 </button>
4475
4476 <button>
4477 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4478 <highlight color="%highlight_color%"/>
4479 <image resource="q_btn_accept"/>
4480 <actions>
4481 <action function="getpartitiondetails">tw_storage_path</action>
4482 <action function="page">partsdcardcheck</action>
4483 </actions>
4484 </button>
4485
4486 <action>
4487 <touch key="home"/>
4488 <action function="page">main</action>
4489 </action>
4490
4491 <action>
4492 <touch key="back"/>
4493 <action function="page">advanced</action>
4494 </action>
4495 </page>
4496
4497 <page name="partsdcardcheck">
4498 <action>
4499 <condition var1="tw_partition_removable" op="=" var2="1"/>
4500 <actions>
4501 <action function="set">partitionlisterror=0</action>
4502 <action function="page">partsdcard</action>
4503 </actions>
4504 </action>
4505
4506 <action>
4507 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4508 <actions>
4509 <action function="set">partitionlisterror=1</action>
4510 <action function="page">partsdcardsel</action>
4511 </actions>
4512 </action>
4513 </page>
4514
z31s1g28f0a922015-11-07 18:50:22 +01004515 <page name="partsdcard">
4516 <template name="page"/>
4517
4518 <template name="statusbar"/>
4519
4520 <text style="text_m">
4521 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004522 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004523 </text>
4524
4525 <text style="text_m_fail">
4526 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004527 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004528 </text>
4529
4530 <text style="text_m_fail">
4531 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004532 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004533 </text>
4534
4535 <text style="text_m_accent">
4536 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004537 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004538 </text>
4539
4540 <text style="text_m">
4541 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4542 <text>%tw_sdext_size%</text>
4543 </text>
4544
4545 <button style="main_button_quarter_width">
4546 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004547 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004548 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004549 </button>
4550
4551 <button style="main_button_quarter_width">
4552 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004553 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004554 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004555 </button>
4556
4557 <button>
4558 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4559 <highlight color="%highlight_color%"/>
4560 <image resource="q_btn_arrow_right"/>
4561 <action function="page">partsdcard2</action>
4562 </button>
4563
4564 <action>
4565 <touch key="home"/>
4566 <action function="page">main</action>
4567 </action>
4568
4569 <action>
4570 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004571 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004572 </action>
4573 </page>
4574
4575 <page name="partsdcard2">
4576 <template name="page"/>
4577
4578 <template name="statusbar"/>
4579
4580 <text style="text_m">
4581 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004582 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004583 </text>
4584
4585 <text style="text_m_fail">
4586 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004587 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004588 </text>
4589
4590 <text style="text_m_fail">
4591 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004592 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004593 </text>
4594
4595 <text style="text_m_accent">
4596 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004597 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004598 </text>
4599
4600 <text style="text_m">
4601 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4602 <text>%tw_swap_size%</text>
4603 </text>
4604
4605 <button style="main_button_quarter_width">
4606 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004607 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004608 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004609 </button>
4610
4611 <button style="main_button_quarter_width">
4612 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004613 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004614 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004615 </button>
4616
4617 <button>
4618 <placement x="%col1_x_left%" y="%row11_y%"/>
4619 <highlight color="%highlight_color%"/>
4620 <image resource="q_btn_arrow_left"/>
4621 <action function="page">partsdcard</action>
4622 </button>
4623
4624 <button>
4625 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4626 <highlight color="%highlight_color%"/>
4627 <image resource="q_btn_arrow_right"/>
4628 <action function="page">partsdcard3</action>
4629 </button>
4630
4631 <action>
4632 <touch key="home"/>
4633 <action function="page">main</action>
4634 </action>
4635
4636 <action>
4637 <touch key="back"/>
4638 <action function="page">advanced</action>
4639 </action>
4640 </page>
4641
4642 <page name="partsdcard3">
4643 <template name="page"/>
4644
4645 <template name="statusbar"/>
4646
4647 <text style="text_m">
4648 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004649 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004650 </text>
4651
4652 <text style="text_m_fail">
4653 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004654 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004655 </text>
4656
4657 <text style="text_m_fail">
4658 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004659 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004660 </text>
4661
4662 <text style="text_m_accent">
4663 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004664 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004665 </text>
4666
4667 <text style="text_m">
4668 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4669 <text>%tw_sdpart_file_system%</text>
4670 </text>
4671
4672 <button style="main_button_quarter_width">
4673 <placement x="%indent%" y="%row6_y%"/>
4674 <text>EXT3</text>
4675 <action function="set">tw_sdpart_file_system=ext3</action>
4676 </button>
4677
4678 <button style="main_button_quarter_width">
4679 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4680 <text>EXT4</text>
4681 <action function="set">tw_sdpart_file_system=ext4</action>
4682 </button>
4683
4684 <button>
4685 <placement x="%col1_x_left%" y="%row11_y%"/>
4686 <highlight color="%highlight_color%"/>
4687 <image resource="q_btn_arrow_left"/>
4688 <action function="page">partsdcard2</action>
4689 </button>
4690
4691 <button>
4692 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4693 <highlight color="%highlight_color%"/>
4694 <image resource="q_btn_arrow_right"/>
4695 <action function="page">partsdcard_confirm</action>
4696 </button>
4697
4698 <action>
4699 <touch key="home"/>
4700 <action function="page">main</action>
4701 </action>
4702
4703 <action>
4704 <touch key="back"/>
4705 <action function="page">advanced</action>
4706 </action>
4707 </page>
4708
4709 <page name="partsdcard_confirm">
4710 <template name="page"/>
4711
4712 <template name="statusbar"/>
4713
4714 <text style="text_m">
4715 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004716 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004717 </text>
4718
4719 <text style="text_m_fail">
4720 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004721 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004722 </text>
4723
4724 <text style="text_m_fail">
4725 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004726 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004727 </text>
4728
4729 <text style="text_m_accent">
4730 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004731 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004732 </text>
4733
4734 <text style="text_m_accent">
4735 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004736 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004737 </text>
4738
4739 <text style="text_m_accent">
4740 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004741 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004742 </text>
4743
4744 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004745 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004746 <action function="page">partsdcardaction</action>
4747 <actions>
4748 <action function="set">tw_back=partsdcard</action>
4749 <action function="set">tw_action=partitionsd</action>
4750 <action function="set">tw_has_action2=1</action>
4751 <action function="set">tw_action2=set</action>
4752 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004753 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4754 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4755 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004756 <action function="page">action_page</action>
4757 </actions>
4758 </slider>
4759
4760 <action>
4761 <touch key="home"/>
4762 <action function="page">main</action>
4763 </action>
4764
4765 <action>
4766 <touch key="back"/>
4767 <action function="page">advanced</action>
4768 </action>
4769 </page>
4770
4771 <page name="htcdumlock">
4772 <template name="page"/>
4773
4774 <template name="statusbar"/>
4775
4776 <text style="text_m">
4777 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004778 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004779 </text>
4780
4781 <button style="main_button_full_width">
4782 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004783 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004784 <actions>
4785 <action function="set">tw_back=htcdumlock</action>
4786 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004787 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4788 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4789 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4790 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004791 <action function="page">confirm_action</action>
4792 </actions>
4793 </button>
4794
4795 <button style="main_button_full_width">
4796 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004797 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004798 <actions>
4799 <action function="set">tw_back=htcdumlock</action>
4800 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004801 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4802 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4803 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4804 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004805 <action function="page">confirm_action</action>
4806 </actions>
4807 </button>
4808
4809 <button style="main_button_full_width">
4810 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004811 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004812 <actions>
4813 <action function="set">tw_back=htcdumlock</action>
4814 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004815 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4816 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4817 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4818 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004819 <action function="page">confirm_action</action>
4820 </actions>
4821 </button>
4822
4823 <action>
4824 <touch key="home"/>
4825 <action function="page">main</action>
4826 </action>
4827
4828 <action>
4829 <touch key="back"/>
4830 <action function="page">advanced</action>
4831 </action>
4832 </page>
4833
Ethan Yonker53796e72019-01-11 22:49:52 -06004834 <page name="repackselect">
4835 <template name="page"/>
4836
4837 <template name="statusbar"/>
4838
4839 <text style="text_m">
4840 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4841 <text>{@repack_image_hdr=Select Image}</text>
4842 </text>
4843
4844 <fileselector>
4845 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
4846 <text>%tw_zip_location%</text>
4847 <filter extn=".img" folders="1" files="1"/>
4848 <path name="tw_zip_location" default="/sdcard"/>
4849 <data name="tw_filename"/>
4850 <selection name="tw_file"/>
4851 </fileselector>
4852
4853 <button>
4854 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4855 <highlight color="%highlight_color%"/>
4856 <image resource="q_btn_storage"/>
4857 <actions>
4858 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
4859 <action function="set">tw_back=install</action>
4860 <action function="page">select_storage</action>
4861 </actions>
4862 </button>
4863
4864 <action>
4865 <conditions>
4866 <condition var1="tw_filename" op="modified"/>
4867 </conditions>
4868 <action function="page">repackconfirm</action>
4869 </action>
4870
4871 <action>
4872 <touch key="back"/>
4873 <action function="page">advanced</action>
4874 </action>
4875
4876 <action>
4877 <touch key="home"/>
4878 <action function="page">main</action>
4879 </action>
4880 </page>
4881
4882 <page name="repackconfirm">
4883 <template name="page"/>
4884
4885 <template name="statusbar"/>
4886
4887 <text style="text_m">
4888 <condition var1="tw_repack_kernel" var2="1"/>
4889 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4890 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4891 </text>
4892
4893 <text style="text_m">
4894 <condition var1="tw_repack_kernel" var2="0"/>
4895 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4896 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4897 </text>
4898
4899 <text style="text_m_accent">
4900 <placement x="%indent%" y="%row2_y%"/>
4901 <text>{@folder=Folder:}</text>
4902 </text>
4903
4904 <text style="text_m">
4905 <placement x="%indent%" y="%row3_y%"/>
4906 <text>%tw_zip_location%</text>
4907 </text>
4908
4909 <text style="text_m_accent">
4910 <placement x="%indent%" y="%row4_y%"/>
4911 <text>{@file=File:}</text>
4912 </text>
4913
4914 <text style="text_m">
4915 <placement x="%indent%" y="%row5_y%"/>
4916 <text>%tw_file%</text>
4917 </text>
4918
4919 <checkbox>
4920 <placement x="%indent%" y="%row7_y%"/>
4921 <text>{@repack_backup_first=Back up existing image first}</text>
4922 <data variable="tw_repack_backup_first"/>
4923 </checkbox>
4924
4925 <slider>
4926 <text>{@swipe_to_install=Swipe to Install}</text>
4927 <actions>
4928 <action function="set">tw_back=advanced</action>
4929 <action function="set">tw_action=repackimage</action>
4930 <action function="set">tw_action_param=/boot</action>
4931 <action function="set">tw_action_text1={@installing=Installing...}</action>
4932 <action function="set">tw_action_text2=</action>
4933 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4934 <action function="page">action_page</action>
4935 </actions>
4936 </slider>
4937
4938 <action>
4939 <touch key="back"/>
4940 <action function="page">repackselect</action>
4941 </action>
4942
4943 <action>
4944 <touch key="home"/>
4945 <action function="page">main</action>
4946 </action>
4947 </page>
4948
z31s1g28f0a922015-11-07 18:50:22 +01004949 <page name="lock">
4950 <background color="%semi_transparent%"/>
4951
4952 <image>
4953 <image resource="unlock_icon"/>
4954 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4955 </image>
4956
4957 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004958 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004959 <action function="overlay"/>
4960 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004961
4962 <action>
4963 <touch key="power"/>
4964 <action function="togglebacklight"/>
4965 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004966 </page>
4967
4968 <page name="filemanagerlist">
4969 <template name="page"/>
4970
4971 <template name="statusbar"/>
4972
4973 <text style="text_m">
4974 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004975 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004976 </text>
4977
4978 <fileselector>
4979 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4980 <text>%tw_file_location1%</text>
4981 <filter folders="1" files="1"/>
4982 <path name="tw_file_location1" default="/"/>
4983 <data name="tw_filename1"/>
4984 <selection name="tw_selection1"/>
4985 </fileselector>
4986
4987 <button>
4988 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4989 <highlight color="%highlight_color%"/>
4990 <image resource="q_btn_folder"/>
4991 <actions>
4992 <action function="set">tw_filename1=tw_file_location1</action>
4993 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004994 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004995 <action function="page">filemanageroptions</action>
4996 </actions>
4997 </button>
4998
4999 <action>
5000 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005001 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005002 <action function="set">tw_fm_isfolder=0</action>
5003 </actions>
5004 </action>
5005
5006 <action>
5007 <touch key="home"/>
5008 <action function="page">main</action>
5009 </action>
5010
5011 <action>
5012 <touch key="back"/>
5013 <action function="page">main3</action>
5014 </action>
5015
5016 <action>
5017 <condition var1="tw_filename1" op="modified"/>
5018 <action function="page">filemanageroptions</action>
5019 </action>
5020 </page>
5021
5022 <page name="filemanageroptions">
5023 <template name="page"/>
5024
5025 <template name="statusbar"/>
5026
5027 <text style="text_m">
5028 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005029 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005030 </text>
5031
5032 <button style="main_button">
5033 <condition var1="tw_fm_isfolder" var2="0"/>
5034 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005035 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005036 <actions>
5037 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005038 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005039 <action function="page">choosedestinationfolder</action>
5040 </actions>
5041 </button>
5042
5043 <button style="main_button">
5044 <condition var1="tw_fm_isfolder" var2="1"/>
5045 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005046 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005047 <actions>
5048 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; cp -R</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005049 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005050 <action function="page">choosedestinationfolder</action>
5051 </actions>
5052 </button>
5053
5054 <button style="main_button">
5055 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005056 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005057 <actions>
5058 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005059 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005060 <action function="page">choosedestinationfolder</action>
5061 </actions>
5062 </button>
5063
5064 <button style="main_button">
5065 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005066 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005067 <actions>
5068 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005069 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005070 <action function="set">tw_fm_text2=</action>
5071 <action function="set">tw_fm_text3=</action>
5072 <action function="set">tw_include_text3=0</action>
5073 <action function="set">tw_back=filemanageroptions</action>
5074 <action function="page">filemanagerconfirm</action>
5075 </actions>
5076 </button>
5077
5078 <button style="main_button">
5079 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005080 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005081 <actions>
5082 <action function="set">tw_filemanager_rename=0000</action>
5083 <action function="set">tw_fm_text2=</action>
5084 <action function="set">tw_fm_text3=</action>
5085 <action function="set">tw_include_text3=0</action>
5086 <action function="set">tw_back=filemanageroptions</action>
5087 <action function="page">filemanagerchmod</action>
5088 </actions>
5089 </button>
5090
5091 <button style="main_button">
5092 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005093 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005094 <actions>
5095 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005096 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005097 <action function="set">tw_fm_text2=</action>
5098 <action function="set">tw_fm_text3=</action>
5099 <action function="set">tw_include_text3=0</action>
5100 <action function="set">tw_back=filemanageroptions</action>
5101 <action function="page">filemanagerconfirm</action>
5102 </actions>
5103 </button>
5104
5105 <button style="main_button">
5106 <condition var1="tw_fm_isfolder" var2="0"/>
5107 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005108 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005109 <actions>
5110 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005111 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005112 <action function="set">tw_filemanager_command=mv</action>
5113 <action function="page">filemanagerrenamefile</action>
5114 </actions>
5115 </button>
5116
5117 <button style="main_button">
5118 <condition var1="tw_fm_isfolder" var2="1"/>
5119 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005120 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005121 <actions>
5122 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005123 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005124 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
5125 <action function="page">filemanagerrenamefolder</action>
5126 </actions>
5127 </button>
5128
5129 <action>
5130 <touch key="home"/>
5131 <action function="page">main</action>
5132 </action>
5133
5134 <action>
5135 <touch key="back"/>
5136 <action function="page">filemanagerlist</action>
5137 </action>
5138 </page>
5139
5140 <page name="choosedestinationfolder">
5141 <template name="page"/>
5142
5143 <template name="statusbar"/>
5144
5145 <text style="text_m">
5146 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005147 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005148 </text>
5149
5150 <fileselector>
5151 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5152 <text>%tw_file_location2%</text>
5153 <filter folders="1" files="0"/>
5154 <path name="tw_file_location2" default="/"/>
5155 <data name="tw_filename2"/>
5156 <selection name="tw_selection2"/>
5157 </fileselector>
5158
5159 <button>
5160 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5161 <highlight color="%highlight_color%"/>
5162 <image resource="q_btn_folder"/>
5163 <actions>
5164 <action function="set">tw_fm_text2=to</action>
5165 <action function="set">tw_fm_text3=%tw_file_location2%</action>
5166 <action function="set">tw_include_text3=1</action>
5167 <action function="set">tw_back=filemanageroptions</action>
5168 <action function="page">filemanagerconfirm</action>
5169 </actions>
5170 </button>
5171
5172 <action>
5173 <touch key="home"/>
5174 <action function="page">main</action>
5175 </action>
5176
5177 <action>
5178 <touch key="back"/>
5179 <action function="page">filemanageroptions</action>
5180 </action>
5181 </page>
5182
5183 <page name="filemanagerrenamefile">
5184 <template name="page"/>
5185
5186 <template name="statusbar"/>
5187
5188 <text style="text_m">
5189 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005190 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005191 </text>
5192
5193 <text style="text_m_accent">
5194 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005195 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005196 </text>
5197
5198 <input>
5199 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5200 <text>%tw_filemanager_rename%</text>
5201 <data name="tw_filemanager_rename"/>
5202 <restrict minlen="1" maxlen="128"/>
5203 <actions>
5204 <action function="set">tw_fm_text2=to</action>
5205 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
5206 <action function="set">tw_include_text3=1</action>
5207 <action function="set">tw_back=filemanageroptions</action>
5208 <action function="page">filemanagerconfirm</action>
5209 </actions>
5210 </input>
5211
5212 <fill color="%accent_color%">
5213 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5214 </fill>
5215
5216 <button style="main_button_half_height">
5217 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005218 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005219 <action function="page">filemanageroptions</action>
5220 </button>
5221
5222 <template name="keyboardtemplate"/>
5223
5224 <action>
5225 <touch key="home"/>
5226 <action function="page">main</action>
5227 </action>
5228
5229 <action>
5230 <touch key="back"/>
5231 <action function="page">filemanageroptions</action>
5232 </action>
5233 </page>
5234
5235 <page name="filemanagerrenamefolder">
5236 <template name="page"/>
5237
5238 <template name="statusbar"/>
5239
5240 <text style="text_m">
5241 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005242 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005243 </text>
5244
5245 <text style="text_m_accent">
5246 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005247 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005248 </text>
5249
5250 <input>
5251 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5252 <text>%tw_filemanager_rename%</text>
5253 <data name="tw_filemanager_rename"/>
5254 <restrict minlen="1" maxlen="128"/>
5255 <actions>
5256 <action function="set">tw_fm_text2=to</action>
5257 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
5258 <action function="set">tw_include_text3=1</action>
5259 <action function="set">tw_back=filemanageroptions</action>
5260 <action function="page">filemanagerconfirm</action>
5261 </actions>
5262 </input>
5263
5264 <fill color="%accent_color%">
5265 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5266 </fill>
5267
5268 <button style="main_button_half_height">
5269 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005270 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005271 <action function="page">filemanageroptions</action>
5272 </button>
5273
5274 <template name="keyboardtemplate"/>
5275
5276 <action>
5277 <touch key="home"/>
5278 <action function="page">main</action>
5279 </action>
5280
5281 <action>
5282 <touch key="back"/>
5283 <action function="page">filemanageroptions</action>
5284 </action>
5285 </page>
5286
5287 <page name="filemanagerchmod">
5288 <template name="page"/>
5289
5290 <template name="statusbar"/>
5291
5292 <text style="text_m">
5293 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005294 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005295 </text>
5296
5297 <text style="text_m_accent">
5298 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005299 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005300 </text>
5301
5302 <input>
5303 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5304 <text>%tw_filemanager_rename%</text>
5305 <data name="tw_filemanager_rename"/>
5306 <restrict minlen="3" maxlen="4" allow="0123456789"/>
5307 <actions>
5308 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
5309 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
5310 <action function="set">tw_back=filemanageroptions</action>
5311 <action function="page">filemanagerconfirm</action>
5312 </actions>
5313 </input>
5314
5315 <fill color="%accent_color%">
5316 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5317 </fill>
5318
5319 <button style="main_button_half_height">
5320 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005321 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005322 <action function="page">filemanageroptions</action>
5323 </button>
5324
5325 <template name="keyboardtemplate"/>
5326
5327 <action>
5328 <touch key="home"/>
5329 <action function="page">main</action>
5330 </action>
5331
5332 <action>
5333 <touch key="back"/>
5334 <action function="page">filemanageroptions</action>
5335 </action>
5336 </page>
5337
5338 <page name="filemanagerconfirm">
5339 <template name="page"/>
5340
5341 <template name="statusbar"/>
5342
5343 <text style="text_m">
5344 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005345 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005346 </text>
5347
5348 <text style="text_m_accent">
5349 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5350 <text>%tw_fm_text1%</text>
5351 </text>
5352
5353 <text style="text_m">
5354 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5355 <text>%tw_filename1%</text>
5356 </text>
5357
5358 <text style="text_m_accent">
5359 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5360 <text>%tw_fm_text2%</text>
5361 </text>
5362
5363 <text style="text_m">
5364 <placement x="%center_x%" y="%row6_y%" placement="5"/>
5365 <text>%tw_fm_text3%</text>
5366 </text>
5367
5368 <text style="text_m">
5369 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005370 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005371 </text>
5372
5373 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005374 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005375 <action function="page">filemanageraction</action>
5376 </slider>
5377
5378 <action>
5379 <touch key="back"/>
5380 <action function="page">%tw_back%</action>
5381 </action>
5382
5383 <action>
5384 <touch key="home"/>
5385 <action function="page">main</action>
5386 </action>
5387 </page>
5388
5389 <page name="filemanageraction">
5390 <template name="page"/>
5391
5392 <template name="statusbar"/>
5393
5394 <text style="text_m">
5395 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005396 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005397 </text>
5398
5399 <template name="console"/>
5400
5401 <template name="progress_bar"/>
5402
5403 <action>
5404 <conditions>
5405 <condition var1="tw_operation_state" var2="1"/>
5406 <condition var1="tw_operation_status" var2="0"/>
5407 </conditions>
5408 <actions>
5409 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005410 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005411 <action function="page">action_complete</action>
5412 </actions>
5413 </action>
5414
5415 <action>
5416 <conditions>
5417 <condition var1="tw_operation_state" var2="1"/>
5418 <condition var1="tw_operation_status" op="!=" var2="0"/>
5419 </conditions>
5420 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005421 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005422 <action function="page">action_complete</action>
5423 </actions>
5424 </action>
5425
5426 <action>
5427 <condition var1="tw_include_text3" var2="0"/>
5428 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
5429 </action>
5430
5431 <action>
5432 <condition var1="tw_include_text3" var2="1"/>
5433 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5434 </action>
5435 </page>
5436
5437 <page name="decrypt">
5438 <template name="page"/>
5439
5440 <template name="statusbar"/>
5441
5442 <action>
5443 <condition var1="tw_crypto_pwtype" var2="2"/>
5444 <action function="page">decrypt_pattern</action>
5445 </action>
5446
5447 <text style="text_m">
5448 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005449 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005450 </text>
5451
5452 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005453 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005454 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005455 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005456 </text>
5457
Noah Jacobson81d638d2019-04-28 00:10:07 -04005458 <text style="text_m_accent">
5459 <condition var1="tw_is_fbe" var2="1"/>
5460 <placement x="%col1_x_left%" y="%row1_y%"/>
5461 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
5462 </text>
5463
z31s1g28f0a922015-11-07 18:50:22 +01005464 <input>
5465 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5466 <text>%tw_crypto_display%</text>
5467 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5468 <restrict minlen="1" maxlen="254"/>
5469 <action function="page">trydecrypt</action>
5470 </input>
5471
5472 <fill color="%accent_color%">
5473 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5474 </fill>
5475
5476 <fill color="%text_fail_color%">
5477 <condition var1="tw_password_fail" var2="1"/>
5478 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5479 </fill>
5480
5481 <text style="text_m_fail">
5482 <condition var1="tw_password_fail" var2="1"/>
5483 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005484 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005485 </text>
5486
5487 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005488 <placement x="%col1_x_left%" y="%row4_y%"/>
5489 <text>{@sel_lang_btn=Select Language}</text>
5490 <action function="page">settings_language</action>
5491 </button>
5492
5493 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005494 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005495 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005496 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005497 </button>
5498
5499 <template name="keyboardtemplate"/>
5500 </page>
5501
5502 <page name="decrypt_pattern">
5503 <template name="page"/>
5504
5505 <template name="statusbar"/>
5506
Aleksa Saraib25a1832015-12-31 17:36:00 +01005507 <action>
5508 <action function="set">tw_gui_pattern_grid_size=3</action>
5509 </action>
5510
z31s1g28f0a922015-11-07 18:50:22 +01005511 <text style="text_m">
5512 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005513 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005514 </text>
5515
5516 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005517 <condition var1="tw_is_fbe" op="!=" var2="1"/>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005518 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005519 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005520 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005521 </text>
5522
Noah Jacobson81d638d2019-04-28 00:10:07 -04005523 <text style="text_m_accent">
5524 <condition var1="tw_is_fbe" var2="1"/>
5525 <condition var1="tw_password_fail" op="!=" var2="1"/>
5526 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5527 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5528 </text>
5529
Aleksa Saraib25a1832015-12-31 17:36:00 +01005530 <text style="text_m_fail">
5531 <condition var1="tw_password_fail" var2="1"/>
5532 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005533 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005534 </text>
5535
z31s1g28f0a922015-11-07 18:50:22 +01005536 <text style="text_m">
5537 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005538 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005539 </text>
5540
5541 <patternpassword>
5542 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005543 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5544 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5545 <data name="tw_crypto_password"/>
5546 <action function="page">trydecrypt</action>
5547 </patternpassword>
5548
5549 <fill color="#000000">
5550 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5551 </fill>
5552
5553 <button>
5554 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5555 <image resource="back"/>
5556 <condition var1="tw_busy" var2="0"/>
Captain Throwback89b56a12021-02-10 18:25:07 -05005557 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005558 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005559
5560 <button>
5561 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5562 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5563 <image resource="grid_less"/>
5564 <action function="set">tw_gui_pattern_grid_size=3</action>
5565 </button>
5566
5567 <button>
5568 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5569 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5570 <image resource="grid_less"/>
5571 <action function="set">tw_gui_pattern_grid_size=3</action>
5572 </button>
5573
5574 <button>
5575 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5576 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5577 <image resource="grid_less"/>
5578 <action function="set">tw_gui_pattern_grid_size=4</action>
5579 </button>
5580
5581 <button>
5582 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5583 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5584 <image resource="grid_less"/>
5585 <action function="set">tw_gui_pattern_grid_size=5</action>
5586 </button>
5587
5588 <button>
5589 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5590 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5591 <image resource="grid_more"/>
5592 <action function="set">tw_gui_pattern_grid_size=4</action>
5593 </button>
5594
5595 <button>
5596 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5597 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5598 <image resource="grid_more"/>
5599 <action function="set">tw_gui_pattern_grid_size=5</action>
5600 </button>
5601
5602 <button>
5603 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5604 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5605 <image resource="grid_more"/>
5606 <action function="set">tw_gui_pattern_grid_size=6</action>
5607 </button>
5608
5609 <button>
5610 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5611 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5612 <image resource="grid_more"/>
5613 <action function="set">tw_gui_pattern_grid_size=6</action>
5614 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005615 </page>
5616
5617 <page name="trydecrypt">
5618 <template name="page"/>
5619
5620 <template name="statusbar"/>
5621
5622 <text style="text_m">
5623 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005624 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005625 </text>
5626
5627 <template name="console"/>
5628
5629 <template name="progress_bar"/>
5630
5631 <action>
5632 <action function="decrypt"/>
5633 </action>
5634
5635 <action>
5636 <conditions>
5637 <condition var1="tw_operation_state" var2="1"/>
5638 <condition var1="tw_operation_status" op="!=" var2="0"/>
5639 </conditions>
5640 <actions>
5641 <action function="set">tw_password_fail=1</action>
5642 <action function="page">decrypt</action>
5643 </actions>
5644 </action>
5645
5646 <action>
5647 <conditions>
5648 <condition var1="tw_operation_state" var2="1"/>
5649 <condition var1="tw_operation_status" op="=" var2="0"/>
5650 </conditions>
5651 <actions>
5652 <action function="set">tw_page_done=1</action>
5653 <action function="page">main</action>
5654 </actions>
5655 </action>
5656 </page>
5657
Captain Throwback89b56a12021-02-10 18:25:07 -05005658 <page name="canceldecrypt">
5659 <template name="page"/>
5660
5661 <template name="statusbar"/>
5662
5663 <text style="text_m">
5664 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5665 <text>{@cancel_btn=Cancel} &gt; {@refresh_sizes_btn=Refresh Sizes}</text>
5666 </text>
5667
5668 <template name="console"/>
5669
5670 <template name="progress_bar"/>
5671
5672 <action>
5673 <action function="refreshsizes"/>
5674 </action>
5675
5676 <action>
5677 <conditions>
5678 <condition var1="tw_operation_state" var2="1"/>
5679 </conditions>
5680 <actions>
5681 <action function="set">tw_page_done=1</action>
5682 <action function="page">main</action>
5683 </actions>
5684 </action>
5685 </page>
5686
z31s1g28f0a922015-11-07 18:50:22 +01005687 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005688 <terminal>
5689 <condition var1="tw_hide_kb" var2="0"/>
5690 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5691 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005692
z31s1g56189522016-01-13 19:12:40 +01005693 <terminal>
5694 <condition var1="tw_hide_kb" var2="1"/>
5695 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5696 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005697
z31s1g56189522016-01-13 19:12:40 +01005698 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005699
5700 <template name="keyboardtemplate"/>
5701
z31s1g608d7ff2016-01-18 19:47:25 +01005702 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005703 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005704 </fill>
z31s1g56189522016-01-13 19:12:40 +01005705
z31s1g608d7ff2016-01-18 19:47:25 +01005706 <button>
z31s1g56189522016-01-13 19:12:40 +01005707 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5708 <image resource="back" />
5709 <condition var1="tw_busy" var2="0" />
5710 <actions>
5711 <action function="set">tw_hide_kb=0</action>
5712 <action function="key">back</action>
5713 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005714 </button>
z31s1g56189522016-01-13 19:12:40 +01005715
z31s1g608d7ff2016-01-18 19:47:25 +01005716 <button>
z31s1g56189522016-01-13 19:12:40 +01005717 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5718 <image resource="home" />
5719 <condition var1="tw_busy" var2="0" />
5720 <actions>
5721 <action function="set">tw_hide_kb=0</action>
5722 <action function="key">home</action>
5723 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005724 </button>
z31s1g56189522016-01-13 19:12:40 +01005725
z31s1g608d7ff2016-01-18 19:47:25 +01005726 <button>
z31s1g56189522016-01-13 19:12:40 +01005727 <condition var1="tw_hide_kb" var2="0"/>
5728 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5729 <image resource="kb_hide" />
5730 <condition var1="tw_busy" var2="0" />
5731 <actions>
5732 <action function="set">tw_hide_kb=1</action>
5733 <action function="page">terminalcommand</action>
5734 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005735 </button>
z31s1g56189522016-01-13 19:12:40 +01005736
z31s1g608d7ff2016-01-18 19:47:25 +01005737 <button>
z31s1g56189522016-01-13 19:12:40 +01005738 <condition var1="tw_hide_kb" var2="1"/>
5739 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5740 <image resource="kb_show" />
5741 <condition var1="tw_busy" var2="0" />
5742 <actions>
5743 <action function="set">tw_hide_kb=0</action>
5744 <action function="page">terminalcommand</action>
5745 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005746 </button>
z31s1g56189522016-01-13 19:12:40 +01005747
z31s1g28f0a922015-11-07 18:50:22 +01005748 <action>
5749 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005750 <actions>
5751 <action function="set">tw_hide_kb=0</action>
5752 <action function="page">main</action>
5753 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005754 </action>
5755
5756 <action>
5757 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005758 <actions>
5759 <action function="set">tw_hide_kb=0</action>
5760 <action function="page">advanced</action>
5761 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005762 </action>
z31s1g56189522016-01-13 19:12:40 +01005763
z31s1g608d7ff2016-01-18 19:47:25 +01005764 <action>
z31s1g56189522016-01-13 19:12:40 +01005765 <touch key="power+voldown" />
5766 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005767 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005768 </page>
5769
5770 <page name="sideload">
5771 <template name="page"/>
5772
5773 <template name="statusbar"/>
5774
5775 <text style="text_m">
5776 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005777 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005778 </text>
5779
5780 <text style="text_m_accent">
5781 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005782 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005783 </text>
5784
5785 <checkbox>
5786 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005787 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005788 <data variable="tw_wipe_dalvik"/>
5789 </checkbox>
5790
5791 <checkbox>
5792 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005793 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005794 <data variable="tw_wipe_cache"/>
5795 </checkbox>
5796
5797 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005798 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005799 <actions>
5800 <action function="set">tw_back=install_type</action>
5801 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005802 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5803 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5804 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005805 <action function="set">tw_has_cancel=1</action>
5806 <action function="set">tw_show_reboot=1</action>
5807 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5808 <action function="page">action_page</action>
5809 </actions>
5810 </slider>
5811
5812 <action>
5813 <touch key="home"/>
5814 <action function="page">main</action>
5815 </action>
5816
5817 <action>
5818 <touch key="back"/>
5819 <action function="page">install_type</action>
5820 </action>
5821 </page>
5822
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005823 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005824 <template name="page"/>
5825
5826 <template name="statusbar"/>
5827
5828 <text style="text_m">
5829 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005830 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005831 </text>
5832
5833 <text style="text_m_accent">
5834 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005835 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005836 </text>
5837
z31s1g28f0a922015-11-07 18:50:22 +01005838 <text style="text_m_fail">
5839 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005840 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005841 </text>
5842
5843 <text style="text_m_fail">
5844 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005845 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005846 </text>
5847
5848 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005849 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005850 <actions>
5851 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005852 <action function="set">tw_action=fixcontexts</action>
5853 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5854 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005855 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005856 <action function="set">tw_show_reboot=1</action>
5857 <action function="page">action_page</action>
5858 </actions>
5859 </slider>
5860
5861 <action>
5862 <touch key="home"/>
5863 <action function="page">main</action>
5864 </action>
5865
5866 <action>
5867 <touch key="back"/>
5868 <action function="page">advanced</action>
5869 </action>
5870 </page>
5871
z31s1g28f0a922015-11-07 18:50:22 +01005872 <page name="slideout">
5873 <fill color="%background_color%">
5874 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5875 </fill>
5876
5877 <console>
5878 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5879 </console>
5880
5881 <fill color="%fileselector_linecolor%">
5882 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5883 </fill>
5884
5885 <fill color="%fileselector_linecolor%">
5886 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5887 </fill>
5888
5889 <button>
5890 <fill color="%transparent%"/>
5891 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5892 <action function="overlay"/>
5893 </button>
5894
5895 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005896 <touch key="power"/>
5897 <action function="togglebacklight"/>
5898 </action>
5899
5900 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005901 <touch key="power+voldown"/>
5902 <action function="screenshot"/>
5903 </action>
5904 </page>
5905
5906 <page name="select_storage">
5907 <template name="page"/>
5908
5909 <template name="statusbar"/>
5910
5911 <text style="text_m">
5912 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5913 <text>%tw_storagetext%</text>
5914 </text>
5915
5916 <partitionlist style="partitionlist_headerless_rb">
5917 <data name="tw_storage_path"/>
5918 <listtype name="storage"/>
5919 </partitionlist>
5920
5921 <button>
5922 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5923 <highlight color="%highlight_color%"/>
5924 <image resource="q_btn_refresh"/>
5925 <actions>
5926 <action function="refreshsizes"/>
5927 <action function="page">select_storage</action>
5928 </actions>
5929 </button>
5930
5931 <button>
5932 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5933 <highlight color="%highlight_color%"/>
5934 <image resource="q_btn_accept"/>
5935 <actions>
5936 <action function="set">tw_clear_destination=%tw_back%</action>
5937 <action function="page">clear_vars</action>
5938 </actions>
5939 </button>
5940
5941 <action>
5942 <touch key="power+voldown"/>
5943 <action function="screenshot"/>
5944 </action>
5945 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005946
5947 <page name="decrypt_users">
5948 <template name="page"/>
5949
5950 <text style="text_l">
5951 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5952 <text>{@decrypt_users=Decrypt Users}</text>
5953 </text>
5954
5955 <text style="text_m_accent">
5956 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5957 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5958 </text>
5959
5960 <listbox>
5961 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
5962 <text>{@select_user=Select User}</text>
5963 <icon selected="radio_true" unselected="radio_false" />
5964 <data name="tw_crypto_user_id" />
5965 </listbox>
5966
5967 <button style="main_button_half_height">
5968 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
5969 <text>{@decrypt_users=Decrypt Users}</text>
5970 <action function="set">tw_crypto_password=</action>
5971 <action function="set">tw_password_fail=0</action>
5972 <action function="page">decrypt</action>
5973 </button>
5974
5975 <action>
5976 <touch key="home"/>
5977 <action function="page">main</action>
5978 </action>
5979
5980 <action>
5981 <touch key="back"/>
5982 <action function="page">advanced</action>
5983 </action>
5984 </page>
epicXa721f952021-01-04 13:01:31 +05305985
5986 <page name="changeTwrpFolder">
5987 <template name="page"/>
5988
5989 <template name="statusbar"/>
5990
5991 <text style="text_m">
5992 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5993 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5994 </text>
5995
5996 <text style="text_m_accent">
5997 <placement x="%col1_x_left%" y="%row1_y%"/>
5998 <text>{@name=Name:}</text>
5999 </text>
6000
6001 <input>
6002 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
6003 <text>%tw_custom_folder%</text>
6004 <data name="tw_custom_folder"/>
6005 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
6006 <actions>
6007 <action function="set">tw_back=changeTwrpFolder</action>
6008 <action function="set">tw_action=applycustomtwrpfolder</action>
6009 <action function="set">tw_action_param=%tw_custom_folder%</action>
6010 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6011 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6012 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6013 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
6014 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6015 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
6016 <action function="set">tw_existpage=changeTwrpFolder</action>
6017 <action function="set">tw_notexistpage=confirm_action</action>
6018 <action function="page">filecheck</action>
6019 </actions>
6020 </input>
6021
6022 <fill color="%accent_color%">
6023 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6024 </fill>
6025
6026 <fill color="%text_fail_color%">
6027 <condition var1="tw_fileexists" var2="1"/>
6028 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6029 </fill>
6030
6031 <text style="text_m_fail">
6032 <condition var1="tw_fileexists" var2="1"/>
6033 <placement x="%col1_x_left%" y="%row3_input_y%"/>
6034 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
6035 </text>
6036
6037 <button style="main_button_half_width_low">
6038 <placement x="%col1_x_left%" y="%row4_y%"/>
6039 <text>{@cancel_btn=Cancel}</text>
6040 <action function="page">advanced2</action>
6041 </button>
6042
6043 <button style="main_button_half_height">
6044 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6045 <placement x="%col1_x_right%" y="%row4_y%"/>
6046 <text>{@restore_defaults_btn=Restore Defaults}</text>
6047 <actions>
6048 <action function="set">tw_back=changeTwrpFolder</action>
6049 <action function="set">tw_action=applycustomtwrpfolder</action>
6050 <action function="set">tw_action_param=TWRP</action>
6051 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6052 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6053 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6054 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6055 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6056 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6057 <action function="set">tw_existpage=changeTwrpFolder</action>
6058 <action function="set">tw_notexistpage=confirm_action</action>
6059 <action function="page">filecheck</action>
6060 </actions>
6061 </button>
6062
6063 <template name="keyboardtemplate"/>
6064
6065 <action>
6066 <touch key="home"/>
6067 <actions>
6068 <action function="page">main</action>
6069 </actions>
6070 </action>
6071
6072 <action>
6073 <touch key="back"/>
6074 <actions>
6075 <action function="page">advanced2</action>
6076 </actions>
6077 </action>
6078 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006079 </pages>
6080</recovery>