blob: bead7e619ee28c2198f01a85db4997d01f3144e3 [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_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <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 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
z31s1g28f0a922015-11-07 18:50:22 +0100149 <style name="slider">
150 <placement x="%center_x%" y="%row23_y%"/>
151 <font resource="font_s" color="%text_color%"/>
152 <resource base="slider" used="slider_used" touch="slider_touch"/>
153 </style>
154
155 <style name="slidervalue">
156 <resource handle="handle"/>
157 <font resource="font_m" color="%text_color%"/>
158 <colors line="%fileselector_linecolor%"/>
159 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
160 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100161
162 <style name="patternpassword">
163 <size name="tw_gui_pattern_grid_size" default="3"/>
164 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100165 </styles>
166
167 <pages>
168 <page name="main">
169 <action>
170 <actions>
171 <action function="set">tw_clear_destination=main2</action>
172 <action function="page">clear_vars</action>
173 </actions>
174 </action>
175 </page>
176
177 <page name="main2">
178 <template name="page"/>
179
180 <text style="text_l">
181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500182 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100183 </text>
184
185 <text style="text_m">
186 <condition var1="tw_no_cpu_temp" var2="0"/>
187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
188 <text>%tw_version%</text>
189 </text>
190
191 <button style="main_button">
192 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500193 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100194 <actions>
195 <action function="queueclear"/>
196 <action function="set">tw_selectimage=0</action>
197 <action function="page">install</action>
198 </actions>
199 </button>
200
201 <button style="main_button">
202 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500203 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100204 <action function="page">wipe</action>
205 </button>
206
207 <button style="main_button">
208 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500209 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100210 <action function="page">backup</action>
211 </button>
212
213 <button style="main_button">
214 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500215 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100216 <action function="page">restore</action>
217 </button>
218
219 <button style="main_button">
220 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">mount</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">settings</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">advanced</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row19_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 </page>
243
244 <page name="install">
245 <template name="page"/>
246
247 <text style="text_l">
248 <condition var1="tw_selectimage" var2="0"/>
249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 </text>
252
253 <text style="text_l">
254 <condition var1="tw_selectimage" var2="1"/>
255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 </text>
258
259 <text style="text_m">
260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500261 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100262 </text>
263
264 <template name="sort_options"/>
265
266 <fileselector>
267 <condition var1="tw_selectimage" var2="0"/>
268 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
269 <text>%tw_zip_location%</text>
mauronofrio0ff59842019-10-26 19:47:55 +0200270 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100271 <path name="tw_zip_location" default="/sdcard"/>
272 <data name="tw_filename"/>
273 <selection name="tw_file"/>
274 </fileselector>
275
276 <fileselector>
277 <condition var1="tw_selectimage" var2="1"/>
278 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
279 <text>%tw_zip_location%</text>
280 <filter extn=".img" folders="1" files="1"/>
281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <button style="main_button_half_height">
287 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500288 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100289 <actions>
290 <action function="set">tw_back=install</action>
291 <action function="overlay">select_storage</action>
292 </actions>
293 </button>
294
295 <button style="main_button_half_height">
296 <condition var1="tw_selectimage" var2="0"/>
297 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_selectimage=1</action>
301 <action function="page">install</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="1"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=0</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <action>
316 <conditions>
317 <condition var1="tw_selectimage" var2="0"/>
318 <condition var1="tw_filename" op="modified"/>
319 </conditions>
320 <actions>
321 <action function="queuezip"/>
322 <action function="page">flash_confirm</action>
323 </actions>
324 </action>
325
326 <action>
327 <conditions>
328 <condition var1="tw_selectimage" var2="1"/>
329 <condition var1="tw_filename" op="modified"/>
330 </conditions>
331 <action function="page">flashimage_confirm</action>
332 </action>
333
334 <action>
335 <touch key="back"/>
336 <action function="page">main</action>
337 </action>
338
339 <action>
340 <touch key="home"/>
341 <action function="page">main</action>
342 </action>
343 </page>
344
345 <page name="flash_confirm">
346 <template name="page"/>
347
348 <text style="text_l">
349 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500350 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100351 </text>
352
353 <text style="text_m">
354 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500355 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100356 </text>
357
358 <text style="text_m_accent">
359 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500360 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100361 </text>
362
363 <text style="text_m_accent">
364 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500365 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100366 </text>
367
368 <text style="text_m">
369 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500370 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100371 </text>
372
373 <text style="text_m_accent">
374 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500375 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100376 </text>
377
378 <text style="text_m">
379 <placement x="%indent%" y="%row8_y%"/>
380 <text>%tw_zip_location%</text>
381 </text>
382
383 <text style="text_m_accent">
384 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500385 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100386 </text>
387
388 <text style="text_m">
389 <placement x="%indent%" y="%row10a_y%"/>
390 <text>%tw_file%</text>
391 </text>
392
393 <checkbox>
394 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500395 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100396 <data variable="tw_signed_zip_verify"/>
397 </checkbox>
398
399 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600400 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500401 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600402 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500403 </checkbox>
404
405 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500406 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300407 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500408 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100409 <data variable="tw_inject_after_zip"/>
410 </checkbox>
411
412 <button style="main_button_half_height">
413 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500414 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100415 <action function="page">install</action>
416 </button>
417
418 <button style="main_button_half_height">
419 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500420 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100421 <actions>
422 <action function="queueclear"/>
423 <action function="page">install</action>
424 </actions>
425 </button>
426
427 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500428 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100429 <action function="flash">flash_zip</action>
430 </slider>
431
432 <action>
433 <touch key="back"/>
434 <actions>
435 <action function="cancelzip"/>
436 <action function="page">install</action>
437 </actions>
438 </action>
439
440 <action>
441 <touch key="home"/>
442 <action function="page">main</action>
443 </action>
444 </page>
445
446 <page name="flash_zip">
447 <template name="page"/>
448
449 <text style="text_l">
450 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 </text>
453
454 <text style="text_m">
455 <placement x="%col1_x_header%" y="%row4_header_y%"/>
456 <text>%tw_file%</text>
457 </text>
458
459 <template name="console"/>
460
461 <template name="progress_bar"/>
462
463 <action>
464 <condition var1="tw_operation_state" var2="1"/>
465 <action function="page">flash_done</action>
466 </action>
467 </page>
468
469 <page name="flash_done">
470 <template name="page"/>
471
472 <text style="text_l">
473 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500474 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100475 </text>
476
477 <text style="text_m_fail">
478 <condition var1="tw_operation_status" op="!=" var2="0"/>
479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500480 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100481 </text>
482
483 <text style="text_m">
484 <condition var1="tw_operation_status" var2="0"/>
485 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500486 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100487 </text>
488
489 <template name="console"/>
490
491 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500492 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100493 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500494 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100495 <actions>
496 <action function="set">tw_back=flash_done</action>
497 <action function="set">tw_action=wipe</action>
498 <action function="set">tw_action_param=/cache</action>
499 <action function="set">tw_has_action2=1</action>
500 <action function="set">tw_action2=wipe</action>
501 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500502 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
503 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
504 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
505 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100506 <action function="page">confirm_action</action>
507 </actions>
508 </button>
509
510 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500511 <condition var1="tw_ab_device" var2="1"/>
512 <placement x="%indent%" y="%row21a_y%"/>
513 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
514 <actions>
515 <action function="set">tw_back=flash_done</action>
516 <action function="set">tw_action=wipe</action>
517 <action function="set">tw_action_param=dalvik</action>
518 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
519 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
520 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
521 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
522 <action function="page">confirm_action</action>
523 </actions>
524 </button>
525
526 <button style="main_button_half_height">
Chaosmaster90df3de2020-02-07 20:33:43 +0100527 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100528 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500529 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100530 <actions>
531 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500532 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100533 </actions>
534 </button>
535
Chaosmaster90df3de2020-02-07 20:33:43 +0100536 <button style="main_button_half_height">
537 <condition var1="tw_ab_device" var2="1"/>
538 <placement x="%center_x%" y="%row21a_y%"/>
539 <text>{@reboot_btn=Reboot}</text>
540 <actions>
541 <action function="set">tw_back=main2</action>
542 <action function="page">reboot</action>
543 </actions>
544 </button>
545
z31s1g28f0a922015-11-07 18:50:22 +0100546 <action>
547 <touch key="back"/>
548 <actions>
549 <action function="set">tw_clear_destination=install</action>
550 <action function="page">clear_vars</action>
551 </actions>
552 </action>
553
554 <action>
555 <touch key="home"/>
556 <actions>
557 <action function="set">tw_clear_destination=main2</action>
558 <action function="page">clear_vars</action>
559 </actions>
560 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500561
562 <action>
563 <conditions>
564 <condition var1="tw_install_reboot" var2="1"/>
565 <condition var1="tw_operation_status" var2="0"/>
566 <condition var1="tw_reboot_system" var2="1"/>
567 </conditions>
568 <actions>
569 <action function="set">tw_sleep=%tw_sleep_total%</action>
570 <action function="page">flash_sleep_and_reboot</action>
571 </actions>
572 </action>
573 </page>
574
575 <page name="flash_sleep_and_reboot">
576 <template name="page"/>
577
578 <text style="text_l">
579 <placement x="%col1_x_header%" y="%row3_header_y%"/>
580 <text>{@install_zip_hdr=Install Zip}</text>
581 </text>
582
583 <text style="text_m">
584 <placement x="%col1_x_header%" y="%row4_header_y%"/>
585 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
586 </text>
587
588 <template name="console"/>
589
590 <template name="progress_bar"/>
591
592 <button style="main_button_half_height">
593 <condition var1="tw_sleep" op="&gt;" var2="0"/>
594 <placement x="%center_x%" y="%row21a_y%"/>
595 <text>{@cancel_btn=Cancel}</text>
596 <actions>
597 <action function="set">tw_install_reboot=0</action>
598 <action function="page">flash_done</action>
599 </actions>
600 </button>
601
602 <action>
603 <conditions>
604 <condition var1="tw_sleep" var2="tw_sleep_total"/>
605 <condition var1="tw_install_reboot" var2="1"/>
606 </conditions>
607 <action function="sleepcounter">%tw_sleep_total%</action>
608 </action>
609
610 <action>
611 <conditions>
612 <condition var1="tw_sleep" var2="0"/>
613 <condition var1="tw_install_reboot" var2="1"/>
614 </conditions>
615 <actions>
616 <action function="sleep">50000</action>
617 <action function="set">tw_back=main2</action>
618 <action function="page">reboot_system_routine</action>
619 </actions>
620 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100621 </page>
622
623 <page name="flashimage_confirm">
624 <template name="page"/>
625
626 <text style="text_l">
627 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500628 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100629 </text>
630
631 <text style="text_m">
632 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500633 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100634 </text>
635
636 <text style="text_m_accent">
637 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500638 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100639 </text>
640
641 <text style="text_m">
642 <placement x="%indent%" y="%row3_y%"/>
643 <text>%tw_zip_location%</text>
644 </text>
645
646 <text style="text_m_accent">
647 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500648 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100649 </text>
650
651 <text style="text_m">
652 <placement x="%indent%" y="%row5a_y%"/>
653 <text>%tw_file%</text>
654 </text>
655
656 <partitionlist>
657 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
658 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500659 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100660 <data name="tw_flash_partition"/>
661 <listtype name="flashimg"/>
662 </partitionlist>
663
664 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500665 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100666 <actions>
667 <action function="set">tw_back=flashimage_confirm</action>
668 <action function="set">tw_action=flashimage</action>
669 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500670 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100671 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500672 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100673 <action function="page">action_page</action>
674 </actions>
675 <action function="flashimage"/>
676 </slider>
677
678 <action>
679 <touch key="back"/>
680 <actions>
681 <action function="set">tw_clear_destination=install</action>
682 <action function="page">clear_vars</action>
683 </actions>
684 </action>
685
686 <action>
687 <touch key="home"/>
688 <actions>
689 <action function="set">tw_clear_destination=main2</action>
690 <action function="page">clear_vars</action>
691 </actions>
692 </action>
693 </page>
694
695 <page name="clear_vars">
696 <action>
697 <action function="set">tw_operation_state=0</action>
698 <action function="set">tw_text1=</action>
699 <action function="set">tw_text2=</action>
700 <action function="set">tw_text3=</action>
701 <action function="set">tw_text4=</action>
702 <action function="set">tw_action_text1=</action>
703 <action function="set">tw_action_text2=</action>
704 <action function="set">tw_action_param=</action>
705 <action function="set">tw_has_action2=0</action>
706 <action function="set">tw_action2=</action>
707 <action function="set">tw_action2_param=</action>
708 <action function="set">tw_has_cancel=0</action>
709 <action function="set">tw_cancel_action=</action>
710 <action function="set">tw_cancel_param=</action>
711 <action function="set">tw_show_exclamation=0</action>
712 <action function="set">tw_show_reboot=0</action>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400713 <action function="set">tw_crypto_user_id=</action>
Noah Jacobson3ad80f42020-07-21 01:28:22 -0400714 <action function="set">tw_multiuser_warning_accepted=</action>
715 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100716 <action function="page">%tw_clear_destination%</action>
717 </action>
718 </page>
719
Matt Mower908dd252016-05-25 02:26:50 -0500720 <page name="reboot_system_routine">
721 <action>
722 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500723 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500724 <action function="set">tw_has_action2=0</action>
725 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
726 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
727 <action function="set">tw_text3=</action>
728 <action function="set">tw_text4=</action>
729 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
730 <action function="set">tw_action_text2=</action>
731 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
732 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
733 <action function="page">rebootcheck</action>
734 </action>
735 </page>
736
z31s1g28f0a922015-11-07 18:50:22 +0100737 <page name="confirm_action">
738 <template name="page"/>
739
740 <text style="text_l">
741 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500742 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100743 </text>
744
745 <text style="text_m">
746 <placement x="%col1_x_header%" y="%row4_header_y%"/>
747 <text/>
748 </text>
749
750 <text style="text_m_accent">
751 <placement x="%center_x%" y="%row2_y%" placement="5"/>
752 <text>%tw_text1%</text>
753 </text>
754
755 <text style="text_m_accent">
756 <placement x="%center_x%" y="%row3_y%" placement="5"/>
757 <text>%tw_text2%</text>
758 </text>
759
760 <text style="text_m">
761 <placement x="%center_x%" y="%row4_y%" placement="5"/>
762 <text>%tw_text3%</text>
763 </text>
764
765 <text style="text_m">
766 <placement x="%center_x%" y="%row5_y%" placement="5"/>
767 <text>%tw_text4%</text>
768 </text>
769
770 <text style="text_m">
771 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500772 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100773 </text>
774
775 <slider>
776 <text>%tw_slider_text%</text>
777 <action function="page">action_page</action>
778 </slider>
779
780 <action>
781 <touch key="back"/>
782 <actions>
783 <action function="set">tw_clear_destination=%tw_back%</action>
784 <action function="page">clear_vars</action>
785 </actions>
786 </action>
787
788 <action>
789 <touch key="home"/>
790 <action function="page">main</action>
791 </action>
792 </page>
793
794 <page name="action_page">
795 <template name="page"/>
796
797 <text style="text_l">
798 <placement x="%col1_x_header%" y="%row3_header_y%"/>
799 <text>%tw_action_text1%</text>
800 </text>
801
802 <text style="text_m">
803 <placement x="%col1_x_header%" y="%row4_header_y%"/>
804 <text>%tw_action_text2%</text>
805 </text>
806
807 <template name="console"/>
808
809 <template name="progress_bar"/>
810
811 <button style="main_button_half_height">
812 <condition var1="tw_has_cancel" var2="1"/>
813 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500814 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100815 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
816 </button>
817
818 <action>
819 <condition var1="tw_operation_state" var2="1"/>
820 <actions>
821 <action function="page">action_complete</action>
822 </actions>
823 </action>
824
825 <action>
826 <condition var1="tw_has_action2" var2="0"/>
827 <actions>
828 <action function="%tw_action%">%tw_action_param%</action>
829 </actions>
830 </action>
831
832 <action>
833 <condition var1="tw_has_action2" var2="1"/>
834 <actions>
835 <action function="%tw_action%">%tw_action_param%</action>
836 <action function="%tw_action2%">%tw_action2_param%</action>
837 </actions>
838 </action>
839 </page>
840
841 <page name="singleaction_page">
842 <template name="page"/>
843
844 <text style="text_l">
845 <placement x="%col1_x_header%" y="%row3_header_y%"/>
846 <text>%tw_action_text1%</text>
847 </text>
848
849 <text style="text_m">
850 <placement x="%col1_x_header%" y="%row4_header_y%"/>
851 <text>%tw_action_text2%</text>
852 </text>
853
854 <template name="console"/>
855
856 <template name="progress_bar"/>
857
858 <action>
859 <condition var1="tw_operation_state" var2="1"/>
860 <actions>
861 <action function="set">tw_page_done=1</action>
862 </actions>
863 </action>
864
865 <action>
866 <condition var1="tw_has_action2" var2="0"/>
867 <actions>
868 <action function="%tw_action%">%tw_action_param%</action>
869 </actions>
870 </action>
871
872 <action>
873 <condition var1="tw_has_action2" var2="1"/>
874 <actions>
875 <action function="%tw_action%">%tw_action_param%</action>
876 <action function="%tw_action2%">%tw_action2_param%</action>
877 </actions>
878 </action>
879 </page>
880
881 <page name="action_complete">
882 <template name="page"/>
883
884 <text style="text_l">
885 <placement x="%col1_x_header%" y="%row3_header_y%"/>
886 <text>%tw_complete_text1%</text>
887 </text>
888
889 <text style="text_m_fail">
890 <condition var1="tw_operation_status" op="!=" var2="0"/>
891 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500892 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100893 </text>
894
895 <text style="text_m">
896 <condition var1="tw_operation_status" var2="0"/>
897 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500898 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100899 </text>
900
901 <template name="console"/>
902
903 <button style="main_button_half_height">
904 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500905 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100906 <actions>
907 <action function="set">tw_clear_destination=%tw_back%</action>
908 <action function="page">clear_vars</action>
909 </actions>
910 </button>
911
912 <button style="main_button_half_height">
913 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500914 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100915 <actions>
916 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500917 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100918 </actions>
919 </button>
920
921 <action>
922 <touch key="home"/>
923 <actions>
924 <action function="set">tw_clear_destination=main2</action>
925 <action function="page">clear_vars</action>
926 </actions>
927 </action>
928
929 <action>
930 <touch key="back"/>
931 <actions>
932 <action function="set">tw_clear_destination=%tw_back%</action>
933 <action function="page">clear_vars</action>
934 </actions>
935 </action>
936 </page>
937
938 <page name="filecheck">
939 <action>
940 <action function="fileexists">%tw_filecheck%</action>
941 </action>
942
943 <action>
944 <conditions>
945 <condition var1="tw_operation_state" var2="1"/>
946 <condition var1="tw_operation_status" var2="0"/>
947 </conditions>
948 <actions>
949 <action function="set">tw_fileexists=1</action>
950 <action function="page">%tw_existpage%</action>
951 </actions>
952 </action>
953
954 <action>
955 <conditions>
956 <condition var1="tw_operation_state" var2="1"/>
957 <condition var1="tw_operation_status" var2="1"/>
958 </conditions>
959 <actions>
960 <action function="set">tw_fileexists=0</action>
961 <action function="page">%tw_notexistpage%</action>
962 </actions>
963 </action>
964 </page>
965
966 <page name="rebootcheck">
967 <action>
968 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600969 <action function="page">appcheck</action>
z31s1g28f0a922015-11-07 18:50:22 +0100970 </action>
971
972 <action>
973 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
974 <action function="page">confirm_action</action>
975 </action>
976 </page>
977
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600978 <page name="appcheck">
979 <action>
980 <condition var1="tw_app_prompt" var2="1"/>
981 <action function="checkforapp"></action>
982 </action>
983
984 <action>
985 <condition var1="tw_app_prompt" op="!=" var2="1"/>
986 <action function="reboot">%tw_reboot_param%</action>
987 </action>
988
989 <action>
990 <condition var1="tw_app_install_status" var2="1"/>
991 <action function="page">rebootapp</action>
992 </action>
993
994 <action>
995 <condition var1="tw_app_install_status" var2="2"/>
996 <action function="reboot">%tw_reboot_param%</action>
997 </action>
998 </page>
999
z31s1g28f0a922015-11-07 18:50:22 +01001000 <page name="wipe">
1001 <template name="page"/>
1002
1003 <text style="text_l">
1004 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001005 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001006 </text>
1007
1008 <text style="text_m">
1009 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001010 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001011 </text>
1012
1013 <text style="text_m_accent">
1014 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001015 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001016 </text>
1017
1018 <text style="text_m_accent">
z31s1g28f0a922015-11-07 18:50:22 +01001019 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04001020 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1021 </text>
1022
1023 <text style="text_m_accent">
1024 <condition var1="tw_has_data_media" var2="1"/>
1025 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001026 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001027 </text>
1028
1029 <text style="text_m_accent">
1030 <conditions>
1031 <condition var1="tw_has_android_secure" var2="1"/>
1032 <condition var1="fileexists" var2="/and-sec"/>
1033 </conditions>
1034 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001035 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001036 </text>
1037
1038 <text style="text_m_accent">
1039 <condition var1="tw_has_sdext_partition" var2="1"/>
1040 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001041 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001042 </text>
1043
1044 <text style="text_m">
1045 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001046 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001047 </text>
1048
1049 <text style="text_m">
1050 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001051 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001052 </text>
1053
1054 <text style="text_m">
1055 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001056 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001057 </text>
1058
1059 <button style="main_button_half_height">
1060 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001061 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001062 <actions>
1063 <action function="set">partitionlisterror=0</action>
1064 <action function="page">advancedwipe</action>
1065 </actions>
1066 </button>
1067
1068 <button style="main_button_half_height">
1069 <condition var1="tw_has_data_media" var2="1"/>
1070 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001071 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001072 <action function="page">formatdata</action>
1073 </button>
1074
1075 <button style="main_button_half_height">
1076 <conditions>
1077 <condition var1="tw_is_encrypted" var2="1"/>
1078 <condition var1="tw_has_data_media" var2="0"/>
1079 </conditions>
1080 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001082 <actions>
1083 <action function="set">tw_back=wipe</action>
1084 <action function="set">tw_action=wipe</action>
1085 <action function="set">tw_action_param=DATAMEDIA</action>
1086 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001087 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001088 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001089 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1090 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1091 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001092 <action function="page">confirm_action</action>
1093 </actions>
1094 </button>
1095
1096 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001097 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001098 <actions>
1099 <action function="set">tw_back=wipe</action>
1100 <action function="set">tw_action=wipe</action>
1101 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001102 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1103 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001104 <action function="page">action_page</action>
1105 </actions>
1106 </slider>
1107
1108 <action>
1109 <touch key="back"/>
1110 <action function="page">main</action>
1111 </action>
1112
1113 <action>
1114 <touch key="home"/>
1115 <action function="page">main</action>
1116 </action>
1117 </page>
1118
1119 <page name="advancedwipe">
1120 <template name="page"/>
1121
1122 <action>
1123 <action function="set">tw_wipe_list=</action>
1124 </action>
1125
1126 <text style="text_l">
1127 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001128 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001129 </text>
1130
1131 <text style="text_m">
1132 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001133 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001134 </text>
1135
1136 <partitionlist>
1137 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 <data name="tw_wipe_list"/>
1140 <listtype name="wipe"/>
1141 </partitionlist>
1142
1143 <text style="text_m_fail">
1144 <condition var1="partitionlisterror" var2="1"/>
1145 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001146 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001147 </text>
1148
1149 <button style="main_button_half_height_full_width">
1150 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001151 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001152 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001153 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001154 <action function="page">checkpartitionlist</action>
1155 </actions>
1156 </button>
1157
1158 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001159 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001160 <actions>
1161 <action function="set">tw_back=advancedwipe</action>
1162 <action function="set">tw_action=wipe</action>
1163 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001164 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1165 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1166 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001167 <action function="page">action_page</action>
1168 </actions>
1169 </slider>
1170
1171 <action>
1172 <touch key="home"/>
1173 <action function="page">main</action>
1174 </action>
1175
1176 <action>
1177 <touch key="back"/>
1178 <action function="page">wipe</action>
1179 </action>
1180 </page>
1181
1182 <page name="formatdata">
1183 <template name="page"/>
1184
1185 <text style="text_l">
1186 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001187 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001188 </text>
1189
1190 <text style="text_m">
1191 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001192 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001193 </text>
1194
1195 <text style="text_m_fail">
1196 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001197 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001198 </text>
1199
1200 <text style="text_m_fail">
1201 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001202 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001203 </text>
1204
1205 <text style="text_m_fail">
1206 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001207 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001208 </text>
1209
Ethan Yonker66a19492015-12-10 10:19:45 -06001210 <text style="text_m_fail">
1211 <condition var1="tw_has_adopted_storage" var2="1"/>
1212 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1213 <text>{@format_data_adopted=Including Adopted Storage}</text>
1214 </text>
1215
z31s1g28f0a922015-11-07 18:50:22 +01001216 <text style="text_m">
1217 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001218 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001219 </text>
1220
1221 <text style="text_m">
1222 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001223 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001224 </text>
1225
1226 <input>
1227 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1228 <text>%tw_confirm_formatdata%</text>
1229 <data name="tw_confirm_formatdata"/>
1230 <restrict minlen="3" maxlen="3" allow="yes"/>
1231 <action function="page">formatdata_confirm</action>
1232 </input>
1233
1234 <fill color="%accent_color%">
1235 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1236 </fill>
1237
1238 <template name="keyboardtemplate"/>
1239
1240 <action>
1241 <touch key="home"/>
1242 <action function="page">main</action>
1243 </action>
1244
1245 <action>
1246 <touch key="back"/>
1247 <action function="page">wipe</action>
1248 </action>
1249 </page>
1250
1251 <page name="formatdata_confirm">
1252 <action>
1253 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1254 <actions>
1255 <action function="set">tw_back=formatdata</action>
1256 <action function="set">tw_action=wipe</action>
1257 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001258 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1259 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001260 <action function="page">action_page</action>
1261 </actions>
1262 </action>
1263
1264 <action>
1265 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1266 <action function="page">formatdata</action>
1267 </action>
1268 </page>
1269
1270 <page name="checkpartitionlist">
1271 <action>
1272 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1273 <actions>
1274 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001275 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001276 <action function="page">partitionoptions</action>
1277 </actions>
1278 </action>
1279
1280 <action>
1281 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1282 <actions>
1283 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001284 <action function="page">advancedwipe</action>
1285 </actions>
1286 </action>
1287 </page>
1288
1289 <page name="partitionoptions">
1290 <template name="page"/>
1291
1292 <text style="text_l">
1293 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001294 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001295 </text>
1296
1297 <text style="text_m">
1298 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001299 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001300 </text>
1301
1302 <text style="text_m_accent">
1303 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001304 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001305 </text>
1306
1307 <text style="text_m_accent">
1308 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001309 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001310 </text>
1311
1312 <text style="text_m">
1313 <condition var1="tw_partition_is_present" var2="1"/>
1314 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001315 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001316 </text>
1317
1318 <text style="text_m">
1319 <condition var1="tw_partition_is_present" var2="0"/>
1320 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001322 </text>
1323
1324 <text style="text_m">
1325 <condition var1="tw_partition_removable" var2="1"/>
1326 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <text style="text_m">
1331 <condition var1="tw_partition_removable" var2="0"/>
1332 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001333 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001334 </text>
1335
1336 <text style="text_m">
1337 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001338 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001339 </text>
1340
1341 <text style="text_m">
1342 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001343 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001344 </text>
1345
1346 <text style="text_m">
1347 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001348 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001349 </text>
1350
1351 <text style="text_m">
1352 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001353 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001354 </text>
1355
1356 <button style="main_button_half_height">
1357 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1358 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001360 <actions>
1361 <action function="set">tw_back=partitionoptions</action>
1362 <action function="set">tw_action=resize</action>
1363 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1364 <action function="set">tw_has_action2=1</action>
1365 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001366 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001367 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001368 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001369 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1370 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1371 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001372 <action function="page">confirm_action</action>
1373 </actions>
1374 </button>
1375
1376 <button style="main_button_half_height">
1377 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1378 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001379 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001380 <actions>
1381 <action function="set">tw_back=partitionoptions</action>
1382 <action function="set">tw_action=repair</action>
1383 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1384 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001385 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001386 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001387 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1388 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1389 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001390 <action function="page">confirm_action</action>
1391 </actions>
1392 </button>
1393
1394 <button style="main_button_half_height">
1395 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001396 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001397 <action function="page">selectfilesystem</action>
1398 </button>
1399
1400 <action>
1401 <touch key="home"/>
1402 <action function="page">main</action>
1403 </action>
1404
1405 <action>
1406 <touch key="back"/>
1407 <action function="page">advancedwipe</action>
1408 </action>
1409 </page>
1410
1411 <page name="refreshfilesystem">
1412 <action>
1413 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1414 <actions>
1415 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001416 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001417 <action function="page">selectfilesystem</action>
1418 </actions>
1419 </action>
1420
1421 <action>
1422 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1423 <actions>
1424 <action function="set">partitionlisterror=1</action>
1425 <action function="set">tw_wipe_list=</action>
1426 <action function="page">advancedwipe</action>
1427 </actions>
1428 </action>
1429 </page>
1430
1431 <page name="selectfilesystem">
1432 <template name="page"/>
1433
1434 <text style="text_l">
1435 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001436 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001437 </text>
1438
1439 <text style="text_m">
1440 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001441 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001442 </text>
1443
1444 <text style="text_m_accent">
1445 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001446 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001447 </text>
1448
1449 <text style="text_m_accent">
1450 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001451 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001452 </text>
1453
1454 <text style="text_m_fail">
1455 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001456 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001457 </text>
1458
1459 <text style="text_m_fail">
1460 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001461 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001462 </text>
1463
1464 <button style="main_button_half_height">
1465 <condition var1="tw_partition_ext" op="=" var2="1"/>
1466 <placement x="%indent%" y="%row15a_y%"/>
1467 <text>EXT2</text>
1468 <actions>
1469 <action function="set">tw_back=refreshfilesystem</action>
1470 <action function="set">tw_action=changefilesystem</action>
1471 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1472 <action function="set">tw_action_new_file_system=ext2</action>
1473 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001474 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1475 <action function="set">tw_text2=EXT2</action>
1476 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1477 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1478 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001479 <action function="page">confirm_action</action>
1480 </actions>
1481 </button>
1482
1483 <button style="main_button_half_height">
1484 <condition var1="tw_partition_ext" op="=" var2="1"/>
1485 <placement x="%indent%" y="%row18a_y%"/>
1486 <text>EXT3</text>
1487 <actions>
1488 <action function="set">tw_back=refreshfilesystem</action>
1489 <action function="set">tw_action=changefilesystem</action>
1490 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1491 <action function="set">tw_action_new_file_system=ext3</action>
1492 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001493 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1494 <action function="set">tw_text2=EXT3</action>
1495 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1496 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1497 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001498 <action function="page">confirm_action</action>
1499 </actions>
1500 </button>
1501
1502 <button style="main_button_half_height">
1503 <condition var1="tw_partition_ext" op="=" var2="1"/>
1504 <placement x="%indent%" y="%row21a_y%"/>
1505 <text>EXT4</text>
1506 <actions>
1507 <action function="set">tw_back=refreshfilesystem</action>
1508 <action function="set">tw_action=changefilesystem</action>
1509 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1510 <action function="set">tw_action_new_file_system=ext4</action>
1511 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001512 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1513 <action function="set">tw_text2=EXT4</action>
1514 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1515 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1516 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001517 <action function="page">confirm_action</action>
1518 </actions>
1519 </button>
1520
1521 <button style="main_button_half_height">
1522 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1523 <placement x="%center_x%" y="%row15a_y%"/>
1524 <text>FAT</text>
1525 <actions>
1526 <action function="set">tw_back=refreshfilesystem</action>
1527 <action function="set">tw_action=changefilesystem</action>
1528 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1529 <action function="set">tw_action_new_file_system=vfat</action>
1530 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001531 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1532 <action function="set">tw_text2=FAT</action>
1533 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1534 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1535 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001536 <action function="page">confirm_action</action>
1537 </actions>
1538 </button>
1539
1540 <button style="main_button_half_height">
1541 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1542 <placement x="%center_x%" y="%row18a_y%"/>
1543 <text>exFAT</text>
1544 <actions>
1545 <action function="set">tw_back=refreshfilesystem</action>
1546 <action function="set">tw_action=changefilesystem</action>
1547 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1548 <action function="set">tw_action_new_file_system=exfat</action>
1549 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001550 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1551 <action function="set">tw_text2=exFAT</action>
1552 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1553 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1554 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001555 <action function="page">confirm_action</action>
1556 </actions>
1557 </button>
1558
1559 <button style="main_button_half_height">
1560 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1561 <placement x="%center_x%" y="%row21a_y%"/>
1562 <text>F2FS</text>
1563 <actions>
1564 <action function="set">tw_back=refreshfilesystem</action>
1565 <action function="set">tw_action=changefilesystem</action>
1566 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1567 <action function="set">tw_action_new_file_system=f2fs</action>
1568 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001569 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1570 <action function="set">tw_text2=F2FS</action>
1571 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1572 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1573 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001574 <action function="page">confirm_action</action>
1575 </actions>
1576 </button>
1577
1578 <action>
1579 <touch key="home"/>
1580 <action function="page">main</action>
1581 </action>
1582
1583 <action>
1584 <touch key="back"/>
1585 <action function="page">partitionoptions</action>
1586 </action>
1587 </page>
1588
1589 <page name="backup">
1590 <template name="page"/>
1591
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001592 <action>
1593 <conditions>
1594 <condition var1="tw_is_fbe" var2="1"/>
1595 <condition var1="tw_all_users_decrypted" var2="0"/>
1596 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1597 </conditions>
1598 <actions>
1599 <action function="set">tw_multiuser_warning_destination=backup</action>
1600 <action function="page">multiuser_warning</action>
1601 </actions>
1602 </action>
1603
z31s1g28f0a922015-11-07 18:50:22 +01001604 <text style="text_l">
1605 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001606 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001607 </text>
1608
1609 <text style="text_m">
1610 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001611 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001612 </text>
1613
1614 <template name="tabs_backup"/>
1615
1616 <fill color="%text_color%">
1617 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1618 </fill>
1619
1620 <button style="tab">
1621 <conditions>
1622 <condition var1="tw_include_encrypted_backup" var2="1"/>
1623 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001624 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001625 </conditions>
1626 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001627 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001628 <font resource="font_s" color="%text_color%"/>
1629 <actions>
1630 <action function="set">tw_password_not_match=0</action>
1631 <action function="page">backupencryption</action>
1632 </actions>
1633 </button>
1634
1635 <button style="tab">
1636 <conditions>
1637 <condition var1="tw_include_encrypted_backup" var2="1"/>
1638 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001639 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001640 </conditions>
1641 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001642 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001643 <font resource="font_s" color="%text_success_color%"/>
1644 <actions>
1645 <action function="set">tw_password_not_match=0</action>
1646 <action function="page">backupencryption</action>
1647 </actions>
1648 </button>
1649
1650 <text style="text_m_accent">
1651 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001652 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001653 </text>
1654
1655 <text style="text_m">
1656 <placement x="%indent%" y="%row4a_y%"/>
1657 <text>%tw_backup_name%</text>
1658 </text>
1659
1660 <fill color="%fileselector_linecolor%">
1661 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1662 </fill>
1663
1664 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001665 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001666 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1667 <fill color="%transparent%"/>
1668 <actions>
1669 <action function="set">tw_fileexists=0</action>
1670 <action function="page">backupname1</action>
1671 </actions>
1672 </button>
1673
1674 <partitionlist>
1675 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001676 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001677 <data name="tw_backup_list"/>
1678 <listtype name="backup"/>
1679 </partitionlist>
1680
1681 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001682 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001683 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001684 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001685 <actions>
1686 <action function="set">tw_back=backup</action>
1687 <action function="overlay">select_storage</action>
1688 </actions>
1689 </button>
1690
1691 <button style="main_button_half_height">
1692 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001693 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001694 <actions>
1695 <action function="refreshsizes"/>
1696 <action function="page">backup</action>
1697 </actions>
1698 </button>
1699
1700 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001701 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001702 <action function="page">backup_run</action>
1703 </slider>
1704
1705 <action>
1706 <touch key="home"/>
1707 <action function="page">main</action>
1708 </action>
1709
1710 <action>
1711 <touch key="back"/>
1712 <action function="page">main</action>
1713 </action>
1714 </page>
1715
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001716 <page name="multiuser_warning">
1717 <template name="page"/>
1718
1719 <text style="text_l">
1720 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1721 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1722 </text>
1723
1724 <text style="text_m_fail">
1725 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1726 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1727 </text>
1728
1729 <text style="text_m_fail">
1730 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1731 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1732 </text>
1733
1734 <button style="main_button_half_height_full_width">
1735 <placement x="%indent%" y="%row18a_y%"/>
1736 <text>{@decrypt_users=Decrypt Users}</text>
1737 <action function="page">decrypt_users</action>
1738 </button>
1739
1740 <slider>>
1741 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1742 <actions>
1743 <action function="set">tw_multiuser_warning_accepted=1</action>
1744 <action function="page">%tw_multiuser_warning_destination%</action>
1745 </actions>
1746 </slider>
1747
1748 <action>
1749 <touch key="home"/>
1750 <action function="page">main</action>
1751 </action>
1752
1753 <action>
1754 <touch key="back"/>
1755 <action function="page">main</action>
1756 </action>
1757 </page>
1758
z31s1g28f0a922015-11-07 18:50:22 +01001759 <page name="backup_options">
1760 <template name="page"/>
1761
1762 <text style="text_l">
1763 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001764 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001765 </text>
1766
1767 <text style="text_m">
1768 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001769 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001770 </text>
1771
1772 <template name="tabs_backup"/>
1773
1774 <fill color="%text_color%">
1775 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1776 </fill>
1777
1778 <button style="tab">
1779 <conditions>
1780 <condition var1="tw_include_encrypted_backup" var2="1"/>
1781 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001782 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001783 </conditions>
1784 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001785 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001786 <font resource="font_s" color="%text_color%"/>
1787 <actions>
1788 <action function="set">tw_password_not_match=0</action>
1789 <action function="page">backupencryption</action>
1790 </actions>
1791 </button>
1792
1793 <button style="tab">
1794 <conditions>
1795 <condition var1="tw_include_encrypted_backup" var2="1"/>
1796 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001797 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001798 </conditions>
1799 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001800 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001801 <font resource="font_s" color="%text_success_color%"/>
1802 <actions>
1803 <action function="set">tw_password_not_match=0</action>
1804 <action function="page">backupencryption</action>
1805 </actions>
1806 </button>
1807
1808 <checkbox>
1809 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001810 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001811 <data variable="tw_use_compression"/>
1812 </checkbox>
1813
1814 <checkbox>
1815 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001816 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1817 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001818 </checkbox>
1819
1820 <checkbox>
1821 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001822 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001823 <data variable="tw_disable_free_space"/>
1824 </checkbox>
1825
Ethan Yonker1b190162016-12-05 15:25:19 -06001826 <text style="text_m">
1827 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001828 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001829 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1830 </text>
1831
1832 <button style="main_button">
1833 <condition var1="tw_has_boot_slots" var2="1"/>
1834 <placement x="%indent%" y="%row19_y%"/>
1835 <text>{@boot_slot_a=Slot A}</text>
1836 <actions>
1837 <action function="set">tw_back=backup_options</action>
1838 <action function="set">tw_action=setbootslot</action>
1839 <action function="set">tw_action_param=A</action>
1840 <action function="set">tw_has_action2=0</action>
1841 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1842 <action function="set">tw_action_text2=</action>
1843 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1844 <action function="page">action_page</action>
1845 </actions>
1846 </button>
1847
1848 <button style="main_button">
1849 <condition var1="tw_has_boot_slots" var2="1"/>
1850 <placement x="%center_x%" y="%row19_y%"/>
1851 <text>{@boot_slot_b=Slot B}</text>
1852 <actions>
1853 <action function="set">tw_back=backup_options</action>
1854 <action function="set">tw_action=setbootslot</action>
1855 <action function="set">tw_action_param=B</action>
1856 <action function="set">tw_has_action2=0</action>
1857 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1858 <action function="set">tw_action_text2=</action>
1859 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1860 <action function="page">action_page</action>
1861 </actions>
1862 </button>
1863
z31s1g28f0a922015-11-07 18:50:22 +01001864 <action>
1865 <touch key="home"/>
1866 <action function="page">main</action>
1867 </action>
1868
1869 <action>
1870 <touch key="back"/>
1871 <action function="page">backup</action>
1872 </action>
1873 </page>
1874
1875 <page name="backupname1">
1876 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001877 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001878 <action function="generatebackupname"/>
1879 </action>
1880
1881 <action>
1882 <action function="page">backupname2</action>
1883 </action>
1884 </page>
1885
1886 <page name="backupname2">
1887 <template name="page"/>
1888
1889 <text style="text_l">
1890 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001892 </text>
1893
1894 <text style="text_m">
1895 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001896 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001897 </text>
1898
1899 <template name="tabs_backup"/>
1900
1901 <fill color="%text_color%">
1902 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1903 </fill>
1904
1905 <button style="tab">
1906 <conditions>
1907 <condition var1="tw_include_encrypted_backup" var2="1"/>
1908 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001909 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001910 </conditions>
1911 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001912 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001913 <font resource="font_s" color="%text_color%"/>
1914 <actions>
1915 <action function="set">tw_password_not_match=0</action>
1916 <action function="page">backupencryption</action>
1917 </actions>
1918 </button>
1919
1920 <button style="tab">
1921 <conditions>
1922 <condition var1="tw_include_encrypted_backup" var2="1"/>
1923 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001924 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001925 </conditions>
1926 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001927 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001928 <font resource="font_s" color="%text_success_color%"/>
1929 <actions>
1930 <action function="set">tw_password_not_match=0</action>
1931 <action function="page">backupencryption</action>
1932 </actions>
1933 </button>
1934
1935 <text style="text_m_accent">
1936 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001937 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001938 </text>
1939
1940 <input>
1941 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1942 <text>%tw_backup_name%</text>
1943 <data name="tw_backup_name"/>
1944 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1945 <actions>
1946 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1947 <action function="set">tw_existpage=backupname2</action>
1948 <action function="set">tw_notexistpage=backup</action>
1949 <action function="page">filecheck</action>
1950 </actions>
1951 </input>
1952
1953 <fill color="%accent_color%">
1954 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1955 </fill>
1956
1957 <fill color="%text_fail_color%">
1958 <condition var1="tw_fileexists" var2="1"/>
1959 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1960 </fill>
1961
1962 <text style="text_m_fail">
1963 <condition var1="tw_fileexists" var2="1"/>
1964 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001965 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001966 </text>
1967
1968 <button style="main_button_half_height">
1969 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001970 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001971 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001972 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001973 <action function="page">backup</action>
1974 </actions>
1975 </button>
1976
1977 <button style="main_button_half_height">
1978 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001979 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001980 <action function="appenddatetobackupname"/>
1981 </button>
1982
1983 <template name="keyboardtemplate"/>
1984
1985 <action>
1986 <touch key="home"/>
1987 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001988 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001989 <action function="page">main</action>
1990 </actions>
1991 </action>
1992
1993 <action>
1994 <touch key="back"/>
1995 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001996 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001997 <action function="page">backup</action>
1998 </actions>
1999 </action>
2000 </page>
2001
2002 <page name="backupencryption">
2003 <template name="page"/>
2004
2005 <text style="text_l">
2006 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002007 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002008 </text>
2009
2010 <text style="text_m">
2011 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002012 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002013 </text>
2014
2015 <template name="tabs_backup"/>
2016
2017 <button style="tab">
2018 <conditions>
2019 <condition var1="tw_include_encrypted_backup" var2="1"/>
2020 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002021 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002022 </conditions>
2023 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002024 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002025 <font resource="font_s" color="%text_color%"/>
2026 <actions>
2027 <action function="set">tw_password_not_match=0</action>
2028 <action function="page">backupencryption</action>
2029 </actions>
2030 </button>
2031
2032 <button style="tab">
2033 <conditions>
2034 <condition var1="tw_include_encrypted_backup" var2="1"/>
2035 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002036 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002037 </conditions>
2038 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002039 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002040 <font resource="font_s" color="%text_success_color%"/>
2041 <actions>
2042 <action function="set">tw_password_not_match=0</action>
2043 <action function="page">backupencryption</action>
2044 </actions>
2045 </button>
2046
2047 <fill color="%text_color%">
2048 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2049 </fill>
2050
2051 <text style="text_m_accent">
2052 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002053 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002054 </text>
2055
2056 <text style="text_m">
2057 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002058 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002059 </text>
2060
2061 <input>
2062 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2063 <text>%tw_backup_encrypt_display%</text>
2064 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2065 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2066 <action function="page">backupencryption2</action>
2067 </input>
2068
2069 <fill color="%accent_color%">
2070 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2071 </fill>
2072
2073 <fill color="%text_fail_color%">
2074 <condition var1="tw_password_not_match" var2="1"/>
2075 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2076 </fill>
2077
2078 <text style="text_m_fail">
2079 <condition var1="tw_password_not_match" var2="1"/>
2080 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002081 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002082 </text>
2083
2084 <button style="main_button_half_height">
2085 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002086 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002087 <actions>
2088 <action function="set">tw_encrypt_backup=0</action>
2089 <action function="set">tw_backup_password=</action>
2090 <action function="set">tw_backup_password2=</action>
2091 <action function="set">tw_backup_encrypt_display=</action>
2092 <action function="set">tw_backup_encrypt_display2=</action>
2093 <action function="page">backup</action>
2094 </actions>
2095 </button>
2096
2097 <template name="keyboardtemplate"/>
2098
2099 <action>
2100 <touch key="home"/>
2101 <action function="page">main</action>
2102 </action>
2103
2104 <action>
2105 <touch key="back"/>
2106 <action function="page">backup</action>
2107 </action>
2108 </page>
2109
2110 <page name="backupencryption2">
2111 <template name="page"/>
2112
2113 <text style="text_l">
2114 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002115 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002116 </text>
2117
2118 <text style="text_m">
2119 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002120 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002121 </text>
2122
2123 <template name="tabs_backup"/>
2124
2125 <button style="tab">
2126 <conditions>
2127 <condition var1="tw_include_encrypted_backup" var2="1"/>
2128 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002129 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002130 </conditions>
2131 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002132 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002133 <font resource="font_s" color="%text_color%"/>
2134 <actions>
2135 <action function="set">tw_password_not_match=0</action>
2136 <action function="page">backupencryption</action>
2137 </actions>
2138 </button>
2139
2140 <button style="tab">
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="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002147 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002148 <font resource="font_s" color="%text_success_color%"/>
2149 <actions>
2150 <action function="set">tw_password_not_match=0</action>
2151 <action function="page">backupencryption</action>
2152 </actions>
2153 </button>
2154
2155 <fill color="%text_color%">
2156 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2157 </fill>
2158
2159 <text style="text_m_accent">
2160 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002161 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002162 </text>
2163
2164 <text style="text_m">
2165 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002166 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002167 </text>
2168
2169 <input>
2170 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2171 <text>%tw_backup_encrypt_display2%</text>
2172 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2173 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2174 <action function="page">checkbackuppassword</action>
2175 </input>
2176
2177 <fill color="%accent_color%">
2178 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2179 </fill>
2180
2181 <button style="main_button_half_height">
2182 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002183 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002184 <actions>
2185 <action function="set">tw_encrypt_backup=0</action>
2186 <action function="set">tw_backup_password=</action>
2187 <action function="set">tw_backup_password2=</action>
2188 <action function="set">tw_backup_encrypt_display=</action>
2189 <action function="set">tw_backup_encrypt_display2=</action>
2190 <action function="page">backup</action>
2191 </actions>
2192 </button>
2193
2194 <template name="keyboardtemplate"/>
2195
2196 <action>
2197 <touch key="home"/>
2198 <action function="page">main</action>
2199 </action>
2200
2201 <action>
2202 <touch key="back"/>
2203 <action function="page">backup</action>
2204 </action>
2205 </page>
2206
2207 <page name="checkbackuppassword">
2208 <action>
2209 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2210 <actions>
2211 <action function="set">tw_encrypt_backup=1</action>
2212 <action function="page">backup</action>
2213 </actions>
2214 </action>
2215
2216 <action>
2217 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2218 <actions>
2219 <action function="set">tw_encrypt_backup=0</action>
2220 <action function="set">tw_password_not_match=1</action>
2221 <action function="set">tw_backup_password=</action>
2222 <action function="set">tw_backup_password2=</action>
2223 <action function="set">tw_backup_encrypt_display=</action>
2224 <action function="set">tw_backup_encrypt_display2=</action>
2225 <action function="page">backupencryption</action>
2226 </actions>
2227 </action>
2228 </page>
2229
2230 <page name="backup_run">
2231 <template name="page"/>
2232
2233 <text style="text_l">
2234 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2235 <text>%tw_operation%</text>
2236 </text>
2237
2238 <text style="text_m">
2239 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2240 <text>%tw_partition% Partition</text>
2241 </text>
2242
2243 <template name="console"/>
2244
2245 <template name="progress_bar"/>
2246
2247 <text style="text_m_accent">
2248 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002249 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002250 </text>
2251
2252 <text style="text_m">
2253 <placement x="%indent%" y="%row20_y%"/>
2254 <text>%tw_file_progress%</text>
2255 </text>
2256
2257 <text style="text_m">
2258 <placement x="%indent%" y="%row21_y%"/>
2259 <text>%tw_size_progress%</text>
2260 </text>
2261
2262 <button style="main_button_half_height">
2263 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002264 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002265 <action function="cancelbackup"/>
2266 </button>
2267
2268 <action>
2269 <action function="nandroid">backup</action>
2270 </action>
2271
2272 <action>
2273 <condition var1="tw_operation_state" var2="1"/>
2274 <condition var1="tw_cancel_backup" var2="0"/>
2275 <actions>
2276 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002277 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002278 <action function="set">tw_show_reboot=1</action>
2279 <action function="page">action_complete</action>
2280 </actions>
2281 </action>
2282
2283 <action>
2284 <condition var1="tw_operation_state" var2="1"/>
2285 <condition var1="tw_cancel_backup" var2="1"/>
2286 <actions>
2287 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002288 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002289 <action function="set">tw_show_reboot=1</action>
2290 <action function="page">action_complete</action>
2291 </actions>
2292 </action>
2293 </page>
2294
2295 <page name="restore">
2296 <template name="page"/>
2297
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002298 <action>
2299 <conditions>
2300 <condition var1="tw_is_fbe" var2="1"/>
2301 <condition var1="tw_all_users_decrypted" var2="0"/>
2302 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2303 </conditions>
2304 <actions>
2305 <action function="set">tw_multiuser_warning_destination=restore</action>
2306 <action function="page">multiuser_warning</action>
2307 </actions>
2308 </action>
2309
z31s1g28f0a922015-11-07 18:50:22 +01002310 <text style="text_l">
2311 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002312 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002313 </text>
2314
2315 <text style="text_m">
2316 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002317 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002318 </text>
2319
2320 <template name="sort_options"/>
2321
2322 <fileselector>
2323 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002324 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002325 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002326 <path name="tw_backups_folder"/>
2327 <data name="tw_restore" default=""/>
2328 <selection name="tw_restore_name"/>
2329 </fileselector>
2330
2331 <button style="main_button_half_height">
2332 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002333 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002334 <actions>
2335 <action function="set">tw_back=restore</action>
2336 <action function="overlay">select_storage</action>
2337 </actions>
2338 </button>
2339
2340 <action>
2341 <condition var1="tw_restore" op="modified"/>
2342 <actions>
2343 <action function="readBackup"/>
2344 <action function="page">restore_read</action>
2345 </actions>
2346 </action>
2347
2348 <action>
2349 <touch key="home"/>
2350 <action function="page">main</action>
2351 </action>
2352
2353 <action>
2354 <touch key="back"/>
2355 <action function="page">main</action>
2356 </action>
2357 </page>
2358
2359 <page name="restore_read">
2360 <action>
2361 <condition var1="tw_restore_encrypted" var2="1"/>
2362 <actions>
2363 <action function="set">tw_password_fail=0</action>
2364 <action function="page">restore_decrypt</action>
2365 </actions>
2366 </action>
2367
2368 <action>
2369 <condition var1="tw_restore_encrypted" var2="0"/>
2370 <actions>
2371 <action function="page">restore_select</action>
2372 </actions>
2373 </action>
2374 </page>
2375
2376 <page name="restore_decrypt">
2377 <template name="page"/>
2378
2379 <text style="text_l">
2380 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002381 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002382 </text>
2383
2384 <text style="text_m">
2385 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002386 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002387 </text>
2388
2389 <text style="text_m_accent">
2390 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002391 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002392 </text>
2393
2394 <input>
2395 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2396 <text>%tw_restore_display%</text>
2397 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2398 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2399 <action function="page">try_restore_decrypt</action>
2400 </input>
2401
2402 <fill color="%accent_color%">
2403 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2404 </fill>
2405
2406 <fill color="%text_fail_color%">
2407 <condition var1="tw_password_fail" var2="1"/>
2408 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2409 </fill>
2410
2411 <text style="text_m_fail">
2412 <condition var1="tw_password_fail" var2="1"/>
2413 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002414 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002415 </text>
2416
2417 <button style="main_button_half_height">
2418 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002419 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002420 <actions>
2421 <action function="set">tw_page_done=1</action>
2422 <action function="page">restore</action>
2423 </actions>
2424 </button>
2425
2426 <button style="main_button_half_height">
2427 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002428 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002429 <actions>
2430 <action function="set">tw_back=restore</action>
2431 <action function="set">tw_action=cmd</action>
2432 <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 -05002433 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2434 <action function="set">tw_text2=%tw_restore_name%</action>
2435 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2436 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2437 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2438 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002439 <action function="page">confirm_action</action>
2440 </actions>
2441 </button>
2442
2443 <template name="keyboardtemplate"/>
2444
2445 <action>
2446 <touch key="home"/>
2447 <action function="page">main</action>
2448 </action>
2449
2450 <action>
2451 <touch key="back"/>
2452 <action function="page">restore</action>
2453 </action>
2454 </page>
2455
2456 <page name="try_restore_decrypt">
2457 <template name="page"/>
2458
2459 <text style="text_l">
2460 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002461 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002462 </text>
2463
2464 <text style="text_m">
2465 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002466 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002467 </text>
2468
2469 <template name="console"/>
2470
2471 <template name="progress_bar"/>
2472
2473 <action>
2474 <action function="decrypt_backup"/>
2475 </action>
2476
2477 <action>
2478 <conditions>
2479 <condition var1="tw_operation_state" var2="1"/>
2480 <condition var1="tw_operation_status" op="!=" var2="0"/>
2481 </conditions>
2482 <actions>
2483 <action function="set">tw_password_fail=1</action>
2484 <action function="page">restore_decrypt</action>
2485 </actions>
2486 </action>
2487
2488 <action>
2489 <conditions>
2490 <condition var1="tw_operation_state" var2="1"/>
2491 <condition var1="tw_operation_status" op="=" var2="0"/>
2492 </conditions>
2493 <actions>
2494 <action function="set">tw_page_done=1</action>
2495 <action function="page">restore_select</action>
2496 </actions>
2497 </action>
2498 </page>
2499
2500 <page name="restore_select">
2501 <template name="page"/>
2502
2503 <text style="text_l">
2504 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002505 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002506 </text>
2507
2508 <text style="text_m">
2509 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002510 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002511 </text>
2512
2513 <text style="text_m_accent">
2514 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002515 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002516 </text>
2517
2518 <text style="text_m">
2519 <placement x="%indent%" y="%row3_y%"/>
2520 <text>%tw_restore_name%</text>
2521 </text>
2522
2523 <fill color="%fileselector_linecolor%">
2524 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2525 </fill>
2526
2527 <button>
2528 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2529 <fill color="%transparent%"/>
2530 <actions>
2531 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2532 <action function="set">tw_fileexists=0</action>
2533 <action function="page">renamebackup</action>
2534 </actions>
2535 </button>
2536
2537 <partitionlist>
2538 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002539 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002540 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2541 <listtype name="restore"/>
2542 </partitionlist>
2543
2544 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002545 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002546 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002547 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2548 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002549 </checkbox>
2550
2551 <button style="main_button_half_height">
2552 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002553 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002554 <actions>
2555 <action function="set">tw_back=restore</action>
2556 <action function="set">tw_action=cmd</action>
2557 <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 -05002558 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002559 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002560 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2561 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2562 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2563 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002564 <action function="page">confirm_action</action>
2565 </actions>
2566 </button>
2567
2568 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002569 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002570 <action function="page">restore_run</action>
2571 </slider>
2572
2573 <action>
2574 <touch key="home"/>
2575 <action function="page">main</action>
2576 </action>
2577
2578 <action>
2579 <touch key="back"/>
2580 <action function="page">restore</action>
2581 </action>
2582 </page>
2583
2584 <page name="renamebackup">
2585 <template name="page"/>
2586
2587 <text style="text_l">
2588 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002589 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002590 </text>
2591
2592 <text style="text_m">
2593 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002594 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002595 </text>
2596
2597 <text style="text_m_accent">
2598 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002599 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002600 </text>
2601
2602 <input>
2603 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2604 <text>%tw_backup_rename%</text>
2605 <data name="tw_backup_rename"/>
2606 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2607 <actions>
2608 <action function="set">tw_back=restore</action>
2609 <action function="set">tw_action=cmd</action>
2610 <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 -05002611 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2612 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2613 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2614 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2615 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002616 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2617 <action function="set">tw_existpage=renamebackup</action>
2618 <action function="set">tw_notexistpage=confirm_action</action>
2619 <action function="page">filecheck</action>
2620 </actions>
2621 </input>
2622
2623 <fill color="%accent_color%">
2624 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2625 </fill>
2626
2627 <fill color="%text_fail_color%">
2628 <condition var1="tw_fileexists" var2="1"/>
2629 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2630 </fill>
2631
2632 <text style="text_m_fail">
2633 <condition var1="tw_fileexists" var2="1"/>
2634 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002635 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002636 </text>
2637
2638 <button style="main_button_half_height">
2639 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002640 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002641 <action function="page">restore_select</action>
2642 </button>
2643
2644 <template name="keyboardtemplate"/>
2645
2646 <action>
2647 <touch key="home"/>
2648 <action function="page">main</action>
2649 </action>
2650
2651 <action>
2652 <touch key="back"/>
2653 <action function="page">restore_select</action>
2654 </action>
2655 </page>
2656
2657 <page name="restore_run">
2658 <template name="page"/>
2659
2660 <text style="text_l">
2661 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002662 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002663 </text>
2664
2665 <text style="text_m">
2666 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2667 <text>%tw_operation% %tw_partition%</text>
2668 </text>
2669
2670 <template name="console"/>
2671
2672 <template name="progress_bar"/>
2673
2674 <text style="text_m_accent">
2675 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002676 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002677 </text>
2678
2679 <text style="text_m">
2680 <placement x="%indent%" y="%row20_y%"/>
2681 <text>%tw_size_progress%</text>
2682 </text>
2683
2684 <action>
2685 <condition var1="tw_operation_state" var2="1"/>
2686 <actions>
2687 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002688 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002689 <action function="set">tw_show_reboot=1</action>
2690 <action function="page">action_complete</action>
2691 </actions>
2692 </action>
2693
2694 <action>
2695 <action function="nandroid">restore</action>
2696 </action>
2697 </page>
2698
2699 <page name="mount">
2700 <template name="page"/>
2701
2702 <text style="text_l">
2703 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002704 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002705 </text>
2706
2707 <text style="text_m">
2708 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002709 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002710 </text>
2711
2712 <partitionlist>
2713 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002714 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002715 <listtype name="mount"/>
2716 </partitionlist>
2717
2718 <button style="checkbox">
2719 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2720 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002721 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002722 <image resource="checkbox_false"/>
2723 <action function="mountsystemtoggle">1</action>
2724 </button>
2725
2726 <button style="checkbox">
2727 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2728 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002729 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002730 <image resource="checkbox_true"/>
2731 <actions>
2732 <action function="set">tw_lifetime_writes=2</action>
2733 <action function="page">system_readonly_check</action>
2734 </actions>
2735 </button>
2736
2737 <button style="main_button_half_height">
2738 <condition var1="tw_has_usb_storage" var2="1"/>
2739 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002740 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002741 <action function="page">usb_mount</action>
2742 </button>
2743
2744 <button style="main_button_half_height">
2745 <conditions>
2746 <condition var1="tw_is_encrypted" var2="1"/>
2747 <condition var1="tw_is_decrypted" var2="0"/>
2748 </conditions>
2749 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002750 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson5a79f672019-04-28 00:10:07 -04002751 <action function="set">tw_crypto_user_id=0</action>
2752 <action function="set">tw_crypto_password=</action>
2753 <action function="set">tw_password_fail=0</action>
2754 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002755 <action function="page">decrypt</action>
2756 </button>
2757
2758 <button style="main_button_half_height">
2759 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002760 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002761 <actions>
2762 <action function="set">tw_back=mount</action>
2763 <action function="overlay">select_storage</action>
2764 </actions>
2765 </button>
2766
2767 <button style="main_button_half_height">
2768 <conditions>
2769 <condition var1="tw_has_mtp" var2="1"/>
2770 <condition var1="tw_mtp_enabled" var2="0"/>
2771 </conditions>
2772 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002773 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002774 <action function="startmtp"/>
2775 </button>
2776
2777 <button style="main_button_half_height">
2778 <conditions>
2779 <condition var1="tw_has_mtp" var2="1"/>
2780 <condition var1="tw_mtp_enabled" var2="1"/>
2781 </conditions>
2782 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002783 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002784 <action function="stopmtp"/>
2785 </button>
2786
2787 <action>
2788 <touch key="home"/>
2789 <action function="page">main</action>
2790 </action>
2791
2792 <action>
2793 <touch key="back"/>
2794 <action function="page">main</action>
2795 </action>
2796 </page>
2797
2798 <page name="usb_mount">
2799 <template name="page"/>
2800
2801 <text style="text_l">
2802 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 </text>
2805
2806 <text style="text_m">
2807 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002808 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002809 </text>
2810
2811 <text style="text_m_accent">
2812 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002813 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002814 </text>
2815
2816 <text style="text_m">
2817 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002818 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002819 </text>
2820
2821 <text style="text_m">
2822 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002823 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002824 </text>
2825
2826 <button style="main_button_half_height">
2827 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002828 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002829 <action function="page">usb_umount</action>
2830 </button>
2831
2832 <action>
2833 <action function="mount">usb</action>
2834 <action function="set">tw_busy=1</action>
2835 </action>
2836 </page>
2837
2838 <page name="usb_umount">
2839 <action>
2840 <action function="unmount">usb</action>
2841 </action>
2842
2843 <action>
2844 <action function="page">mount</action>
2845 <action function="set">tw_busy=0</action>
2846 </action>
2847 </page>
2848
2849 <page name="system_readonly_check">
2850 <action>
2851 <action function="checkpartitionlifetimewrites">/system</action>
2852 </action>
2853
2854 <action>
2855 <condition var1="tw_lifetime_writes" var2="1"/>
2856 <actions>
2857 <action function="mountsystemtoggle">0</action>
2858 <action function="page">mount</action>
2859 </actions>
2860 </action>
2861
2862 <action>
2863 <condition var1="tw_lifetime_writes" var2="0"/>
2864 <actions>
2865 <action function="set">tw_back=mount</action>
2866 <action function="page">system_readonly</action>
2867 </actions>
2868 </action>
2869 </page>
2870
2871 <page name="reboot">
2872 <template name="page"/>
2873
2874 <text style="text_l">
2875 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002876 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002877 </text>
2878
2879 <button style="main_button">
2880 <condition var1="tw_reboot_system" var2="1"/>
2881 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002882 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002883 <actions>
2884 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05002885 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01002886 </actions>
2887 </button>
2888
2889 <button style="main_button">
2890 <condition var1="tw_reboot_poweroff" var2="1"/>
2891 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002892 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002893 <actions>
2894 <action function="set">tw_back=reboot</action>
2895 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002896 <action function="set">tw_action_param=poweroff</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002897 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01002898 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002899 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2900 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2901 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2902 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2903 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002904 <action function="page">rebootcheck</action>
2905 </actions>
2906 </button>
2907
2908 <button style="main_button">
2909 <condition var1="tw_reboot_recovery" var2="1"/>
2910 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002911 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002912 <actions>
2913 <action function="set">tw_back=reboot</action>
2914 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002915 <action function="set">tw_action_param=recovery</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002916 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01002917 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002918 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2919 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2920 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2921 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2922 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002923 <action function="page">rebootcheck</action>
2924 </actions>
2925 </button>
2926
2927 <button style="main_button">
2928 <condition var1="tw_reboot_bootloader" var2="1"/>
2929 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002930 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002931 <actions>
2932 <action function="set">tw_back=reboot</action>
2933 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002934 <action function="set">tw_action_param=bootloader</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002935 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01002936 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002937 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2938 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2939 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2940 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2941 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002942 <action function="page">rebootcheck</action>
2943 </actions>
2944 </button>
2945
2946 <button style="main_button">
2947 <condition var1="tw_download_mode" var2="1"/>
2948 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002949 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002950 <actions>
2951 <action function="set">tw_back=reboot</action>
2952 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002953 <action function="set">tw_action_param=download</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002954 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01002955 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002956 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2957 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2958 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2959 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2960 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002961 <action function="page">rebootcheck</action>
2962 </actions>
2963 </button>
2964
mauronofrioe9a49ef2018-10-03 13:38:16 +02002965 <button style="main_button">
2966 <condition var1="tw_edl_mode" var2="1"/>
2967 <placement x="%center_x%" y="%row13a_y%"/>
2968 <text>{@rb_edl_btn=Edl}</text>
2969 <actions>
2970 <action function="set">tw_back=reboot</action>
2971 <action function="set">tw_action=reboot</action>
2972 <action function="set">tw_action_param=edl</action>
2973 <action function="set">tw_reboot_param=edl</action>
2974 <action function="set">tw_has_action2=0</action>
2975 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2976 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2977 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2978 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2979 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2980 <action function="page">rebootcheck</action>
2981 </actions>
2982 </button>
2983
Ethan Yonker1b190162016-12-05 15:25:19 -06002984 <text style="text_m">
2985 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01002986 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002987 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2988 </text>
2989
2990 <button style="main_button">
2991 <condition var1="tw_has_boot_slots" var2="1"/>
2992 <placement x="%indent%" y="%row19_y%"/>
2993 <text>{@boot_slot_a=Slot A}</text>
2994 <actions>
2995 <action function="set">tw_back=reboot</action>
2996 <action function="set">tw_action=setbootslot</action>
2997 <action function="set">tw_action_param=A</action>
2998 <action function="set">tw_has_action2=0</action>
2999 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3000 <action function="set">tw_action_text2=</action>
3001 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3002 <action function="page">action_page</action>
3003 </actions>
3004 </button>
3005
3006 <button style="main_button">
3007 <condition var1="tw_has_boot_slots" var2="1"/>
3008 <placement x="%center_x%" y="%row19_y%"/>
3009 <text>{@boot_slot_b=Slot B}</text>
3010 <actions>
3011 <action function="set">tw_back=reboot</action>
3012 <action function="set">tw_action=setbootslot</action>
3013 <action function="set">tw_action_param=B</action>
3014 <action function="set">tw_has_action2=0</action>
3015 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3016 <action function="set">tw_action_text2=</action>
3017 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3018 <action function="page">action_page</action>
3019 </actions>
3020 </button>
3021
z31s1g28f0a922015-11-07 18:50:22 +01003022 <action>
3023 <touch key="home"/>
3024 <action function="page">main</action>
3025 </action>
3026
3027 <action>
3028 <touch key="back"/>
3029 <action function="page">main</action>
3030 </action>
3031 </page>
3032
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003033 <page name="rebootapp">
3034 <template name="page"/>
3035
3036 <text style="text_l">
3037 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3038 <text>{@reboot_hdr=Reboot}</text>
3039 </text>
3040
3041 <text style="text_m">
3042 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3043 <text>{@reboot_install_app_hdr=Install TWRP App?}</text>
3044 </text>
3045
3046 <text style="text_m_accent">
3047 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3048 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3049 </text>
3050
3051 <text style="text_m_accent">
3052 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3053 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3054 </text>
3055
3056 <checkbox>
3057 <placement x="%indent%" y="%row5_y%"/>
3058 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
3059 <data variable="tw_app_prompt"/>
3060 </checkbox>
3061
3062 <checkbox>
3063 <condition var1="tw_mount_system_ro" var2="0"/>
3064 <placement x="%indent%" y="%row7_y%"/>
3065 <text>{@reboot_install_app_system=Install as a System App}</text>
3066 <data variable="tw_app_install_system"/>
3067 </checkbox>
3068
3069 <button style="main_button_half_height">
3070 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003071 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003072 <action function="reboot">%tw_reboot_param%</action>
3073 </button>
3074
3075 <slider>
3076 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3077 <actions>
3078 <action function="set">tw_back=reboot</action>
3079 <action function="set">tw_action=installapp</action>
3080 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3081 <action function="set">tw_action_text2=</action>
3082 <action function="set">tw_has_action2=1</action>
3083 <action function="set">tw_action2=reboot</action>
3084 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3085 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3086 <action function="page">action_page</action>
3087 </actions>
3088 </slider>
3089
3090 <action>
3091 <touch key="home"/>
3092 <actions>
3093 <action function="set">tw_app_install_status=0</action>
3094 <action function="page">main</action>
3095 </actions>
3096 </action>
3097
3098 <action>
3099 <touch key="back"/>
3100 <actions>
3101 <action function="set">tw_app_install_status=0</action>
3102 <action function="page">reboot</action>
3103 </actions>
3104 </action>
3105 </page>
3106
z31s1g28f0a922015-11-07 18:50:22 +01003107 <page name="system_readonly">
3108 <template name="page"/>
3109
3110 <text style="text_l">
3111 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003112 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003113 </text>
3114
3115 <text style="text_m_accent">
3116 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003117 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003118 </text>
3119
3120 <text style="text_m">
3121 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003122 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003123 </text>
3124
3125 <text style="text_m">
3126 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003127 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003128 </text>
3129
3130 <text style="text_m">
3131 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003132 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003133 </text>
3134
3135 <text style="text_m">
3136 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003137 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003138 </text>
3139
3140 <text style="text_m_fail">
3141 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003142 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003143 </text>
3144
3145 <text style="text_m_fail">
3146 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003147 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003148 </text>
3149
3150 <checkbox>
3151 <condition var1="tw_is_encrypted" var2="0"/>
3152 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003153 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003154 <data variable="tw_never_show_system_ro_page"/>
3155 </checkbox>
3156
3157 <button style="main_button_half_height">
3158 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003159 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003160 <actions>
3161 <action function="mountsystemtoggle">1</action>
3162 <action function="set">tw_page_done=1</action>
3163 <action function="page">%tw_back%</action>
3164 </actions>
3165 </button>
3166
z31s1g608d7ff2016-01-18 19:47:25 +01003167 <button style="main_button_half_height">
3168 <placement x="%center_x%" y="%row18a_y%"/>
3169 <text>{@sel_lang_btn=Select Language}</text>
3170 <action function="overlay">select_language</action>
3171 </button>
3172
z31s1g28f0a922015-11-07 18:50:22 +01003173 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003174 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003175 <actions>
3176 <action function="mountsystemtoggle">0</action>
3177 <action function="set">tw_page_done=1</action>
3178 <action function="page">%tw_back%</action>
3179 </actions>
3180 </slider>
3181 </page>
3182
3183 <page name="settings">
3184 <template name="page"/>
3185
3186 <text style="text_l">
3187 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003188 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003189 </text>
3190
3191 <text style="text_m">
3192 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003193 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003194 </text>
3195
3196 <template name="tabs_settings"/>
3197
3198 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003199 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003200 </fill>
3201
3202 <listbox style="scrolllist">
3203 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3204 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003206 <data variable="tw_signed_zip_verify"/>
3207 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003208 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3209 <data variable="tw_install_reboot"/>
3210 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003211 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003212 <data variable="tw_rm_rf"/>
3213 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003214 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3215 <data variable="tw_disable_free_space"/>
3216 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003217 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3218 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003219 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003220 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3221 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003222 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003223 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003224 <data variable="tw_military_time"/>
3225 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003226 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003227 <data variable="tw_samsung_navbar"/>
3228 </listitem>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003229 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3230 <data variable="tw_app_prompt"/>
3231 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003232 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003233 <data variable="tw_simulate_actions"/>
3234 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003235 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003236 <condition var1="tw_simulate_actions" var2="1"/>
3237 <data variable="tw_simulate_fail"/>
3238 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003239 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3240 <condition var1="tw_no_sha2" var2="0"/>
3241 <data variable="tw_use_sha2"/>
3242 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003243 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3244 <data variable="tw_unmount_system"/>
3245 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003246 </listbox>
3247
3248 <button style="main_button_half_height">
3249 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003250 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003251 <actions>
3252 <action function="set">tw_samsung_navbar=0</action>
3253 <action function="set">tw_tab_icons=0</action>
3254 <action function="restoredefaultsettings"/>
3255 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003256 </button>
3257
3258 <action>
3259 <touch key="home"/>
3260 <action function="page">main</action>
3261 </action>
3262
3263 <action>
3264 <touch key="back"/>
3265 <action function="page">main</action>
3266 </action>
3267 </page>
3268
3269 <page name="settings_timezone">
3270 <template name="page"/>
3271
3272 <text style="text_l">
3273 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003274 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003275 </text>
3276
3277 <text style="text_m">
3278 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003279 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003280 </text>
3281
3282 <template name="tabs_settings"/>
3283
3284 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003285 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003286 </fill>
3287
3288 <listbox>
3289 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003290 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003291 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003292 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3293 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3294 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3295 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3296 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3297 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3298 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3299 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3300 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3301 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3302 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3303 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3304 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3305 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3306 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3307 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3308 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3309 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3310 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3311 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3312 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3313 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3314 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3315 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003316 </listbox>
3317
3318 <text style="text_m_accent">
3319 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003320 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003321 </text>
3322
3323 <button style="button_quarter_width">
3324 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003325 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 <action function="set">tw_time_zone_guioffset=0</action>
3327 </button>
3328
3329 <button style="button_quarter_width">
3330 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003331 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003332 <action function="set">tw_time_zone_guioffset=15</action>
3333 </button>
3334
3335 <button style="button_quarter_width">
3336 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003337 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003338 <action function="set">tw_time_zone_guioffset=30</action>
3339 </button>
3340
3341 <button style="button_quarter_width">
3342 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003343 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003344 <action function="set">tw_time_zone_guioffset=45</action>
3345 </button>
3346
3347 <checkbox>
3348 <placement x="%indent%" y="%row18a_y%"/>
3349 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003350 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003351 <data variable="tw_time_zone_guidst"/>
3352 <image checked="checkbox_true" unchecked="checkbox_false"/>
3353 </checkbox>
3354
3355 <text color="%text_color%">
3356 <font resource="font_m"/>
3357 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003358 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003359 </text>
3360
3361 <button>
3362 <highlight color="%highlight_color%"/>
3363 <placement x="%center_x%" y="%row21a_y%"/>
3364 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003365 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003366 <image resource="main_button_half_height"/>
3367 <action function="setguitimezone"/>
3368 </button>
3369
3370 <action>
3371 <touch key="home"/>
3372 <action function="page">main</action>
3373 </action>
3374
3375 <action>
3376 <touch key="back"/>
3377 <action function="page">main</action>
3378 </action>
3379 </page>
3380
3381 <page name="settings_screen">
3382 <template name="page"/>
3383
3384 <text style="text_l">
3385 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003386 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003387 </text>
3388
3389 <text style="text_m">
3390 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003391 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003392 </text>
3393
3394 <template name="tabs_settings"/>
3395
3396 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003397 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003398 </fill>
3399
3400 <button>
3401 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3402 <font resource="font_m" color="%text_color%"/>
3403 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3404 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003405 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003406 <image resource="checkbox_false"/>
3407 <action function="set">tw_screen_timeout_secs=60</action>
3408 </button>
3409
3410 <button>
3411 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3412 <font resource="font_m" color="%text_color%"/>
3413 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3414 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003415 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003416 <image resource="checkbox_true"/>
3417 <action function="set">tw_screen_timeout_secs=0</action>
3418 </button>
3419
3420 <slidervalue>
3421 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3422 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3423 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003424 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003425 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3426 </slidervalue>
3427
3428 <slidervalue>
3429 <condition var1="tw_has_brightnesss_file" var2="1"/>
3430 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003431 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003432 <data variable="tw_brightness_pct" min="10" max="100"/>
3433 <actions>
3434 <action function="set">tw_brightness=%tw_brightness_max%</action>
3435 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3436 <action function="compute">tw_brightness/100</action>
3437 <action function="setbrightness">%tw_brightness%</action>
3438 </actions>
3439 </slidervalue>
3440
3441 <action>
3442 <touch key="home"/>
3443 <action function="page">main</action>
3444 </action>
3445
3446 <action>
3447 <touch key="back"/>
3448 <action function="page">main</action>
3449 </action>
3450 </page>
3451
3452 <page name="settings_vibration">
3453 <template name="page"/>
3454
3455 <text style="text_l">
3456 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003457 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003458 </text>
3459
3460 <text style="text_m">
3461 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003462 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003463 </text>
3464
3465 <template name="tabs_settings"/>
3466
3467 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003468 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003469 </fill>
3470
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003471 <text style="text_m">
3472 <condition var1="tw_disable_haptics" var2="1"/>
3473 <placement x="%indent%" y="%row4_y%"/>
3474 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3475 </text>
3476
z31s1g28f0a922015-11-07 18:50:22 +01003477 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003478 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003479 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003480 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003481 <data variable="tw_button_vibrate" min="0" max="300"/>
3482 </slidervalue>
3483
3484 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003485 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003486 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003487 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003488 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3489 </slidervalue>
3490
3491 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003492 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003493 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003494 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003495 <data variable="tw_action_vibrate" min="0" max="500"/>
3496 </slidervalue>
3497
3498 <action>
3499 <touch key="home"/>
3500 <action function="page">main</action>
3501 </action>
3502
3503 <action>
3504 <touch key="back"/>
3505 <action function="page">main</action>
3506 </action>
3507 </page>
3508
Ethan Yonker74db1572015-10-28 12:44:49 -05003509 <page name="settings_language">
3510 <template name="page"/>
3511
3512 <text style="text_l">
3513 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3514 <text>{@settings_hdr=Settings}</text>
3515 </text>
3516
3517 <text style="text_m">
3518 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3519 <text>{@language_hdr=Language - %tw_language_display%}</text>
3520 </text>
3521
3522 <template name="tabs_settings"/>
3523
3524 <fill color="%text_color%">
3525 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3526 </fill>
3527
3528 <listbox>
3529 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3530 <text>{@select_language=Select Language:}</text>
3531 <icon selected="radio_true" unselected="radio_false" />
3532 <data name="tw_language" />
3533 </listbox>
3534
3535 <button style="main_button_half_height">
3536 <placement x="%center_x%" y="%row21a_y%"/>
3537 <text>{@set_language_btn=Set Language}</text>
3538 <action function="setlanguage"></action>
3539 </button>
3540
3541 <action>
3542 <touch key="home" />
3543 <action function="page">main</action>
3544 </action>
3545
3546 <action>
3547 <touch key="back" />
3548 <action function="page">settings</action>
3549 </action>
3550 </page>
3551
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003552 <page name="copylog">
3553 <template name="page"/>
3554
3555 <text style="text_l">
3556 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3557 <text>{@copying_log=Copy Logs to SD Card}</text>
3558 </text>
3559
3560 <checkbox>
3561 <placement x="%indent%" y="%row4_y%"/>
3562 <text>{@include_kernel_log=Include Kernel Log}</text>
3563 <data variable="tw_include_kernel_log" value="1"/>
3564 </checkbox>
3565
3566 <slider>
3567 <text>{@copying_log=Copy Logs to SD Card}</text>
3568 <actions>
3569 <action function="set">tw_back=advanced</action>
3570 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003571 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3572 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003573 <action function="page">action_page</action>
3574 </actions>
3575 </slider>
3576
3577 <action>
3578 <touch key="home"/>
3579 <action function="page">main</action>
3580 </action>
3581
3582 <action>
3583 <touch key="back"/>
3584 <actions>
3585 <action function="page">advanced</action>
3586 </actions>
3587 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003588 </page>
3589
z31s1g28f0a922015-11-07 18:50:22 +01003590 <page name="advanced">
3591 <template name="page"/>
3592
3593 <text style="text_l">
3594 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003595 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003596 </text>
3597
3598 <button style="main_button">
3599 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003600 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003601 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003602 </button>
3603
3604 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003605 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003606 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003607 <text>{@adb_sideload_btn=ADB Sideload}</text>
3608 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003609 </button>
3610
3611 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003612 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003613 <text>{@terminal_btn=Terminal}</text>
3614 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003615 </button>
3616
3617 <button style="main_button">
3618 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003619 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003620 <action function="page">filemanagerlist</action>
3621 </button>
3622
Ethan Yonker64e0a652018-07-25 09:52:17 -05003623 <listbox style="advanced_listbox">
3624 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003625 <listitem name="{@decrypt_users=Decrypt Users}">
3626 <conditions>
3627 <condition var1="tw_is_fbe" var2="1"/>
3628 <condition var1="tw_all_users_decrypted" var2="0"/>
3629 </conditions>
3630 <actions>
3631 <action function="set">tw_crypto_user_id=</action>
3632 <action function="page">decrypt_users</action>
3633 </actions>
3634 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003635 <listitem name="{@reload_theme_btn=Reload Theme}">
3636 <action function="reload"/>
3637 </listitem>
3638 <listitem name="{@part_sd_btn=Partition SD Card}">
3639 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3640 <actions>
3641 <action function="set">partitionlisterror=0</action>
3642 <action function="page">partsdcardsel</action>
3643 </actions>
3644 </listitem>
3645 <listitem name="{@fix_context_btn=Fix Contexts}">
3646 <condition var1="tw_has_data_media" var2="1"/>
3647 <action function="page">fixcontexts</action>
3648 </listitem>
3649 <listitem name="{@dumlock_btn=HTC Dumlock}">
3650 <condition var1="tw_show_dumlock" var2="1"/>
3651 <action function="page">htcdumlock</action>
3652 </listitem>
3653 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3654 <condition var1="tw_has_injecttwrp" var2="1"/>
3655 <actions>
3656 <action function="set">tw_back=advanced</action>
3657 <action function="set">tw_action=reinjecttwrp</action>
3658 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3659 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3660 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3661 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3662 <action function="page">confirm_action</action>
3663 </actions>
3664 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003665 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3666 <conditions>
3667 <condition var1="tw_has_boot_slots" var2="1"/>
3668 <condition var1="tw_has_repack_tools" var2="1"/>
3669 </conditions>
3670 <actions>
3671 <action function="set">tw_repack_kernel=0</action>
3672 <action function="page">repackselect</action>
3673 </actions>
3674 </listitem>
3675 <listitem name="{@install_kernel=Install Kernel}">
3676 <conditions>
3677 <condition var1="tw_has_boot_slots" var2="1"/>
3678 <condition var1="tw_has_repack_tools" var2="1"/>
3679 </conditions>
3680 <actions>
3681 <action function="set">tw_repack_kernel=1</action>
3682 <action function="page">repackselect</action>
3683 </actions>
3684 </listitem>
3685 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3686 <conditions>
3687 <condition var1="tw_has_boot_slots" var2="1"/>
3688 <condition var1="tw_has_repack_tools" var2="1"/>
3689 </conditions>
3690 <actions>
3691 <action function="set">tw_back=advanced</action>
3692 <action function="set">tw_action=fixabrecoverybootloop</action>
3693 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3694 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3695 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3696 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3697 <action function="page">confirm_action</action>
3698 </actions>
3699 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003700 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3701 <condition var1="tw_app_installed_in_system" var2="1"/>
3702 <actions>
3703 <action function="set">tw_back=advanced</action>
3704 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3705 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3706 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3707 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3708 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3709 <action function="page">confirm_action</action>
3710 </actions>
3711 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003712 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003713
3714 <action>
3715 <touch key="home"/>
3716 <action function="page">main</action>
3717 </action>
3718
3719 <action>
3720 <touch key="back"/>
3721 <action function="page">main</action>
3722 </action>
3723 </page>
3724
Ethan Yonker483e9f42016-01-11 22:21:18 -06003725 <page name="partsdcardsel">
3726 <template name="page"/>
3727
3728 <text style="text_l">
3729 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3730 <text>{@advanced_hdr=Advanced}</text>
3731 </text>
3732
3733 <text style="text_m">
3734 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3735 <text>{@part_sd_hdr=Partition SD Card}</text>
3736 </text>
3737
z31s1g782e1c92016-01-30 16:50:09 +01003738 <partitionlist>
3739 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003740 <text>{@sel_storage_list=Select Storage}</text>
3741 <data name="tw_storage_path"/>
3742 <listtype name="storage"/>
3743 </partitionlist>
3744
3745 <text style="text_m_fail">
3746 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003747 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003748 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3749 </text>
3750
z31s1g782e1c92016-01-30 16:50:09 +01003751 <button style="main_button_half_height">
3752 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003753 <text>{@ok_btn=OK}</text>
3754 <actions>
3755 <action function="getpartitiondetails">tw_storage_path</action>
3756 <action function="page">partsdcardcheck</action>
3757 </actions>
3758 </button>
3759
3760 <action>
3761 <touch key="home"/>
3762 <action function="page">main</action>
3763 </action>
3764
3765 <action>
3766 <touch key="back"/>
3767 <action function="page">advanced</action>
3768 </action>
3769 </page>
3770
3771 <page name="partsdcardcheck">
3772 <action>
3773 <condition var1="tw_partition_removable" op="=" var2="1"/>
3774 <actions>
3775 <action function="set">partitionlisterror=0</action>
3776 <action function="page">partsdcard</action>
3777 </actions>
3778 </action>
3779
3780 <action>
3781 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3782 <actions>
3783 <action function="set">partitionlisterror=1</action>
3784 <action function="page">partsdcardsel</action>
3785 </actions>
3786 </action>
3787 </page>
3788
z31s1g28f0a922015-11-07 18:50:22 +01003789 <page name="partsdcard">
3790 <template name="page"/>
3791
3792 <text style="text_l">
3793 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003794 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003795 </text>
3796
3797 <text style="text_m">
3798 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003799 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003800 </text>
3801
3802 <text style="text_m_fail">
3803 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003804 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003805 </text>
3806
3807 <text style="text_m_fail">
3808 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003809 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003810 </text>
3811
3812 <text style="text_m_accent">
3813 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003814 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003815 </text>
3816
3817 <text style="text_m">
3818 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3819 <text>%tw_sdext_size%</text>
3820 </text>
3821
3822 <button style="button_quarter_width">
3823 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003824 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003825 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003826 </button>
3827
3828 <button style="button_quarter_width">
3829 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003830 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003831 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003832 </button>
3833
3834 <text style="text_m_accent">
3835 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003836 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003837 </text>
3838
3839 <text style="text_m">
3840 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3841 <text>%tw_swap_size%</text>
3842 </text>
3843
3844 <button style="button_quarter_width">
3845 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003846 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003847 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003848 </button>
3849
3850 <button style="button_quarter_width">
3851 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003852 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003853 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003854 </button>
3855
3856 <text style="text_m_accent">
3857 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003858 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003859 </text>
3860
3861 <text style="text_m">
3862 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3863 <text>%tw_sdpart_file_system%</text>
3864 </text>
3865
3866 <button style="button_quarter_width">
3867 <placement x="%indent%" y="%row14_y%"/>
3868 <text>EXT3</text>
3869 <action function="set">tw_sdpart_file_system=ext3</action>
3870 </button>
3871
3872 <button style="button_quarter_width">
3873 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3874 <text>EXT4</text>
3875 <action function="set">tw_sdpart_file_system=ext4</action>
3876 </button>
3877
3878 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003879 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003880 <action function="page">partsdcardaction</action>
3881 <actions>
3882 <action function="set">tw_back=partsdcard</action>
3883 <action function="set">tw_action=partitionsd</action>
3884 <action function="set">tw_has_action2=1</action>
3885 <action function="set">tw_action2=set</action>
3886 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003887 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3888 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3889 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003890 <action function="page">action_page</action>
3891 </actions>
3892 </slider>
3893
3894 <action>
3895 <touch key="home"/>
3896 <action function="page">main</action>
3897 </action>
3898
3899 <action>
3900 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003901 <actions>
3902 <action function="set">partitionlisterror=0</action>
3903 <action function="page">partsdcardsel</action>
3904 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003905 </action>
3906 </page>
3907
3908 <page name="htcdumlock">
3909 <template name="page"/>
3910
3911 <text style="text_l">
3912 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003913 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003914 </text>
3915
3916 <text style="text_m">
3917 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003918 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003919 </text>
3920
3921 <button style="main_button_half_height_full_width">
3922 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003923 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003924 <actions>
3925 <action function="set">tw_back=htcdumlock</action>
3926 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003927 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3928 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3929 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3930 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003931 <action function="page">confirm_action</action>
3932 </actions>
3933 </button>
3934
3935 <button style="main_button_half_height_full_width">
3936 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003937 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003938 <actions>
3939 <action function="set">tw_back=htcdumlock</action>
3940 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003941 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3942 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3943 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3944 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003945 <action function="page">confirm_action</action>
3946 </actions>
3947 </button>
3948
3949 <button style="main_button_half_height_full_width">
3950 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003951 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003952 <actions>
3953 <action function="set">tw_back=htcdumlock</action>
3954 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003955 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3956 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3957 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3958 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003959 <action function="page">confirm_action</action>
3960 </actions>
3961 </button>
3962
3963 <action>
3964 <touch key="home"/>
3965 <action function="page">main</action>
3966 </action>
3967
3968 <action>
3969 <touch key="back"/>
3970 <action function="page">advanced</action>
3971 </action>
3972 </page>
3973
Ethan Yonker53796e72019-01-11 22:49:52 -06003974 <page name="repackselect">
3975 <template name="page"/>
3976
3977 <text style="text_l">
3978 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3979 <text>{@repack_image_hdr=Select Image}</text>
3980 </text>
3981
3982 <text style="text_m">
3983 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3984 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3985 </text>
3986
3987 <template name="sort_options"/>
3988
3989 <fileselector>
3990 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3991 <text>%tw_zip_location%</text>
3992 <filter extn=".img" folders="1" files="1"/>
3993 <path name="tw_zip_location" default="/sdcard"/>
3994 <data name="tw_filename"/>
3995 <selection name="tw_file"/>
3996 </fileselector>
3997
3998 <button style="main_button_half_height">
3999 <placement x="%indent%" y="%row21a_y%"/>
4000 <text>{@select_storage_btn=Select Storage}</text>
4001 <actions>
4002 <action function="set">tw_back=repackselect</action>
4003 <action function="overlay">select_storage</action>
4004 </actions>
4005 </button>
4006
4007 <action>
4008 <conditions>
4009 <condition var1="tw_filename" op="modified"/>
4010 </conditions>
4011 <action function="page">repackconfirm</action>
4012 </action>
4013
4014 <action>
4015 <touch key="back"/>
4016 <action function="page">advanced</action>
4017 </action>
4018
4019 <action>
4020 <touch key="home"/>
4021 <action function="page">main</action>
4022 </action>
4023 </page>
4024
4025 <page name="repackconfirm">
4026 <template name="page"/>
4027
4028 <text style="text_l">
4029 <condition var1="tw_repack_kernel" var2="1"/>
4030 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4031 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4032 </text>
4033
4034 <text style="text_l">
4035 <condition var1="tw_repack_kernel" var2="0"/>
4036 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4037 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4038 </text>
4039
4040 <text style="text_m">
4041 <condition var1="tw_repack_kernel" var2="1"/>
4042 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4043 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4044 </text>
4045
4046 <text style="text_m">
4047 <condition var1="tw_repack_kernel" var2="0"/>
4048 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4049 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4050 </text>
4051
4052 <text style="text_m_accent">
4053 <placement x="%indent%" y="%row2_y%"/>
4054 <text>{@folder=Folder:}</text>
4055 </text>
4056
4057 <text style="text_m">
4058 <placement x="%indent%" y="%row3_y%"/>
4059 <text>%tw_zip_location%</text>
4060 </text>
4061
4062 <text style="text_m_accent">
4063 <placement x="%indent%" y="%row4_y%"/>
4064 <text>{@file=File:}</text>
4065 </text>
4066
4067 <text style="text_m">
4068 <placement x="%indent%" y="%row5_y%"/>
4069 <text>%tw_file%</text>
4070 </text>
4071
4072 <checkbox>
4073 <placement x="%indent%" y="%row7_y%"/>
4074 <text>{@repack_backup_first=Back up existing image first}</text>
4075 <data variable="tw_repack_backup_first"/>
4076 </checkbox>
4077
4078 <button style="main_button_half_height">
4079 <placement x="%indent%" y="%row16_y%"/>
4080 <text>{@install_cancel=Do not Install}</text>
4081 <action function="page">repackselect</action>
4082 </button>
4083
4084 <slider>
4085 <text>{@swipe_to_install=Swipe to Install}</text>
4086 <actions>
4087 <action function="set">tw_back=advanced</action>
4088 <action function="set">tw_action=repackimage</action>
4089 <action function="set">tw_action_param=/boot</action>
4090 <action function="set">tw_action_text1={@installing=Installing...}</action>
4091 <action function="set">tw_action_text2=</action>
4092 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4093 <action function="page">action_page</action>
4094 </actions>
4095 </slider>
4096
4097 <action>
4098 <touch key="back"/>
4099 <action function="page">repackselect</action>
4100 </action>
4101
4102 <action>
4103 <touch key="home"/>
4104 <action function="page">main</action>
4105 </action>
4106 </page>
4107
z31s1g28f0a922015-11-07 18:50:22 +01004108 <page name="lock">
4109 <background color="%semi_transparent%"/>
4110
4111 <image>
4112 <image resource="unlock_icon"/>
4113 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4114 </image>
4115
4116 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004117 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004118 <action function="overlay"/>
4119 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004120
4121 <action>
4122 <touch key="power"/>
4123 <action function="togglebacklight"/>
4124 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004125 </page>
4126
4127 <page name="filemanagerlist">
4128 <template name="page"/>
4129
4130 <text style="text_l">
4131 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004133 </text>
4134
4135 <text style="text_m">
4136 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004137 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004138 </text>
4139
4140 <template name="sort_options"/>
4141
4142 <fileselector>
4143 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4144 <text>%tw_file_location1%</text>
4145 <filter folders="1" files="1"/>
4146 <path name="tw_file_location1" default="/"/>
4147 <data name="tw_filename1"/>
4148 <selection name="tw_selection1"/>
4149 </fileselector>
4150
4151 <button style="fab">
4152 <image resource="fab_selectfolder"/>
4153 <actions>
4154 <action function="set">tw_filename1=tw_file_location1</action>
4155 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004156 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004157 <action function="page">filemanageroptions</action>
4158 </actions>
4159 </button>
4160
4161 <action>
4162 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004163 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004164 <action function="set">tw_fm_isfolder=0</action>
4165 </actions>
4166 </action>
4167
4168 <action>
4169 <touch key="home"/>
4170 <action function="page">main</action>
4171 </action>
4172
4173 <action>
4174 <touch key="back"/>
4175 <action function="page">advanced</action>
4176 </action>
4177
4178 <action>
4179 <condition var1="tw_filename1" op="modified"/>
4180 <action function="page">filemanageroptions</action>
4181 </action>
4182 </page>
4183
4184 <page name="filemanageroptions">
4185 <template name="page"/>
4186
4187 <text style="text_l">
4188 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004189 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004190 </text>
4191
4192 <text style="text_m">
4193 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004194 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004195 </text>
4196
4197 <text style="text_m_accent">
4198 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004199 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004200 </text>
4201
4202 <text style="text_m">
4203 <placement x="%indent%" y="%row3_y%"/>
4204 <text>%tw_filename1%</text>
4205 </text>
4206
4207 <button style="main_button_half_height">
4208 <condition var1="tw_fm_isfolder" var2="0"/>
4209 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004210 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004211 <actions>
4212 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004213 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004214 <action function="page">choosedestinationfolder</action>
4215 </actions>
4216 </button>
4217
4218 <button style="main_button_half_height">
4219 <condition var1="tw_fm_isfolder" var2="1"/>
4220 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004221 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004222 <actions>
4223 <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 -05004224 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004225 <action function="page">choosedestinationfolder</action>
4226 </actions>
4227 </button>
4228
4229 <button style="main_button_half_height">
4230 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004231 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004232 <actions>
4233 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004234 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004235 <action function="page">choosedestinationfolder</action>
4236 </actions>
4237 </button>
4238
4239 <button style="main_button_half_height">
4240 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004241 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004242 <actions>
4243 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004244 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004245 <action function="set">tw_fm_text2=</action>
4246 <action function="set">tw_fm_text3=</action>
4247 <action function="set">tw_include_text3=0</action>
4248 <action function="set">tw_back=filemanageroptions</action>
4249 <action function="page">filemanagerconfirm</action>
4250 </actions>
4251 </button>
4252
4253 <button style="main_button_half_height">
4254 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004255 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004256 <actions>
4257 <action function="set">tw_filemanager_rename=0000</action>
4258 <action function="set">tw_fm_text2=</action>
4259 <action function="set">tw_fm_text3=</action>
4260 <action function="set">tw_include_text3=0</action>
4261 <action function="set">tw_back=filemanageroptions</action>
4262 <action function="page">filemanagerchmod</action>
4263 </actions>
4264 </button>
4265
4266 <button style="main_button_half_height">
4267 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004268 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004269 <actions>
4270 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004271 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004272 <action function="set">tw_fm_text2=</action>
4273 <action function="set">tw_fm_text3=</action>
4274 <action function="set">tw_include_text3=0</action>
4275 <action function="set">tw_back=filemanageroptions</action>
4276 <action function="page">filemanagerconfirm</action>
4277 </actions>
4278 </button>
4279
4280 <button style="main_button_half_height">
4281 <condition var1="tw_fm_isfolder" var2="0"/>
4282 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004283 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004284 <actions>
4285 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004286 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004287 <action function="set">tw_filemanager_command=mv</action>
4288 <action function="page">filemanagerrenamefile</action>
4289 </actions>
4290 </button>
4291
4292 <button style="main_button_half_height">
4293 <condition var1="tw_fm_isfolder" var2="1"/>
4294 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004295 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004296 <actions>
4297 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004298 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004299 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4300 <action function="page">filemanagerrenamefolder</action>
4301 </actions>
4302 </button>
4303
4304 <action>
4305 <touch key="home"/>
4306 <action function="page">main</action>
4307 </action>
4308
4309 <action>
4310 <touch key="back"/>
4311 <action function="page">filemanagerlist</action>
4312 </action>
4313 </page>
4314
4315 <page name="choosedestinationfolder">
4316 <template name="page"/>
4317
4318 <text style="text_l">
4319 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004320 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004321 </text>
4322
4323 <text style="text_m">
4324 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004325 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004326 </text>
4327
4328 <template name="sort_options"/>
4329
4330 <fileselector>
4331 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4332 <text>%tw_file_location2%</text>
4333 <filter folders="1" files="0"/>
4334 <path name="tw_file_location2" default="/"/>
4335 <data name="tw_filename2"/>
4336 <selection name="tw_selection2"/>
4337 </fileselector>
4338
4339 <button style="fab">
4340 <image resource="fab_selectfolder"/>
4341 <actions>
4342 <action function="set">tw_fm_text2=to</action>
4343 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4344 <action function="set">tw_include_text3=1</action>
4345 <action function="set">tw_back=filemanageroptions</action>
4346 <action function="page">filemanagerconfirm</action>
4347 </actions>
4348 </button>
4349
4350 <action>
4351 <touch key="home"/>
4352 <action function="page">main</action>
4353 </action>
4354
4355 <action>
4356 <touch key="back"/>
4357 <action function="page">filemanageroptions</action>
4358 </action>
4359 </page>
4360
4361 <page name="filemanagerrenamefile">
4362 <template name="page"/>
4363
4364 <text style="text_l">
4365 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004366 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004367 </text>
4368
4369 <text style="text_m">
4370 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004371 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004372 </text>
4373
4374 <text style="text_m_accent">
4375 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004376 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004377 </text>
4378
4379 <input>
4380 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4381 <text>%tw_filemanager_rename%</text>
4382 <data name="tw_filemanager_rename"/>
4383 <restrict minlen="1" maxlen="128"/>
4384 <actions>
4385 <action function="set">tw_fm_text2=to</action>
4386 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4387 <action function="set">tw_include_text3=1</action>
4388 <action function="set">tw_back=filemanageroptions</action>
4389 <action function="page">filemanagerconfirm</action>
4390 </actions>
4391 </input>
4392
4393 <fill color="%accent_color%">
4394 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4395 </fill>
4396
4397 <button style="main_button_half_height">
4398 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004399 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004400 <action function="page">filemanageroptions</action>
4401 </button>
4402
4403 <template name="keyboardtemplate"/>
4404
4405 <action>
4406 <touch key="home"/>
4407 <action function="page">main</action>
4408 </action>
4409
4410 <action>
4411 <touch key="back"/>
4412 <action function="page">filemanageroptions</action>
4413 </action>
4414 </page>
4415
4416 <page name="filemanagerrenamefolder">
4417 <template name="page"/>
4418
4419 <text style="text_l">
4420 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004421 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004422 </text>
4423
4424 <text style="text_m">
4425 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004426 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004427 </text>
4428
4429 <text style="text_m_accent">
4430 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004431 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004432 </text>
4433
4434 <input>
4435 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4436 <text>%tw_filemanager_rename%</text>
4437 <data name="tw_filemanager_rename"/>
4438 <restrict minlen="1" maxlen="128"/>
4439 <actions>
4440 <action function="set">tw_fm_text2=to</action>
4441 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4442 <action function="set">tw_include_text3=1</action>
4443 <action function="set">tw_back=filemanageroptions</action>
4444 <action function="page">filemanagerconfirm</action>
4445 </actions>
4446 </input>
4447
4448 <fill color="%accent_color%">
4449 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4450 </fill>
4451
4452 <button style="main_button_half_height">
4453 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004454 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004455 <action function="page">filemanageroptions</action>
4456 </button>
4457
4458 <template name="keyboardtemplate"/>
4459
4460 <action>
4461 <touch key="home"/>
4462 <action function="page">main</action>
4463 </action>
4464
4465 <action>
4466 <touch key="back"/>
4467 <action function="page">filemanageroptions</action>
4468 </action>
4469 </page>
4470
4471 <page name="filemanagerchmod">
4472 <template name="page"/>
4473
4474 <text style="text_l">
4475 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004476 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004477 </text>
4478
4479 <text style="text_m">
4480 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004481 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004482 </text>
4483
4484 <text style="text_m_accent">
4485 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004486 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004487 </text>
4488
4489 <input>
4490 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4491 <text>%tw_filemanager_rename%</text>
4492 <data name="tw_filemanager_rename"/>
4493 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4494 <actions>
4495 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4496 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4497 <action function="set">tw_back=filemanageroptions</action>
4498 <action function="page">filemanagerconfirm</action>
4499 </actions>
4500 </input>
4501
4502 <fill color="%accent_color%">
4503 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4504 </fill>
4505
4506 <button style="main_button_half_height">
4507 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004508 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004509 <action function="page">filemanageroptions</action>
4510 </button>
4511
4512 <template name="keyboardtemplate"/>
4513
4514 <action>
4515 <touch key="home"/>
4516 <action function="page">main</action>
4517 </action>
4518
4519 <action>
4520 <touch key="back"/>
4521 <action function="page">filemanageroptions</action>
4522 </action>
4523 </page>
4524
4525 <page name="filemanagerconfirm">
4526 <template name="page"/>
4527
4528 <text style="text_l">
4529 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004530 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004531 </text>
4532
4533 <text style="text_m">
4534 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004535 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004536 </text>
4537
4538 <text style="text_m_accent">
4539 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4540 <text>%tw_fm_text1%</text>
4541 </text>
4542
4543 <text style="text_m">
4544 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4545 <text>%tw_filename1%</text>
4546 </text>
4547
4548 <text style="text_m_accent">
4549 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4550 <text>%tw_fm_text2%</text>
4551 </text>
4552
4553 <text style="text_m">
4554 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4555 <text>%tw_fm_text3%</text>
4556 </text>
4557
4558 <text style="text_m">
4559 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004560 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004561 </text>
4562
4563 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004564 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004565 <action function="page">filemanageraction</action>
4566 </slider>
4567
4568 <action>
4569 <touch key="back"/>
4570 <action function="page">%tw_back%</action>
4571 </action>
4572
4573 <action>
4574 <touch key="home"/>
4575 <action function="page">main</action>
4576 </action>
4577 </page>
4578
4579 <page name="filemanageraction">
4580 <template name="page"/>
4581
4582 <text style="text_l">
4583 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004584 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004585 </text>
4586
4587 <text style="text_m">
4588 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4589 <text>%tw_fm_text1%</text>
4590 </text>
4591
4592 <template name="console"/>
4593
4594 <template name="progress_bar"/>
4595
4596 <action>
4597 <conditions>
4598 <condition var1="tw_operation_state" var2="1"/>
4599 <condition var1="tw_operation_status" var2="0"/>
4600 </conditions>
4601 <actions>
4602 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004603 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004604 <action function="page">action_complete</action>
4605 </actions>
4606 </action>
4607
4608 <action>
4609 <conditions>
4610 <condition var1="tw_operation_state" var2="1"/>
4611 <condition var1="tw_operation_status" op="!=" var2="0"/>
4612 </conditions>
4613 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004615 <action function="page">action_complete</action>
4616 </actions>
4617 </action>
4618
4619 <action>
4620 <condition var1="tw_include_text3" var2="0"/>
4621 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4622 </action>
4623
4624 <action>
4625 <condition var1="tw_include_text3" var2="1"/>
4626 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4627 </action>
4628 </page>
4629
4630 <page name="decrypt">
4631 <template name="page"/>
4632
4633 <action>
4634 <condition var1="tw_crypto_pwtype" var2="2"/>
4635 <action function="page">decrypt_pattern</action>
4636 </action>
4637
4638 <text style="text_l">
4639 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004640 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004641 </text>
4642
4643 <text style="text_m">
4644 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004645 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004646 </text>
4647
4648 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004649 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004650 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004651 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004652 </text>
4653
Noah Jacobson5a79f672019-04-28 00:10:07 -04004654 <text style="text_m_accent">
4655 <condition var1="tw_is_fbe" var2="1"/>
4656 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4657 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4658 </text>
4659
z31s1g28f0a922015-11-07 18:50:22 +01004660 <input>
4661 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4662 <text>%tw_crypto_display%</text>
4663 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4664 <restrict minlen="1" maxlen="254"/>
4665 <action function="page">trydecrypt</action>
4666 </input>
4667
4668 <fill color="%accent_color%">
4669 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4670 </fill>
4671
4672 <fill color="%text_fail_color%">
4673 <condition var1="tw_password_fail" var2="1"/>
4674 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4675 </fill>
4676
4677 <text style="text_m_fail">
4678 <condition var1="tw_password_fail" var2="1"/>
4679 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004680 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004681 </text>
4682
4683 <button style="main_button_half_height">
4684 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004685 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004686 <actions>
4687 <action function="set">tw_page_done=1</action>
4688 <action function="page">main</action>
4689 </actions>
4690 </button>
4691
z31s1g608d7ff2016-01-18 19:47:25 +01004692 <button style="main_button_half_height">
4693 <placement x="%center_x%" y="%row10_y%"/>
4694 <text>{@sel_lang_btn=Select Language}</text>
4695 <action function="overlay">select_language</action>
4696 </button>
4697
z31s1g28f0a922015-11-07 18:50:22 +01004698 <template name="keyboardtemplate"/>
4699 </page>
4700
4701 <page name="decrypt_pattern">
4702 <template name="page"/>
4703
4704 <text style="text_l">
4705 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004706 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004707 </text>
4708
4709 <text style="text_m">
4710 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004711 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004712 </text>
4713
4714 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004715 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004716 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004717 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004718 </text>
4719
Noah Jacobson5a79f672019-04-28 00:10:07 -04004720 <text style="text_m_accent">
4721 <condition var1="tw_is_fbe" var2="1"/>
4722 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4723 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4724 </text>
4725
Aleksa Saraib25a1832015-12-31 17:36:00 +01004726 <text style="text_m_fail">
4727 <condition var1="tw_password_fail" var2="1"/>
4728 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004729 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004730 </text>
4731
z31s1g28f0a922015-11-07 18:50:22 +01004732 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004733 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004734 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4735 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4736 <data name="tw_crypto_password"/>
4737 <action function="page">trydecrypt</action>
4738 </patternpassword>
4739
Aleksa Saraib25a1832015-12-31 17:36:00 +01004740 <button style="button_quarter_width">
4741 <placement x="%indent%" y="%row19a_y%"/>
4742 <text>3x3</text>
4743 <action function="set">tw_gui_pattern_grid_size=3</action>
4744 </button>
4745
4746 <button style="button_quarter_width">
4747 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4748 <text>4x4</text>
4749 <action function="set">tw_gui_pattern_grid_size=4</action>
4750 </button>
4751
4752 <button style="button_quarter_width">
4753 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4754 <text>5x5</text>
4755 <action function="set">tw_gui_pattern_grid_size=5</action>
4756 </button>
4757
4758 <button style="button_quarter_width">
4759 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4760 <text>6x6</text>
4761 <action function="set">tw_gui_pattern_grid_size=6</action>
4762 </button>
4763
z31s1g28f0a922015-11-07 18:50:22 +01004764 <button style="main_button_half_height">
4765 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004766 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004767 <actions>
4768 <action function="set">tw_page_done=1</action>
4769 <action function="page">main</action>
4770 </actions>
4771 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004772
4773 <button style="main_button_half_height">
4774 <placement x="%center_x%" y="%row21a_y%"/>
4775 <text>{@sel_lang_btn=Select Language}</text>
4776 <action function="overlay">select_language</action>
4777 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004778 </page>
4779
4780 <page name="trydecrypt">
4781 <template name="page"/>
4782
4783 <text style="text_l">
4784 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004785 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004786 </text>
4787
4788 <text style="text_m">
4789 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004790 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004791 </text>
4792
4793 <template name="console"/>
4794
4795 <template name="progress_bar"/>
4796
4797 <action>
4798 <action function="decrypt"/>
4799 </action>
4800
4801 <action>
4802 <conditions>
4803 <condition var1="tw_operation_state" var2="1"/>
4804 <condition var1="tw_operation_status" op="!=" var2="0"/>
4805 </conditions>
4806 <actions>
4807 <action function="set">tw_password_fail=1</action>
4808 <action function="page">decrypt</action>
4809 </actions>
4810 </action>
4811
4812 <action>
4813 <conditions>
4814 <condition var1="tw_operation_state" var2="1"/>
4815 <condition var1="tw_operation_status" op="=" var2="0"/>
4816 </conditions>
4817 <actions>
4818 <action function="set">tw_page_done=1</action>
4819 <action function="page">main</action>
4820 </actions>
4821 </action>
4822 </page>
4823
z31s1g28f0a922015-11-07 18:50:22 +01004824 <page name="terminalcommand">
4825 <template name="page"/>
4826
z31s1g56189522016-01-13 19:12:40 +01004827 <fill color="%background_color%">
4828 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004829 </fill>
4830
z31s1g56189522016-01-13 19:12:40 +01004831 <terminal>
4832 <condition var1="tw_hide_kb" var2="0"/>
4833 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4834 </terminal>
4835
4836 <terminal>
4837 <condition var1="tw_hide_kb" var2="1"/>
4838 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4839 </terminal>
4840
4841 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004842
4843 <template name="keyboardtemplate"/>
4844
z31s1g608d7ff2016-01-18 19:47:25 +01004845 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004846 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004847 </fill>
z31s1g56189522016-01-13 19:12:40 +01004848
z31s1g608d7ff2016-01-18 19:47:25 +01004849 <button>
z31s1g56189522016-01-13 19:12:40 +01004850 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4851 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4852 <image resource="back" />
4853 <condition var1="tw_busy" var2="0" />
4854 <actions>
4855 <action function="set">tw_hide_kb=0</action>
4856 <action function="key">back</action>
4857 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004858 </button>
z31s1g56189522016-01-13 19:12:40 +01004859
z31s1g608d7ff2016-01-18 19:47:25 +01004860 <button>
z31s1g56189522016-01-13 19:12:40 +01004861 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4862 <condition var1="tw_hide_kb" op="=" var2="0" />
4863 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4864 <image resource="kb_hide" />
4865 <condition var1="tw_busy" var2="0" />
4866 <actions>
4867 <action function="set">tw_hide_kb=1</action>
4868 <action function="page">terminalcommand</action>
4869 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004870 </button>
z31s1g56189522016-01-13 19:12:40 +01004871
z31s1g608d7ff2016-01-18 19:47:25 +01004872 <button>
z31s1g56189522016-01-13 19:12:40 +01004873 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4874 <condition var1="tw_hide_kb" op="=" var2="1" />
4875 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4876 <image resource="kb_show" />
4877 <condition var1="tw_busy" var2="0" />
4878 <actions>
4879 <action function="set">tw_hide_kb=0</action>
4880 <action function="page">terminalcommand</action>
4881 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004882 </button>
z31s1g56189522016-01-13 19:12:40 +01004883
z31s1g608d7ff2016-01-18 19:47:25 +01004884 <button>
z31s1g56189522016-01-13 19:12:40 +01004885 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4886 <image resource="home" />
4887 <condition var1="tw_busy" var2="0" />
4888 <actions>
4889 <action function="set">tw_hide_kb=0</action>
4890 <action function="key">home</action>
4891 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004892 </button>
z31s1g56189522016-01-13 19:12:40 +01004893
z31s1g608d7ff2016-01-18 19:47:25 +01004894 <button>
z31s1g56189522016-01-13 19:12:40 +01004895 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4896 <condition var1="tw_hide_kb" op="=" var2="0" />
4897 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4898 <image resource="kb_hide" />
4899 <condition var1="tw_busy" var2="0" />
4900 <actions>
4901 <action function="set">tw_hide_kb=1</action>
4902 <action function="page">terminalcommand</action>
4903 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004904 </button>
z31s1g56189522016-01-13 19:12:40 +01004905
z31s1g608d7ff2016-01-18 19:47:25 +01004906 <button>
z31s1g56189522016-01-13 19:12:40 +01004907 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4908 <condition var1="tw_hide_kb" op="=" var2="1" />
4909 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4910 <image resource="kb_show" />
4911 <condition var1="tw_busy" var2="0" />
4912 <actions>
4913 <action function="set">tw_hide_kb=0</action>
4914 <action function="page">terminalcommand</action>
4915 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004916 </button>
z31s1g56189522016-01-13 19:12:40 +01004917
z31s1g608d7ff2016-01-18 19:47:25 +01004918 <button>
z31s1g56189522016-01-13 19:12:40 +01004919 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4920 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4921 <image resource="back" />
4922 <condition var1="tw_busy" var2="0" />
4923 <actions>
4924 <action function="set">tw_hide_kb=0</action>
4925 <action function="key">back</action>
4926 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004927 </button>
z31s1g56189522016-01-13 19:12:40 +01004928
z31s1g28f0a922015-11-07 18:50:22 +01004929 <action>
4930 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004931 <actions>
4932 <action function="set">tw_hide_kb=0</action>
4933 <action function="page">main</action>
4934 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004935 </action>
4936
4937 <action>
4938 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004939 <actions>
4940 <action function="set">tw_hide_kb=0</action>
4941 <action function="page">advanced</action>
4942 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004943 </action>
z31s1g56189522016-01-13 19:12:40 +01004944
z31s1g608d7ff2016-01-18 19:47:25 +01004945 <action>
z31s1g56189522016-01-13 19:12:40 +01004946 <touch key="power+voldown" />
4947 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004948 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004949 </page>
4950
4951 <page name="sideload">
4952 <template name="page"/>
4953
4954 <text style="text_l">
4955 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004956 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004957 </text>
4958
4959 <text style="text_m">
4960 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004961 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004962 </text>
4963
4964 <checkbox>
4965 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004966 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004967 <data variable="tw_wipe_dalvik"/>
4968 </checkbox>
4969
4970 <checkbox>
4971 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004972 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004973 <data variable="tw_wipe_cache"/>
4974 </checkbox>
4975
4976 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004977 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004978 <actions>
4979 <action function="set">tw_back=advanced</action>
4980 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004981 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4982 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4983 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004984 <action function="set">tw_has_cancel=1</action>
4985 <action function="set">tw_show_reboot=1</action>
4986 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4987 <action function="page">action_page</action>
4988 </actions>
4989 </slider>
4990
4991 <action>
4992 <touch key="home"/>
4993 <action function="page">main</action>
4994 </action>
4995
4996 <action>
4997 <touch key="back"/>
4998 <action function="page">advanced</action>
4999 </action>
5000 </page>
5001
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005002 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005003 <template name="page"/>
5004
5005 <text style="text_l">
5006 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005007 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005008 </text>
5009
5010 <text style="text_m">
5011 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005012 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005013 </text>
5014
5015 <text style="text_m_accent">
5016 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005017 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005018 </text>
5019
z31s1g28f0a922015-11-07 18:50:22 +01005020 <text style="text_m_fail">
5021 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005022 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005023 </text>
5024
5025 <text style="text_m_fail">
5026 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005027 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005028 </text>
5029
5030 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005031 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005032 <actions>
5033 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005034 <action function="set">tw_action=fixcontexts</action>
5035 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5036 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005037 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005038 <action function="set">tw_show_reboot=1</action>
5039 <action function="page">action_page</action>
5040 </actions>
5041 </slider>
5042
5043 <action>
5044 <touch key="home"/>
5045 <action function="page">main</action>
5046 </action>
5047
5048 <action>
5049 <touch key="back"/>
5050 <action function="page">advanced</action>
5051 </action>
5052 </page>
5053
z31s1g28f0a922015-11-07 18:50:22 +01005054 <page name="slideout">
5055 <fill color="%background_color%">
5056 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5057 </fill>
5058
5059 <console>
5060 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5061 </console>
5062
5063 <button>
5064 <fill color="%transparent%"/>
5065 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5066 <action function="overlay"/>
5067 </button>
5068
5069 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005070 <touch key="power"/>
5071 <action function="togglebacklight"/>
5072 </action>
5073
5074 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005075 <touch key="power+voldown"/>
5076 <action function="screenshot"/>
5077 </action>
5078 </page>
5079
5080 <page name="select_storage">
5081 <fill color="%semi_transparent%">
5082 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5083 </fill>
5084
5085 <fill color="%background_color%">
5086 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5087 </fill>
5088
5089 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005090 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005091 <data name="tw_storage_path"/>
5092 <listtype name="storage"/>
5093 </partitionlist>
5094
5095 <button style="button_third_width">
5096 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005097 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005098 <actions>
5099 <action function="set">tw_clear_destination=%tw_back%</action>
5100 <action function="overlay"/>
5101 <action function="page">clear_vars</action>
5102 </actions>
5103 </button>
5104
5105 <fill color="#000000">
5106 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5107 </fill>
5108
5109 <button>
5110 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5111 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5112 <image resource="back"/>
5113 <condition var1="tw_busy" var2="0"/>
5114 <actions>
5115 <action function="overlay"/>
5116 <action function="key">%tw_back%</action>
5117 </actions>
5118 </button>
5119
5120 <button>
5121 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5122 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5123 <image resource="console"/>
5124 <condition var1="tw_busy" var2="0"/>
5125 <action function="overlay">slideout</action>
5126 </button>
5127
5128 <button>
5129 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5130 <image resource="home"/>
5131 <condition var1="tw_busy" var2="0"/>
5132 <actions>
5133 <action function="overlay"/>
5134 <action function="key">home</action>
5135 </actions>
5136 </button>
5137
5138 <button>
5139 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5140 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5141 <image resource="console"/>
5142 <condition var1="tw_busy" var2="0"/>
5143 <action function="overlay">slideout</action>
5144 </button>
5145
5146 <button>
5147 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5148 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5149 <image resource="back"/>
5150 <condition var1="tw_busy" var2="0"/>
5151 <actions>
5152 <action function="overlay"/>
5153 <action function="key">%tw_back%</action>
5154 </actions>
5155 </button>
5156
5157 <action>
5158 <touch key="power+voldown"/>
5159 <action function="screenshot"/>
5160 </action>
5161 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005162
5163 <page name="select_language">
5164 <fill color="%semi_transparent%">
5165 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5166 </fill>
5167
5168 <fill color="%background_color%">
5169 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5170 </fill>
5171
5172 <listbox>
5173 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5174 <text>{@select_language=Select Language:}</text>
5175 <icon selected="radio_true" unselected="radio_false" />
5176 <data name="tw_language" />
5177 </listbox>
5178
5179 <button style="button_third_width">
5180 <placement x="%dialog_button_x%" y="%row14_y%"/>
5181 <text>{@ok_btn=OK}</text>
5182 <actions>
5183 <action function="overlay"/>
5184 <action function="setlanguage"></action>
5185 </actions>
5186 </button>
5187
5188 <fill color="#000000">
5189 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5190 </fill>
5191
5192 <button>
5193 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5194 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5195 <image resource="back"/>
5196 <condition var1="tw_busy" var2="0"/>
5197 <actions>
5198 <action function="overlay"/>
5199 <action function="key">%tw_back%</action>
5200 </actions>
5201 </button>
5202
5203 <button>
5204 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5205 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5206 <image resource="console"/>
5207 <condition var1="tw_busy" var2="0"/>
5208 <action function="overlay">slideout</action>
5209 </button>
5210
5211 <button>
5212 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5213 <image resource="home"/>
5214 <condition var1="tw_busy" var2="0"/>
5215 <actions>
5216 <action function="overlay"/>
5217 <action function="key">home</action>
5218 </actions>
5219 </button>
5220
5221 <button>
5222 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5223 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5224 <image resource="console"/>
5225 <condition var1="tw_busy" var2="0"/>
5226 <action function="overlay">slideout</action>
5227 </button>
5228
5229 <button>
5230 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5231 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5232 <image resource="back"/>
5233 <condition var1="tw_busy" var2="0"/>
5234 <actions>
5235 <action function="overlay"/>
5236 <action function="key">%tw_back%</action>
5237 </actions>
5238 </button>
5239
5240 <action>
5241 <touch key="power+voldown"/>
5242 <action function="screenshot"/>
5243 </action>
5244 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005245
5246 <page name="decrypt_users">
5247 <template name="page"/>
5248
5249 <text style="text_l">
5250 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5251 <text>{@decrypt_users=Decrypt Users}</text>
5252 </text>
5253
5254 <text style="text_m_accent">
5255 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5256 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5257 </text>
5258
5259 <listbox>
5260 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5261 <text>{@select_user=Select User}</text>
5262 <icon selected="radio_true" unselected="radio_false" />
5263 <data name="tw_crypto_user_id" />
5264 </listbox>
5265
5266 <button style="main_button_half_height">
5267 <placement x="%center_x%" y="%row21a_y%"/>
5268 <text>{@decrypt_users=Decrypt Users}</text>
5269 <action function="set">tw_crypto_password=</action>
5270 <action function="set">tw_password_fail=0</action>
5271 <action function="page">decrypt</action>
5272 </button>
5273
5274 <action>
5275 <touch key="home"/>
5276 <action function="page">main</action>
5277 </action>
5278
5279 <action>
5280 <touch key="back"/>
5281 <action function="page">advanced</action>
5282 </action>
5283 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005284 </pages>
5285</recovery>