blob: 50f3c2bcf400a0a8911edfa99b2000df20dd1e43 [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
z31s1g28f0a922015-11-07 18:50:22 +0100179 <style name="slider">
180 <placement x="%center_x%" y="%slider_y%"/>
181 <font resource="font_l" color="%text_color%"/>
182 <resource base="slider" used="slider_used" touch="slider_touch"/>
183 </style>
184
185 <style name="slidervalue">
186 <resource handle="handle"/>
187 <font resource="font_m" color="%text_color%"/>
188 <colors line="%fileselector_linecolor%"/>
189 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
190 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100191
192 <style name="patternpassword">
193 <size name="tw_gui_pattern_grid_size" default="3"/>
194 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100195 </styles>
196
197 <pages>
198 <page name="main">
199 <action>
200 <actions>
201 <action function="set">tw_clear_destination=main2</action>
202 <action function="page">clear_vars</action>
203 </actions>
204 </action>
205 </page>
206
207 <page name="main2">
208 <template name="page"/>
209
210 <button style="main_button">
211 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500212 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100213 <action function="page">install_type</action>
214 </button>
215
216 <button style="main_button">
217 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500218 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100219 <action function="page">wipe_type1</action>
220 </button>
221
222 <button style="main_button">
223 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500224 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100225 <actions>
226 <action function="set">tw_back=main</action>
bigbiffce8f83c2015-12-12 18:30:21 -0500227 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +0100228 </actions>
229 </button>
230
231 <button style="main_button">
232 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">restore</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">reboot</action>
241 </button>
242
243 <button>
244 <placement x="%btn4_col4_x%" y="%row11_y%"/>
245 <highlight color="%highlight_color%"/>
246 <image resource="q_btn_arrow_right"/>
247 <action function="page">main3</action>
248 </button>
249 </page>
250
Matt Mower32676622017-01-18 18:56:13 -0600251 <page name="copylog">
252 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400253
Matt Mower32676622017-01-18 18:56:13 -0600254 <checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400255 <placement x="%indent%" y="%row1_y%"/>
Matt Mower32676622017-01-18 18:56:13 -0600256 <text>{@include_kernel_log=Include Kernel Log}</text>
257 <data variable="tw_include_kernel_log" value="1"/>
258 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400259
260 <slider>
261 <text>{@swipe_confirm= Confirm}</text>
262 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600263 <action function="set">tw_back=main3</action>
264 <action function="set">tw_action=copylog</action>
265 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
266 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400267 <action function="page">action_page</action>
268 </actions>
269 </slider>
270
271 <action>
272 <touch key="back"/>
273 <action function="page">main2</action>
274 </action>
275
276 <action>
277 <touch key="home"/>
278 <action function="page">main</action>
279 </action>
Matt Mower32676622017-01-18 18:56:13 -0600280 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400281
z31s1g28f0a922015-11-07 18:50:22 +0100282 <page name="main3">
283 <template name="page"/>
284
285 <button style="main_button">
286 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500287 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100288 <action function="page">mount</action>
289 </button>
290
291 <button style="main_button">
292 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500293 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100294 <action function="page">settings</action>
295 </button>
296
297 <button style="main_button">
298 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500299 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100300 <action function="page">filemanagerlist</action>
301 </button>
302
303 <button style="main_button">
304 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500305 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400306 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100307 </button>
308
309 <button style="main_button">
310 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500311 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100312 <action function="page">advanced</action>
313 </button>
314
315 <button>
316 <placement x="%col1_x_left%" y="%row11_y%"/>
317 <highlight color="%highlight_color%"/>
318 <image resource="q_btn_arrow_left"/>
319 <action function="page">main2</action>
320 </button>
321
322 <action>
323 <touch key="back"/>
324 <action function="page">main2</action>
325 </action>
326
327 <action>
328 <touch key="home"/>
329 <action function="page">main</action>
330 </action>
331 </page>
332
333 <page name="install_type">
334 <template name="page"/>
335
336 <template name="statusbar"/>
337
338 <text style="text_m">
339 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500340 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100341 </text>
342
343 <button style="main_button_full_width">
344 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500345 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100346 <actions>
347 <action function="queueclear"/>
348 <action function="set">tw_selectimage=0</action>
349 <action function="page">install</action>
350 </actions>
351 </button>
352
353 <button style="main_button_full_width">
354 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500355 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100356 <actions>
357 <action function="queueclear"/>
358 <action function="set">tw_selectimage=1</action>
359 <action function="page">install</action>
360 </actions>
361 </button>
362
363 <button style="main_button_full_width">
364 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500365 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100366 <action function="page">sideload</action>
367 </button>
368
369 <action>
370 <touch key="home"/>
371 <action function="page">main</action>
372 </action>
373
374 <action>
375 <touch key="back"/>
376 <action function="page">main</action>
377 </action>
378 </page>
379
380 <page name="install">
381 <template name="page"/>
382
383 <template name="statusbar"/>
384
385 <text style="text_m">
386 <condition var1="tw_selectimage" var2="0"/>
387 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500388 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100389 </text>
390
391 <text style="text_m">
392 <condition var1="tw_selectimage" var2="1"/>
393 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500394 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100395 </text>
396
397 <fileselector>
398 <condition var1="tw_selectimage" var2="0"/>
399 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
400 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200401 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-01-23 18:52:28 +0100402 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100403 <path name="tw_zip_location" default="/sdcard"/>
404 <data name="tw_filename"/>
405 <selection name="tw_file"/>
406 </fileselector>
407
408 <fileselector>
409 <condition var1="tw_selectimage" var2="1"/>
410 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
411 <text>%tw_zip_location%</text>
412 <filter extn=".img" folders="1" files="1"/>
413 <path name="tw_zip_location" default="/sdcard"/>
414 <data name="tw_filename"/>
415 <selection name="tw_file"/>
416 </fileselector>
417
418 <button>
419 <placement x="%btn4_col4_x%" y="%row11_y%"/>
420 <highlight color="%highlight_color%"/>
421 <image resource="q_btn_storage"/>
422 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500423 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100424 <action function="set">tw_back=install</action>
425 <action function="page">select_storage</action>
426 </actions>
427 </button>
428
429 <action>
430 <conditions>
431 <condition var1="tw_selectimage" var2="0"/>
432 <condition var1="tw_filename" op="modified"/>
433 </conditions>
434 <actions>
435 <action function="queuezip"/>
436 <action function="page">flash_queue</action>
437 </actions>
438 </action>
439
440 <action>
441 <conditions>
442 <condition var1="tw_selectimage" var2="1"/>
443 <condition var1="tw_filename" op="modified"/>
444 </conditions>
445 <action function="page">flashimage_type</action>
446 </action>
447
448 <action>
449 <touch key="back"/>
450 <action function="page">install_type</action>
451 </action>
452
453 <action>
454 <touch key="home"/>
455 <action function="page">main</action>
456 </action>
457 </page>
458
459 <page name="flash_queue">
460 <template name="page"/>
461
462 <template name="statusbar"/>
463
464 <text style="text_m">
465 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500466 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100467 </text>
468
469 <text style="text_m_accent">
470 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500471 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100472 </text>
473
474 <text style="text_m">
475 <placement x="%indent%" y="%row2_y%"/>
476 <text>%tw_file%</text>
477 </text>
478
479 <text style="text_m_accent">
480 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500481 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100482 </text>
483
484 <text style="text_m">
485 <placement x="%indent%" y="%row5_y%"/>
486 <text>%tw_zip_location%</text>
487 </text>
488
489 <text style="text_m">
490 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500491 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100492 </text>
493
494 <button>
495 <placement x="%col1_x_left%" y="%row11_y%"/>
496 <highlight color="%highlight_color%"/>
497 <image resource="q_btn_arrow_left"/>
498 <actions>
499 <action function="queueclear"/>
500 <action function="page">install</action>
501 </actions>
502 </button>
503
504 <button>
505 <placement x="%btn4_col2_x%" y="%row11_y%"/>
506 <highlight color="%highlight_color%"/>
507 <image resource="q_btn_addzip"/>
508 <action function="page">install</action>
509 </button>
510
511 <button>
512 <placement x="%btn4_col3_x%" y="%row11_y%"/>
513 <highlight color="%highlight_color%"/>
514 <image resource="q_btn_accept"/>
515 <action function="page">flash_confirm</action>
516 </button>
517
518 <button>
519 <placement x="%btn4_col4_x%" y="%row11_y%"/>
520 <highlight color="%highlight_color%"/>
521 <image resource="q_btn_arrow_right"/>
522 <action function="page">flash_options</action>
523 </button>
524
525 <action>
526 <touch key="back"/>
527 <actions>
528 <action function="queueclear"/>
529 <action function="page">install</action>
530 </actions>
531 </action>
532
533 <action>
534 <touch key="home"/>
535 <action function="page">main</action>
536 </action>
537 </page>
538
539 <page name="flash_options">
540 <template name="page"/>
541
542 <template name="statusbar"/>
543
544 <text style="text_m">
545 <condition var1="tw_selectimage" var2="0"/>
546 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500547 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100548 </text>
549
550 <checkbox>
551 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500552 <text>{@zip_sig_chk=Zip file signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100553 <data variable="tw_signed_zip_verify"/>
554 </checkbox>
555
556 <checkbox>
557 <condition var1="tw_has_injecttwrp" var2="1"/>
558 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500559 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100560 <data variable="tw_inject_after_zip"/>
561 </checkbox>
562
bigbiffa869fc72016-03-01 19:40:36 -0500563 <checkbox>
Matt Mower32676622017-01-18 18:56:13 -0600564 <placement x="%indent%" y="%row4_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500565 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower32676622017-01-18 18:56:13 -0600566 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500567 </checkbox>
568
z31s1g28f0a922015-11-07 18:50:22 +0100569 <button>
570 <placement x="%col1_x_left%" y="%row11_y%"/>
571 <highlight color="%highlight_color%"/>
572 <image resource="q_btn_arrow_left"/>
573 <action function="page">flash_queue</action>
574 </button>
575
576 <button>
577 <placement x="%btn4_col4_x%" y="%row11_y%"/>
578 <highlight color="%highlight_color%"/>
579 <image resource="q_btn_accept_transp"/>
580 <action function="page">flash_confirm</action>
581 </button>
582
583 <action>
584 <touch key="back"/>
585 <action function="page">flash_queue</action>
586 </action>
587
588 <action>
589 <touch key="home"/>
590 <action function="page">main</action>
591 </action>
592 </page>
593
594 <page name="flash_confirm">
595 <template name="page"/>
596
597 <template name="statusbar"/>
598
599 <text style="text_m">
600 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500601 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100602 </text>
603
604 <text style="text_m_accent">
605 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500606 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100607 </text>
608
609 <text style="text_m">
610 <placement x="%indent%" y="%row2_y%"/>
611 <text>%tw_file%</text>
612 </text>
613
614 <button>
615 <fill color="%transparent%"/>
616 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
617 <action function="page">flash_queue</action>
618 </button>
619
620 <text style="text_m_accent">
621 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500622 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100623 </text>
624
625 <text style="text_m">
626 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500627 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100628 </text>
629
630 <button>
631 <fill color="%transparent%"/>
632 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
633 <action function="page">flash_queue</action>
634 </button>
635
636 <listbox style="listbox_options">
637 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500638 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100639 <data variable="tw_signed_zip_verify"/>
640 </listitem>
641 </listbox>
642
643 <text style="text_m_accent">
644 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500645 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100646 </text>
647
648 <text style="text_m">
649 <condition var1="tw_has_injecttwrp" var2="1"/>
650 <condition var1="tw_inject_after_zip" var2="1"/>
651 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500652 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100653 </text>
654
655 <button>
656 <fill color="%transparent%"/>
657 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
658 <action function="page">flash_options</action>
659 </button>
660
661 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500662 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100663 <action function="flash">flash_zip</action>
664 </slider>
665
666 <action>
667 <touch key="back"/>
668 <actions>
669 <action function="cancelzip"/>
670 <action function="page">install</action>
671 </actions>
672 </action>
673
674 <action>
675 <touch key="home"/>
676 <action function="page">main</action>
677 </action>
678 </page>
679
680 <page name="flash_zip">
681 <template name="page"/>
682
683 <template name="statusbar"/>
684
685 <text style="text_m">
686 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600687 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100688 </text>
689
690 <template name="console"/>
691
692 <template name="progress_bar"/>
693
694 <action>
695 <condition var1="tw_operation_state" var2="1"/>
696 <action function="page">flash_done</action>
697 </action>
698 </page>
699
700 <page name="flash_done">
701 <template name="page"/>
702
703 <template name="statusbar"/>
704
705 <text style="text_m_fail">
706 <condition var1="tw_operation_status" op="!=" var2="0"/>
707 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500708 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100709 </text>
710
711 <text style="text_m">
712 <condition var1="tw_operation_status" var2="0"/>
713 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500714 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100715 </text>
716
717 <template name="console"/>
718
719 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500720 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100721 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500722 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100723 <actions>
724 <action function="set">tw_back=flash_done</action>
725 <action function="set">tw_action=wipe</action>
726 <action function="set">tw_action_param=/cache</action>
727 <action function="set">tw_has_action2=1</action>
728 <action function="set">tw_action2=wipe</action>
729 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500730 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
731 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
732 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500733 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
734 <action function="page">confirm_action</action>
735 </actions>
736 </button>
737
738 <button style="main_button_half_height">
739 <condition var1="tw_ab_device" var2="1"/>
740 <placement x="%indent%" y="%row21a_y%"/>
741 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
742 <actions>
743 <action function="set">tw_back=flash_done</action>
744 <action function="set">tw_action=wipe</action>
745 <action function="set">tw_action_param=dalvik</action>
746 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
747 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
748 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
749 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100750 <action function="page">confirm_action</action>
751 </actions>
752 </button>
753
754 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100755 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100756 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500757 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100758 <actions>
759 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500760 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100761 </actions>
762 </button>
763
Chaosmaster7b66bf52020-02-07 20:33:43 +0100764 <button style="main_button_half_height">
765 <condition var1="tw_ab_device" var2="1"/>
766 <placement x="%col1_x_right%" y="%row13_y%"/>
767 <text>{@reboot_btn=Reboot}</text>
768 <actions>
769 <action function="set">tw_back=main2</action>
770 <action function="page">reboot</action>
771 </actions>
772 </button>
773
z31s1g28f0a922015-11-07 18:50:22 +0100774 <action>
775 <touch key="back"/>
776 <actions>
777 <action function="set">tw_clear_destination=install_type</action>
778 <action function="page">clear_vars</action>
779 </actions>
780 </action>
781
782 <action>
783 <touch key="home"/>
784 <actions>
785 <action function="set">tw_clear_destination=main2</action>
786 <action function="page">clear_vars</action>
787 </actions>
788 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500789
790 <action>
791 <conditions>
792 <condition var1="tw_install_reboot" var2="1"/>
793 <condition var1="tw_operation_status" var2="0"/>
794 <condition var1="tw_reboot_system" var2="1"/>
795 </conditions>
796 <actions>
797 <action function="set">tw_sleep=%tw_sleep_total%</action>
798 <action function="page">flash_sleep_and_reboot</action>
799 </actions>
800 </action>
801 </page>
802
803 <page name="flash_sleep_and_reboot">
804 <template name="page"/>
805
806 <template name="statusbar"/>
807
808 <text style="text_m">
809 <placement x="%col1_x_left%" y="%row1_header_y%"/>
810 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
811 </text>
812
813 <template name="console"/>
814
815 <template name="progress_bar"/>
816
817 <button style="main_button_half_height">
818 <condition var1="tw_sleep" op="&gt;" var2="0"/>
819 <placement x="%col1_x_right%" y="%row13_y%"/>
820 <text>{@cancel_btn=Cancel}</text>
821 <actions>
822 <action function="set">tw_install_reboot=0</action>
823 <action function="page">flash_done</action>
824 </actions>
825 </button>
826
827 <action>
828 <conditions>
829 <condition var1="tw_sleep" var2="tw_sleep_total"/>
830 <condition var1="tw_install_reboot" var2="1"/>
831 </conditions>
832 <action function="sleepcounter">%tw_sleep_total%</action>
833 </action>
834
835 <action>
836 <conditions>
837 <condition var1="tw_sleep" var2="0"/>
838 <condition var1="tw_install_reboot" var2="1"/>
839 </conditions>
840 <actions>
841 <action function="sleep">50000</action>
842 <action function="set">tw_back=main2</action>
843 <action function="page">reboot_system_routine</action>
844 </actions>
845 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100846 </page>
847
848 <page name="flashimage_type">
849 <template name="page"/>
850
851 <template name="statusbar"/>
852
853 <text style="text_m">
854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600855 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100856 </text>
857
858 <partitionlist style="partitionlist_headerless_rb">
859 <data name="tw_flash_partition"/>
860 <listtype name="flashimg"/>
861 </partitionlist>
862
863 <button>
864 <placement x="%col1_x_left%" y="%row11_y%"/>
865 <highlight color="%highlight_color%"/>
866 <image resource="q_btn_arrow_left"/>
867 <action function="page">install</action>
868 </button>
869
870 <button>
871 <placement x="%btn4_col4_x%" y="%row11_y%"/>
872 <highlight color="%highlight_color%"/>
873 <image resource="q_btn_accept_transp"/>
874 <action function="page">flashimage_confirm</action>
875 </button>
876
877 <action>
878 <touch key="back"/>
879 <action function="page">install</action>
880 </action>
881
882 <action>
883 <touch key="home"/>
884 <action function="page">main</action>
885 </action>
886 </page>
887
888 <page name="flashimage_confirm">
889 <template name="page"/>
890
891 <template name="statusbar"/>
892
893 <text style="text_m">
894 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500895 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100896 </text>
897
898 <text style="text_m_accent">
899 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500900 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100901 </text>
902
903 <text style="text_m">
904 <placement x="%indent%" y="%row2_y%"/>
905 <text>%tw_file%</text>
906 </text>
907
908 <button>
909 <fill color="%transparent%"/>
910 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
911 <action function="page">install</action>
912 </button>
913
914 <text style="text_m_accent">
915 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500916 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100917 </text>
918
919 <text style="text_m">
920 <placement x="%indent%" y="%row5_y%"/>
921 <text>%tw_flash_partition%</text>
922 </text>
923
924 <button>
925 <fill color="%transparent%"/>
926 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
927 <action function="page">flashimage_type</action>
928 </button>
929
930 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500931 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100932 <actions>
933 <action function="set">tw_back=flashimage_confirm</action>
934 <action function="set">tw_action=flashimage</action>
935 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500936 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100937 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500938 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100939 <action function="page">action_page</action>
940 </actions>
941 <action function="flashimage"/>
942 </slider>
943
944 <action>
945 <touch key="back"/>
946 <actions>
947 <action function="set">tw_clear_destination=install</action>
948 <action function="page">clear_vars</action>
949 </actions>
950 </action>
951
952 <action>
953 <touch key="home"/>
954 <actions>
955 <action function="set">tw_clear_destination=main2</action>
956 <action function="page">clear_vars</action>
957 </actions>
958 </action>
959 </page>
960
961 <page name="clear_vars">
962 <action>
963 <action function="set">tw_operation_state=0</action>
964 <action function="set">tw_text1=</action>
965 <action function="set">tw_text2=</action>
966 <action function="set">tw_text3=</action>
967 <action function="set">tw_text4=</action>
968 <action function="set">tw_action_text1=</action>
969 <action function="set">tw_action_text2=</action>
970 <action function="set">tw_action_param=</action>
971 <action function="set">tw_has_action2=0</action>
972 <action function="set">tw_action2=</action>
973 <action function="set">tw_action2_param=</action>
974 <action function="set">tw_has_cancel=0</action>
975 <action function="set">tw_cancel_action=</action>
976 <action function="set">tw_cancel_param=</action>
977 <action function="set">tw_show_exclamation=0</action>
978 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400979 <action function="set">tw_crypto_user_id=</action>
980 <action function="set">tw_multiuser_warning_accepted=</action>
981 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100982 <action function="page">%tw_clear_destination%</action>
983 </action>
984 </page>
985
Matt Mower908dd252016-05-25 02:26:50 -0500986 <page name="reboot_system_routine">
987 <action>
988 <action function="set">tw_back=main2</action>
989 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500990 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500991 <action function="set">tw_has_action2=0</action>
992 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
993 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
994 <action function="set">tw_text3=</action>
995 <action function="set">tw_text4=</action>
996 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
997 <action function="set">tw_action_text2=</action>
998 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
999 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
1000 <action function="page">rebootcheck</action>
1001 </action>
1002 </page>
1003
z31s1g28f0a922015-11-07 18:50:22 +01001004 <page name="confirm_action">
1005 <template name="page"/>
1006
1007 <template name="statusbar"/>
1008
1009 <text style="text_m">
1010 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001011 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001012 </text>
1013
1014 <text style="text_m_accent">
1015 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1016 <text>%tw_text1%</text>
1017 </text>
1018
1019 <text style="text_m_accent">
1020 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1021 <text>%tw_text2%</text>
1022 </text>
1023
1024 <text style="text_m">
1025 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1026 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1027 <text>%tw_text3%</text>
1028 </text>
1029
1030 <text style="text_m">
1031 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1032 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1033 <text>%tw_text4%</text>
1034 </text>
1035
1036 <text style="text_m_fail">
1037 <condition var1="tw_action" var2="changefilesystem"/>
1038 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1039 <text>%tw_text3%</text>
1040 </text>
1041
1042 <text style="text_m_fail">
1043 <condition var1="tw_action" var2="changefilesystem"/>
1044 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1045 <text>%tw_text4%</text>
1046 </text>
1047
1048 <text style="text_m">
1049 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001050 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001051 </text>
1052
1053 <slider>
1054 <text>%tw_slider_text%</text>
1055 <action function="page">action_page</action>
1056 </slider>
1057
1058 <action>
1059 <touch key="back"/>
1060 <actions>
1061 <action function="set">tw_clear_destination=%tw_back%</action>
1062 <action function="page">clear_vars</action>
1063 </actions>
1064 </action>
1065
1066 <action>
1067 <touch key="home"/>
1068 <action function="page">main</action>
1069 </action>
1070 </page>
1071
1072 <page name="action_page">
1073 <template name="page"/>
1074
1075 <template name="statusbar"/>
1076
1077 <text style="text_m">
1078 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1079 <text>%tw_action_text1% %tw_action_text2%</text>
1080 </text>
1081
1082 <template name="console"/>
1083
1084 <template name="progress_bar"/>
1085
1086 <button style="main_button_half_height">
1087 <condition var1="tw_has_cancel" var2="1"/>
1088 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001089 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001090 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1091 </button>
1092
1093 <action>
1094 <condition var1="tw_operation_state" var2="1"/>
1095 <actions>
1096 <action function="page">action_complete</action>
1097 </actions>
1098 </action>
1099
1100 <action>
1101 <condition var1="tw_has_action2" var2="0"/>
1102 <actions>
1103 <action function="%tw_action%">%tw_action_param%</action>
1104 </actions>
1105 </action>
1106
1107 <action>
1108 <condition var1="tw_has_action2" var2="1"/>
1109 <actions>
1110 <action function="%tw_action%">%tw_action_param%</action>
1111 <action function="%tw_action2%">%tw_action2_param%</action>
1112 </actions>
1113 </action>
1114 </page>
1115
1116 <page name="singleaction_page">
1117 <template name="page"/>
1118
1119 <template name="statusbar"/>
1120
1121 <text style="text_m">
1122 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1123 <text>%tw_action_text1% %tw_action_text2%</text>
1124 </text>
1125
1126 <template name="console"/>
1127
1128 <template name="progress_bar"/>
1129
1130 <action>
1131 <condition var1="tw_operation_state" var2="1"/>
1132 <actions>
1133 <action function="set">tw_page_done=1</action>
1134 </actions>
1135 </action>
1136
1137 <action>
1138 <condition var1="tw_has_action2" var2="0"/>
1139 <actions>
1140 <action function="%tw_action%">%tw_action_param%</action>
1141 </actions>
1142 </action>
1143
1144 <action>
1145 <condition var1="tw_has_action2" var2="1"/>
1146 <actions>
1147 <action function="%tw_action%">%tw_action_param%</action>
1148 <action function="%tw_action2%">%tw_action2_param%</action>
1149 </actions>
1150 </action>
1151 </page>
1152
1153 <page name="action_complete">
1154 <template name="page"/>
1155
1156 <template name="statusbar"/>
1157
1158 <text style="text_m_fail">
1159 <condition var1="tw_operation_status" op="!=" var2="0"/>
1160 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001161 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001162 </text>
1163
1164 <text style="text_m">
1165 <condition var1="tw_operation_status" var2="0"/>
1166 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001167 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001168 </text>
1169
1170 <template name="console"/>
1171
1172 <button style="main_button_half_height">
1173 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001174 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001175 <actions>
1176 <action function="set">tw_clear_destination=%tw_back%</action>
1177 <action function="page">clear_vars</action>
1178 </actions>
1179 </button>
1180
1181 <button style="main_button_half_height">
1182 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001183 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001184 <actions>
1185 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001186 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001187 </actions>
1188 </button>
1189
1190 <action>
1191 <touch key="home"/>
1192 <actions>
1193 <action function="set">tw_clear_destination=main2</action>
1194 <action function="page">clear_vars</action>
1195 </actions>
1196 </action>
1197
1198 <action>
1199 <touch key="back"/>
1200 <actions>
1201 <action function="set">tw_clear_destination=%tw_back%</action>
1202 <action function="page">clear_vars</action>
1203 </actions>
1204 </action>
1205 </page>
1206
1207 <page name="filecheck">
1208 <action>
1209 <action function="fileexists">%tw_filecheck%</action>
1210 </action>
1211
1212 <action>
1213 <conditions>
1214 <condition var1="tw_operation_state" var2="1"/>
1215 <condition var1="tw_operation_status" var2="0"/>
1216 </conditions>
1217 <actions>
1218 <action function="set">tw_fileexists=1</action>
1219 <action function="page">%tw_existpage%</action>
1220 </actions>
1221 </action>
1222
1223 <action>
1224 <conditions>
1225 <condition var1="tw_operation_state" var2="1"/>
1226 <condition var1="tw_operation_status" var2="1"/>
1227 </conditions>
1228 <actions>
1229 <action function="set">tw_fileexists=0</action>
1230 <action function="page">%tw_notexistpage%</action>
1231 </actions>
1232 </action>
1233 </page>
1234
1235 <page name="rebootcheck">
1236 <action>
1237 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001238 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001239 </action>
1240
1241 <action>
1242 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1243 <action function="page">confirm_action</action>
1244 </action>
1245 </page>
1246
1247 <page name="wipe_type1">
1248 <template name="page"/>
1249
1250 <template name="statusbar"/>
1251
1252 <text style="text_m">
1253 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001254 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001255 </text>
1256
1257 <button style="main_button_full_width">
1258 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001259 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001260 <action function="page">wipe</action>
1261 </button>
1262
1263 <button style="main_button_full_width">
1264 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001265 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001266 <actions>
1267 <action function="set">partitionlisterror=0</action>
1268 <action function="page">advancedwipe</action>
1269 </actions>
1270 </button>
1271
1272 <button>
1273 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1274 <highlight color="%highlight_color%"/>
1275 <image resource="q_btn_arrow_right"/>
1276 <action function="page">wipe_type2</action>
1277 </button>
1278
1279 <action>
1280 <touch key="home"/>
1281 <action function="page">main</action>
1282 </action>
1283
1284 <action>
1285 <touch key="back"/>
1286 <action function="page">main</action>
1287 </action>
1288 </page>
1289
1290 <page name="wipe_type2">
1291 <template name="page"/>
1292
1293 <template name="statusbar"/>
1294
1295 <text style="text_m">
1296 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001297 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001298 </text>
1299
1300 <button style="main_button_full_width">
1301 <condition var1="tw_has_data_media" var2="1"/>
1302 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001303 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001304 <action function="page">formatdata</action>
1305 </button>
1306
1307 <button style="main_button_full_width">
1308 <conditions>
1309 <condition var1="tw_is_encrypted" var2="1"/>
1310 <condition var1="tw_has_data_media" var2="0"/>
1311 </conditions>
1312 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001313 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001314 <actions>
1315 <action function="set">tw_back=wipe</action>
1316 <action function="set">tw_action=wipe</action>
1317 <action function="set">tw_action_param=DATAMEDIA</action>
1318 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001319 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001320 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1322 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1323 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001324 <action function="page">confirm_action</action>
1325 </actions>
1326 </button>
1327
1328 <button style="main_button_full_width">
1329 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001330 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001331 <action function="set">partitionlisterror=0</action>
1332 <action function="page">partitionoptions_select</action>
1333 </actions>
1334 </button>
1335
1336 <button>
1337 <placement x="%col1_x_left%" y="%row11_y%"/>
1338 <highlight color="%highlight_color%"/>
1339 <image resource="q_btn_arrow_left"/>
1340 <action function="page">wipe_type1</action>
1341 </button>
1342
1343 <action>
1344 <touch key="home"/>
1345 <action function="page">main</action>
1346 </action>
1347
1348 <action>
1349 <touch key="back"/>
1350 <action function="page">main</action>
1351 </action>
1352 </page>
1353
1354 <page name="wipe">
1355 <template name="page"/>
1356
1357 <template name="statusbar"/>
1358
1359 <text style="text_m">
1360 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001362 </text>
1363
1364 <text style="text_m_accent">
1365 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001367 </text>
1368
1369 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001370 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001371 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1372 </text>
1373
1374 <text style="text_m_accent">
1375 <condition var1="tw_has_data_media" var2="1"/>
1376 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001377 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001378 </text>
1379
1380 <text style="text_m_accent">
1381 <conditions>
1382 <condition var1="tw_has_android_secure" var2="1"/>
1383 <condition var1="fileexists" var2="/and-sec"/>
1384 </conditions>
1385 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001386 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001387 </text>
1388
1389 <text style="text_m_accent">
1390 <condition var1="tw_has_sdext_partition" var2="1"/>
1391 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001392 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001393 </text>
1394
1395 <text style="text_m">
1396 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001397 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001398 </text>
1399
1400 <text style="text_m">
1401 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001402 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001403 </text>
1404
1405 <text style="text_m">
1406 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001407 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001408 </text>
1409
1410 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001411 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001412 <actions>
1413 <action function="set">tw_back=wipe</action>
1414 <action function="set">tw_action=wipe</action>
1415 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001416 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1417 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001418 <action function="page">action_page</action>
1419 </actions>
1420 </slider>
1421
1422 <action>
1423 <touch key="back"/>
1424 <action function="page">wipe_type1</action>
1425 </action>
1426
1427 <action>
1428 <touch key="home"/>
1429 <action function="page">main</action>
1430 </action>
1431 </page>
1432
1433 <page name="advancedwipe">
1434 <action>
1435 <action function="set">tw_wipe_list=</action>
1436 </action>
1437
1438 <template name="page"/>
1439
1440 <template name="statusbar"/>
1441
1442 <text style="text_m">
1443 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001444 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001445 </text>
1446
1447 <partitionlist style="partitionlist_headerless_cb">
1448 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1449 <data name="tw_wipe_list"/>
1450 <listtype name="wipe"/>
1451 </partitionlist>
1452
1453 <fill color="%accent_color%">
1454 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1455 </fill>
1456
1457 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001458 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001459 <actions>
1460 <action function="set">tw_back=advancedwipe</action>
1461 <action function="set">tw_action=wipe</action>
1462 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001463 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1464 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1465 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001466 <action function="page">action_page</action>
1467 </actions>
1468 </slider>
1469
1470 <action>
1471 <touch key="home"/>
1472 <action function="page">main</action>
1473 </action>
1474
1475 <action>
1476 <touch key="back"/>
1477 <action function="page">wipe_type1</action>
1478 </action>
1479 </page>
1480
1481 <page name="formatdata">
1482 <template name="page"/>
1483
1484 <template name="statusbar"/>
1485
1486 <text style="text_m">
1487 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001488 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001489 </text>
1490
1491 <text style="text_m_fail">
1492 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001493 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001494 </text>
1495
1496 <text style="text_m_fail">
1497 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001498 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001499 </text>
1500
1501 <text style="text_m">
1502 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001503 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001504 </text>
1505
1506 <input>
1507 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1508 <text>%tw_confirm_formatdata%</text>
1509 <data name="tw_confirm_formatdata"/>
1510 <restrict minlen="3" maxlen="3" allow="yes"/>
1511 <action function="page">formatdata_confirm</action>
1512 </input>
1513
1514 <fill color="%accent_color%">
1515 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1516 </fill>
1517
1518 <template name="keyboardtemplate"/>
1519
1520 <action>
1521 <touch key="home"/>
1522 <action function="page">main</action>
1523 </action>
1524
1525 <action>
1526 <touch key="back"/>
1527 <action function="page">wipe_type2</action>
1528 </action>
1529 </page>
1530
1531 <page name="formatdata_confirm">
1532 <action>
1533 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1534 <actions>
1535 <action function="set">tw_back=formatdata</action>
1536 <action function="set">tw_action=wipe</action>
1537 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001538 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1539 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001540 <action function="page">action_page</action>
1541 </actions>
1542 </action>
1543
1544 <action>
1545 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1546 <action function="page">formatdata</action>
1547 </action>
1548 </page>
1549
1550 <page name="checkpartitionlist">
1551 <action>
1552 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1553 <actions>
1554 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001555 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001556 <action function="page">partitionoptions</action>
1557 </actions>
1558 </action>
1559
1560 <action>
1561 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1562 <actions>
1563 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001564 <action function="page">partitionoptions_select</action>
1565 </actions>
1566 </action>
1567 </page>
1568
1569 <page name="partitionoptions_select">
1570 <action>
1571 <action function="set">tw_wipe_list=</action>
1572 </action>
1573
1574 <template name="page"/>
1575
1576 <template name="statusbar"/>
1577
1578 <text style="text_m">
1579 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001580 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001581 </text>
1582
1583 <partitionlist style="partitionlist_headerless_cb">
1584 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1585 <data name="tw_wipe_list"/>
1586 <listtype name="wipe"/>
1587 </partitionlist>
1588
1589 <fill color="%accent_color%">
1590 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1591 </fill>
1592
z31s1g28f0a922015-11-07 18:50:22 +01001593 <text style="text_m_fail">
1594 <condition var1="partitionlisterror" var2="1"/>
1595 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001596 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001597 </text>
1598
1599 <button>
1600 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1601 <highlight color="%highlight_color%"/>
1602 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001603 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001604 <action function="page">checkpartitionlist</action>
1605 </actions>
1606 </button>
1607
1608 <action>
1609 <touch key="home"/>
1610 <action function="page">main</action>
1611 </action>
1612
1613 <action>
1614 <touch key="back"/>
1615 <action function="page">wipe_type2</action>
1616 </action>
1617 </page>
1618
1619 <page name="partitionoptions">
1620
1621 <template name="page"/>
1622
1623 <template name="statusbar"/>
1624
1625 <text style="text_m">
1626 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001627 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001628 </text>
1629
1630 <text style="text_m_accent">
1631 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001632 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001633 </text>
1634
1635 <text style="text_m_accent">
1636 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001637 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001638 </text>
1639
1640 <text style="text_m">
1641 <condition var1="tw_partition_is_present" var2="1"/>
1642 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001643 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001644 </text>
1645
1646 <text style="text_m">
1647 <condition var1="tw_partition_is_present" var2="0"/>
1648 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001649 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001650 </text>
1651
1652 <text style="text_m">
1653 <condition var1="tw_partition_removable" var2="1"/>
1654 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001655 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001656 </text>
1657
1658 <text style="text_m">
1659 <condition var1="tw_partition_removable" var2="0"/>
1660 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001661 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001662 </text>
1663
1664 <text style="text_m">
1665 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001666 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001667 </text>
1668
1669 <text style="text_m">
1670 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001671 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001672 </text>
1673
1674 <text style="text_m">
1675 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001676 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001677 </text>
1678
1679 <text style="text_m">
1680 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 </text>
1683
1684 <button style="main_button">
1685 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1686 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001687 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001688 <actions>
1689 <action function="set">tw_back=partitionoptions</action>
1690 <action function="set">tw_action=resize</action>
1691 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1692 <action function="set">tw_has_action2=1</action>
1693 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001694 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001695 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001696 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001697 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1698 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1699 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001700 <action function="page">confirm_action</action>
1701 </actions>
1702 </button>
1703
1704 <button style="main_button">
1705 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1706 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001707 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001708 <actions>
1709 <action function="set">tw_back=partitionoptions</action>
1710 <action function="set">tw_action=repair</action>
1711 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1712 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001713 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001714 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001715 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1716 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1717 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001718 <action function="page">confirm_action</action>
1719 </actions>
1720 </button>
1721
1722 <button>
1723 <placement x="%col1_x_left%" y="%row11_y%"/>
1724 <highlight color="%highlight_color%"/>
1725 <image resource="q_btn_arrow_left"/>
1726 <action function="page">partitionoptions_select</action>
1727 </button>
1728
1729 <button style="main_button">
1730 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001731 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001732 <action function="page">selectfilesystem</action>
1733 </button>
1734
1735 <action>
1736 <touch key="home"/>
1737 <action function="page">main</action>
1738 </action>
1739
1740 <action>
1741 <touch key="back"/>
1742 <action function="page">partitionoptions_select</action>
1743 </action>
1744 </page>
1745
1746 <page name="refreshfilesystem">
1747 <action>
1748 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1749 <actions>
1750 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001751 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001752 <action function="page">selectfilesystem</action>
1753 </actions>
1754 </action>
1755
1756 <action>
1757 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1758 <actions>
1759 <action function="set">partitionlisterror=1</action>
1760 <action function="set">tw_wipe_list=</action>
1761 <action function="page">advancedwipe</action>
1762 </actions>
1763 </action>
1764 </page>
1765
1766 <page name="selectfilesystem">
1767 <template name="page"/>
1768
1769 <template name="statusbar"/>
1770
1771 <text style="text_m">
1772 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001773 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001774 </text>
1775
1776 <button style="main_button">
1777 <condition var1="tw_partition_ext" op="=" var2="1"/>
1778 <placement x="%col1_x_left%" y="%row1_y%"/>
1779 <text>EXT2</text>
1780 <actions>
1781 <action function="set">tw_back=refreshfilesystem</action>
1782 <action function="set">tw_action=changefilesystem</action>
1783 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1784 <action function="set">tw_action_new_file_system=ext2</action>
1785 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001786 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1787 <action function="set">tw_text2=EXT2</action>
1788 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1789 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1790 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1791 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1792 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001793 <action function="page">confirm_action</action>
1794 </actions>
1795 </button>
1796
1797 <button style="main_button">
1798 <condition var1="tw_partition_ext" op="=" var2="1"/>
1799 <placement x="%col1_x_left%" y="%row6_y%"/>
1800 <text>EXT3</text>
1801 <actions>
1802 <action function="set">tw_back=refreshfilesystem</action>
1803 <action function="set">tw_action=changefilesystem</action>
1804 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1805 <action function="set">tw_action_new_file_system=ext3</action>
1806 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001807 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1808 <action function="set">tw_text2=EXT3</action>
1809 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1810 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1811 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1812 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1813 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001814 <action function="page">confirm_action</action>
1815 </actions>
1816 </button>
1817
1818 <button style="main_button">
1819 <condition var1="tw_partition_ext" op="=" var2="1"/>
1820 <placement x="%col1_x_left%" y="%row11_y%"/>
1821 <text>EXT4</text>
1822 <actions>
1823 <action function="set">tw_back=refreshfilesystem</action>
1824 <action function="set">tw_action=changefilesystem</action>
1825 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1826 <action function="set">tw_action_new_file_system=ext4</action>
1827 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001828 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1829 <action function="set">tw_text2=EXT4</action>
1830 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1831 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1832 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1833 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1834 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001835 <action function="page">confirm_action</action>
1836 </actions>
1837 </button>
1838
1839 <button style="main_button">
1840 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1841 <placement x="%col1_x_right%" y="%row1_y%"/>
1842 <text>FAT</text>
1843 <actions>
1844 <action function="set">tw_back=refreshfilesystem</action>
1845 <action function="set">tw_action=changefilesystem</action>
1846 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1847 <action function="set">tw_action_new_file_system=vfat</action>
1848 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001849 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1850 <action function="set">tw_text2=FAT</action>
1851 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1852 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1853 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1854 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1855 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001856 <action function="page">confirm_action</action>
1857 </actions>
1858 </button>
1859
1860 <button style="main_button">
1861 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1862 <placement x="%col1_x_right%" y="%row6_y%"/>
1863 <text>exFAT</text>
1864 <actions>
1865 <action function="set">tw_back=refreshfilesystem</action>
1866 <action function="set">tw_action=changefilesystem</action>
1867 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1868 <action function="set">tw_action_new_file_system=exfat</action>
1869 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1871 <action function="set">tw_text2=exFAT</action>
1872 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1873 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1874 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1875 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1876 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001877 <action function="page">confirm_action</action>
1878 </actions>
1879 </button>
1880
1881 <button style="main_button">
1882 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1883 <placement x="%col1_x_right%" y="%row11_y%"/>
1884 <text>F2FS</text>
1885 <actions>
1886 <action function="set">tw_back=refreshfilesystem</action>
1887 <action function="set">tw_action=changefilesystem</action>
1888 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1889 <action function="set">tw_action_new_file_system=f2fs</action>
1890 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1892 <action function="set">tw_text2=F2FS</action>
1893 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1894 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1895 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1896 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1897 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001898 <action function="page">confirm_action</action>
1899 </actions>
1900 </button>
1901
1902 <action>
1903 <touch key="home"/>
1904 <action function="page">main</action>
1905 </action>
1906
1907 <action>
1908 <touch key="back"/>
1909 <action function="page">partitionoptions</action>
1910 </action>
1911 </page>
1912
bigbiffce8f83c2015-12-12 18:30:21 -05001913 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001914 <template name="page"/>
1915
Noah Jacobson81d638d2019-04-28 00:10:07 -04001916 <action>
1917 <conditions>
1918 <condition var1="tw_is_fbe" var2="1"/>
1919 <condition var1="tw_all_users_decrypted" var2="0"/>
1920 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1921 </conditions>
1922 <actions>
1923 <action function="set">tw_multiuser_warning_destination=backup</action>
1924 <action function="page">multiuser_warning</action>
1925 </actions>
1926 </action>
1927
z31s1g28f0a922015-11-07 18:50:22 +01001928 <template name="statusbar"/>
1929
1930 <text style="text_m">
1931 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001932 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001933 </text>
1934
1935 <partitionlist style="partitionlist_headerless_rb">
1936 <data name="tw_storage_path"/>
1937 <listtype name="storage"/>
1938 </partitionlist>
1939
1940 <button>
1941 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1942 <highlight color="%highlight_color%"/>
1943 <image resource="q_btn_refresh"/>
1944 <actions>
1945 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001946 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001947 </actions>
1948 </button>
1949
1950 <button>
1951 <condition var1="tw_back" var2="backup_confirm"/>
1952 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1953 <highlight color="%highlight_color%"/>
1954 <image resource="q_btn_accept"/>
1955 <action function="page">backup_confirm</action>
1956 </button>
1957
1958 <button>
1959 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1960 <highlight color="%highlight_color%"/>
1961 <image resource="q_btn_arrow_right"/>
1962 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05001963 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001964 <action function="page">backup_selectpartitions</action>
1965 </actions>
1966 </button>
1967
1968 <action>
1969 <touch key="home"/>
1970 <action function="page">main</action>
1971 </action>
1972
1973 <action>
1974 <touch key="back"/>
1975 <action function="page">%tw_back%</action>
1976 </action>
1977
1978 <action>
1979 <touch key="power+voldown"/>
1980 <action function="screenshot"/>
1981 </action>
1982 </page>
1983
1984 <page name="backup_selectpartitions">
1985 <template name="page"/>
1986
1987 <template name="statusbar"/>
1988
1989 <text style="text_m">
1990 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001992 </text>
1993
1994 <partitionlist style="partitionlist_headerless_cb">
1995 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1996 <data name="tw_backup_list"/>
1997 <listtype name="backup"/>
1998 </partitionlist>
1999
2000 <fill color="%accent_color%">
2001 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2002 </fill>
2003
2004 <button>
2005 <placement x="%col1_x_left%" y="%row11_y%"/>
2006 <highlight color="%highlight_color%"/>
2007 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002008 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002009 </button>
2010
2011 <button>
2012 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2013 <highlight color="%highlight_color%"/>
2014 <image resource="q_btn_refresh"/>
2015 <action function="page">backup_selectpartitions</action>
2016 </button>
2017
2018 <button>
2019 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2020 <highlight color="%highlight_color%"/>
2021 <image resource="q_btn_accept"/>
2022 <action function="page">backup_confirm</action>
2023 </button>
2024
2025 <button>
2026 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2027 <highlight color="%highlight_color%"/>
2028 <image resource="q_btn_arrow_right"/>
2029 <actions>
2030 <action function="set">tw_back=backup_selectpartitions</action>
2031 <action function="page">backup_options</action>
2032 </actions>
2033 </button>
2034
2035 <action>
2036 <touch key="home"/>
2037 <action function="page">main</action>
2038 </action>
2039
2040 <action>
2041 <touch key="back"/>
2042 <action function="page">%tw_back%</action>
2043 </action>
2044
2045 <action>
2046 <touch key="power+voldown"/>
2047 <action function="screenshot"/>
2048 </action>
2049 </page>
2050
Noah Jacobson81d638d2019-04-28 00:10:07 -04002051 <page name="multiuser_warning">
2052 <template name="page"/>
2053
2054 <text style="text_m">
2055 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2056 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
2057 </text>
2058
2059 <text style="text_m_fail">
2060 <placement x="%center_x%" y="%row6_y%" placement="5"/>
2061 <text>{@multiuser_warning1=Not all users decrypted!}</text>
2062 </text>
2063
2064 <text style="text_m_fail">
2065 <placement x="%center_x%" y="%row7_y%" placement="5"/>
2066 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
2067 </text>
2068
2069 <button style="main_button_full_width">
2070 <placement x="%col1_x_left%" y="%row6_y%"/>
2071 <text>{@decrypt_users=Decrypt Users}</text>
2072 <action function="page">decrypt_users</action>
2073 </button>
2074
2075 <slider>
2076 <text>{@multiuser_warning_accept=Continue Anyway}</text>
2077 <actions>
2078 <action function="set">tw_multiuser_warning_accepted=1</action>
2079 <action function="page">%tw_multiuser_warning_destination%</action>
2080 </actions>
2081 </slider>
2082
2083 <action>
2084 <touch key="home"/>
2085 <action function="page">main</action>
2086 </action>
2087
2088 <action>
2089 <touch key="back"/>
2090 <action function="page">main</action>
2091 </action>
2092 </page>
2093
z31s1g28f0a922015-11-07 18:50:22 +01002094 <page name="backup_options">
2095 <template name="page"/>
2096
2097 <template name="statusbar"/>
2098
2099 <text style="text_m">
2100 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002101 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002102 </text>
2103
2104 <listbox style="scrolllist">
2105 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002106 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002107 <data variable="tw_use_compression"/>
2108 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002109 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2110 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002111 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002112 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002113 <data variable="tw_disable_free_space"/>
2114 </listitem>
2115 </listbox>
2116
2117 <button>
2118 <placement x="%col1_x_left%" y="%row11_y%"/>
2119 <highlight color="%highlight_color%"/>
2120 <image resource="q_btn_arrow_left"/>
2121 <action function="page">backup_selectpartitions</action>
2122 </button>
2123
2124 <button>
2125 <conditions>
2126 <condition var1="tw_include_encrypted_backup" var2="1"/>
2127 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002128 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002129 </conditions>
2130 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2131 <highlight color="%highlight_color%"/>
2132 <image resource="q_btn_encryption_dis"/>
2133 <actions>
2134 <action function="set">tw_password_not_match=0</action>
2135 <action function="set">tw_back=backup_options</action>
2136 <action function="page">backupencryption</action>
2137 </actions>
2138 </button>
2139
2140 <button>
2141 <conditions>
2142 <condition var1="tw_include_encrypted_backup" var2="1"/>
2143 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002144 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002145 </conditions>
2146 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2147 <highlight color="%highlight_color%"/>
2148 <image resource="q_btn_encryption_en"/>
2149 <actions>
2150 <action function="set">tw_password_not_match=0</action>
2151 <action function="set">tw_back=backup_options</action>
2152 <action function="page">backupencryption</action>
2153 </actions>
2154 </button>
2155
2156 <button>
2157 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2158 <highlight color="%highlight_color%"/>
2159 <image resource="q_btn_accept_transp"/>
2160 <actions>
2161 <action function="set">tw_back=backup_options</action>
2162 <action function="page">backup_confirm</action>
2163 </actions>
2164 </button>
2165
2166 <action>
2167 <touch key="home"/>
2168 <action function="page">main</action>
2169 </action>
2170
2171 <action>
2172 <touch key="back"/>
2173 <action function="page">%tw_back%</action>
2174 </action>
2175
2176 <action>
2177 <touch key="power+voldown"/>
2178 <action function="screenshot"/>
2179 </action>
2180 </page>
2181
2182 <page name="backup_confirm">
2183 <template name="page"/>
2184
2185 <template name="statusbar"/>
2186
2187 <text style="text_m">
2188 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002189 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002190 </text>
2191
2192 <text style="text_m_accent">
2193 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002194 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002195 </text>
2196
2197 <text style="text_m">
2198 <placement x="%col1_x_left%" y="%row2_y%"/>
2199 <text>%tw_backup_name%</text>
2200 </text>
2201
2202 <fill color="%accent_color%">
2203 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2204 </fill>
2205
2206 <button>
2207 <fill color="%transparent%"/>
2208 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2209 <actions>
2210 <action function="set">tw_back=backup_confirm</action>
2211 <action function="set">tw_fileexists=0</action>
2212 <action function="page">backup_name1</action>
2213 </actions>
2214 </button>
2215
2216 <fill color="%background_color%">
2217 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2218 </fill>
2219
2220 <text style="text_m_accent">
2221 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002222 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002223 </text>
2224
2225 <partitionlist style="partitionlist_summary">
2226 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2227 <data name="tw_backup_list"/>
2228 <listtype name="backup"/>
2229 </partitionlist>
2230
2231 <button>
2232 <fill color="%transparent%"/>
2233 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2234 <actions>
2235 <action function="set">tw_back=backup_confirm</action>
2236 <action function="page">backup_selectpartitions</action>
2237 </actions>
2238 </button>
2239
2240 <text style="text_m_accent">
2241 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002242 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002243 </text>
2244
2245 <text style="text_m">
2246 <placement x="%col1_x_right%" y="%row2_y%"/>
2247 <text>%tw_storage_display_name%</text>
2248 </text>
2249
2250 <button>
2251 <fill color="%transparent%"/>
2252 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2253 <actions>
2254 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002255 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002256 </actions>
2257 </button>
2258
2259 <text style="text_m_accent">
2260 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002261 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002262 </text>
2263
2264 <text style="text_m">
2265 <conditions>
2266 <condition var1="tw_include_encrypted_backup" var2="1"/>
2267 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002268 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002269 </conditions>
2270 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002271 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002272 </text>
2273
2274 <text style="text_m">
2275 <conditions>
2276 <condition var1="tw_include_encrypted_backup" var2="1"/>
2277 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002278 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002279 </conditions>
2280 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002281 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002282 </text>
2283
2284 <button>
2285 <fill color="%transparent%"/>
2286 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2287 <actions>
2288 <action function="set">tw_back=backup_confirm</action>
2289 <action function="page">backupencryption</action>
2290 </actions>
2291 </button>
2292
2293 <listbox style="listbox_options">
2294 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002295 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002296 <data variable="tw_use_compression"/>
2297 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002298 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2299 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002300 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002301 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002302 <data variable="tw_disable_free_space"/>
2303 </listitem>
2304 </listbox>
2305
2306 <text style="text_m_accent">
2307 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002308 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002309 </text>
2310
2311 <button>
2312 <fill color="%transparent%"/>
2313 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2314 <actions>
2315 <action function="set">tw_back=backup_confirm</action>
2316 <action function="page">backup_options</action>
2317 </actions>
2318 </button>
2319
2320 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002321 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002322 <action function="page">backup_run</action>
2323 </slider>
2324
2325 <action>
2326 <touch key="home"/>
2327 <action function="page">main</action>
2328 </action>
2329
2330 <action>
2331 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002332 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002333 </action>
2334 </page>
2335
2336 <page name="backup_name1">
2337 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002338 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002339 <action function="generatebackupname"/>
2340 </action>
2341
2342 <action>
2343 <action function="page">backup_name2</action>
2344 </action>
2345 </page>
2346
2347 <page name="backup_name2">
2348 <template name="page"/>
2349
2350 <template name="statusbar"/>
2351
2352 <text style="text_m">
2353 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002354 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002355 </text>
2356
2357 <text style="text_m_accent">
2358 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002359 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002360 </text>
2361
2362 <input>
2363 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2364 <text>%tw_backup_name%</text>
2365 <data name="tw_backup_name"/>
2366 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2367 <actions>
2368 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2369 <action function="set">tw_existpage=backup_name2</action>
2370 <action function="set">tw_notexistpage=backup_confirm</action>
2371 <action function="page">filecheck</action>
2372 </actions>
2373 </input>
2374
2375 <fill color="%accent_color%">
2376 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2377 </fill>
2378
2379 <fill color="%text_fail_color%">
2380 <condition var1="tw_fileexists" var2="1"/>
2381 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2382 </fill>
2383
2384 <text style="text_m_fail">
2385 <condition var1="tw_fileexists" var2="1"/>
2386 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002387 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002388 </text>
2389
2390 <button style="main_button_half_height">
2391 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002392 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002393 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002394 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002395 <action function="page">backup_confirm</action>
2396 </actions>
2397 </button>
2398
2399 <button style="main_button_half_height">
2400 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002401 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002402 <action function="appenddatetobackupname"/>
2403 </button>
2404
2405 <template name="keyboardtemplate"/>
2406
2407 <action>
2408 <touch key="home"/>
2409 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002410 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002411 <action function="page">main</action>
2412 </actions>
2413 </action>
2414
2415 <action>
2416 <touch key="back"/>
2417 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002418 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002419 <action function="page">backup_confirm</action>
2420 </actions>
2421 </action>
2422 </page>
2423
2424 <page name="backupencryption">
2425 <template name="page"/>
2426
2427 <template name="statusbar"/>
2428
2429 <text style="text_m">
2430 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002431 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002432 </text>
2433
2434 <text style="text_m_accent">
2435 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002436 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002437 </text>
2438
2439 <input>
2440 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2441 <text>%tw_backup_encrypt_display%</text>
2442 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2443 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2444 <action function="page">backupencryption2</action>
2445 </input>
2446
2447 <fill color="%accent_color%">
2448 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2449 </fill>
2450
2451 <fill color="%text_fail_color%">
2452 <condition var1="tw_password_not_match" var2="1"/>
2453 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2454 </fill>
2455
2456 <text style="text_m_fail">
2457 <condition var1="tw_password_not_match" var2="1"/>
2458 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002459 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002460 </text>
2461
2462 <button style="main_button_half_height">
2463 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002464 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002465 <actions>
2466 <action function="set">tw_encrypt_backup=0</action>
2467 <action function="set">tw_backup_password=</action>
2468 <action function="set">tw_backup_password2=</action>
2469 <action function="set">tw_backup_encrypt_display=</action>
2470 <action function="set">tw_backup_encrypt_display2=</action>
2471 <action function="page">%tw_back%</action>
2472 </actions>
2473 </button>
2474
2475 <template name="keyboardtemplate"/>
2476
2477 <action>
2478 <touch key="home"/>
2479 <action function="page">main</action>
2480 </action>
2481
2482 <action>
2483 <touch key="back"/>
2484 <action function="page">%tw_back%</action>
2485 </action>
2486 </page>
2487
2488 <page name="backupencryption2">
2489 <template name="page"/>
2490
2491 <template name="statusbar"/>
2492
2493 <text style="text_m">
2494 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002495 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002496 </text>
2497
2498 <text style="text_m_accent">
2499 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002500 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002501 </text>
2502
2503 <input>
2504 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2505 <text>%tw_backup_encrypt_display2%</text>
2506 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2507 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2508 <action function="page">checkbackuppassword</action>
2509 </input>
2510
2511 <fill color="%accent_color%">
2512 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2513 </fill>
2514
2515 <button style="main_button_half_height">
2516 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002517 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002518 <actions>
2519 <action function="set">tw_encrypt_backup=0</action>
2520 <action function="set">tw_backup_password=</action>
2521 <action function="set">tw_backup_password2=</action>
2522 <action function="set">tw_backup_encrypt_display=</action>
2523 <action function="set">tw_backup_encrypt_display2=</action>
2524 <action function="page">%tw_back%</action>
2525 </actions>
2526 </button>
2527
2528 <template name="keyboardtemplate"/>
2529
2530 <action>
2531 <touch key="home"/>
2532 <action function="page">main</action>
2533 </action>
2534
2535 <action>
2536 <touch key="back"/>
2537 <action function="page">%tw_back%</action>
2538 </action>
2539 </page>
2540
2541 <page name="checkbackuppassword">
2542 <action>
2543 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2544 <actions>
2545 <action function="set">tw_encrypt_backup=1</action>
2546 <action function="page">%tw_back%</action>
2547 </actions>
2548 </action>
2549
2550 <action>
2551 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2552 <actions>
2553 <action function="set">tw_encrypt_backup=0</action>
2554 <action function="set">tw_password_not_match=1</action>
2555 <action function="set">tw_backup_password=</action>
2556 <action function="set">tw_backup_password2=</action>
2557 <action function="set">tw_backup_encrypt_display=</action>
2558 <action function="set">tw_backup_encrypt_display2=</action>
2559 <action function="page">backupencryption</action>
2560 </actions>
2561 </action>
2562 </page>
2563
2564 <page name="backup_run">
2565 <template name="page"/>
2566
2567 <template name="statusbar"/>
2568
2569 <text style="text_m">
2570 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2571 <text>%tw_operation% %tw_partition%</text>
2572 </text>
2573
2574 <template name="console"/>
2575
2576 <template name="progress_bar"/>
2577
2578 <text style="text_m">
2579 <placement x="%indent%" y="%row13a_y%"/>
2580 <text>%tw_file_progress%</text>
2581 </text>
2582
2583 <text style="text_m">
2584 <placement x="%indent%" y="%row14a_y%"/>
2585 <text>%tw_size_progress%</text>
2586 </text>
2587
2588 <button style="main_button_half_height">
2589 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002590 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002591 <action function="cancelbackup"/>
2592 </button>
2593
2594 <action>
2595 <action function="nandroid">backup</action>
2596 </action>
2597
2598 <action>
2599 <condition var1="tw_operation_state" var2="1"/>
2600 <condition var1="tw_cancel_backup" var2="0"/>
2601 <actions>
2602 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002603 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002604 <action function="set">tw_show_reboot=1</action>
2605 <action function="page">action_complete</action>
2606 </actions>
2607 </action>
2608
2609 <action>
2610 <condition var1="tw_operation_state" var2="1"/>
2611 <condition var1="tw_cancel_backup" var2="1"/>
2612 <actions>
2613 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002614 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002615 <action function="set">tw_show_reboot=1</action>
2616 <action function="page">action_complete</action>
2617 </actions>
2618 </action>
2619 </page>
2620
2621 <page name="restore">
2622 <template name="page"/>
2623
Noah Jacobson81d638d2019-04-28 00:10:07 -04002624 <action>
2625 <conditions>
2626 <condition var1="tw_is_fbe" var2="1"/>
2627 <condition var1="tw_all_users_decrypted" var2="0"/>
2628 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2629 </conditions>
2630 <actions>
2631 <action function="set">tw_multiuser_warning_destination=restore</action>
2632 <action function="page">multiuser_warning</action>
2633 </actions>
2634 </action>
2635
z31s1g28f0a922015-11-07 18:50:22 +01002636 <template name="statusbar"/>
2637
2638 <text style="text_m">
2639 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002640 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002641 </text>
2642
2643 <fileselector>
2644 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2645 <text>%tw_storage_display_name%</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002646 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002647 <path name="tw_backups_folder"/>
2648 <data name="tw_restore" default=""/>
2649 <selection name="tw_restore_name"/>
2650 </fileselector>
2651
2652 <button>
2653 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2654 <highlight color="%highlight_color%"/>
2655 <image resource="q_btn_storage"/>
2656 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002657 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002658 <action function="set">tw_back=restore</action>
2659 <action function="page">select_storage</action>
2660 </actions>
2661 </button>
2662
2663 <action>
2664 <condition var1="tw_restore" op="modified"/>
2665 <actions>
2666 <action function="readBackup"/>
2667 <action function="set">tw_back=restore</action>
2668 <action function="page">restore_read</action>
2669 </actions>
2670 </action>
2671
2672 <action>
2673 <touch key="home"/>
2674 <action function="page">main</action>
2675 </action>
2676
2677 <action>
2678 <touch key="back"/>
2679 <action function="page">main</action>
2680 </action>
2681 </page>
2682
2683 <page name="restore_read">
2684 <action>
2685 <condition var1="tw_restore_encrypted" var2="1"/>
2686 <actions>
2687 <action function="set">tw_password_fail=0</action>
2688 <action function="page">restore_decrypt</action>
2689 </actions>
2690 </action>
2691
2692 <action>
2693 <condition var1="tw_restore_encrypted" var2="0"/>
2694 <actions>
2695 <action function="page">restore_select</action>
2696 </actions>
2697 </action>
2698 </page>
2699
2700 <page name="restore_decrypt">
2701 <template name="page"/>
2702
2703 <template name="statusbar"/>
2704
2705 <text style="text_m">
2706 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002707 <text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002708 </text>
2709
2710 <text style="text_m_accent">
2711 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002712 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002713 </text>
2714
2715 <input>
2716 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2717 <text>%tw_restore_display%</text>
2718 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2719 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2720 <action function="page">try_restore_decrypt</action>
2721 </input>
2722
2723 <fill color="%accent_color%">
2724 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2725 </fill>
2726
2727 <fill color="%text_fail_color%">
2728 <condition var1="tw_password_fail" var2="1"/>
2729 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2730 </fill>
2731
2732 <text style="text_m_fail">
2733 <condition var1="tw_password_fail" var2="1"/>
2734 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002735 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002736 </text>
2737
2738 <button style="main_button_half_height">
2739 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002740 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002741 <actions>
2742 <action function="set">tw_page_done=1</action>
2743 <action function="page">restore</action>
2744 </actions>
2745 </button>
2746
2747 <button style="main_button_half_height">
2748 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002749 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002750 <actions>
2751 <action function="set">tw_back=restore</action>
2752 <action function="set">tw_action=cmd</action>
2753 <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 -05002754 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2755 <action function="set">tw_text2=%tw_restore_name%</action>
2756 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2757 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2758 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2759 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002760 <action function="page">confirm_action</action>
2761 </actions>
2762 </button>
2763
2764 <template name="keyboardtemplate"/>
2765
2766 <action>
2767 <touch key="home"/>
2768 <action function="page">main</action>
2769 </action>
2770
2771 <action>
2772 <touch key="back"/>
2773 <action function="page">restore</action>
2774 </action>
2775 </page>
2776
2777 <page name="try_restore_decrypt">
2778 <template name="page"/>
2779
2780 <template name="statusbar"/>
2781
2782 <text style="text_m">
2783 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002784 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002785 </text>
2786
2787 <template name="console"/>
2788
2789 <template name="progress_bar"/>
2790
2791 <action>
2792 <action function="decrypt_backup"/>
2793 </action>
2794
2795 <action>
2796 <conditions>
2797 <condition var1="tw_operation_state" var2="1"/>
2798 <condition var1="tw_operation_status" op="!=" var2="0"/>
2799 </conditions>
2800 <actions>
2801 <action function="set">tw_password_fail=1</action>
2802 <action function="page">restore_decrypt</action>
2803 </actions>
2804 </action>
2805
2806 <action>
2807 <conditions>
2808 <condition var1="tw_operation_state" var2="1"/>
2809 <condition var1="tw_operation_status" op="=" var2="0"/>
2810 </conditions>
2811 <actions>
2812 <action function="set">tw_page_done=1</action>
2813 <action function="page">restore_select</action>
2814 </actions>
2815 </action>
2816 </page>
2817
2818 <page name="restore_select">
2819 <template name="page"/>
2820
2821 <template name="statusbar"/>
2822
2823 <text style="text_m">
2824 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002825 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002826 </text>
2827
2828 <partitionlist style="partitionlist_headerless_cb">
2829 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2830 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2831 <listtype name="restore"/>
2832 </partitionlist>
2833
2834 <fill color="%accent_color%">
2835 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2836 </fill>
2837
2838 <button>
2839 <placement x="%col1_x_left%" y="%row11_y%"/>
2840 <highlight color="%highlight_color%"/>
2841 <image resource="q_btn_arrow_left"/>
2842 <action function="page">restore</action>
2843 </button>
2844
2845 <button>
2846 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2847 <highlight color="%highlight_color%"/>
2848 <image resource="q_btn_delete"/>
2849 <actions>
2850 <action function="set">tw_back=restore</action>
2851 <action function="set">tw_action=cmd</action>
2852 <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 -05002853 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002854 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002855 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2856 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2857 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2858 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002859 <action function="page">confirm_action</action>
2860 </actions>
2861 </button>
2862
2863 <button>
2864 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2865 <highlight color="%highlight_color%"/>
2866 <image resource="q_btn_accept"/>
2867 <action function="page">restore_confirm</action>
2868 </button>
2869
2870 <button>
2871 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2872 <highlight color="%highlight_color%"/>
2873 <image resource="q_btn_arrow_right"/>
2874 <actions>
2875 <action function="set">tw_back=restore_select</action>
2876 <action function="page">restore_options</action>
2877 </actions>
2878 </button>
2879
2880 <action>
2881 <touch key="home"/>
2882 <action function="page">main</action>
2883 </action>
2884
2885 <action>
2886 <touch key="back"/>
2887 <action function="page">%tw_back%</action>
2888 </action>
2889 </page>
2890
2891 <page name="restore_options">
2892 <template name="page"/>
2893
2894 <template name="statusbar"/>
2895
2896 <text style="text_m">
2897 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002898 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002899 </text>
2900
2901 <listbox style="scrolllist">
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002902 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002903 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002904 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
2905 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002906 </listitem>
2907 </listbox>
2908
2909 <button>
2910 <placement x="%col1_x_left%" y="%row11_y%"/>
2911 <highlight color="%highlight_color%"/>
2912 <image resource="q_btn_arrow_left"/>
2913 <action function="page">restore_select</action>
2914 </button>
2915
2916 <button>
2917 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2918 <highlight color="%highlight_color%"/>
2919 <image resource="q_btn_accept_transp"/>
2920 <actions>
2921 <action function="set">tw_back=restore_options</action>
2922 <action function="page">restore_confirm</action>
2923 </actions>
2924 </button>
2925
2926 <action>
2927 <touch key="home"/>
2928 <action function="page">main</action>
2929 </action>
2930
2931 <action>
2932 <touch key="back"/>
2933 <action function="page">%tw_back%</action>
2934 </action>
2935
2936 <action>
2937 <touch key="power+voldown"/>
2938 <action function="screenshot"/>
2939 </action>
2940 </page>
2941
2942 <page name="renamebackup">
2943 <template name="page"/>
2944
2945 <template name="statusbar"/>
2946
2947 <text style="text_m">
2948 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002949 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002950 </text>
2951
2952 <text style="text_m_accent">
2953 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002954 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002955 </text>
2956
2957 <input>
2958 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2959 <text>%tw_backup_rename%</text>
2960 <data name="tw_backup_rename"/>
2961 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2962 <actions>
2963 <action function="set">tw_back=restore</action>
2964 <action function="set">tw_action=cmd</action>
2965 <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 -05002966 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2967 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2968 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2969 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2970 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002971 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2972 <action function="set">tw_existpage=renamebackup</action>
2973 <action function="set">tw_notexistpage=confirm_action</action>
2974 <action function="page">filecheck</action>
2975 </actions>
2976 </input>
2977
2978 <fill color="%accent_color%">
2979 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2980 </fill>
2981
2982 <fill color="%text_fail_color%">
2983 <condition var1="tw_fileexists" var2="1"/>
2984 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2985 </fill>
2986
2987 <text style="text_m_fail">
2988 <condition var1="tw_fileexists" var2="1"/>
2989 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002990 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002991 </text>
2992
2993 <button style="main_button_half_height">
2994 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002995 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002996 <action function="page">restore_confirm</action>
2997 </button>
2998
2999 <template name="keyboardtemplate"/>
3000
3001 <action>
3002 <touch key="home"/>
3003 <action function="page">main</action>
3004 </action>
3005
3006 <action>
3007 <touch key="back"/>
3008 <action function="page">restore_confirm</action>
3009 </action>
3010 </page>
3011
3012 <page name="restore_confirm">
3013 <template name="page"/>
3014
3015 <template name="statusbar"/>
3016
3017 <text style="text_m">
3018 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003019 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003020 </text>
3021
3022 <text style="text_m_accent">
3023 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003024 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003025 </text>
3026
3027 <text style="text_m">
3028 <placement x="%indent%" y="%row2_y%"/>
3029 <text>%tw_restore_name%</text>
3030 </text>
3031
3032 <fill color="%accent_color%">
3033 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
3034 </fill>
3035
3036 <button>
3037 <fill color="%transparent%"/>
3038 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
3039 <actions>
3040 <action function="set">tw_back=restore_confirm</action>
3041 <action function="set">tw_backup_rename=%tw_restore_name%</action>
3042 <action function="set">tw_fileexists=0</action>
3043 <action function="page">renamebackup</action>
3044 </actions>
3045 </button>
3046
3047 <text style="text_m_accent">
3048 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003049 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003050 </text>
3051
3052 <partitionlist style="partitionlist_summary">
3053 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
3054 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
3055 <listtype name="restore"/>
3056 </partitionlist>
3057
3058 <button>
3059 <fill color="%transparent%"/>
3060 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
3061 <actions>
3062 <action function="set">tw_back=restore_confirm</action>
3063 <action function="page">restore_select</action>
3064 </actions>
3065 </button>
3066
3067 <listbox style="listbox_options">
3068 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003069 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
3070 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003071 </listitem>
3072 </listbox>
3073
3074 <text style="text_m_accent">
3075 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003076 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003077 </text>
3078
3079 <button>
3080 <fill color="%transparent%"/>
3081 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
3082 <actions>
3083 <action function="set">tw_back=restore_confirm</action>
3084 <action function="page">restore_options</action>
3085 </actions>
3086 </button>
3087
3088 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003089 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003090 <action function="page">restore_run</action>
3091 </slider>
3092
3093 <action>
3094 <touch key="home"/>
3095 <action function="page">main</action>
3096 </action>
3097
3098 <action>
3099 <touch key="back"/>
3100 <action function="page">restore_options</action>
3101 </action>
3102 </page>
3103
3104 <page name="restore_run">
3105 <template name="page"/>
3106
3107 <template name="statusbar"/>
3108
3109 <text style="text_m">
3110 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3111 <text>%tw_operation% %tw_partition%</text>
3112 </text>
3113
3114 <template name="console"/>
3115
3116 <template name="progress_bar"/>
3117
3118 <text style="text_m">
3119 <placement x="%indent%" y="%row14a_y%"/>
3120 <text>%tw_size_progress%</text>
3121 </text>
3122
3123 <action>
3124 <condition var1="tw_operation_state" var2="1"/>
3125 <actions>
3126 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003127 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003128 <action function="set">tw_show_reboot=1</action>
3129 <action function="page">action_complete</action>
3130 </actions>
3131 </action>
3132
3133 <action>
3134 <action function="nandroid">restore</action>
3135 </action>
3136 </page>
3137
3138 <page name="mount">
3139 <template name="page"/>
3140
3141 <template name="statusbar"/>
3142
3143 <text style="text_m">
3144 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003145 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003146 </text>
3147
3148 <partitionlist style="partitionlist_headerless_cb">
3149 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3150 <listtype name="mount"/>
3151 </partitionlist>
3152
3153 <fill color="%accent_color%">
3154 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3155 </fill>
3156
3157 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003158 <conditions>
3159 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3160 <condition var1="tw_is_super" op="=" var2="0"/>
3161 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003162 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003163 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003164 <image resource="checkbox_false"/>
3165 <action function="mountsystemtoggle">1</action>
3166 </button>
3167
3168 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003169 <conditions>
3170 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3171 <condition var1="tw_is_super" op="=" var2="0"/>
3172 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003173 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003174 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003175 <image resource="checkbox_true"/>
3176 <actions>
3177 <action function="set">tw_lifetime_writes=2</action>
3178 <action function="page">system_readonly_check</action>
3179 </actions>
3180 </button>
3181
3182 <button style="checkbox">
3183 <conditions>
3184 <condition var1="tw_has_mtp" var2="1"/>
3185 <condition var1="tw_mtp_enabled" var2="0"/>
3186 </conditions>
3187 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3188 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003189 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003190 <action function="startmtp"/>
3191 </button>
3192
3193 <button style="checkbox">
3194 <conditions>
3195 <condition var1="tw_has_mtp" var2="1"/>
3196 <condition var1="tw_mtp_enabled" var2="1"/>
3197 </conditions>
3198 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3199 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003200 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003201 <action function="stopmtp"/>
3202 </button>
3203
3204 <button>
3205 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3206 <highlight color="%highlight_color%"/>
3207 <image resource="q_btn_storage"/>
3208 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003209 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003210 <action function="set">tw_back=mount</action>
3211 <action function="page">select_storage</action>
3212 </actions>
3213 </button>
3214
3215 <button>
3216 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3217 <highlight color="%highlight_color%"/>
3218 <image resource="q_btn_arrow_right"/>
3219 <action function="page">mount_options</action>
3220 </button>
3221
3222 <action>
3223 <touch key="home"/>
3224 <action function="page">main</action>
3225 </action>
3226
3227 <action>
3228 <touch key="back"/>
3229 <action function="page">main</action>
3230 </action>
3231 </page>
3232
3233 <page name="mount_options">
3234 <template name="page"/>
3235
3236 <template name="statusbar"/>
3237
3238 <text style="text_m">
3239 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003240 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003241 </text>
3242
3243 <button style="main_button_full_width">
3244 <condition var1="tw_has_usb_storage" var2="1"/>
3245 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003246 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003247 <action function="page">usb_mount</action>
3248 </button>
3249
3250 <button style="main_button_full_width">
3251 <conditions>
3252 <condition var1="tw_is_encrypted" var2="1"/>
3253 <condition var1="tw_is_decrypted" var2="0"/>
3254 </conditions>
3255 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003256 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003257 <action function="set">tw_crypto_user_id=0</action>
3258 <action function="set">tw_crypto_password=</action>
3259 <action function="set">tw_password_fail=0</action>
3260 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01003261 <action function="page">decrypt</action>
3262 </button>
3263
3264 <button>
3265 <placement x="%col1_x_left%" y="%row11_y%"/>
3266 <highlight color="%highlight_color%"/>
3267 <image resource="q_btn_arrow_left"/>
3268 <action function="page">mount</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">mount</action>
3279 </action>
3280 </page>
3281
3282 <page name="usb_mount">
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%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003289 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 </text>
3291
3292 <text style="text_m_accent">
3293 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003294 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003295 </text>
3296
3297 <text style="text_m_fail">
3298 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003299 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003300 </text>
3301
3302 <text style="text_m_fail">
3303 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003304 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003305 </text>
3306
3307 <button style="main_button">
3308 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003309 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003310 <action function="page">usb_umount</action>
3311 </button>
3312
3313 <action>
3314 <action function="mount">usb</action>
3315 <action function="set">tw_busy=1</action>
3316 </action>
3317 </page>
3318
3319 <page name="usb_umount">
3320 <action>
3321 <action function="unmount">usb</action>
3322 </action>
3323
3324 <action>
3325 <action function="page">mount_options</action>
3326 <action function="set">tw_busy=0</action>
3327 </action>
3328 </page>
3329
3330 <page name="system_readonly_check">
3331 <action>
3332 <action function="checkpartitionlifetimewrites">/system</action>
3333 </action>
3334
3335 <action>
3336 <condition var1="tw_lifetime_writes" var2="1"/>
3337 <actions>
3338 <action function="mountsystemtoggle">0</action>
3339 <action function="page">mount</action>
3340 </actions>
3341 </action>
3342
3343 <action>
3344 <condition var1="tw_lifetime_writes" var2="0"/>
3345 <actions>
3346 <action function="set">tw_back=mount</action>
3347 <action function="page">system_readonly</action>
3348 </actions>
3349 </action>
3350 </page>
3351
3352 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003353 <action>
3354 <action function="checkforapp"></action>
3355 <action function="page">reboot2</action>
3356 </action>
3357 </page>
3358
3359 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003360 <template name="page"/>
3361
3362 <template name="statusbar"/>
3363
3364 <text style="text_m">
3365 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003366 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003367 </text>
3368
3369 <button style="main_button">
3370 <condition var1="tw_reboot_system" var2="1"/>
3371 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003372 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003373 <actions>
3374 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003375 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003376 </actions>
3377 </button>
3378
3379 <button style="main_button">
3380 <condition var1="tw_reboot_poweroff" var2="1"/>
3381 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003382 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003383 <actions>
3384 <action function="set">tw_back=reboot</action>
3385 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003386 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003387 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003388 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3390 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3391 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3392 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3393 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003394 <action function="page">rebootcheck</action>
3395 </actions>
3396 </button>
3397
3398 <button style="main_button">
3399 <condition var1="tw_reboot_recovery" var2="1"/>
3400 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003402 <actions>
3403 <action function="set">tw_back=reboot</action>
3404 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003405 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003406 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003407 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003408 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3409 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3410 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3411 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3412 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003413 <action function="page">rebootcheck</action>
3414 </actions>
3415 </button>
3416
3417 <button style="main_button">
3418 <condition var1="tw_reboot_bootloader" var2="1"/>
3419 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003420 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003421 <actions>
3422 <action function="set">tw_back=reboot</action>
3423 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003424 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003425 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003426 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003427 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3428 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3429 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3430 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3431 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003432 <action function="page">rebootcheck</action>
3433 </actions>
3434 </button>
3435
3436 <button style="main_button">
3437 <condition var1="tw_download_mode" var2="1"/>
3438 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003439 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003440 <actions>
3441 <action function="set">tw_back=reboot</action>
3442 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003443 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003444 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003445 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003446 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3447 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3448 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3449 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3450 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003451 <action function="page">rebootcheck</action>
3452 </actions>
3453 </button>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003454
mauronofrioe9a49ef2018-10-03 13:38:16 +02003455 <button style="main_button">
3456 <condition var1="tw_edl_mode" var2="1"/>
3457 <placement x="%col1_x_right%" y="%row11_y%"/>
3458 <text>{@rb_edl_btn=Edl}</text>
3459 <actions>
3460 <action function="set">tw_back=reboot</action>
3461 <action function="set">tw_action=reboot</action>
3462 <action function="set">tw_action_param=edl</action>
3463 <action function="set">tw_reboot_param=edl</action>
3464 <action function="set">tw_has_action2=0</action>
3465 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3466 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3467 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3468 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3469 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
3470 <action function="page">rebootcheck</action>
3471 </actions>
3472 </button>
z31s1g28f0a922015-11-07 18:50:22 +01003473
3474 <action>
3475 <touch key="home"/>
3476 <action function="page">main</action>
3477 </action>
3478
3479 <action>
3480 <touch key="back"/>
3481 <action function="page">main</action>
3482 </action>
3483 </page>
3484
Ethan Yonker8581ab32020-12-17 14:51:50 -06003485 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003486 <template name="page"/>
3487
3488 <template name="statusbar"/>
3489
3490 <text style="text_m">
3491 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003492 <text>%tw_appinstall_title% &gt; {@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003493 </text>
3494
3495 <text style="text_m_accent">
3496 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3497 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3498 </text>
3499
3500 <text style="text_m">
3501 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3502 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3503 </text>
3504
3505 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003506 <condition var1="tw_mount_system_ro" var2="0"/>
3507 <placement x="%indent%" y="%row5_y%"/>
3508 <text>{@reboot_install_app_system=Install as a System App}</text>
3509 <data variable="tw_app_install_system"/>
3510 </checkbox>
3511
3512 <button style="main_button_half_height">
3513 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003514 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003515 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003516 </button>
3517
Ethan Yonker8581ab32020-12-17 14:51:50 -06003518 <slider>
3519 <text>{@swipe_confirm= Confirm}</text>
3520 <actions>
3521 <action function="set">tw_action=installapp</action>
3522 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3523 <action function="set">tw_action_text2=</action>
3524 <action function="set">tw_complete_text1={@successful=Successful}</action>
3525 <action function="page">action_page</action>
3526 </actions>
3527 </slider>
3528
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003529 <action>
3530 <touch key="home"/>
3531 <actions>
3532 <action function="set">tw_app_install_status=0</action>
3533 <action function="page">main</action>
3534 </actions>
3535 </action>
3536
3537 <action>
3538 <touch key="back"/>
3539 <actions>
3540 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003541 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003542 </actions>
3543 </action>
3544 </page>
3545
z31s1g28f0a922015-11-07 18:50:22 +01003546 <page name="system_readonly">
3547 <template name="page"/>
3548
3549 <template name="statusbar"/>
3550
3551 <text style="text_m">
3552 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003553 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003554 </text>
3555
3556 <text style="text_m_accent">
3557 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003558 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003559 </text>
3560
3561 <text style="text_m">
3562 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003563 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003564 </text>
3565
3566 <text style="text_m">
3567 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003568 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003569 </text>
3570
3571 <text style="text_m">
3572 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003573 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003574 </text>
3575
3576 <text style="text_m">
3577 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003578 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003579 </text>
3580
3581 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003582 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003583 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003584 </text>
3585
3586 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003587 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003588 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003589 </text>
3590
z31s1g608d7ff2016-01-18 19:47:25 +01003591 <button style="main_button_half_height">
3592 <placement x="%col1_x_right%" y="%row8a_y%"/>
3593 <text>{@sel_lang_btn=Select Language}</text>
3594 <action function="page">settings_language</action>
3595 </button>
3596
z31s1g28f0a922015-11-07 18:50:22 +01003597 <checkbox>
3598 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003599 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003600 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003601 <data variable="tw_never_show_system_ro_page"/>
3602 </checkbox>
3603
3604 <button style="main_button_half_height">
3605 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003606 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003607 <actions>
3608 <action function="mountsystemtoggle">1</action>
3609 <action function="set">tw_page_done=1</action>
3610 <action function="page">%tw_back%</action>
3611 </actions>
3612 </button>
3613
3614 <button style="main_button_half_height">
3615 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003616 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003617 <actions>
3618 <action function="mountsystemtoggle">0</action>
3619 <action function="set">tw_page_done=1</action>
3620 <action function="page">%tw_back%</action>
3621 </actions>
3622 </button>
3623 </page>
3624
3625 <page name="settings">
3626 <template name="page"/>
3627
3628 <template name="statusbar"/>
3629
3630 <text style="text_m">
3631 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003632 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003633 </text>
3634
3635 <button style="main_button">
3636 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003637 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003638 <action function="page">settings_general</action>
3639 </button>
3640
3641 <button style="main_button">
3642 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003643 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003644 <action function="page">settings_timezone</action>
3645 </button>
3646
3647 <button style="main_button">
3648 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003649 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003650 <action function="page">settings_screen</action>
3651 </button>
3652
3653 <button style="main_button">
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003654 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003655 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003656 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003657 <action function="page">settings_vibration</action>
3658 </button>
3659
3660 <button style="main_button">
3661 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003662 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003663 <action function="page">settings_language</action>
3664 </button>
3665
3666 <button>
3667 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3668 <highlight color="%highlight_color%"/>
3669 <image resource="q_btn_reset"/>
3670 <action function="restoredefaultsettings"/>
3671 </button>
3672
3673 <action>
3674 <touch key="home"/>
3675 <action function="page">main</action>
3676 </action>
3677
3678 <action>
3679 <touch key="back"/>
3680 <action function="page">main3</action>
3681 </action>
3682 </page>
3683
3684 <page name="settings_general">
3685 <template name="page"/>
3686
3687 <template name="statusbar"/>
3688
3689 <text style="text_m">
3690 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003691 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003692 </text>
3693
3694 <listbox style="scrolllist">
3695 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003696 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003697 <data variable="tw_signed_zip_verify"/>
3698 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003699 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3700 <data variable="tw_install_reboot"/>
3701 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003702 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003703 <data variable="tw_rm_rf"/>
3704 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003705 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3706 <data variable="tw_disable_free_space"/>
3707 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003708 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3709 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003710 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003711 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3712 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003713 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003714 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003715 <data variable="tw_military_time"/>
3716 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003717 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003718 <data variable="tw_simulate_actions"/>
3719 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003720 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003721 <data variable="tw_simulate_fail"/>
3722 <condition var1="tw_simulate_actions" var2="1"/>
3723 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003724 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3725 <condition var1="tw_no_sha2" var2="0"/>
3726 <data variable="tw_use_sha2"/>
3727 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003728 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3729 <data variable="tw_unmount_system"/>
3730 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003731 </listbox>
3732
3733 <action>
3734 <touch key="home"/>
3735 <action function="page">main</action>
3736 </action>
3737
3738 <action>
3739 <touch key="back"/>
3740 <action function="page">settings</action>
3741 </action>
3742 </page>
3743
3744 <page name="settings_timezone">
3745 <template name="page"/>
3746
3747 <template name="statusbar"/>
3748
3749 <text style="text_m">
3750 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003751 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003752 </text>
3753
3754 <text color="%text_color%">
3755 <font resource="font_m"/>
3756 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3757 <text>%tw_time%</text>
3758 </text>
3759
3760 <listbox style="listbox_headerless">
3761 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3762 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003763 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3764 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3765 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3766 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3767 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3768 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3769 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3770 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3771 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3772 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3773 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3774 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3775 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3776 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3777 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3778 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3779 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3780 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3781 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3782 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3783 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3784 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3785 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3786 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003787 </listbox>
3788
3789 <button>
3790 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3791 <highlight color="%highlight_color%"/>
3792 <image resource="q_btn_arrow_right"/>
3793 <actions>
3794 <action function="setguitimezone"/>
3795 <action function="page">settings_timezone2</action>
3796 </actions>
3797 </button>
3798
3799 <action>
3800 <condition var1="tw_time_zone_guisel" op="modified"/>
3801 <action function="setguitimezone"/>
3802 </action>
3803
3804 <action>
3805 <touch key="home"/>
3806 <actions>
3807 <action function="page">main</action>
3808 <action function="setguitimezone"/>
3809 </actions>
3810 </action>
3811
3812 <action>
3813 <touch key="back"/>
3814 <actions>
3815 <action function="page">settings</action>
3816 <action function="setguitimezone"/>
3817 </actions>
3818 </action>
3819
3820 <action>
3821 <touch key="power+voldown"/>
3822 <action function="screenshot"/>
3823 </action>
3824 </page>
3825
3826 <page name="settings_timezone2">
3827 <template name="page"/>
3828
3829 <template name="statusbar"/>
3830
3831 <text style="text_m">
3832 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003833 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003834 </text>
3835
3836 <text color="%text_color%">
3837 <font resource="font_m"/>
3838 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3839 <text>%tw_time%</text>
3840 </text>
3841
3842 <checkbox>
3843 <placement x="%col1_x_left%" y="%row1_y%"/>
3844 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003845 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003846 <data variable="tw_time_zone_guidst"/>
3847 <image checked="checkbox_true" unchecked="checkbox_false"/>
3848 </checkbox>
3849
3850 <text style="text_m_accent">
3851 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003852 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003853 </text>
3854
3855 <button style="main_button_quarter_width">
3856 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003857 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003858 <actions>
3859 <action function="set">tw_time_zone_guioffset=0</action>
3860 <action function="setguitimezone"/>
3861 </actions>
3862 </button>
3863
3864 <button style="main_button_quarter_width">
3865 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003866 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003867 <actions>
3868 <action function="set">tw_time_zone_guioffset=15</action>
3869 <action function="setguitimezone"/>
3870 </actions>
3871 </button>
3872
3873 <button style="main_button_quarter_width">
3874 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003875 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003876 <actions>
3877 <action function="set">tw_time_zone_guioffset=30</action>
3878 <action function="setguitimezone"/>
3879 </actions>
3880 </button>
3881
3882 <button style="main_button_quarter_width">
3883 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003884 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003885 <actions>
3886 <action function="set">tw_time_zone_guioffset=45</action>
3887 <action function="setguitimezone"/>
3888 </actions>
3889 </button>
3890
3891 <button>
3892 <placement x="%col1_x_left%" y="%row11_y%"/>
3893 <highlight color="%highlight_color%"/>
3894 <image resource="q_btn_arrow_left"/>
3895 <actions>
3896 <action function="setguitimezone"/>
3897 <action function="page">settings_timezone</action>
3898 </actions>
3899 </button>
3900
3901 <text style="text_m_accent">
3902 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003903 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003904 </text>
3905
3906 <text style="text_m">
3907 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3908 <text>%tw_time_zone%</text>
3909 </text>
3910
3911 <action>
3912 <condition var1="tw_time_zone_guidst" op="modified"/>
3913 <action function="setguitimezone"/>
3914 </action>
3915
3916 <action>
3917 <touch key="home"/>
3918 <actions>
3919 <action function="setguitimezone"/>
3920 <action function="page">main</action>
3921 </actions>
3922 </action>
3923
3924 <action>
3925 <touch key="back"/>
3926 <actions>
3927 <action function="setguitimezone"/>
3928 <action function="page">settings_timezone</action>
3929 </actions>
3930 </action>
3931 </page>
3932
3933 <page name="settings_screen">
3934 <template name="page"/>
3935
3936 <template name="statusbar"/>
3937
3938 <text style="text_m">
3939 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003940 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003941 </text>
3942
3943 <button style="checkbox">
3944 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3945 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3946 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003947 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003948 <image resource="checkbox_false"/>
3949 <action function="set">tw_screen_timeout_secs=60</action>
3950 </button>
3951
3952 <button style="checkbox">
3953 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3954 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3955 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003956 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003957 <image resource="checkbox_true"/>
3958 <action function="set">tw_screen_timeout_secs=0</action>
3959 </button>
3960
3961 <slidervalue>
3962 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3963 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003964 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003965 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3966 </slidervalue>
3967
3968 <text style="text_m_fail">
3969 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
3970 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003971 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003972 </text>
3973
3974 <button>
3975 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3976 <highlight color="%highlight_color%"/>
3977 <image resource="q_btn_arrow_right"/>
3978 <action function="page">settings_screen2</action>
3979 </button>
3980
3981 <action>
3982 <touch key="home"/>
3983 <action function="page">main</action>
3984 </action>
3985
3986 <action>
3987 <touch key="back"/>
3988 <action function="page">settings</action>
3989 </action>
3990 </page>
3991
3992 <page name="settings_screen2">
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_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004000 </text>
4001
4002 <slidervalue>
4003 <condition var1="tw_has_brightnesss_file" var2="1"/>
4004 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004005 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004006 <data variable="tw_brightness_pct" min="10" max="100"/>
4007 <actions>
4008 <action function="set">tw_brightness=%tw_brightness_max%</action>
4009 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
4010 <action function="compute">tw_brightness/100</action>
4011 <action function="setbrightness">%tw_brightness%</action>
4012 </actions>
4013 </slidervalue>
4014
4015 <text style="text_m_fail">
4016 <condition var1="tw_has_brightnesss_file" var2="0"/>
4017 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004018 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004019 </text>
4020
4021 <button>
4022 <placement x="%col1_x_left%" y="%row11_y%"/>
4023 <highlight color="%highlight_color%"/>
4024 <image resource="q_btn_arrow_left"/>
4025 <action function="page">settings_screen</action>
4026 </button>
4027
4028 <action>
4029 <touch key="home"/>
4030 <action function="page">main</action>
4031 </action>
4032
4033 <action>
4034 <touch key="back"/>
4035 <action function="page">settings</action>
4036 </action>
4037 </page>
4038
4039 <page name="settings_vibration">
4040 <template name="page"/>
4041
4042 <template name="statusbar"/>
4043
4044 <text style="text_m">
4045 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004046 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004047 </text>
4048
4049 <slidervalue>
4050 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004051 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004052 <data variable="tw_button_vibrate" min="0" max="300"/>
4053 </slidervalue>
4054
4055 <button>
4056 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4057 <highlight color="%highlight_color%"/>
4058 <image resource="q_btn_arrow_right"/>
4059 <action function="page">settings_vibration2</action>
4060 </button>
4061
4062 <action>
4063 <touch key="home"/>
4064 <action function="page">main</action>
4065 </action>
4066
4067 <action>
4068 <touch key="back"/>
4069 <action function="page">settings</action>
4070 </action>
4071 </page>
4072
4073 <page name="settings_vibration2">
4074 <template name="page"/>
4075
4076 <template name="statusbar"/>
4077
4078 <text style="text_m">
4079 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004080 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004081 </text>
4082
4083 <slidervalue>
4084 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004085 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004086 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
4087 </slidervalue>
4088
4089 <button>
4090 <placement x="%col1_x_left%" y="%row11_y%"/>
4091 <highlight color="%highlight_color%"/>
4092 <image resource="q_btn_arrow_left"/>
4093 <action function="page">settings_vibration</action>
4094 </button>
4095
4096 <button>
4097 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4098 <highlight color="%highlight_color%"/>
4099 <image resource="q_btn_arrow_right"/>
4100 <action function="page">settings_vibration3</action>
4101 </button>
4102
4103 <action>
4104 <touch key="home"/>
4105 <action function="page">main</action>
4106 </action>
4107
4108 <action>
4109 <touch key="back"/>
4110 <action function="page">settings</action>
4111 </action>
4112 </page>
4113
4114 <page name="settings_vibration3">
4115 <template name="page"/>
4116
4117 <template name="statusbar"/>
4118
4119 <text style="text_m">
4120 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004121 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004122 </text>
4123
4124 <slidervalue>
4125 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004126 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004127 <data variable="tw_action_vibrate" min="0" max="500"/>
4128 </slidervalue>
4129
4130 <button>
4131 <placement x="%col1_x_left%" y="%row11_y%"/>
4132 <highlight color="%highlight_color%"/>
4133 <image resource="q_btn_arrow_left"/>
4134 <action function="page">settings_vibration2</action>
4135 </button>
4136
4137 <action>
4138 <touch key="home"/>
4139 <action function="page">main</action>
4140 </action>
4141
4142 <action>
4143 <touch key="back"/>
4144 <action function="page">settings</action>
4145 </action>
4146 </page>
4147
Ethan Yonker74db1572015-10-28 12:44:49 -05004148 <page name="settings_language">
4149 <template name="page"/>
4150
4151 <template name="statusbar"/>
4152
4153 <text style="text_m">
4154 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4155 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4156 </text>
4157
z31s1g608d7ff2016-01-18 19:47:25 +01004158 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004159 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4160 <icon selected="radio_true" unselected="radio_false" />
4161 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004162 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004163
4164 <button>
4165 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4166 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004167 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004168 <action function="setlanguage"></action>
4169 </button>
4170
z31s1g608d7ff2016-01-18 19:47:25 +01004171 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004172 <touch key="home" />
4173 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004174 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004175
z31s1g608d7ff2016-01-18 19:47:25 +01004176 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004177 <touch key="back" />
4178 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004179 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004180 </page>
4181
z31s1g28f0a922015-11-07 18:50:22 +01004182 <page name="advanced">
4183 <template name="page"/>
4184
4185 <template name="statusbar"/>
4186
4187 <text style="text_m">
4188 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004189 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004190 </text>
4191
4192 <button style="main_button">
4193 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004194 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004195 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004196 </button>
4197
4198 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004199 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004200 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004201 <text>{@fix_context_btn=Fix Contexts}</text>
4202 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004203 </button>
4204
Ethan Yonker64e0a652018-07-25 09:52:17 -05004205 <button>
4206 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4207 <highlight color="%highlight_color%"/>
4208 <image resource="q_btn_arrow_right"/>
4209 <action function="page">advanced2</action>
z31s1g28f0a922015-11-07 18:50:22 +01004210 </button>
4211
Ethan Yonker64e0a652018-07-25 09:52:17 -05004212 <action>
4213 <touch key="home"/>
4214 <action function="page">main</action>
4215 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004216
Ethan Yonker64e0a652018-07-25 09:52:17 -05004217 <action>
4218 <touch key="back"/>
4219 <action function="page">main3</action>
4220 </action>
4221 </page>
4222
4223 <page name="advanced2">
4224 <template name="page"/>
4225
4226 <template name="statusbar"/>
4227
4228 <text style="text_m">
4229 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4230 <text>{@advanced_hdr=Advanced}</text>
4231 </text>
4232
4233 <listbox style="advanced_listbox">
4234 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04004235 <listitem name="{@decrypt_users=Decrypt Users}">
4236 <conditions>
4237 <condition var1="tw_is_fbe" var2="1"/>
4238 <condition var1="tw_all_users_decrypted" var2="0"/>
4239 </conditions>
4240 <actions>
4241 <action function="set">tw_crypto_user_id=</action>
4242 <action function="page">decrypt_users</action>
4243 </actions>
4244 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004245 <listitem name="{@reload_theme_btn=Reload Theme}">
4246 <action function="reload"/>
4247 </listitem>
4248 <listitem name="{@part_sd_btn=Partition SD Card}">
4249 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4250 <actions>
4251 <action function="set">partitionlisterror=0</action>
4252 <action function="page">partsdcardsel</action>
4253 </actions>
4254 </listitem>
4255 <listitem name="{@dumlock_btn=HTC Dumlock}">
4256 <condition var1="tw_show_dumlock" var2="1"/>
4257 <action function="page">htcdumlock</action>
4258 </listitem>
4259 <listitem name="{@inject_twrp_btn=Inject TWRP}">
4260 <condition var1="tw_has_injecttwrp" var2="1"/>
4261 <actions>
4262 <action function="set">tw_back=advanced</action>
4263 <action function="set">tw_action=reinjecttwrp</action>
4264 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4265 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4266 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4267 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4268 <action function="page">confirm_action</action>
4269 </actions>
4270 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004271 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
4272 <conditions>
4273 <condition var1="tw_has_boot_slots" var2="1"/>
4274 <condition var1="tw_has_repack_tools" var2="1"/>
4275 </conditions>
4276 <actions>
4277 <action function="set">tw_repack_kernel=0</action>
4278 <action function="page">repackselect</action>
4279 </actions>
4280 </listitem>
4281 <listitem name="{@install_kernel=Install Kernel}">
4282 <conditions>
4283 <condition var1="tw_has_boot_slots" var2="1"/>
4284 <condition var1="tw_has_repack_tools" var2="1"/>
4285 </conditions>
4286 <actions>
4287 <action function="set">tw_repack_kernel=1</action>
4288 <action function="page">repackselect</action>
4289 </actions>
4290 </listitem>
4291 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
4292 <conditions>
4293 <condition var1="tw_has_boot_slots" var2="1"/>
4294 <condition var1="tw_has_repack_tools" var2="1"/>
4295 </conditions>
4296 <actions>
4297 <action function="set">tw_back=advanced</action>
4298 <action function="set">tw_action=fixabrecoverybootloop</action>
4299 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
4300 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
4301 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
4302 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4303 <action function="page">confirm_action</action>
4304 </actions>
4305 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06004306 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
4307 <condition var1="tw_app_install_status" var2="1"/>
4308 <actions>
4309 <action function="set">tw_back=advanced2</action>
4310 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
4311 <action function="page">installapp</action>
4312 </actions>
4313 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05004314 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
4315 <condition var1="tw_app_installed_in_system" var2="1"/>
4316 <actions>
4317 <action function="set">tw_back=advanced</action>
4318 <action function="set">tw_action=uninstalltwrpsystemapp</action>
4319 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
4320 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
4321 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
4322 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4323 <action function="page">confirm_action</action>
4324 </actions>
4325 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004326 </listbox>
4327
4328 <button>
z31s1g28f0a922015-11-07 18:50:22 +01004329 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004330 <highlight color="%highlight_color%"/>
4331 <image resource="q_btn_arrow_left"/>
4332 <action function="page">advanced</action>
z31s1g28f0a922015-11-07 18:50:22 +01004333 </button>
4334
4335 <action>
4336 <touch key="home"/>
4337 <action function="page">main</action>
4338 </action>
4339
4340 <action>
4341 <touch key="back"/>
4342 <action function="page">main3</action>
4343 </action>
4344 </page>
4345
Ethan Yonker483e9f42016-01-11 22:21:18 -06004346 <page name="partsdcardsel">
4347 <template name="page"/>
4348
4349 <template name="statusbar"/>
4350
4351 <text style="text_m">
4352 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4353 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4354 </text>
4355
4356 <partitionlist style="partitionlist_headerless_rb">
4357 <data name="tw_storage_path"/>
4358 <listtype name="storage"/>
4359 </partitionlist>
4360
4361 <text style="text_m_fail">
4362 <condition var1="partitionlisterror" var2="1"/>
4363 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4364 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4365 </text>
4366
4367 <button>
4368 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4369 <highlight color="%highlight_color%"/>
4370 <image resource="q_btn_refresh"/>
4371 <action function="refreshsizes"/>
4372 </button>
4373
4374 <button>
4375 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4376 <highlight color="%highlight_color%"/>
4377 <image resource="q_btn_accept"/>
4378 <actions>
4379 <action function="getpartitiondetails">tw_storage_path</action>
4380 <action function="page">partsdcardcheck</action>
4381 </actions>
4382 </button>
4383
4384 <action>
4385 <touch key="home"/>
4386 <action function="page">main</action>
4387 </action>
4388
4389 <action>
4390 <touch key="back"/>
4391 <action function="page">advanced</action>
4392 </action>
4393 </page>
4394
4395 <page name="partsdcardcheck">
4396 <action>
4397 <condition var1="tw_partition_removable" op="=" var2="1"/>
4398 <actions>
4399 <action function="set">partitionlisterror=0</action>
4400 <action function="page">partsdcard</action>
4401 </actions>
4402 </action>
4403
4404 <action>
4405 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4406 <actions>
4407 <action function="set">partitionlisterror=1</action>
4408 <action function="page">partsdcardsel</action>
4409 </actions>
4410 </action>
4411 </page>
4412
z31s1g28f0a922015-11-07 18:50:22 +01004413 <page name="partsdcard">
4414 <template name="page"/>
4415
4416 <template name="statusbar"/>
4417
4418 <text style="text_m">
4419 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004420 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004421 </text>
4422
4423 <text style="text_m_fail">
4424 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004425 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004426 </text>
4427
4428 <text style="text_m_fail">
4429 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004430 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004431 </text>
4432
4433 <text style="text_m_accent">
4434 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004435 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004436 </text>
4437
4438 <text style="text_m">
4439 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4440 <text>%tw_sdext_size%</text>
4441 </text>
4442
4443 <button style="main_button_quarter_width">
4444 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004445 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004446 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004447 </button>
4448
4449 <button style="main_button_quarter_width">
4450 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004451 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004452 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004453 </button>
4454
4455 <button>
4456 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4457 <highlight color="%highlight_color%"/>
4458 <image resource="q_btn_arrow_right"/>
4459 <action function="page">partsdcard2</action>
4460 </button>
4461
4462 <action>
4463 <touch key="home"/>
4464 <action function="page">main</action>
4465 </action>
4466
4467 <action>
4468 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004469 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004470 </action>
4471 </page>
4472
4473 <page name="partsdcard2">
4474 <template name="page"/>
4475
4476 <template name="statusbar"/>
4477
4478 <text style="text_m">
4479 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004481 </text>
4482
4483 <text style="text_m_fail">
4484 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004485 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004486 </text>
4487
4488 <text style="text_m_fail">
4489 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004490 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004491 </text>
4492
4493 <text style="text_m_accent">
4494 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004495 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004496 </text>
4497
4498 <text style="text_m">
4499 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4500 <text>%tw_swap_size%</text>
4501 </text>
4502
4503 <button style="main_button_quarter_width">
4504 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004505 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004506 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004507 </button>
4508
4509 <button style="main_button_quarter_width">
4510 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004511 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004512 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004513 </button>
4514
4515 <button>
4516 <placement x="%col1_x_left%" y="%row11_y%"/>
4517 <highlight color="%highlight_color%"/>
4518 <image resource="q_btn_arrow_left"/>
4519 <action function="page">partsdcard</action>
4520 </button>
4521
4522 <button>
4523 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4524 <highlight color="%highlight_color%"/>
4525 <image resource="q_btn_arrow_right"/>
4526 <action function="page">partsdcard3</action>
4527 </button>
4528
4529 <action>
4530 <touch key="home"/>
4531 <action function="page">main</action>
4532 </action>
4533
4534 <action>
4535 <touch key="back"/>
4536 <action function="page">advanced</action>
4537 </action>
4538 </page>
4539
4540 <page name="partsdcard3">
4541 <template name="page"/>
4542
4543 <template name="statusbar"/>
4544
4545 <text style="text_m">
4546 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004547 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004548 </text>
4549
4550 <text style="text_m_fail">
4551 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004552 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004553 </text>
4554
4555 <text style="text_m_fail">
4556 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004557 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004558 </text>
4559
4560 <text style="text_m_accent">
4561 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 </text>
4564
4565 <text style="text_m">
4566 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4567 <text>%tw_sdpart_file_system%</text>
4568 </text>
4569
4570 <button style="main_button_quarter_width">
4571 <placement x="%indent%" y="%row6_y%"/>
4572 <text>EXT3</text>
4573 <action function="set">tw_sdpart_file_system=ext3</action>
4574 </button>
4575
4576 <button style="main_button_quarter_width">
4577 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4578 <text>EXT4</text>
4579 <action function="set">tw_sdpart_file_system=ext4</action>
4580 </button>
4581
4582 <button>
4583 <placement x="%col1_x_left%" y="%row11_y%"/>
4584 <highlight color="%highlight_color%"/>
4585 <image resource="q_btn_arrow_left"/>
4586 <action function="page">partsdcard2</action>
4587 </button>
4588
4589 <button>
4590 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4591 <highlight color="%highlight_color%"/>
4592 <image resource="q_btn_arrow_right"/>
4593 <action function="page">partsdcard_confirm</action>
4594 </button>
4595
4596 <action>
4597 <touch key="home"/>
4598 <action function="page">main</action>
4599 </action>
4600
4601 <action>
4602 <touch key="back"/>
4603 <action function="page">advanced</action>
4604 </action>
4605 </page>
4606
4607 <page name="partsdcard_confirm">
4608 <template name="page"/>
4609
4610 <template name="statusbar"/>
4611
4612 <text style="text_m">
4613 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004615 </text>
4616
4617 <text style="text_m_fail">
4618 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004619 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004620 </text>
4621
4622 <text style="text_m_fail">
4623 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004624 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004625 </text>
4626
4627 <text style="text_m_accent">
4628 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004629 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004630 </text>
4631
4632 <text style="text_m_accent">
4633 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004634 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004635 </text>
4636
4637 <text style="text_m_accent">
4638 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004639 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004640 </text>
4641
4642 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004643 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004644 <action function="page">partsdcardaction</action>
4645 <actions>
4646 <action function="set">tw_back=partsdcard</action>
4647 <action function="set">tw_action=partitionsd</action>
4648 <action function="set">tw_has_action2=1</action>
4649 <action function="set">tw_action2=set</action>
4650 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004651 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4652 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4653 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004654 <action function="page">action_page</action>
4655 </actions>
4656 </slider>
4657
4658 <action>
4659 <touch key="home"/>
4660 <action function="page">main</action>
4661 </action>
4662
4663 <action>
4664 <touch key="back"/>
4665 <action function="page">advanced</action>
4666 </action>
4667 </page>
4668
4669 <page name="htcdumlock">
4670 <template name="page"/>
4671
4672 <template name="statusbar"/>
4673
4674 <text style="text_m">
4675 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004676 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004677 </text>
4678
4679 <button style="main_button_full_width">
4680 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004681 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004682 <actions>
4683 <action function="set">tw_back=htcdumlock</action>
4684 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004685 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4686 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4687 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4688 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004689 <action function="page">confirm_action</action>
4690 </actions>
4691 </button>
4692
4693 <button style="main_button_full_width">
4694 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004695 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004696 <actions>
4697 <action function="set">tw_back=htcdumlock</action>
4698 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004699 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4700 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4701 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4702 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004703 <action function="page">confirm_action</action>
4704 </actions>
4705 </button>
4706
4707 <button style="main_button_full_width">
4708 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004709 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004710 <actions>
4711 <action function="set">tw_back=htcdumlock</action>
4712 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004713 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4714 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4715 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4716 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004717 <action function="page">confirm_action</action>
4718 </actions>
4719 </button>
4720
4721 <action>
4722 <touch key="home"/>
4723 <action function="page">main</action>
4724 </action>
4725
4726 <action>
4727 <touch key="back"/>
4728 <action function="page">advanced</action>
4729 </action>
4730 </page>
4731
Ethan Yonker53796e72019-01-11 22:49:52 -06004732 <page name="repackselect">
4733 <template name="page"/>
4734
4735 <template name="statusbar"/>
4736
4737 <text style="text_m">
4738 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4739 <text>{@repack_image_hdr=Select Image}</text>
4740 </text>
4741
4742 <fileselector>
4743 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
4744 <text>%tw_zip_location%</text>
4745 <filter extn=".img" folders="1" files="1"/>
4746 <path name="tw_zip_location" default="/sdcard"/>
4747 <data name="tw_filename"/>
4748 <selection name="tw_file"/>
4749 </fileselector>
4750
4751 <button>
4752 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4753 <highlight color="%highlight_color%"/>
4754 <image resource="q_btn_storage"/>
4755 <actions>
4756 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
4757 <action function="set">tw_back=install</action>
4758 <action function="page">select_storage</action>
4759 </actions>
4760 </button>
4761
4762 <action>
4763 <conditions>
4764 <condition var1="tw_filename" op="modified"/>
4765 </conditions>
4766 <action function="page">repackconfirm</action>
4767 </action>
4768
4769 <action>
4770 <touch key="back"/>
4771 <action function="page">advanced</action>
4772 </action>
4773
4774 <action>
4775 <touch key="home"/>
4776 <action function="page">main</action>
4777 </action>
4778 </page>
4779
4780 <page name="repackconfirm">
4781 <template name="page"/>
4782
4783 <template name="statusbar"/>
4784
4785 <text style="text_m">
4786 <condition var1="tw_repack_kernel" var2="1"/>
4787 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4788 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4789 </text>
4790
4791 <text style="text_m">
4792 <condition var1="tw_repack_kernel" var2="0"/>
4793 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4794 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4795 </text>
4796
4797 <text style="text_m_accent">
4798 <placement x="%indent%" y="%row2_y%"/>
4799 <text>{@folder=Folder:}</text>
4800 </text>
4801
4802 <text style="text_m">
4803 <placement x="%indent%" y="%row3_y%"/>
4804 <text>%tw_zip_location%</text>
4805 </text>
4806
4807 <text style="text_m_accent">
4808 <placement x="%indent%" y="%row4_y%"/>
4809 <text>{@file=File:}</text>
4810 </text>
4811
4812 <text style="text_m">
4813 <placement x="%indent%" y="%row5_y%"/>
4814 <text>%tw_file%</text>
4815 </text>
4816
4817 <checkbox>
4818 <placement x="%indent%" y="%row7_y%"/>
4819 <text>{@repack_backup_first=Back up existing image first}</text>
4820 <data variable="tw_repack_backup_first"/>
4821 </checkbox>
4822
4823 <slider>
4824 <text>{@swipe_to_install=Swipe to Install}</text>
4825 <actions>
4826 <action function="set">tw_back=advanced</action>
4827 <action function="set">tw_action=repackimage</action>
4828 <action function="set">tw_action_param=/boot</action>
4829 <action function="set">tw_action_text1={@installing=Installing...}</action>
4830 <action function="set">tw_action_text2=</action>
4831 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4832 <action function="page">action_page</action>
4833 </actions>
4834 </slider>
4835
4836 <action>
4837 <touch key="back"/>
4838 <action function="page">repackselect</action>
4839 </action>
4840
4841 <action>
4842 <touch key="home"/>
4843 <action function="page">main</action>
4844 </action>
4845 </page>
4846
z31s1g28f0a922015-11-07 18:50:22 +01004847 <page name="lock">
4848 <background color="%semi_transparent%"/>
4849
4850 <image>
4851 <image resource="unlock_icon"/>
4852 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4853 </image>
4854
4855 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004856 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004857 <action function="overlay"/>
4858 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004859
4860 <action>
4861 <touch key="power"/>
4862 <action function="togglebacklight"/>
4863 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004864 </page>
4865
4866 <page name="filemanagerlist">
4867 <template name="page"/>
4868
4869 <template name="statusbar"/>
4870
4871 <text style="text_m">
4872 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004873 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004874 </text>
4875
4876 <fileselector>
4877 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4878 <text>%tw_file_location1%</text>
4879 <filter folders="1" files="1"/>
4880 <path name="tw_file_location1" default="/"/>
4881 <data name="tw_filename1"/>
4882 <selection name="tw_selection1"/>
4883 </fileselector>
4884
4885 <button>
4886 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4887 <highlight color="%highlight_color%"/>
4888 <image resource="q_btn_folder"/>
4889 <actions>
4890 <action function="set">tw_filename1=tw_file_location1</action>
4891 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004892 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004893 <action function="page">filemanageroptions</action>
4894 </actions>
4895 </button>
4896
4897 <action>
4898 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004899 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004900 <action function="set">tw_fm_isfolder=0</action>
4901 </actions>
4902 </action>
4903
4904 <action>
4905 <touch key="home"/>
4906 <action function="page">main</action>
4907 </action>
4908
4909 <action>
4910 <touch key="back"/>
4911 <action function="page">main3</action>
4912 </action>
4913
4914 <action>
4915 <condition var1="tw_filename1" op="modified"/>
4916 <action function="page">filemanageroptions</action>
4917 </action>
4918 </page>
4919
4920 <page name="filemanageroptions">
4921 <template name="page"/>
4922
4923 <template name="statusbar"/>
4924
4925 <text style="text_m">
4926 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004927 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004928 </text>
4929
4930 <button style="main_button">
4931 <condition var1="tw_fm_isfolder" var2="0"/>
4932 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004933 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004934 <actions>
4935 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004936 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004937 <action function="page">choosedestinationfolder</action>
4938 </actions>
4939 </button>
4940
4941 <button style="main_button">
4942 <condition var1="tw_fm_isfolder" var2="1"/>
4943 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004944 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004945 <actions>
4946 <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 -05004947 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004948 <action function="page">choosedestinationfolder</action>
4949 </actions>
4950 </button>
4951
4952 <button style="main_button">
4953 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004954 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004955 <actions>
4956 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004957 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004958 <action function="page">choosedestinationfolder</action>
4959 </actions>
4960 </button>
4961
4962 <button style="main_button">
4963 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004964 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004965 <actions>
4966 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004967 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004968 <action function="set">tw_fm_text2=</action>
4969 <action function="set">tw_fm_text3=</action>
4970 <action function="set">tw_include_text3=0</action>
4971 <action function="set">tw_back=filemanageroptions</action>
4972 <action function="page">filemanagerconfirm</action>
4973 </actions>
4974 </button>
4975
4976 <button style="main_button">
4977 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004978 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004979 <actions>
4980 <action function="set">tw_filemanager_rename=0000</action>
4981 <action function="set">tw_fm_text2=</action>
4982 <action function="set">tw_fm_text3=</action>
4983 <action function="set">tw_include_text3=0</action>
4984 <action function="set">tw_back=filemanageroptions</action>
4985 <action function="page">filemanagerchmod</action>
4986 </actions>
4987 </button>
4988
4989 <button style="main_button">
4990 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004991 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004992 <actions>
4993 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004994 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004995 <action function="set">tw_fm_text2=</action>
4996 <action function="set">tw_fm_text3=</action>
4997 <action function="set">tw_include_text3=0</action>
4998 <action function="set">tw_back=filemanageroptions</action>
4999 <action function="page">filemanagerconfirm</action>
5000 </actions>
5001 </button>
5002
5003 <button style="main_button">
5004 <condition var1="tw_fm_isfolder" var2="0"/>
5005 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005006 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005007 <actions>
5008 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005009 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005010 <action function="set">tw_filemanager_command=mv</action>
5011 <action function="page">filemanagerrenamefile</action>
5012 </actions>
5013 </button>
5014
5015 <button style="main_button">
5016 <condition var1="tw_fm_isfolder" var2="1"/>
5017 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005018 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005019 <actions>
5020 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005021 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005022 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
5023 <action function="page">filemanagerrenamefolder</action>
5024 </actions>
5025 </button>
5026
5027 <action>
5028 <touch key="home"/>
5029 <action function="page">main</action>
5030 </action>
5031
5032 <action>
5033 <touch key="back"/>
5034 <action function="page">filemanagerlist</action>
5035 </action>
5036 </page>
5037
5038 <page name="choosedestinationfolder">
5039 <template name="page"/>
5040
5041 <template name="statusbar"/>
5042
5043 <text style="text_m">
5044 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005045 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005046 </text>
5047
5048 <fileselector>
5049 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5050 <text>%tw_file_location2%</text>
5051 <filter folders="1" files="0"/>
5052 <path name="tw_file_location2" default="/"/>
5053 <data name="tw_filename2"/>
5054 <selection name="tw_selection2"/>
5055 </fileselector>
5056
5057 <button>
5058 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5059 <highlight color="%highlight_color%"/>
5060 <image resource="q_btn_folder"/>
5061 <actions>
5062 <action function="set">tw_fm_text2=to</action>
5063 <action function="set">tw_fm_text3=%tw_file_location2%</action>
5064 <action function="set">tw_include_text3=1</action>
5065 <action function="set">tw_back=filemanageroptions</action>
5066 <action function="page">filemanagerconfirm</action>
5067 </actions>
5068 </button>
5069
5070 <action>
5071 <touch key="home"/>
5072 <action function="page">main</action>
5073 </action>
5074
5075 <action>
5076 <touch key="back"/>
5077 <action function="page">filemanageroptions</action>
5078 </action>
5079 </page>
5080
5081 <page name="filemanagerrenamefile">
5082 <template name="page"/>
5083
5084 <template name="statusbar"/>
5085
5086 <text style="text_m">
5087 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005088 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005089 </text>
5090
5091 <text style="text_m_accent">
5092 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005093 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005094 </text>
5095
5096 <input>
5097 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5098 <text>%tw_filemanager_rename%</text>
5099 <data name="tw_filemanager_rename"/>
5100 <restrict minlen="1" maxlen="128"/>
5101 <actions>
5102 <action function="set">tw_fm_text2=to</action>
5103 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
5104 <action function="set">tw_include_text3=1</action>
5105 <action function="set">tw_back=filemanageroptions</action>
5106 <action function="page">filemanagerconfirm</action>
5107 </actions>
5108 </input>
5109
5110 <fill color="%accent_color%">
5111 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5112 </fill>
5113
5114 <button style="main_button_half_height">
5115 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005116 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005117 <action function="page">filemanageroptions</action>
5118 </button>
5119
5120 <template name="keyboardtemplate"/>
5121
5122 <action>
5123 <touch key="home"/>
5124 <action function="page">main</action>
5125 </action>
5126
5127 <action>
5128 <touch key="back"/>
5129 <action function="page">filemanageroptions</action>
5130 </action>
5131 </page>
5132
5133 <page name="filemanagerrenamefolder">
5134 <template name="page"/>
5135
5136 <template name="statusbar"/>
5137
5138 <text style="text_m">
5139 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005140 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005141 </text>
5142
5143 <text style="text_m_accent">
5144 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005145 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005146 </text>
5147
5148 <input>
5149 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5150 <text>%tw_filemanager_rename%</text>
5151 <data name="tw_filemanager_rename"/>
5152 <restrict minlen="1" maxlen="128"/>
5153 <actions>
5154 <action function="set">tw_fm_text2=to</action>
5155 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
5156 <action function="set">tw_include_text3=1</action>
5157 <action function="set">tw_back=filemanageroptions</action>
5158 <action function="page">filemanagerconfirm</action>
5159 </actions>
5160 </input>
5161
5162 <fill color="%accent_color%">
5163 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5164 </fill>
5165
5166 <button style="main_button_half_height">
5167 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005168 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005169 <action function="page">filemanageroptions</action>
5170 </button>
5171
5172 <template name="keyboardtemplate"/>
5173
5174 <action>
5175 <touch key="home"/>
5176 <action function="page">main</action>
5177 </action>
5178
5179 <action>
5180 <touch key="back"/>
5181 <action function="page">filemanageroptions</action>
5182 </action>
5183 </page>
5184
5185 <page name="filemanagerchmod">
5186 <template name="page"/>
5187
5188 <template name="statusbar"/>
5189
5190 <text style="text_m">
5191 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005192 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005193 </text>
5194
5195 <text style="text_m_accent">
5196 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005197 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005198 </text>
5199
5200 <input>
5201 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5202 <text>%tw_filemanager_rename%</text>
5203 <data name="tw_filemanager_rename"/>
5204 <restrict minlen="3" maxlen="4" allow="0123456789"/>
5205 <actions>
5206 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
5207 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
5208 <action function="set">tw_back=filemanageroptions</action>
5209 <action function="page">filemanagerconfirm</action>
5210 </actions>
5211 </input>
5212
5213 <fill color="%accent_color%">
5214 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5215 </fill>
5216
5217 <button style="main_button_half_height">
5218 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005219 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005220 <action function="page">filemanageroptions</action>
5221 </button>
5222
5223 <template name="keyboardtemplate"/>
5224
5225 <action>
5226 <touch key="home"/>
5227 <action function="page">main</action>
5228 </action>
5229
5230 <action>
5231 <touch key="back"/>
5232 <action function="page">filemanageroptions</action>
5233 </action>
5234 </page>
5235
5236 <page name="filemanagerconfirm">
5237 <template name="page"/>
5238
5239 <template name="statusbar"/>
5240
5241 <text style="text_m">
5242 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005243 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005244 </text>
5245
5246 <text style="text_m_accent">
5247 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5248 <text>%tw_fm_text1%</text>
5249 </text>
5250
5251 <text style="text_m">
5252 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5253 <text>%tw_filename1%</text>
5254 </text>
5255
5256 <text style="text_m_accent">
5257 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5258 <text>%tw_fm_text2%</text>
5259 </text>
5260
5261 <text style="text_m">
5262 <placement x="%center_x%" y="%row6_y%" placement="5"/>
5263 <text>%tw_fm_text3%</text>
5264 </text>
5265
5266 <text style="text_m">
5267 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005268 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005269 </text>
5270
5271 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005272 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005273 <action function="page">filemanageraction</action>
5274 </slider>
5275
5276 <action>
5277 <touch key="back"/>
5278 <action function="page">%tw_back%</action>
5279 </action>
5280
5281 <action>
5282 <touch key="home"/>
5283 <action function="page">main</action>
5284 </action>
5285 </page>
5286
5287 <page name="filemanageraction">
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; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005295 </text>
5296
5297 <template name="console"/>
5298
5299 <template name="progress_bar"/>
5300
5301 <action>
5302 <conditions>
5303 <condition var1="tw_operation_state" var2="1"/>
5304 <condition var1="tw_operation_status" var2="0"/>
5305 </conditions>
5306 <actions>
5307 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005308 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005309 <action function="page">action_complete</action>
5310 </actions>
5311 </action>
5312
5313 <action>
5314 <conditions>
5315 <condition var1="tw_operation_state" var2="1"/>
5316 <condition var1="tw_operation_status" op="!=" var2="0"/>
5317 </conditions>
5318 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005319 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005320 <action function="page">action_complete</action>
5321 </actions>
5322 </action>
5323
5324 <action>
5325 <condition var1="tw_include_text3" var2="0"/>
5326 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
5327 </action>
5328
5329 <action>
5330 <condition var1="tw_include_text3" var2="1"/>
5331 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5332 </action>
5333 </page>
5334
5335 <page name="decrypt">
5336 <template name="page"/>
5337
5338 <template name="statusbar"/>
5339
5340 <action>
5341 <condition var1="tw_crypto_pwtype" var2="2"/>
5342 <action function="page">decrypt_pattern</action>
5343 </action>
5344
5345 <text style="text_m">
5346 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005347 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005348 </text>
5349
5350 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005351 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005352 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005353 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005354 </text>
5355
Noah Jacobson81d638d2019-04-28 00:10:07 -04005356 <text style="text_m_accent">
5357 <condition var1="tw_is_fbe" var2="1"/>
5358 <placement x="%col1_x_left%" y="%row1_y%"/>
5359 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
5360 </text>
5361
z31s1g28f0a922015-11-07 18:50:22 +01005362 <input>
5363 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5364 <text>%tw_crypto_display%</text>
5365 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5366 <restrict minlen="1" maxlen="254"/>
5367 <action function="page">trydecrypt</action>
5368 </input>
5369
5370 <fill color="%accent_color%">
5371 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5372 </fill>
5373
5374 <fill color="%text_fail_color%">
5375 <condition var1="tw_password_fail" var2="1"/>
5376 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5377 </fill>
5378
5379 <text style="text_m_fail">
5380 <condition var1="tw_password_fail" var2="1"/>
5381 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005382 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005383 </text>
5384
5385 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005386 <placement x="%col1_x_left%" y="%row4_y%"/>
5387 <text>{@sel_lang_btn=Select Language}</text>
5388 <action function="page">settings_language</action>
5389 </button>
5390
5391 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005392 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005393 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005394 <actions>
5395 <action function="set">tw_page_done=1</action>
5396 <action function="page">main</action>
5397 </actions>
5398 </button>
5399
5400 <template name="keyboardtemplate"/>
5401 </page>
5402
5403 <page name="decrypt_pattern">
5404 <template name="page"/>
5405
5406 <template name="statusbar"/>
5407
Aleksa Saraib25a1832015-12-31 17:36:00 +01005408 <action>
5409 <action function="set">tw_gui_pattern_grid_size=3</action>
5410 </action>
5411
z31s1g28f0a922015-11-07 18:50:22 +01005412 <text style="text_m">
5413 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005414 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005415 </text>
5416
5417 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005418 <condition var1="tw_is_fbe" op="!=" var2="1"/>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005419 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005420 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005421 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005422 </text>
5423
Noah Jacobson81d638d2019-04-28 00:10:07 -04005424 <text style="text_m_accent">
5425 <condition var1="tw_is_fbe" var2="1"/>
5426 <condition var1="tw_password_fail" op="!=" var2="1"/>
5427 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5428 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5429 </text>
5430
Aleksa Saraib25a1832015-12-31 17:36:00 +01005431 <text style="text_m_fail">
5432 <condition var1="tw_password_fail" var2="1"/>
5433 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005434 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005435 </text>
5436
z31s1g28f0a922015-11-07 18:50:22 +01005437 <text style="text_m">
5438 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005439 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005440 </text>
5441
5442 <patternpassword>
5443 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005444 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5445 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5446 <data name="tw_crypto_password"/>
5447 <action function="page">trydecrypt</action>
5448 </patternpassword>
5449
5450 <fill color="#000000">
5451 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5452 </fill>
5453
5454 <button>
5455 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5456 <image resource="back"/>
5457 <condition var1="tw_busy" var2="0"/>
5458 <actions>
5459 <action function="set">tw_page_done=1</action>
5460 <action function="page">main</action>
5461 </actions>
5462 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005463
5464 <button>
5465 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5466 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5467 <image resource="grid_less"/>
5468 <action function="set">tw_gui_pattern_grid_size=3</action>
5469 </button>
5470
5471 <button>
5472 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5473 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5474 <image resource="grid_less"/>
5475 <action function="set">tw_gui_pattern_grid_size=3</action>
5476 </button>
5477
5478 <button>
5479 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5480 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5481 <image resource="grid_less"/>
5482 <action function="set">tw_gui_pattern_grid_size=4</action>
5483 </button>
5484
5485 <button>
5486 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5487 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5488 <image resource="grid_less"/>
5489 <action function="set">tw_gui_pattern_grid_size=5</action>
5490 </button>
5491
5492 <button>
5493 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5494 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5495 <image resource="grid_more"/>
5496 <action function="set">tw_gui_pattern_grid_size=4</action>
5497 </button>
5498
5499 <button>
5500 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5501 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5502 <image resource="grid_more"/>
5503 <action function="set">tw_gui_pattern_grid_size=5</action>
5504 </button>
5505
5506 <button>
5507 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5508 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5509 <image resource="grid_more"/>
5510 <action function="set">tw_gui_pattern_grid_size=6</action>
5511 </button>
5512
5513 <button>
5514 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5515 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5516 <image resource="grid_more"/>
5517 <action function="set">tw_gui_pattern_grid_size=6</action>
5518 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005519 </page>
5520
5521 <page name="trydecrypt">
5522 <template name="page"/>
5523
5524 <template name="statusbar"/>
5525
5526 <text style="text_m">
5527 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005528 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005529 </text>
5530
5531 <template name="console"/>
5532
5533 <template name="progress_bar"/>
5534
5535 <action>
5536 <action function="decrypt"/>
5537 </action>
5538
5539 <action>
5540 <conditions>
5541 <condition var1="tw_operation_state" var2="1"/>
5542 <condition var1="tw_operation_status" op="!=" var2="0"/>
5543 </conditions>
5544 <actions>
5545 <action function="set">tw_password_fail=1</action>
5546 <action function="page">decrypt</action>
5547 </actions>
5548 </action>
5549
5550 <action>
5551 <conditions>
5552 <condition var1="tw_operation_state" var2="1"/>
5553 <condition var1="tw_operation_status" op="=" var2="0"/>
5554 </conditions>
5555 <actions>
5556 <action function="set">tw_page_done=1</action>
5557 <action function="page">main</action>
5558 </actions>
5559 </action>
5560 </page>
5561
z31s1g28f0a922015-11-07 18:50:22 +01005562 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005563 <terminal>
5564 <condition var1="tw_hide_kb" var2="0"/>
5565 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5566 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005567
z31s1g56189522016-01-13 19:12:40 +01005568 <terminal>
5569 <condition var1="tw_hide_kb" var2="1"/>
5570 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5571 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005572
z31s1g56189522016-01-13 19:12:40 +01005573 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005574
5575 <template name="keyboardtemplate"/>
5576
z31s1g608d7ff2016-01-18 19:47:25 +01005577 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005578 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005579 </fill>
z31s1g56189522016-01-13 19:12:40 +01005580
z31s1g608d7ff2016-01-18 19:47:25 +01005581 <button>
z31s1g56189522016-01-13 19:12:40 +01005582 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5583 <image resource="back" />
5584 <condition var1="tw_busy" var2="0" />
5585 <actions>
5586 <action function="set">tw_hide_kb=0</action>
5587 <action function="key">back</action>
5588 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005589 </button>
z31s1g56189522016-01-13 19:12:40 +01005590
z31s1g608d7ff2016-01-18 19:47:25 +01005591 <button>
z31s1g56189522016-01-13 19:12:40 +01005592 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5593 <image resource="home" />
5594 <condition var1="tw_busy" var2="0" />
5595 <actions>
5596 <action function="set">tw_hide_kb=0</action>
5597 <action function="key">home</action>
5598 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005599 </button>
z31s1g56189522016-01-13 19:12:40 +01005600
z31s1g608d7ff2016-01-18 19:47:25 +01005601 <button>
z31s1g56189522016-01-13 19:12:40 +01005602 <condition var1="tw_hide_kb" var2="0"/>
5603 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5604 <image resource="kb_hide" />
5605 <condition var1="tw_busy" var2="0" />
5606 <actions>
5607 <action function="set">tw_hide_kb=1</action>
5608 <action function="page">terminalcommand</action>
5609 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005610 </button>
z31s1g56189522016-01-13 19:12:40 +01005611
z31s1g608d7ff2016-01-18 19:47:25 +01005612 <button>
z31s1g56189522016-01-13 19:12:40 +01005613 <condition var1="tw_hide_kb" var2="1"/>
5614 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5615 <image resource="kb_show" />
5616 <condition var1="tw_busy" var2="0" />
5617 <actions>
5618 <action function="set">tw_hide_kb=0</action>
5619 <action function="page">terminalcommand</action>
5620 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005621 </button>
z31s1g56189522016-01-13 19:12:40 +01005622
z31s1g28f0a922015-11-07 18:50:22 +01005623 <action>
5624 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005625 <actions>
5626 <action function="set">tw_hide_kb=0</action>
5627 <action function="page">main</action>
5628 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005629 </action>
5630
5631 <action>
5632 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005633 <actions>
5634 <action function="set">tw_hide_kb=0</action>
5635 <action function="page">advanced</action>
5636 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005637 </action>
z31s1g56189522016-01-13 19:12:40 +01005638
z31s1g608d7ff2016-01-18 19:47:25 +01005639 <action>
z31s1g56189522016-01-13 19:12:40 +01005640 <touch key="power+voldown" />
5641 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005642 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005643 </page>
5644
5645 <page name="sideload">
5646 <template name="page"/>
5647
5648 <template name="statusbar"/>
5649
5650 <text style="text_m">
5651 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005652 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005653 </text>
5654
5655 <text style="text_m_accent">
5656 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005657 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005658 </text>
5659
5660 <checkbox>
5661 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005662 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005663 <data variable="tw_wipe_dalvik"/>
5664 </checkbox>
5665
5666 <checkbox>
5667 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005668 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005669 <data variable="tw_wipe_cache"/>
5670 </checkbox>
5671
5672 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005673 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005674 <actions>
5675 <action function="set">tw_back=install_type</action>
5676 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005677 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5678 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5679 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005680 <action function="set">tw_has_cancel=1</action>
5681 <action function="set">tw_show_reboot=1</action>
5682 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5683 <action function="page">action_page</action>
5684 </actions>
5685 </slider>
5686
5687 <action>
5688 <touch key="home"/>
5689 <action function="page">main</action>
5690 </action>
5691
5692 <action>
5693 <touch key="back"/>
5694 <action function="page">install_type</action>
5695 </action>
5696 </page>
5697
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005698 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005699 <template name="page"/>
5700
5701 <template name="statusbar"/>
5702
5703 <text style="text_m">
5704 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005705 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005706 </text>
5707
5708 <text style="text_m_accent">
5709 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005710 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005711 </text>
5712
z31s1g28f0a922015-11-07 18:50:22 +01005713 <text style="text_m_fail">
5714 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005715 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005716 </text>
5717
5718 <text style="text_m_fail">
5719 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005720 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005721 </text>
5722
5723 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005724 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005725 <actions>
5726 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005727 <action function="set">tw_action=fixcontexts</action>
5728 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5729 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005730 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005731 <action function="set">tw_show_reboot=1</action>
5732 <action function="page">action_page</action>
5733 </actions>
5734 </slider>
5735
5736 <action>
5737 <touch key="home"/>
5738 <action function="page">main</action>
5739 </action>
5740
5741 <action>
5742 <touch key="back"/>
5743 <action function="page">advanced</action>
5744 </action>
5745 </page>
5746
z31s1g28f0a922015-11-07 18:50:22 +01005747 <page name="slideout">
5748 <fill color="%background_color%">
5749 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5750 </fill>
5751
5752 <console>
5753 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5754 </console>
5755
5756 <fill color="%fileselector_linecolor%">
5757 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5758 </fill>
5759
5760 <fill color="%fileselector_linecolor%">
5761 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5762 </fill>
5763
5764 <button>
5765 <fill color="%transparent%"/>
5766 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5767 <action function="overlay"/>
5768 </button>
5769
5770 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005771 <touch key="power"/>
5772 <action function="togglebacklight"/>
5773 </action>
5774
5775 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005776 <touch key="power+voldown"/>
5777 <action function="screenshot"/>
5778 </action>
5779 </page>
5780
5781 <page name="select_storage">
5782 <template name="page"/>
5783
5784 <template name="statusbar"/>
5785
5786 <text style="text_m">
5787 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5788 <text>%tw_storagetext%</text>
5789 </text>
5790
5791 <partitionlist style="partitionlist_headerless_rb">
5792 <data name="tw_storage_path"/>
5793 <listtype name="storage"/>
5794 </partitionlist>
5795
5796 <button>
5797 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5798 <highlight color="%highlight_color%"/>
5799 <image resource="q_btn_refresh"/>
5800 <actions>
5801 <action function="refreshsizes"/>
5802 <action function="page">select_storage</action>
5803 </actions>
5804 </button>
5805
5806 <button>
5807 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5808 <highlight color="%highlight_color%"/>
5809 <image resource="q_btn_accept"/>
5810 <actions>
5811 <action function="set">tw_clear_destination=%tw_back%</action>
5812 <action function="page">clear_vars</action>
5813 </actions>
5814 </button>
5815
5816 <action>
5817 <touch key="power+voldown"/>
5818 <action function="screenshot"/>
5819 </action>
5820 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005821
5822 <page name="decrypt_users">
5823 <template name="page"/>
5824
5825 <text style="text_l">
5826 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5827 <text>{@decrypt_users=Decrypt Users}</text>
5828 </text>
5829
5830 <text style="text_m_accent">
5831 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5832 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5833 </text>
5834
5835 <listbox>
5836 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
5837 <text>{@select_user=Select User}</text>
5838 <icon selected="radio_true" unselected="radio_false" />
5839 <data name="tw_crypto_user_id" />
5840 </listbox>
5841
5842 <button style="main_button_half_height">
5843 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
5844 <text>{@decrypt_users=Decrypt Users}</text>
5845 <action function="set">tw_crypto_password=</action>
5846 <action function="set">tw_password_fail=0</action>
5847 <action function="page">decrypt</action>
5848 </button>
5849
5850 <action>
5851 <touch key="home"/>
5852 <action function="page">main</action>
5853 </action>
5854
5855 <action>
5856 <touch key="back"/>
5857 <action function="page">advanced</action>
5858 </action>
5859 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005860 </pages>
5861</recovery>