blob: f24edbaea04abecf86be77f15d35bc02fd52fb14 [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
bigbiff97829df2020-12-20 12:26:15 -05002879 <listbox style="advanced_listbox">
2880 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01002881
bigbiff97829df2020-12-20 12:26:15 -05002882 <listitem name="{@rb_system_btn=System}">
2883 <condition var1="tw_reboot_system" var2="1"/>
2884 <actions>
2885 <action function="set">tw_back=reboot</action>
2886 <action function="page">reboot_system_routine</action>
2887 </actions>
2888 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002889
bigbiff97829df2020-12-20 12:26:15 -05002890 <listitem name="{@rb_poweroff_btn=Power Off}">
2891 <condition var1="tw_reboot_poweroff" var2="1"/>
2892 <actions>
2893 <action function="set">tw_back=reboot</action>
2894 <action function="set">tw_action=reboot</action>
2895 <action function="set">tw_action_param=poweroff</action>
2896 <action function="set">tw_reboot_param=poweroff</action>
2897 <action function="set">tw_has_action2=0</action>
2898 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2899 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2900 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2901 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2902 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2903 <action function="page">rebootcheck</action>
2904 </actions>
2905 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002906
bigbiff97829df2020-12-20 12:26:15 -05002907 <listitem name="{@rb_recovery_btn=Recovery}">
2908 <condition var1="tw_reboot_recovery" var2="1"/>
2909 <actions>
2910 <action function="set">tw_back=reboot</action>
2911 <action function="set">tw_action=reboot</action>
2912 <action function="set">tw_action_param=recovery</action>
2913 <action function="set">tw_reboot_param=recovery</action>
2914 <action function="set">tw_has_action2=0</action>
2915 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2916 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2917 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2918 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2919 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2920 <action function="page">rebootcheck</action>
2921 </actions>
2922 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002923
bigbiff97829df2020-12-20 12:26:15 -05002924 <listitem name="{@rb_bootloader_btn=Bootloader}">
2925 <condition var1="tw_reboot_bootloader" var2="1"/>
2926 <actions>
2927 <action function="set">tw_back=reboot</action>
2928 <action function="set">tw_action=reboot</action>
2929 <action function="set">tw_action_param=bootloader</action>
2930 <action function="set">tw_reboot_param=bootloader</action>
2931 <action function="set">tw_has_action2=0</action>
2932 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2933 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2934 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2935 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2936 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2937 <action function="page">rebootcheck</action>
2938 </actions>
2939 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002940
bigbiff97829df2020-12-20 12:26:15 -05002941 <listitem name="{@rb_download_btn=Download}">
2942 <condition var1="tw_download_mode" var2="1"/>
2943 <actions>
2944 <action function="set">tw_back=reboot</action>
2945 <action function="set">tw_action=reboot</action>
2946 <action function="set">tw_action_param=download</action>
2947 <action function="set">tw_reboot_param=download</action>
2948 <action function="set">tw_has_action2=0</action>
2949 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2950 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2951 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2952 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2953 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2954 <action function="page">rebootcheck</action>
2955 </actions>
2956 </listitem>
2957
2958 <listitem name="{@rb_edl_btn=Edl}">
2959 <condition var1="tw_edl_mode" var2="1"/>
2960 <actions>
2961 <action function="set">tw_back=reboot</action>
2962 <action function="set">tw_action=reboot</action>
2963 <action function="set">tw_action_param=edl</action>
2964 <action function="set">tw_reboot_param=edl</action>
2965 <action function="set">tw_has_action2=0</action>
2966 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2967 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2968 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2969 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2970 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2971 <action function="page">rebootcheck</action>
2972 </actions>
2973 </button>
2974 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02002975
Ethan Yonker1b190162016-12-05 15:25:19 -06002976 <text style="text_m">
2977 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiff97829df2020-12-20 12:26:15 -05002978 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002979 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2980 </text>
2981
bigbiff97829df2020-12-20 12:26:15 -05002982 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002983 <condition var1="tw_has_boot_slots" var2="1"/>
2984 <placement x="%indent%" y="%row19_y%"/>
2985 <text>{@boot_slot_a=Slot A}</text>
2986 <actions>
2987 <action function="set">tw_back=reboot</action>
2988 <action function="set">tw_action=setbootslot</action>
2989 <action function="set">tw_action_param=A</action>
2990 <action function="set">tw_has_action2=0</action>
2991 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2992 <action function="set">tw_action_text2=</action>
2993 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2994 <action function="page">action_page</action>
2995 </actions>
2996 </button>
2997
bigbiff97829df2020-12-20 12:26:15 -05002998 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002999 <condition var1="tw_has_boot_slots" var2="1"/>
3000 <placement x="%center_x%" y="%row19_y%"/>
3001 <text>{@boot_slot_b=Slot B}</text>
3002 <actions>
3003 <action function="set">tw_back=reboot</action>
3004 <action function="set">tw_action=setbootslot</action>
3005 <action function="set">tw_action_param=B</action>
3006 <action function="set">tw_has_action2=0</action>
3007 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3008 <action function="set">tw_action_text2=</action>
3009 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3010 <action function="page">action_page</action>
3011 </actions>
3012 </button>
3013
z31s1g28f0a922015-11-07 18:50:22 +01003014 <action>
3015 <touch key="home"/>
3016 <action function="page">main</action>
3017 </action>
3018
3019 <action>
3020 <touch key="back"/>
3021 <action function="page">main</action>
3022 </action>
3023 </page>
3024
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003025 <page name="rebootapp">
3026 <template name="page"/>
3027
3028 <text style="text_l">
3029 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3030 <text>{@reboot_hdr=Reboot}</text>
3031 </text>
3032
3033 <text style="text_m">
3034 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3035 <text>{@reboot_install_app_hdr=Install TWRP App?}</text>
3036 </text>
3037
3038 <text style="text_m_accent">
3039 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3040 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3041 </text>
3042
3043 <text style="text_m_accent">
3044 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3045 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3046 </text>
3047
3048 <checkbox>
3049 <placement x="%indent%" y="%row5_y%"/>
3050 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
3051 <data variable="tw_app_prompt"/>
3052 </checkbox>
3053
3054 <checkbox>
3055 <condition var1="tw_mount_system_ro" var2="0"/>
3056 <placement x="%indent%" y="%row7_y%"/>
3057 <text>{@reboot_install_app_system=Install as a System App}</text>
3058 <data variable="tw_app_install_system"/>
3059 </checkbox>
3060
3061 <button style="main_button_half_height">
3062 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003063 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003064 <action function="reboot">%tw_reboot_param%</action>
3065 </button>
3066
3067 <slider>
3068 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3069 <actions>
3070 <action function="set">tw_back=reboot</action>
3071 <action function="set">tw_action=installapp</action>
3072 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3073 <action function="set">tw_action_text2=</action>
3074 <action function="set">tw_has_action2=1</action>
3075 <action function="set">tw_action2=reboot</action>
3076 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3077 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3078 <action function="page">action_page</action>
3079 </actions>
3080 </slider>
3081
3082 <action>
3083 <touch key="home"/>
3084 <actions>
3085 <action function="set">tw_app_install_status=0</action>
3086 <action function="page">main</action>
3087 </actions>
3088 </action>
3089
3090 <action>
3091 <touch key="back"/>
3092 <actions>
3093 <action function="set">tw_app_install_status=0</action>
3094 <action function="page">reboot</action>
3095 </actions>
3096 </action>
3097 </page>
3098
z31s1g28f0a922015-11-07 18:50:22 +01003099 <page name="system_readonly">
3100 <template name="page"/>
3101
3102 <text style="text_l">
3103 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003104 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003105 </text>
3106
3107 <text style="text_m_accent">
3108 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003109 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003110 </text>
3111
3112 <text style="text_m">
3113 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003114 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003115 </text>
3116
3117 <text style="text_m">
3118 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003119 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003120 </text>
3121
3122 <text style="text_m">
3123 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003124 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003125 </text>
3126
3127 <text style="text_m">
3128 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003129 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003130 </text>
3131
3132 <text style="text_m_fail">
3133 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003134 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003135 </text>
3136
3137 <text style="text_m_fail">
3138 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003139 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003140 </text>
3141
3142 <checkbox>
3143 <condition var1="tw_is_encrypted" var2="0"/>
3144 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003145 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003146 <data variable="tw_never_show_system_ro_page"/>
3147 </checkbox>
3148
3149 <button style="main_button_half_height">
3150 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003151 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003152 <actions>
3153 <action function="mountsystemtoggle">1</action>
3154 <action function="set">tw_page_done=1</action>
3155 <action function="page">%tw_back%</action>
3156 </actions>
3157 </button>
3158
z31s1g608d7ff2016-01-18 19:47:25 +01003159 <button style="main_button_half_height">
3160 <placement x="%center_x%" y="%row18a_y%"/>
3161 <text>{@sel_lang_btn=Select Language}</text>
3162 <action function="overlay">select_language</action>
3163 </button>
3164
z31s1g28f0a922015-11-07 18:50:22 +01003165 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003166 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003167 <actions>
3168 <action function="mountsystemtoggle">0</action>
3169 <action function="set">tw_page_done=1</action>
3170 <action function="page">%tw_back%</action>
3171 </actions>
3172 </slider>
3173 </page>
3174
3175 <page name="settings">
3176 <template name="page"/>
3177
3178 <text style="text_l">
3179 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003180 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003181 </text>
3182
3183 <text style="text_m">
3184 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003185 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003186 </text>
3187
3188 <template name="tabs_settings"/>
3189
3190 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003191 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003192 </fill>
3193
3194 <listbox style="scrolllist">
3195 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3196 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003197 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003198 <data variable="tw_signed_zip_verify"/>
3199 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003200 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3201 <data variable="tw_install_reboot"/>
3202 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003203 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003204 <data variable="tw_rm_rf"/>
3205 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003206 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3207 <data variable="tw_disable_free_space"/>
3208 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003209 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3210 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003211 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003212 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3213 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003214 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003215 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003216 <data variable="tw_military_time"/>
3217 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003218 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003219 <data variable="tw_samsung_navbar"/>
3220 </listitem>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003221 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3222 <data variable="tw_app_prompt"/>
3223 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003224 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003225 <data variable="tw_simulate_actions"/>
3226 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003227 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003228 <condition var1="tw_simulate_actions" var2="1"/>
3229 <data variable="tw_simulate_fail"/>
3230 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003231 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3232 <condition var1="tw_no_sha2" var2="0"/>
3233 <data variable="tw_use_sha2"/>
3234 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003235 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3236 <data variable="tw_unmount_system"/>
3237 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003238 </listbox>
3239
3240 <button style="main_button_half_height">
3241 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003242 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003243 <actions>
3244 <action function="set">tw_samsung_navbar=0</action>
3245 <action function="set">tw_tab_icons=0</action>
3246 <action function="restoredefaultsettings"/>
3247 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003248 </button>
3249
3250 <action>
3251 <touch key="home"/>
3252 <action function="page">main</action>
3253 </action>
3254
3255 <action>
3256 <touch key="back"/>
3257 <action function="page">main</action>
3258 </action>
3259 </page>
3260
3261 <page name="settings_timezone">
3262 <template name="page"/>
3263
3264 <text style="text_l">
3265 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003266 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003267 </text>
3268
3269 <text style="text_m">
3270 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003271 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003272 </text>
3273
3274 <template name="tabs_settings"/>
3275
3276 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </fill>
3279
3280 <listbox>
3281 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003284 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3285 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3286 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3287 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3288 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3289 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3290 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3291 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3292 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3293 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3294 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3295 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3296 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3297 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3298 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3299 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3300 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3301 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3302 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3303 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3304 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3305 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3306 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3307 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003308 </listbox>
3309
3310 <text style="text_m_accent">
3311 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003312 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003313 </text>
3314
3315 <button style="button_quarter_width">
3316 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003317 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003318 <action function="set">tw_time_zone_guioffset=0</action>
3319 </button>
3320
3321 <button style="button_quarter_width">
3322 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003323 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003324 <action function="set">tw_time_zone_guioffset=15</action>
3325 </button>
3326
3327 <button style="button_quarter_width">
3328 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003329 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003330 <action function="set">tw_time_zone_guioffset=30</action>
3331 </button>
3332
3333 <button style="button_quarter_width">
3334 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003335 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003336 <action function="set">tw_time_zone_guioffset=45</action>
3337 </button>
3338
3339 <checkbox>
3340 <placement x="%indent%" y="%row18a_y%"/>
3341 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003342 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003343 <data variable="tw_time_zone_guidst"/>
3344 <image checked="checkbox_true" unchecked="checkbox_false"/>
3345 </checkbox>
3346
3347 <text color="%text_color%">
3348 <font resource="font_m"/>
3349 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003350 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003351 </text>
3352
3353 <button>
3354 <highlight color="%highlight_color%"/>
3355 <placement x="%center_x%" y="%row21a_y%"/>
3356 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003357 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003358 <image resource="main_button_half_height"/>
3359 <action function="setguitimezone"/>
3360 </button>
3361
3362 <action>
3363 <touch key="home"/>
3364 <action function="page">main</action>
3365 </action>
3366
3367 <action>
3368 <touch key="back"/>
3369 <action function="page">main</action>
3370 </action>
3371 </page>
3372
3373 <page name="settings_screen">
3374 <template name="page"/>
3375
3376 <text style="text_l">
3377 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003378 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003379 </text>
3380
3381 <text style="text_m">
3382 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003383 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003384 </text>
3385
3386 <template name="tabs_settings"/>
3387
3388 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </fill>
3391
3392 <button>
3393 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3394 <font resource="font_m" color="%text_color%"/>
3395 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3396 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003397 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003398 <image resource="checkbox_false"/>
3399 <action function="set">tw_screen_timeout_secs=60</action>
3400 </button>
3401
3402 <button>
3403 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3404 <font resource="font_m" color="%text_color%"/>
3405 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3406 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003408 <image resource="checkbox_true"/>
3409 <action function="set">tw_screen_timeout_secs=0</action>
3410 </button>
3411
3412 <slidervalue>
3413 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3414 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3415 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003416 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003417 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3418 </slidervalue>
3419
3420 <slidervalue>
3421 <condition var1="tw_has_brightnesss_file" var2="1"/>
3422 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003423 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003424 <data variable="tw_brightness_pct" min="10" max="100"/>
3425 <actions>
3426 <action function="set">tw_brightness=%tw_brightness_max%</action>
3427 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3428 <action function="compute">tw_brightness/100</action>
3429 <action function="setbrightness">%tw_brightness%</action>
3430 </actions>
3431 </slidervalue>
3432
3433 <action>
3434 <touch key="home"/>
3435 <action function="page">main</action>
3436 </action>
3437
3438 <action>
3439 <touch key="back"/>
3440 <action function="page">main</action>
3441 </action>
3442 </page>
3443
3444 <page name="settings_vibration">
3445 <template name="page"/>
3446
3447 <text style="text_l">
3448 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003449 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003450 </text>
3451
3452 <text style="text_m">
3453 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003454 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003455 </text>
3456
3457 <template name="tabs_settings"/>
3458
3459 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003460 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003461 </fill>
3462
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003463 <text style="text_m">
3464 <condition var1="tw_disable_haptics" var2="1"/>
3465 <placement x="%indent%" y="%row4_y%"/>
3466 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3467 </text>
3468
z31s1g28f0a922015-11-07 18:50:22 +01003469 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003470 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003471 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003472 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003473 <data variable="tw_button_vibrate" min="0" max="300"/>
3474 </slidervalue>
3475
3476 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003477 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003478 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003479 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003480 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3481 </slidervalue>
3482
3483 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003484 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003485 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003486 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003487 <data variable="tw_action_vibrate" min="0" max="500"/>
3488 </slidervalue>
3489
3490 <action>
3491 <touch key="home"/>
3492 <action function="page">main</action>
3493 </action>
3494
3495 <action>
3496 <touch key="back"/>
3497 <action function="page">main</action>
3498 </action>
3499 </page>
3500
Ethan Yonker74db1572015-10-28 12:44:49 -05003501 <page name="settings_language">
3502 <template name="page"/>
3503
3504 <text style="text_l">
3505 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3506 <text>{@settings_hdr=Settings}</text>
3507 </text>
3508
3509 <text style="text_m">
3510 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3511 <text>{@language_hdr=Language - %tw_language_display%}</text>
3512 </text>
3513
3514 <template name="tabs_settings"/>
3515
3516 <fill color="%text_color%">
3517 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3518 </fill>
3519
3520 <listbox>
3521 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3522 <text>{@select_language=Select Language:}</text>
3523 <icon selected="radio_true" unselected="radio_false" />
3524 <data name="tw_language" />
3525 </listbox>
3526
3527 <button style="main_button_half_height">
3528 <placement x="%center_x%" y="%row21a_y%"/>
3529 <text>{@set_language_btn=Set Language}</text>
3530 <action function="setlanguage"></action>
3531 </button>
3532
3533 <action>
3534 <touch key="home" />
3535 <action function="page">main</action>
3536 </action>
3537
3538 <action>
3539 <touch key="back" />
3540 <action function="page">settings</action>
3541 </action>
3542 </page>
3543
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003544 <page name="copylog">
3545 <template name="page"/>
3546
3547 <text style="text_l">
3548 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3549 <text>{@copying_log=Copy Logs to SD Card}</text>
3550 </text>
3551
3552 <checkbox>
3553 <placement x="%indent%" y="%row4_y%"/>
3554 <text>{@include_kernel_log=Include Kernel Log}</text>
3555 <data variable="tw_include_kernel_log" value="1"/>
3556 </checkbox>
3557
3558 <slider>
3559 <text>{@copying_log=Copy Logs to SD Card}</text>
3560 <actions>
3561 <action function="set">tw_back=advanced</action>
3562 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003563 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3564 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003565 <action function="page">action_page</action>
3566 </actions>
3567 </slider>
3568
3569 <action>
3570 <touch key="home"/>
3571 <action function="page">main</action>
3572 </action>
3573
3574 <action>
3575 <touch key="back"/>
3576 <actions>
3577 <action function="page">advanced</action>
3578 </actions>
3579 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003580 </page>
3581
z31s1g28f0a922015-11-07 18:50:22 +01003582 <page name="advanced">
3583 <template name="page"/>
3584
3585 <text style="text_l">
3586 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003587 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003588 </text>
3589
3590 <button style="main_button">
3591 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003592 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003593 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003594 </button>
3595
3596 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003597 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003598 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003599 <text>{@adb_sideload_btn=ADB Sideload}</text>
3600 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003601 </button>
3602
3603 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003604 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003605 <text>{@terminal_btn=Terminal}</text>
3606 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003607 </button>
3608
3609 <button style="main_button">
3610 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003611 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003612 <action function="page">filemanagerlist</action>
3613 </button>
3614
Ethan Yonker64e0a652018-07-25 09:52:17 -05003615 <listbox style="advanced_listbox">
3616 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003617 <listitem name="{@decrypt_users=Decrypt Users}">
3618 <conditions>
3619 <condition var1="tw_is_fbe" var2="1"/>
3620 <condition var1="tw_all_users_decrypted" var2="0"/>
3621 </conditions>
3622 <actions>
3623 <action function="set">tw_crypto_user_id=</action>
3624 <action function="page">decrypt_users</action>
3625 </actions>
3626 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003627 <listitem name="{@reload_theme_btn=Reload Theme}">
3628 <action function="reload"/>
3629 </listitem>
3630 <listitem name="{@part_sd_btn=Partition SD Card}">
3631 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3632 <actions>
3633 <action function="set">partitionlisterror=0</action>
3634 <action function="page">partsdcardsel</action>
3635 </actions>
3636 </listitem>
3637 <listitem name="{@fix_context_btn=Fix Contexts}">
3638 <condition var1="tw_has_data_media" var2="1"/>
3639 <action function="page">fixcontexts</action>
3640 </listitem>
3641 <listitem name="{@dumlock_btn=HTC Dumlock}">
3642 <condition var1="tw_show_dumlock" var2="1"/>
3643 <action function="page">htcdumlock</action>
3644 </listitem>
3645 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3646 <condition var1="tw_has_injecttwrp" var2="1"/>
3647 <actions>
3648 <action function="set">tw_back=advanced</action>
3649 <action function="set">tw_action=reinjecttwrp</action>
3650 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3651 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3652 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3653 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3654 <action function="page">confirm_action</action>
3655 </actions>
3656 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003657 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3658 <conditions>
3659 <condition var1="tw_has_boot_slots" var2="1"/>
3660 <condition var1="tw_has_repack_tools" var2="1"/>
3661 </conditions>
3662 <actions>
3663 <action function="set">tw_repack_kernel=0</action>
3664 <action function="page">repackselect</action>
3665 </actions>
3666 </listitem>
3667 <listitem name="{@install_kernel=Install Kernel}">
3668 <conditions>
3669 <condition var1="tw_has_boot_slots" var2="1"/>
3670 <condition var1="tw_has_repack_tools" var2="1"/>
3671 </conditions>
3672 <actions>
3673 <action function="set">tw_repack_kernel=1</action>
3674 <action function="page">repackselect</action>
3675 </actions>
3676 </listitem>
3677 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3678 <conditions>
3679 <condition var1="tw_has_boot_slots" var2="1"/>
3680 <condition var1="tw_has_repack_tools" var2="1"/>
3681 </conditions>
3682 <actions>
3683 <action function="set">tw_back=advanced</action>
3684 <action function="set">tw_action=fixabrecoverybootloop</action>
3685 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3686 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3687 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3688 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3689 <action function="page">confirm_action</action>
3690 </actions>
3691 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003692 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3693 <condition var1="tw_app_installed_in_system" var2="1"/>
3694 <actions>
3695 <action function="set">tw_back=advanced</action>
3696 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3697 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3698 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3699 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3700 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3701 <action function="page">confirm_action</action>
3702 </actions>
3703 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003704 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003705
3706 <action>
3707 <touch key="home"/>
3708 <action function="page">main</action>
3709 </action>
3710
3711 <action>
3712 <touch key="back"/>
3713 <action function="page">main</action>
3714 </action>
3715 </page>
3716
Ethan Yonker483e9f42016-01-11 22:21:18 -06003717 <page name="partsdcardsel">
3718 <template name="page"/>
3719
3720 <text style="text_l">
3721 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3722 <text>{@advanced_hdr=Advanced}</text>
3723 </text>
3724
3725 <text style="text_m">
3726 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3727 <text>{@part_sd_hdr=Partition SD Card}</text>
3728 </text>
3729
z31s1g782e1c92016-01-30 16:50:09 +01003730 <partitionlist>
3731 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003732 <text>{@sel_storage_list=Select Storage}</text>
3733 <data name="tw_storage_path"/>
3734 <listtype name="storage"/>
3735 </partitionlist>
3736
3737 <text style="text_m_fail">
3738 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003739 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003740 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3741 </text>
3742
z31s1g782e1c92016-01-30 16:50:09 +01003743 <button style="main_button_half_height">
3744 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003745 <text>{@ok_btn=OK}</text>
3746 <actions>
3747 <action function="getpartitiondetails">tw_storage_path</action>
3748 <action function="page">partsdcardcheck</action>
3749 </actions>
3750 </button>
3751
3752 <action>
3753 <touch key="home"/>
3754 <action function="page">main</action>
3755 </action>
3756
3757 <action>
3758 <touch key="back"/>
3759 <action function="page">advanced</action>
3760 </action>
3761 </page>
3762
3763 <page name="partsdcardcheck">
3764 <action>
3765 <condition var1="tw_partition_removable" op="=" var2="1"/>
3766 <actions>
3767 <action function="set">partitionlisterror=0</action>
3768 <action function="page">partsdcard</action>
3769 </actions>
3770 </action>
3771
3772 <action>
3773 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3774 <actions>
3775 <action function="set">partitionlisterror=1</action>
3776 <action function="page">partsdcardsel</action>
3777 </actions>
3778 </action>
3779 </page>
3780
z31s1g28f0a922015-11-07 18:50:22 +01003781 <page name="partsdcard">
3782 <template name="page"/>
3783
3784 <text style="text_l">
3785 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003786 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003787 </text>
3788
3789 <text style="text_m">
3790 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003791 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003792 </text>
3793
3794 <text style="text_m_fail">
3795 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003796 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003797 </text>
3798
3799 <text style="text_m_fail">
3800 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003801 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003802 </text>
3803
3804 <text style="text_m_accent">
3805 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003806 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003807 </text>
3808
3809 <text style="text_m">
3810 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3811 <text>%tw_sdext_size%</text>
3812 </text>
3813
3814 <button style="button_quarter_width">
3815 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003816 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003817 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003818 </button>
3819
3820 <button style="button_quarter_width">
3821 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003822 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003823 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003824 </button>
3825
3826 <text style="text_m_accent">
3827 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003828 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003829 </text>
3830
3831 <text style="text_m">
3832 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3833 <text>%tw_swap_size%</text>
3834 </text>
3835
3836 <button style="button_quarter_width">
3837 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003838 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003839 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003840 </button>
3841
3842 <button style="button_quarter_width">
3843 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003844 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003845 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003846 </button>
3847
3848 <text style="text_m_accent">
3849 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003850 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003851 </text>
3852
3853 <text style="text_m">
3854 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3855 <text>%tw_sdpart_file_system%</text>
3856 </text>
3857
3858 <button style="button_quarter_width">
3859 <placement x="%indent%" y="%row14_y%"/>
3860 <text>EXT3</text>
3861 <action function="set">tw_sdpart_file_system=ext3</action>
3862 </button>
3863
3864 <button style="button_quarter_width">
3865 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3866 <text>EXT4</text>
3867 <action function="set">tw_sdpart_file_system=ext4</action>
3868 </button>
3869
3870 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003871 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003872 <action function="page">partsdcardaction</action>
3873 <actions>
3874 <action function="set">tw_back=partsdcard</action>
3875 <action function="set">tw_action=partitionsd</action>
3876 <action function="set">tw_has_action2=1</action>
3877 <action function="set">tw_action2=set</action>
3878 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003879 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3880 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3881 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003882 <action function="page">action_page</action>
3883 </actions>
3884 </slider>
3885
3886 <action>
3887 <touch key="home"/>
3888 <action function="page">main</action>
3889 </action>
3890
3891 <action>
3892 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003893 <actions>
3894 <action function="set">partitionlisterror=0</action>
3895 <action function="page">partsdcardsel</action>
3896 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003897 </action>
3898 </page>
3899
3900 <page name="htcdumlock">
3901 <template name="page"/>
3902
3903 <text style="text_l">
3904 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003905 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003906 </text>
3907
3908 <text style="text_m">
3909 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003910 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003911 </text>
3912
3913 <button style="main_button_half_height_full_width">
3914 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003915 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003916 <actions>
3917 <action function="set">tw_back=htcdumlock</action>
3918 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003919 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3920 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3921 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3922 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003923 <action function="page">confirm_action</action>
3924 </actions>
3925 </button>
3926
3927 <button style="main_button_half_height_full_width">
3928 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003929 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003930 <actions>
3931 <action function="set">tw_back=htcdumlock</action>
3932 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003933 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3934 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3935 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3936 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003937 <action function="page">confirm_action</action>
3938 </actions>
3939 </button>
3940
3941 <button style="main_button_half_height_full_width">
3942 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003943 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003944 <actions>
3945 <action function="set">tw_back=htcdumlock</action>
3946 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003947 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3948 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3949 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3950 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003951 <action function="page">confirm_action</action>
3952 </actions>
3953 </button>
3954
3955 <action>
3956 <touch key="home"/>
3957 <action function="page">main</action>
3958 </action>
3959
3960 <action>
3961 <touch key="back"/>
3962 <action function="page">advanced</action>
3963 </action>
3964 </page>
3965
Ethan Yonker53796e72019-01-11 22:49:52 -06003966 <page name="repackselect">
3967 <template name="page"/>
3968
3969 <text style="text_l">
3970 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3971 <text>{@repack_image_hdr=Select Image}</text>
3972 </text>
3973
3974 <text style="text_m">
3975 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3976 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3977 </text>
3978
3979 <template name="sort_options"/>
3980
3981 <fileselector>
3982 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3983 <text>%tw_zip_location%</text>
3984 <filter extn=".img" folders="1" files="1"/>
3985 <path name="tw_zip_location" default="/sdcard"/>
3986 <data name="tw_filename"/>
3987 <selection name="tw_file"/>
3988 </fileselector>
3989
3990 <button style="main_button_half_height">
3991 <placement x="%indent%" y="%row21a_y%"/>
3992 <text>{@select_storage_btn=Select Storage}</text>
3993 <actions>
3994 <action function="set">tw_back=repackselect</action>
3995 <action function="overlay">select_storage</action>
3996 </actions>
3997 </button>
3998
3999 <action>
4000 <conditions>
4001 <condition var1="tw_filename" op="modified"/>
4002 </conditions>
4003 <action function="page">repackconfirm</action>
4004 </action>
4005
4006 <action>
4007 <touch key="back"/>
4008 <action function="page">advanced</action>
4009 </action>
4010
4011 <action>
4012 <touch key="home"/>
4013 <action function="page">main</action>
4014 </action>
4015 </page>
4016
4017 <page name="repackconfirm">
4018 <template name="page"/>
4019
4020 <text style="text_l">
4021 <condition var1="tw_repack_kernel" var2="1"/>
4022 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4023 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4024 </text>
4025
4026 <text style="text_l">
4027 <condition var1="tw_repack_kernel" var2="0"/>
4028 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4029 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4030 </text>
4031
4032 <text style="text_m">
4033 <condition var1="tw_repack_kernel" var2="1"/>
4034 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4035 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4036 </text>
4037
4038 <text style="text_m">
4039 <condition var1="tw_repack_kernel" var2="0"/>
4040 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4041 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4042 </text>
4043
4044 <text style="text_m_accent">
4045 <placement x="%indent%" y="%row2_y%"/>
4046 <text>{@folder=Folder:}</text>
4047 </text>
4048
4049 <text style="text_m">
4050 <placement x="%indent%" y="%row3_y%"/>
4051 <text>%tw_zip_location%</text>
4052 </text>
4053
4054 <text style="text_m_accent">
4055 <placement x="%indent%" y="%row4_y%"/>
4056 <text>{@file=File:}</text>
4057 </text>
4058
4059 <text style="text_m">
4060 <placement x="%indent%" y="%row5_y%"/>
4061 <text>%tw_file%</text>
4062 </text>
4063
4064 <checkbox>
4065 <placement x="%indent%" y="%row7_y%"/>
4066 <text>{@repack_backup_first=Back up existing image first}</text>
4067 <data variable="tw_repack_backup_first"/>
4068 </checkbox>
4069
4070 <button style="main_button_half_height">
4071 <placement x="%indent%" y="%row16_y%"/>
4072 <text>{@install_cancel=Do not Install}</text>
4073 <action function="page">repackselect</action>
4074 </button>
4075
4076 <slider>
4077 <text>{@swipe_to_install=Swipe to Install}</text>
4078 <actions>
4079 <action function="set">tw_back=advanced</action>
4080 <action function="set">tw_action=repackimage</action>
4081 <action function="set">tw_action_param=/boot</action>
4082 <action function="set">tw_action_text1={@installing=Installing...}</action>
4083 <action function="set">tw_action_text2=</action>
4084 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4085 <action function="page">action_page</action>
4086 </actions>
4087 </slider>
4088
4089 <action>
4090 <touch key="back"/>
4091 <action function="page">repackselect</action>
4092 </action>
4093
4094 <action>
4095 <touch key="home"/>
4096 <action function="page">main</action>
4097 </action>
4098 </page>
4099
z31s1g28f0a922015-11-07 18:50:22 +01004100 <page name="lock">
4101 <background color="%semi_transparent%"/>
4102
4103 <image>
4104 <image resource="unlock_icon"/>
4105 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4106 </image>
4107
4108 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004109 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004110 <action function="overlay"/>
4111 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004112
4113 <action>
4114 <touch key="power"/>
4115 <action function="togglebacklight"/>
4116 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004117 </page>
4118
4119 <page name="filemanagerlist">
4120 <template name="page"/>
4121
4122 <text style="text_l">
4123 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004124 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004125 </text>
4126
4127 <text style="text_m">
4128 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004129 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004130 </text>
4131
4132 <template name="sort_options"/>
4133
4134 <fileselector>
4135 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4136 <text>%tw_file_location1%</text>
4137 <filter folders="1" files="1"/>
4138 <path name="tw_file_location1" default="/"/>
4139 <data name="tw_filename1"/>
4140 <selection name="tw_selection1"/>
4141 </fileselector>
4142
4143 <button style="fab">
4144 <image resource="fab_selectfolder"/>
4145 <actions>
4146 <action function="set">tw_filename1=tw_file_location1</action>
4147 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004148 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004149 <action function="page">filemanageroptions</action>
4150 </actions>
4151 </button>
4152
4153 <action>
4154 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004155 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004156 <action function="set">tw_fm_isfolder=0</action>
4157 </actions>
4158 </action>
4159
4160 <action>
4161 <touch key="home"/>
4162 <action function="page">main</action>
4163 </action>
4164
4165 <action>
4166 <touch key="back"/>
4167 <action function="page">advanced</action>
4168 </action>
4169
4170 <action>
4171 <condition var1="tw_filename1" op="modified"/>
4172 <action function="page">filemanageroptions</action>
4173 </action>
4174 </page>
4175
4176 <page name="filemanageroptions">
4177 <template name="page"/>
4178
4179 <text style="text_l">
4180 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004181 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004182 </text>
4183
4184 <text style="text_m">
4185 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004186 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004187 </text>
4188
4189 <text style="text_m_accent">
4190 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004191 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004192 </text>
4193
4194 <text style="text_m">
4195 <placement x="%indent%" y="%row3_y%"/>
4196 <text>%tw_filename1%</text>
4197 </text>
4198
4199 <button style="main_button_half_height">
4200 <condition var1="tw_fm_isfolder" var2="0"/>
4201 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004202 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004203 <actions>
4204 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004205 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004206 <action function="page">choosedestinationfolder</action>
4207 </actions>
4208 </button>
4209
4210 <button style="main_button_half_height">
4211 <condition var1="tw_fm_isfolder" var2="1"/>
4212 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004213 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004214 <actions>
4215 <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 -05004216 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004217 <action function="page">choosedestinationfolder</action>
4218 </actions>
4219 </button>
4220
4221 <button style="main_button_half_height">
4222 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004223 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004224 <actions>
4225 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004226 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004227 <action function="page">choosedestinationfolder</action>
4228 </actions>
4229 </button>
4230
4231 <button style="main_button_half_height">
4232 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004233 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004234 <actions>
4235 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004236 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004237 <action function="set">tw_fm_text2=</action>
4238 <action function="set">tw_fm_text3=</action>
4239 <action function="set">tw_include_text3=0</action>
4240 <action function="set">tw_back=filemanageroptions</action>
4241 <action function="page">filemanagerconfirm</action>
4242 </actions>
4243 </button>
4244
4245 <button style="main_button_half_height">
4246 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004247 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004248 <actions>
4249 <action function="set">tw_filemanager_rename=0000</action>
4250 <action function="set">tw_fm_text2=</action>
4251 <action function="set">tw_fm_text3=</action>
4252 <action function="set">tw_include_text3=0</action>
4253 <action function="set">tw_back=filemanageroptions</action>
4254 <action function="page">filemanagerchmod</action>
4255 </actions>
4256 </button>
4257
4258 <button style="main_button_half_height">
4259 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004260 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004261 <actions>
4262 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004263 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004264 <action function="set">tw_fm_text2=</action>
4265 <action function="set">tw_fm_text3=</action>
4266 <action function="set">tw_include_text3=0</action>
4267 <action function="set">tw_back=filemanageroptions</action>
4268 <action function="page">filemanagerconfirm</action>
4269 </actions>
4270 </button>
4271
4272 <button style="main_button_half_height">
4273 <condition var1="tw_fm_isfolder" var2="0"/>
4274 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004275 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004276 <actions>
4277 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004278 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004279 <action function="set">tw_filemanager_command=mv</action>
4280 <action function="page">filemanagerrenamefile</action>
4281 </actions>
4282 </button>
4283
4284 <button style="main_button_half_height">
4285 <condition var1="tw_fm_isfolder" var2="1"/>
4286 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004287 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004288 <actions>
4289 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004290 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004291 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4292 <action function="page">filemanagerrenamefolder</action>
4293 </actions>
4294 </button>
4295
4296 <action>
4297 <touch key="home"/>
4298 <action function="page">main</action>
4299 </action>
4300
4301 <action>
4302 <touch key="back"/>
4303 <action function="page">filemanagerlist</action>
4304 </action>
4305 </page>
4306
4307 <page name="choosedestinationfolder">
4308 <template name="page"/>
4309
4310 <text style="text_l">
4311 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004312 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004313 </text>
4314
4315 <text style="text_m">
4316 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004317 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004318 </text>
4319
4320 <template name="sort_options"/>
4321
4322 <fileselector>
4323 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4324 <text>%tw_file_location2%</text>
4325 <filter folders="1" files="0"/>
4326 <path name="tw_file_location2" default="/"/>
4327 <data name="tw_filename2"/>
4328 <selection name="tw_selection2"/>
4329 </fileselector>
4330
4331 <button style="fab">
4332 <image resource="fab_selectfolder"/>
4333 <actions>
4334 <action function="set">tw_fm_text2=to</action>
4335 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4336 <action function="set">tw_include_text3=1</action>
4337 <action function="set">tw_back=filemanageroptions</action>
4338 <action function="page">filemanagerconfirm</action>
4339 </actions>
4340 </button>
4341
4342 <action>
4343 <touch key="home"/>
4344 <action function="page">main</action>
4345 </action>
4346
4347 <action>
4348 <touch key="back"/>
4349 <action function="page">filemanageroptions</action>
4350 </action>
4351 </page>
4352
4353 <page name="filemanagerrenamefile">
4354 <template name="page"/>
4355
4356 <text style="text_l">
4357 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004358 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004359 </text>
4360
4361 <text style="text_m">
4362 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004363 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004364 </text>
4365
4366 <text style="text_m_accent">
4367 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004368 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004369 </text>
4370
4371 <input>
4372 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4373 <text>%tw_filemanager_rename%</text>
4374 <data name="tw_filemanager_rename"/>
4375 <restrict minlen="1" maxlen="128"/>
4376 <actions>
4377 <action function="set">tw_fm_text2=to</action>
4378 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4379 <action function="set">tw_include_text3=1</action>
4380 <action function="set">tw_back=filemanageroptions</action>
4381 <action function="page">filemanagerconfirm</action>
4382 </actions>
4383 </input>
4384
4385 <fill color="%accent_color%">
4386 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4387 </fill>
4388
4389 <button style="main_button_half_height">
4390 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004391 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004392 <action function="page">filemanageroptions</action>
4393 </button>
4394
4395 <template name="keyboardtemplate"/>
4396
4397 <action>
4398 <touch key="home"/>
4399 <action function="page">main</action>
4400 </action>
4401
4402 <action>
4403 <touch key="back"/>
4404 <action function="page">filemanageroptions</action>
4405 </action>
4406 </page>
4407
4408 <page name="filemanagerrenamefolder">
4409 <template name="page"/>
4410
4411 <text style="text_l">
4412 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004413 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004414 </text>
4415
4416 <text style="text_m">
4417 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004418 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004419 </text>
4420
4421 <text style="text_m_accent">
4422 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004423 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004424 </text>
4425
4426 <input>
4427 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4428 <text>%tw_filemanager_rename%</text>
4429 <data name="tw_filemanager_rename"/>
4430 <restrict minlen="1" maxlen="128"/>
4431 <actions>
4432 <action function="set">tw_fm_text2=to</action>
4433 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4434 <action function="set">tw_include_text3=1</action>
4435 <action function="set">tw_back=filemanageroptions</action>
4436 <action function="page">filemanagerconfirm</action>
4437 </actions>
4438 </input>
4439
4440 <fill color="%accent_color%">
4441 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4442 </fill>
4443
4444 <button style="main_button_half_height">
4445 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004446 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004447 <action function="page">filemanageroptions</action>
4448 </button>
4449
4450 <template name="keyboardtemplate"/>
4451
4452 <action>
4453 <touch key="home"/>
4454 <action function="page">main</action>
4455 </action>
4456
4457 <action>
4458 <touch key="back"/>
4459 <action function="page">filemanageroptions</action>
4460 </action>
4461 </page>
4462
4463 <page name="filemanagerchmod">
4464 <template name="page"/>
4465
4466 <text style="text_l">
4467 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004468 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004469 </text>
4470
4471 <text style="text_m">
4472 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004473 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004474 </text>
4475
4476 <text style="text_m_accent">
4477 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004478 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004479 </text>
4480
4481 <input>
4482 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4483 <text>%tw_filemanager_rename%</text>
4484 <data name="tw_filemanager_rename"/>
4485 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4486 <actions>
4487 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4488 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4489 <action function="set">tw_back=filemanageroptions</action>
4490 <action function="page">filemanagerconfirm</action>
4491 </actions>
4492 </input>
4493
4494 <fill color="%accent_color%">
4495 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4496 </fill>
4497
4498 <button style="main_button_half_height">
4499 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004500 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004501 <action function="page">filemanageroptions</action>
4502 </button>
4503
4504 <template name="keyboardtemplate"/>
4505
4506 <action>
4507 <touch key="home"/>
4508 <action function="page">main</action>
4509 </action>
4510
4511 <action>
4512 <touch key="back"/>
4513 <action function="page">filemanageroptions</action>
4514 </action>
4515 </page>
4516
4517 <page name="filemanagerconfirm">
4518 <template name="page"/>
4519
4520 <text style="text_l">
4521 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004522 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004523 </text>
4524
4525 <text style="text_m">
4526 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004527 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004528 </text>
4529
4530 <text style="text_m_accent">
4531 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4532 <text>%tw_fm_text1%</text>
4533 </text>
4534
4535 <text style="text_m">
4536 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4537 <text>%tw_filename1%</text>
4538 </text>
4539
4540 <text style="text_m_accent">
4541 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4542 <text>%tw_fm_text2%</text>
4543 </text>
4544
4545 <text style="text_m">
4546 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4547 <text>%tw_fm_text3%</text>
4548 </text>
4549
4550 <text style="text_m">
4551 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004552 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004553 </text>
4554
4555 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004556 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004557 <action function="page">filemanageraction</action>
4558 </slider>
4559
4560 <action>
4561 <touch key="back"/>
4562 <action function="page">%tw_back%</action>
4563 </action>
4564
4565 <action>
4566 <touch key="home"/>
4567 <action function="page">main</action>
4568 </action>
4569 </page>
4570
4571 <page name="filemanageraction">
4572 <template name="page"/>
4573
4574 <text style="text_l">
4575 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004576 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004577 </text>
4578
4579 <text style="text_m">
4580 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4581 <text>%tw_fm_text1%</text>
4582 </text>
4583
4584 <template name="console"/>
4585
4586 <template name="progress_bar"/>
4587
4588 <action>
4589 <conditions>
4590 <condition var1="tw_operation_state" var2="1"/>
4591 <condition var1="tw_operation_status" var2="0"/>
4592 </conditions>
4593 <actions>
4594 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004595 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004596 <action function="page">action_complete</action>
4597 </actions>
4598 </action>
4599
4600 <action>
4601 <conditions>
4602 <condition var1="tw_operation_state" var2="1"/>
4603 <condition var1="tw_operation_status" op="!=" var2="0"/>
4604 </conditions>
4605 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004606 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004607 <action function="page">action_complete</action>
4608 </actions>
4609 </action>
4610
4611 <action>
4612 <condition var1="tw_include_text3" var2="0"/>
4613 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4614 </action>
4615
4616 <action>
4617 <condition var1="tw_include_text3" var2="1"/>
4618 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4619 </action>
4620 </page>
4621
4622 <page name="decrypt">
4623 <template name="page"/>
4624
4625 <action>
4626 <condition var1="tw_crypto_pwtype" var2="2"/>
4627 <action function="page">decrypt_pattern</action>
4628 </action>
4629
4630 <text style="text_l">
4631 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004632 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004633 </text>
4634
4635 <text style="text_m">
4636 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004637 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004638 </text>
4639
4640 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004641 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004642 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004643 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004644 </text>
4645
Noah Jacobson5a79f672019-04-28 00:10:07 -04004646 <text style="text_m_accent">
4647 <condition var1="tw_is_fbe" var2="1"/>
4648 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4649 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4650 </text>
4651
z31s1g28f0a922015-11-07 18:50:22 +01004652 <input>
4653 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4654 <text>%tw_crypto_display%</text>
4655 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4656 <restrict minlen="1" maxlen="254"/>
4657 <action function="page">trydecrypt</action>
4658 </input>
4659
4660 <fill color="%accent_color%">
4661 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4662 </fill>
4663
4664 <fill color="%text_fail_color%">
4665 <condition var1="tw_password_fail" var2="1"/>
4666 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4667 </fill>
4668
4669 <text style="text_m_fail">
4670 <condition var1="tw_password_fail" var2="1"/>
4671 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004672 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004673 </text>
4674
4675 <button style="main_button_half_height">
4676 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004677 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004678 <actions>
4679 <action function="set">tw_page_done=1</action>
4680 <action function="page">main</action>
4681 </actions>
4682 </button>
4683
z31s1g608d7ff2016-01-18 19:47:25 +01004684 <button style="main_button_half_height">
4685 <placement x="%center_x%" y="%row10_y%"/>
4686 <text>{@sel_lang_btn=Select Language}</text>
4687 <action function="overlay">select_language</action>
4688 </button>
4689
z31s1g28f0a922015-11-07 18:50:22 +01004690 <template name="keyboardtemplate"/>
4691 </page>
4692
4693 <page name="decrypt_pattern">
4694 <template name="page"/>
4695
4696 <text style="text_l">
4697 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004698 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004699 </text>
4700
4701 <text style="text_m">
4702 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004703 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004704 </text>
4705
4706 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004707 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004708 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004709 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004710 </text>
4711
Noah Jacobson5a79f672019-04-28 00:10:07 -04004712 <text style="text_m_accent">
4713 <condition var1="tw_is_fbe" var2="1"/>
4714 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4715 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4716 </text>
4717
Aleksa Saraib25a1832015-12-31 17:36:00 +01004718 <text style="text_m_fail">
4719 <condition var1="tw_password_fail" var2="1"/>
4720 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004721 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004722 </text>
4723
z31s1g28f0a922015-11-07 18:50:22 +01004724 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004725 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004726 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4727 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4728 <data name="tw_crypto_password"/>
4729 <action function="page">trydecrypt</action>
4730 </patternpassword>
4731
Aleksa Saraib25a1832015-12-31 17:36:00 +01004732 <button style="button_quarter_width">
4733 <placement x="%indent%" y="%row19a_y%"/>
4734 <text>3x3</text>
4735 <action function="set">tw_gui_pattern_grid_size=3</action>
4736 </button>
4737
4738 <button style="button_quarter_width">
4739 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4740 <text>4x4</text>
4741 <action function="set">tw_gui_pattern_grid_size=4</action>
4742 </button>
4743
4744 <button style="button_quarter_width">
4745 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4746 <text>5x5</text>
4747 <action function="set">tw_gui_pattern_grid_size=5</action>
4748 </button>
4749
4750 <button style="button_quarter_width">
4751 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4752 <text>6x6</text>
4753 <action function="set">tw_gui_pattern_grid_size=6</action>
4754 </button>
4755
z31s1g28f0a922015-11-07 18:50:22 +01004756 <button style="main_button_half_height">
4757 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004758 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004759 <actions>
4760 <action function="set">tw_page_done=1</action>
4761 <action function="page">main</action>
4762 </actions>
4763 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004764
4765 <button style="main_button_half_height">
4766 <placement x="%center_x%" y="%row21a_y%"/>
4767 <text>{@sel_lang_btn=Select Language}</text>
4768 <action function="overlay">select_language</action>
4769 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004770 </page>
4771
4772 <page name="trydecrypt">
4773 <template name="page"/>
4774
4775 <text style="text_l">
4776 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004777 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004778 </text>
4779
4780 <text style="text_m">
4781 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004782 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004783 </text>
4784
4785 <template name="console"/>
4786
4787 <template name="progress_bar"/>
4788
4789 <action>
4790 <action function="decrypt"/>
4791 </action>
4792
4793 <action>
4794 <conditions>
4795 <condition var1="tw_operation_state" var2="1"/>
4796 <condition var1="tw_operation_status" op="!=" var2="0"/>
4797 </conditions>
4798 <actions>
4799 <action function="set">tw_password_fail=1</action>
4800 <action function="page">decrypt</action>
4801 </actions>
4802 </action>
4803
4804 <action>
4805 <conditions>
4806 <condition var1="tw_operation_state" var2="1"/>
4807 <condition var1="tw_operation_status" op="=" var2="0"/>
4808 </conditions>
4809 <actions>
4810 <action function="set">tw_page_done=1</action>
4811 <action function="page">main</action>
4812 </actions>
4813 </action>
4814 </page>
4815
z31s1g28f0a922015-11-07 18:50:22 +01004816 <page name="terminalcommand">
4817 <template name="page"/>
4818
z31s1g56189522016-01-13 19:12:40 +01004819 <fill color="%background_color%">
4820 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004821 </fill>
4822
z31s1g56189522016-01-13 19:12:40 +01004823 <terminal>
4824 <condition var1="tw_hide_kb" var2="0"/>
4825 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4826 </terminal>
4827
4828 <terminal>
4829 <condition var1="tw_hide_kb" var2="1"/>
4830 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4831 </terminal>
4832
4833 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004834
4835 <template name="keyboardtemplate"/>
4836
z31s1g608d7ff2016-01-18 19:47:25 +01004837 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004838 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004839 </fill>
z31s1g56189522016-01-13 19:12:40 +01004840
z31s1g608d7ff2016-01-18 19:47:25 +01004841 <button>
z31s1g56189522016-01-13 19:12:40 +01004842 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4843 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4844 <image resource="back" />
4845 <condition var1="tw_busy" var2="0" />
4846 <actions>
4847 <action function="set">tw_hide_kb=0</action>
4848 <action function="key">back</action>
4849 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004850 </button>
z31s1g56189522016-01-13 19:12:40 +01004851
z31s1g608d7ff2016-01-18 19:47:25 +01004852 <button>
z31s1g56189522016-01-13 19:12:40 +01004853 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4854 <condition var1="tw_hide_kb" op="=" var2="0" />
4855 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4856 <image resource="kb_hide" />
4857 <condition var1="tw_busy" var2="0" />
4858 <actions>
4859 <action function="set">tw_hide_kb=1</action>
4860 <action function="page">terminalcommand</action>
4861 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004862 </button>
z31s1g56189522016-01-13 19:12:40 +01004863
z31s1g608d7ff2016-01-18 19:47:25 +01004864 <button>
z31s1g56189522016-01-13 19:12:40 +01004865 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4866 <condition var1="tw_hide_kb" op="=" var2="1" />
4867 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4868 <image resource="kb_show" />
4869 <condition var1="tw_busy" var2="0" />
4870 <actions>
4871 <action function="set">tw_hide_kb=0</action>
4872 <action function="page">terminalcommand</action>
4873 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004874 </button>
z31s1g56189522016-01-13 19:12:40 +01004875
z31s1g608d7ff2016-01-18 19:47:25 +01004876 <button>
z31s1g56189522016-01-13 19:12:40 +01004877 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4878 <image resource="home" />
4879 <condition var1="tw_busy" var2="0" />
4880 <actions>
4881 <action function="set">tw_hide_kb=0</action>
4882 <action function="key">home</action>
4883 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004884 </button>
z31s1g56189522016-01-13 19:12:40 +01004885
z31s1g608d7ff2016-01-18 19:47:25 +01004886 <button>
z31s1g56189522016-01-13 19:12:40 +01004887 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4888 <condition var1="tw_hide_kb" op="=" var2="0" />
4889 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4890 <image resource="kb_hide" />
4891 <condition var1="tw_busy" var2="0" />
4892 <actions>
4893 <action function="set">tw_hide_kb=1</action>
4894 <action function="page">terminalcommand</action>
4895 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004896 </button>
z31s1g56189522016-01-13 19:12:40 +01004897
z31s1g608d7ff2016-01-18 19:47:25 +01004898 <button>
z31s1g56189522016-01-13 19:12:40 +01004899 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4900 <condition var1="tw_hide_kb" op="=" var2="1" />
4901 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4902 <image resource="kb_show" />
4903 <condition var1="tw_busy" var2="0" />
4904 <actions>
4905 <action function="set">tw_hide_kb=0</action>
4906 <action function="page">terminalcommand</action>
4907 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004908 </button>
z31s1g56189522016-01-13 19:12:40 +01004909
z31s1g608d7ff2016-01-18 19:47:25 +01004910 <button>
z31s1g56189522016-01-13 19:12:40 +01004911 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4912 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4913 <image resource="back" />
4914 <condition var1="tw_busy" var2="0" />
4915 <actions>
4916 <action function="set">tw_hide_kb=0</action>
4917 <action function="key">back</action>
4918 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004919 </button>
z31s1g56189522016-01-13 19:12:40 +01004920
z31s1g28f0a922015-11-07 18:50:22 +01004921 <action>
4922 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004923 <actions>
4924 <action function="set">tw_hide_kb=0</action>
4925 <action function="page">main</action>
4926 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004927 </action>
4928
4929 <action>
4930 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004931 <actions>
4932 <action function="set">tw_hide_kb=0</action>
4933 <action function="page">advanced</action>
4934 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004935 </action>
z31s1g56189522016-01-13 19:12:40 +01004936
z31s1g608d7ff2016-01-18 19:47:25 +01004937 <action>
z31s1g56189522016-01-13 19:12:40 +01004938 <touch key="power+voldown" />
4939 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004940 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004941 </page>
4942
4943 <page name="sideload">
4944 <template name="page"/>
4945
4946 <text style="text_l">
4947 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004948 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004949 </text>
4950
4951 <text style="text_m">
4952 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004953 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004954 </text>
4955
4956 <checkbox>
4957 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004958 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004959 <data variable="tw_wipe_dalvik"/>
4960 </checkbox>
4961
4962 <checkbox>
4963 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004964 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004965 <data variable="tw_wipe_cache"/>
4966 </checkbox>
4967
4968 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004969 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004970 <actions>
4971 <action function="set">tw_back=advanced</action>
4972 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004973 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4974 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4975 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004976 <action function="set">tw_has_cancel=1</action>
4977 <action function="set">tw_show_reboot=1</action>
4978 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4979 <action function="page">action_page</action>
4980 </actions>
4981 </slider>
4982
4983 <action>
4984 <touch key="home"/>
4985 <action function="page">main</action>
4986 </action>
4987
4988 <action>
4989 <touch key="back"/>
4990 <action function="page">advanced</action>
4991 </action>
4992 </page>
4993
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004994 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01004995 <template name="page"/>
4996
4997 <text style="text_l">
4998 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004999 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005000 </text>
5001
5002 <text style="text_m">
5003 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005004 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005005 </text>
5006
5007 <text style="text_m_accent">
5008 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005009 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005010 </text>
5011
z31s1g28f0a922015-11-07 18:50:22 +01005012 <text style="text_m_fail">
5013 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005014 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005015 </text>
5016
5017 <text style="text_m_fail">
5018 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005019 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005020 </text>
5021
5022 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005023 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005024 <actions>
5025 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005026 <action function="set">tw_action=fixcontexts</action>
5027 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5028 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005029 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005030 <action function="set">tw_show_reboot=1</action>
5031 <action function="page">action_page</action>
5032 </actions>
5033 </slider>
5034
5035 <action>
5036 <touch key="home"/>
5037 <action function="page">main</action>
5038 </action>
5039
5040 <action>
5041 <touch key="back"/>
5042 <action function="page">advanced</action>
5043 </action>
5044 </page>
5045
z31s1g28f0a922015-11-07 18:50:22 +01005046 <page name="slideout">
5047 <fill color="%background_color%">
5048 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5049 </fill>
5050
5051 <console>
5052 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5053 </console>
5054
5055 <button>
5056 <fill color="%transparent%"/>
5057 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5058 <action function="overlay"/>
5059 </button>
5060
5061 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005062 <touch key="power"/>
5063 <action function="togglebacklight"/>
5064 </action>
5065
5066 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005067 <touch key="power+voldown"/>
5068 <action function="screenshot"/>
5069 </action>
5070 </page>
5071
5072 <page name="select_storage">
5073 <fill color="%semi_transparent%">
5074 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5075 </fill>
5076
5077 <fill color="%background_color%">
5078 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5079 </fill>
5080
5081 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005082 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005083 <data name="tw_storage_path"/>
5084 <listtype name="storage"/>
5085 </partitionlist>
5086
5087 <button style="button_third_width">
5088 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005089 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005090 <actions>
5091 <action function="set">tw_clear_destination=%tw_back%</action>
5092 <action function="overlay"/>
5093 <action function="page">clear_vars</action>
5094 </actions>
5095 </button>
5096
5097 <fill color="#000000">
5098 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5099 </fill>
5100
5101 <button>
5102 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5103 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5104 <image resource="back"/>
5105 <condition var1="tw_busy" var2="0"/>
5106 <actions>
5107 <action function="overlay"/>
5108 <action function="key">%tw_back%</action>
5109 </actions>
5110 </button>
5111
5112 <button>
5113 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5114 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5115 <image resource="console"/>
5116 <condition var1="tw_busy" var2="0"/>
5117 <action function="overlay">slideout</action>
5118 </button>
5119
5120 <button>
5121 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5122 <image resource="home"/>
5123 <condition var1="tw_busy" var2="0"/>
5124 <actions>
5125 <action function="overlay"/>
5126 <action function="key">home</action>
5127 </actions>
5128 </button>
5129
5130 <button>
5131 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5132 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5133 <image resource="console"/>
5134 <condition var1="tw_busy" var2="0"/>
5135 <action function="overlay">slideout</action>
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="back"/>
5142 <condition var1="tw_busy" var2="0"/>
5143 <actions>
5144 <action function="overlay"/>
5145 <action function="key">%tw_back%</action>
5146 </actions>
5147 </button>
5148
5149 <action>
5150 <touch key="power+voldown"/>
5151 <action function="screenshot"/>
5152 </action>
5153 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005154
5155 <page name="select_language">
5156 <fill color="%semi_transparent%">
5157 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5158 </fill>
5159
5160 <fill color="%background_color%">
5161 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5162 </fill>
5163
5164 <listbox>
5165 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5166 <text>{@select_language=Select Language:}</text>
5167 <icon selected="radio_true" unselected="radio_false" />
5168 <data name="tw_language" />
5169 </listbox>
5170
5171 <button style="button_third_width">
5172 <placement x="%dialog_button_x%" y="%row14_y%"/>
5173 <text>{@ok_btn=OK}</text>
5174 <actions>
5175 <action function="overlay"/>
5176 <action function="setlanguage"></action>
5177 </actions>
5178 </button>
5179
5180 <fill color="#000000">
5181 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5182 </fill>
5183
5184 <button>
5185 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5186 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5187 <image resource="back"/>
5188 <condition var1="tw_busy" var2="0"/>
5189 <actions>
5190 <action function="overlay"/>
5191 <action function="key">%tw_back%</action>
5192 </actions>
5193 </button>
5194
5195 <button>
5196 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5197 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5198 <image resource="console"/>
5199 <condition var1="tw_busy" var2="0"/>
5200 <action function="overlay">slideout</action>
5201 </button>
5202
5203 <button>
5204 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5205 <image resource="home"/>
5206 <condition var1="tw_busy" var2="0"/>
5207 <actions>
5208 <action function="overlay"/>
5209 <action function="key">home</action>
5210 </actions>
5211 </button>
5212
5213 <button>
5214 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5215 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5216 <image resource="console"/>
5217 <condition var1="tw_busy" var2="0"/>
5218 <action function="overlay">slideout</action>
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="back"/>
5225 <condition var1="tw_busy" var2="0"/>
5226 <actions>
5227 <action function="overlay"/>
5228 <action function="key">%tw_back%</action>
5229 </actions>
5230 </button>
5231
5232 <action>
5233 <touch key="power+voldown"/>
5234 <action function="screenshot"/>
5235 </action>
5236 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005237
5238 <page name="decrypt_users">
5239 <template name="page"/>
5240
5241 <text style="text_l">
5242 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5243 <text>{@decrypt_users=Decrypt Users}</text>
5244 </text>
5245
5246 <text style="text_m_accent">
5247 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5248 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5249 </text>
5250
5251 <listbox>
5252 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5253 <text>{@select_user=Select User}</text>
5254 <icon selected="radio_true" unselected="radio_false" />
5255 <data name="tw_crypto_user_id" />
5256 </listbox>
5257
5258 <button style="main_button_half_height">
5259 <placement x="%center_x%" y="%row21a_y%"/>
5260 <text>{@decrypt_users=Decrypt Users}</text>
5261 <action function="set">tw_crypto_password=</action>
5262 <action function="set">tw_password_fail=0</action>
5263 <action function="page">decrypt</action>
5264 </button>
5265
5266 <action>
5267 <touch key="home"/>
5268 <action function="page">main</action>
5269 </action>
5270
5271 <action>
5272 <touch key="back"/>
5273 <action function="page">advanced</action>
5274 </action>
5275 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005276 </pages>
5277</recovery>