blob: 3960fafc7ed6ce75914555d1da8a0da12ee08f9d [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>
mauronofrio6d3bf892019-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">
Chaosmaster7b66bf52020-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
Chaosmaster7b66bf52020-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>
713 <action function="page">%tw_clear_destination%</action>
714 </action>
715 </page>
716
Matt Mower908dd252016-05-25 02:26:50 -0500717 <page name="reboot_system_routine">
718 <action>
719 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500720 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500721 <action function="set">tw_has_action2=0</action>
722 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
723 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
724 <action function="set">tw_text3=</action>
725 <action function="set">tw_text4=</action>
726 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
727 <action function="set">tw_action_text2=</action>
728 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
729 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
730 <action function="page">rebootcheck</action>
731 </action>
732 </page>
733
z31s1g28f0a922015-11-07 18:50:22 +0100734 <page name="confirm_action">
735 <template name="page"/>
736
737 <text style="text_l">
738 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500739 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100740 </text>
741
742 <text style="text_m">
743 <placement x="%col1_x_header%" y="%row4_header_y%"/>
744 <text/>
745 </text>
746
747 <text style="text_m_accent">
748 <placement x="%center_x%" y="%row2_y%" placement="5"/>
749 <text>%tw_text1%</text>
750 </text>
751
752 <text style="text_m_accent">
753 <placement x="%center_x%" y="%row3_y%" placement="5"/>
754 <text>%tw_text2%</text>
755 </text>
756
757 <text style="text_m">
758 <placement x="%center_x%" y="%row4_y%" placement="5"/>
759 <text>%tw_text3%</text>
760 </text>
761
762 <text style="text_m">
763 <placement x="%center_x%" y="%row5_y%" placement="5"/>
764 <text>%tw_text4%</text>
765 </text>
766
767 <text style="text_m">
768 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500769 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100770 </text>
771
772 <slider>
773 <text>%tw_slider_text%</text>
774 <action function="page">action_page</action>
775 </slider>
776
777 <action>
778 <touch key="back"/>
779 <actions>
780 <action function="set">tw_clear_destination=%tw_back%</action>
781 <action function="page">clear_vars</action>
782 </actions>
783 </action>
784
785 <action>
786 <touch key="home"/>
787 <action function="page">main</action>
788 </action>
789 </page>
790
791 <page name="action_page">
792 <template name="page"/>
793
794 <text style="text_l">
795 <placement x="%col1_x_header%" y="%row3_header_y%"/>
796 <text>%tw_action_text1%</text>
797 </text>
798
799 <text style="text_m">
800 <placement x="%col1_x_header%" y="%row4_header_y%"/>
801 <text>%tw_action_text2%</text>
802 </text>
803
804 <template name="console"/>
805
806 <template name="progress_bar"/>
807
808 <button style="main_button_half_height">
809 <condition var1="tw_has_cancel" var2="1"/>
810 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500811 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100812 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
813 </button>
814
815 <action>
816 <condition var1="tw_operation_state" var2="1"/>
817 <actions>
818 <action function="page">action_complete</action>
819 </actions>
820 </action>
821
822 <action>
823 <condition var1="tw_has_action2" var2="0"/>
824 <actions>
825 <action function="%tw_action%">%tw_action_param%</action>
826 </actions>
827 </action>
828
829 <action>
830 <condition var1="tw_has_action2" var2="1"/>
831 <actions>
832 <action function="%tw_action%">%tw_action_param%</action>
833 <action function="%tw_action2%">%tw_action2_param%</action>
834 </actions>
835 </action>
836 </page>
837
838 <page name="singleaction_page">
839 <template name="page"/>
840
841 <text style="text_l">
842 <placement x="%col1_x_header%" y="%row3_header_y%"/>
843 <text>%tw_action_text1%</text>
844 </text>
845
846 <text style="text_m">
847 <placement x="%col1_x_header%" y="%row4_header_y%"/>
848 <text>%tw_action_text2%</text>
849 </text>
850
851 <template name="console"/>
852
853 <template name="progress_bar"/>
854
855 <action>
856 <condition var1="tw_operation_state" var2="1"/>
857 <actions>
858 <action function="set">tw_page_done=1</action>
859 </actions>
860 </action>
861
862 <action>
863 <condition var1="tw_has_action2" var2="0"/>
864 <actions>
865 <action function="%tw_action%">%tw_action_param%</action>
866 </actions>
867 </action>
868
869 <action>
870 <condition var1="tw_has_action2" var2="1"/>
871 <actions>
872 <action function="%tw_action%">%tw_action_param%</action>
873 <action function="%tw_action2%">%tw_action2_param%</action>
874 </actions>
875 </action>
876 </page>
877
878 <page name="action_complete">
879 <template name="page"/>
880
881 <text style="text_l">
882 <placement x="%col1_x_header%" y="%row3_header_y%"/>
883 <text>%tw_complete_text1%</text>
884 </text>
885
886 <text style="text_m_fail">
887 <condition var1="tw_operation_status" op="!=" var2="0"/>
888 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500889 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100890 </text>
891
892 <text style="text_m">
893 <condition var1="tw_operation_status" var2="0"/>
894 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500895 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100896 </text>
897
898 <template name="console"/>
899
900 <button style="main_button_half_height">
901 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500902 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100903 <actions>
904 <action function="set">tw_clear_destination=%tw_back%</action>
905 <action function="page">clear_vars</action>
906 </actions>
907 </button>
908
909 <button style="main_button_half_height">
910 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500911 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100912 <actions>
913 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500914 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100915 </actions>
916 </button>
917
918 <action>
919 <touch key="home"/>
920 <actions>
921 <action function="set">tw_clear_destination=main2</action>
922 <action function="page">clear_vars</action>
923 </actions>
924 </action>
925
926 <action>
927 <touch key="back"/>
928 <actions>
929 <action function="set">tw_clear_destination=%tw_back%</action>
930 <action function="page">clear_vars</action>
931 </actions>
932 </action>
933 </page>
934
935 <page name="filecheck">
936 <action>
937 <action function="fileexists">%tw_filecheck%</action>
938 </action>
939
940 <action>
941 <conditions>
942 <condition var1="tw_operation_state" var2="1"/>
943 <condition var1="tw_operation_status" var2="0"/>
944 </conditions>
945 <actions>
946 <action function="set">tw_fileexists=1</action>
947 <action function="page">%tw_existpage%</action>
948 </actions>
949 </action>
950
951 <action>
952 <conditions>
953 <condition var1="tw_operation_state" var2="1"/>
954 <condition var1="tw_operation_status" var2="1"/>
955 </conditions>
956 <actions>
957 <action function="set">tw_fileexists=0</action>
958 <action function="page">%tw_notexistpage%</action>
959 </actions>
960 </action>
961 </page>
962
963 <page name="rebootcheck">
964 <action>
965 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600966 <action function="page">appcheck</action>
z31s1g28f0a922015-11-07 18:50:22 +0100967 </action>
968
969 <action>
970 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
971 <action function="page">confirm_action</action>
972 </action>
973 </page>
974
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600975 <page name="appcheck">
976 <action>
977 <condition var1="tw_app_prompt" var2="1"/>
978 <action function="checkforapp"></action>
979 </action>
980
981 <action>
982 <condition var1="tw_app_prompt" op="!=" var2="1"/>
983 <action function="reboot">%tw_reboot_param%</action>
984 </action>
985
986 <action>
987 <condition var1="tw_app_install_status" var2="1"/>
988 <action function="page">rebootapp</action>
989 </action>
990
991 <action>
992 <condition var1="tw_app_install_status" var2="2"/>
993 <action function="reboot">%tw_reboot_param%</action>
994 </action>
995 </page>
996
z31s1g28f0a922015-11-07 18:50:22 +0100997 <page name="wipe">
998 <template name="page"/>
999
1000 <text style="text_l">
1001 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001002 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001003 </text>
1004
1005 <text style="text_m">
1006 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001007 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001008 </text>
1009
1010 <text style="text_m_accent">
1011 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001012 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001013 </text>
1014
1015 <text style="text_m_accent">
Noah Jacobson0b25b1d2019-04-28 00:10:07 -04001016 <condition var1="tw_has_data_media" var2="1"/>
bigbiffadc599e2020-05-28 19:36:30 +00001017 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001018 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001019 </text>
1020
1021 <text style="text_m_accent">
1022 <conditions>
1023 <condition var1="tw_has_android_secure" var2="1"/>
1024 <condition var1="fileexists" var2="/and-sec"/>
1025 </conditions>
1026 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001027 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001028 </text>
1029
1030 <text style="text_m_accent">
1031 <condition var1="tw_has_sdext_partition" var2="1"/>
1032 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001033 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001034 </text>
1035
1036 <text style="text_m">
1037 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001038 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001039 </text>
1040
1041 <text style="text_m">
1042 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001043 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001044 </text>
1045
1046 <text style="text_m">
1047 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001048 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001049 </text>
1050
1051 <button style="main_button_half_height">
1052 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001053 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001054 <actions>
1055 <action function="set">partitionlisterror=0</action>
1056 <action function="page">advancedwipe</action>
1057 </actions>
1058 </button>
1059
1060 <button style="main_button_half_height">
1061 <condition var1="tw_has_data_media" var2="1"/>
1062 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001063 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001064 <action function="page">formatdata</action>
1065 </button>
1066
1067 <button style="main_button_half_height">
1068 <conditions>
1069 <condition var1="tw_is_encrypted" var2="1"/>
1070 <condition var1="tw_has_data_media" var2="0"/>
1071 </conditions>
1072 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001073 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001074 <actions>
1075 <action function="set">tw_back=wipe</action>
1076 <action function="set">tw_action=wipe</action>
1077 <action function="set">tw_action_param=DATAMEDIA</action>
1078 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001079 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001080 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1082 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1083 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001084 <action function="page">confirm_action</action>
1085 </actions>
1086 </button>
1087
1088 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001089 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001090 <actions>
1091 <action function="set">tw_back=wipe</action>
1092 <action function="set">tw_action=wipe</action>
1093 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001094 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1095 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001096 <action function="page">action_page</action>
1097 </actions>
1098 </slider>
1099
1100 <action>
1101 <touch key="back"/>
1102 <action function="page">main</action>
1103 </action>
1104
1105 <action>
1106 <touch key="home"/>
1107 <action function="page">main</action>
1108 </action>
1109 </page>
1110
1111 <page name="advancedwipe">
1112 <template name="page"/>
1113
1114 <action>
1115 <action function="set">tw_wipe_list=</action>
1116 </action>
1117
1118 <text style="text_l">
1119 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001120 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001121 </text>
1122
1123 <text style="text_m">
1124 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 </text>
1127
1128 <partitionlist>
1129 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <data name="tw_wipe_list"/>
1132 <listtype name="wipe"/>
1133 </partitionlist>
1134
1135 <text style="text_m_fail">
1136 <condition var1="partitionlisterror" var2="1"/>
1137 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 </text>
1140
1141 <button style="main_button_half_height_full_width">
1142 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001143 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001144 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001145 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001146 <action function="page">checkpartitionlist</action>
1147 </actions>
1148 </button>
1149
1150 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001151 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001152 <actions>
1153 <action function="set">tw_back=advancedwipe</action>
1154 <action function="set">tw_action=wipe</action>
1155 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001156 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1157 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1158 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001159 <action function="page">action_page</action>
1160 </actions>
1161 </slider>
1162
1163 <action>
1164 <touch key="home"/>
1165 <action function="page">main</action>
1166 </action>
1167
1168 <action>
1169 <touch key="back"/>
1170 <action function="page">wipe</action>
1171 </action>
1172 </page>
1173
1174 <page name="formatdata">
1175 <template name="page"/>
1176
1177 <text style="text_l">
1178 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001179 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001180 </text>
1181
1182 <text style="text_m">
1183 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001184 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001185 </text>
1186
1187 <text style="text_m_fail">
1188 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001189 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001190 </text>
1191
1192 <text style="text_m_fail">
1193 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001194 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001195 </text>
1196
1197 <text style="text_m_fail">
1198 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001199 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001200 </text>
1201
Ethan Yonker66a19492015-12-10 10:19:45 -06001202 <text style="text_m_fail">
1203 <condition var1="tw_has_adopted_storage" var2="1"/>
1204 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1205 <text>{@format_data_adopted=Including Adopted Storage}</text>
1206 </text>
1207
z31s1g28f0a922015-11-07 18:50:22 +01001208 <text style="text_m">
1209 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001210 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001211 </text>
1212
1213 <text style="text_m">
1214 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001215 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001216 </text>
1217
1218 <input>
1219 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1220 <text>%tw_confirm_formatdata%</text>
1221 <data name="tw_confirm_formatdata"/>
1222 <restrict minlen="3" maxlen="3" allow="yes"/>
1223 <action function="page">formatdata_confirm</action>
1224 </input>
1225
1226 <fill color="%accent_color%">
1227 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1228 </fill>
1229
1230 <template name="keyboardtemplate"/>
1231
1232 <action>
1233 <touch key="home"/>
1234 <action function="page">main</action>
1235 </action>
1236
1237 <action>
1238 <touch key="back"/>
1239 <action function="page">wipe</action>
1240 </action>
1241 </page>
1242
1243 <page name="formatdata_confirm">
1244 <action>
1245 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1246 <actions>
1247 <action function="set">tw_back=formatdata</action>
1248 <action function="set">tw_action=wipe</action>
1249 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001250 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1251 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001252 <action function="page">action_page</action>
1253 </actions>
1254 </action>
1255
1256 <action>
1257 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1258 <action function="page">formatdata</action>
1259 </action>
1260 </page>
1261
1262 <page name="checkpartitionlist">
1263 <action>
1264 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1265 <actions>
1266 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001267 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001268 <action function="page">partitionoptions</action>
1269 </actions>
1270 </action>
1271
1272 <action>
1273 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1274 <actions>
1275 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001276 <action function="page">advancedwipe</action>
1277 </actions>
1278 </action>
1279 </page>
1280
1281 <page name="partitionoptions">
1282 <template name="page"/>
1283
1284 <text style="text_l">
1285 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001286 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001287 </text>
1288
1289 <text style="text_m">
1290 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001291 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001292 </text>
1293
1294 <text style="text_m_accent">
1295 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001296 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001297 </text>
1298
1299 <text style="text_m_accent">
1300 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001301 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001302 </text>
1303
1304 <text style="text_m">
1305 <condition var1="tw_partition_is_present" var2="1"/>
1306 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001307 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001308 </text>
1309
1310 <text style="text_m">
1311 <condition var1="tw_partition_is_present" var2="0"/>
1312 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001313 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001314 </text>
1315
1316 <text style="text_m">
1317 <condition var1="tw_partition_removable" var2="1"/>
1318 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001319 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001320 </text>
1321
1322 <text style="text_m">
1323 <condition var1="tw_partition_removable" var2="0"/>
1324 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001325 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001326 </text>
1327
1328 <text style="text_m">
1329 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001330 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001331 </text>
1332
1333 <text style="text_m">
1334 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001335 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001336 </text>
1337
1338 <text style="text_m">
1339 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001340 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001341 </text>
1342
1343 <text style="text_m">
1344 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001346 </text>
1347
1348 <button style="main_button_half_height">
1349 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1350 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001351 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001352 <actions>
1353 <action function="set">tw_back=partitionoptions</action>
1354 <action function="set">tw_action=resize</action>
1355 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1356 <action function="set">tw_has_action2=1</action>
1357 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001358 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001360 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1362 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1363 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001364 <action function="page">confirm_action</action>
1365 </actions>
1366 </button>
1367
1368 <button style="main_button_half_height">
1369 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1370 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001372 <actions>
1373 <action function="set">tw_back=partitionoptions</action>
1374 <action function="set">tw_action=repair</action>
1375 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1376 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001377 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001378 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001379 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1380 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1381 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001382 <action function="page">confirm_action</action>
1383 </actions>
1384 </button>
1385
1386 <button style="main_button_half_height">
1387 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001388 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001389 <action function="page">selectfilesystem</action>
1390 </button>
1391
1392 <action>
1393 <touch key="home"/>
1394 <action function="page">main</action>
1395 </action>
1396
1397 <action>
1398 <touch key="back"/>
1399 <action function="page">advancedwipe</action>
1400 </action>
1401 </page>
1402
1403 <page name="refreshfilesystem">
1404 <action>
1405 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1406 <actions>
1407 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001408 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001409 <action function="page">selectfilesystem</action>
1410 </actions>
1411 </action>
1412
1413 <action>
1414 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1415 <actions>
1416 <action function="set">partitionlisterror=1</action>
1417 <action function="set">tw_wipe_list=</action>
1418 <action function="page">advancedwipe</action>
1419 </actions>
1420 </action>
1421 </page>
1422
1423 <page name="selectfilesystem">
1424 <template name="page"/>
1425
1426 <text style="text_l">
1427 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001428 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001429 </text>
1430
1431 <text style="text_m">
1432 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001433 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001434 </text>
1435
1436 <text style="text_m_accent">
1437 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001438 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001439 </text>
1440
1441 <text style="text_m_accent">
1442 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001443 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001444 </text>
1445
1446 <text style="text_m_fail">
1447 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001448 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001449 </text>
1450
1451 <text style="text_m_fail">
1452 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001454 </text>
1455
1456 <button style="main_button_half_height">
1457 <condition var1="tw_partition_ext" op="=" var2="1"/>
1458 <placement x="%indent%" y="%row15a_y%"/>
1459 <text>EXT2</text>
1460 <actions>
1461 <action function="set">tw_back=refreshfilesystem</action>
1462 <action function="set">tw_action=changefilesystem</action>
1463 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1464 <action function="set">tw_action_new_file_system=ext2</action>
1465 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001466 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1467 <action function="set">tw_text2=EXT2</action>
1468 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1469 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1470 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001471 <action function="page">confirm_action</action>
1472 </actions>
1473 </button>
1474
1475 <button style="main_button_half_height">
1476 <condition var1="tw_partition_ext" op="=" var2="1"/>
1477 <placement x="%indent%" y="%row18a_y%"/>
1478 <text>EXT3</text>
1479 <actions>
1480 <action function="set">tw_back=refreshfilesystem</action>
1481 <action function="set">tw_action=changefilesystem</action>
1482 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1483 <action function="set">tw_action_new_file_system=ext3</action>
1484 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001485 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1486 <action function="set">tw_text2=EXT3</action>
1487 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1488 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1489 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001490 <action function="page">confirm_action</action>
1491 </actions>
1492 </button>
1493
1494 <button style="main_button_half_height">
1495 <condition var1="tw_partition_ext" op="=" var2="1"/>
1496 <placement x="%indent%" y="%row21a_y%"/>
1497 <text>EXT4</text>
1498 <actions>
1499 <action function="set">tw_back=refreshfilesystem</action>
1500 <action function="set">tw_action=changefilesystem</action>
1501 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1502 <action function="set">tw_action_new_file_system=ext4</action>
1503 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001504 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1505 <action function="set">tw_text2=EXT4</action>
1506 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1507 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1508 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001509 <action function="page">confirm_action</action>
1510 </actions>
1511 </button>
1512
1513 <button style="main_button_half_height">
1514 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1515 <placement x="%center_x%" y="%row15a_y%"/>
1516 <text>FAT</text>
1517 <actions>
1518 <action function="set">tw_back=refreshfilesystem</action>
1519 <action function="set">tw_action=changefilesystem</action>
1520 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1521 <action function="set">tw_action_new_file_system=vfat</action>
1522 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001523 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1524 <action function="set">tw_text2=FAT</action>
1525 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1526 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1527 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001528 <action function="page">confirm_action</action>
1529 </actions>
1530 </button>
1531
1532 <button style="main_button_half_height">
1533 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1534 <placement x="%center_x%" y="%row18a_y%"/>
1535 <text>exFAT</text>
1536 <actions>
1537 <action function="set">tw_back=refreshfilesystem</action>
1538 <action function="set">tw_action=changefilesystem</action>
1539 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1540 <action function="set">tw_action_new_file_system=exfat</action>
1541 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001542 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1543 <action function="set">tw_text2=exFAT</action>
1544 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1545 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1546 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001547 <action function="page">confirm_action</action>
1548 </actions>
1549 </button>
1550
1551 <button style="main_button_half_height">
1552 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1553 <placement x="%center_x%" y="%row21a_y%"/>
1554 <text>F2FS</text>
1555 <actions>
1556 <action function="set">tw_back=refreshfilesystem</action>
1557 <action function="set">tw_action=changefilesystem</action>
1558 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1559 <action function="set">tw_action_new_file_system=f2fs</action>
1560 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001561 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1562 <action function="set">tw_text2=F2FS</action>
1563 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1564 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1565 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001566 <action function="page">confirm_action</action>
1567 </actions>
1568 </button>
1569
1570 <action>
1571 <touch key="home"/>
1572 <action function="page">main</action>
1573 </action>
1574
1575 <action>
1576 <touch key="back"/>
1577 <action function="page">partitionoptions</action>
1578 </action>
1579 </page>
1580
1581 <page name="backup">
1582 <template name="page"/>
1583
1584 <text style="text_l">
1585 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001586 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001587 </text>
1588
1589 <text style="text_m">
1590 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001591 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001592 </text>
1593
1594 <template name="tabs_backup"/>
1595
1596 <fill color="%text_color%">
1597 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1598 </fill>
1599
1600 <button style="tab">
1601 <conditions>
1602 <condition var1="tw_include_encrypted_backup" var2="1"/>
1603 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001604 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001605 </conditions>
1606 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001607 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001608 <font resource="font_s" color="%text_color%"/>
1609 <actions>
1610 <action function="set">tw_password_not_match=0</action>
1611 <action function="page">backupencryption</action>
1612 </actions>
1613 </button>
1614
1615 <button style="tab">
1616 <conditions>
1617 <condition var1="tw_include_encrypted_backup" var2="1"/>
1618 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001619 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001620 </conditions>
1621 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001622 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001623 <font resource="font_s" color="%text_success_color%"/>
1624 <actions>
1625 <action function="set">tw_password_not_match=0</action>
1626 <action function="page">backupencryption</action>
1627 </actions>
1628 </button>
1629
1630 <text style="text_m_accent">
1631 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001632 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001633 </text>
1634
1635 <text style="text_m">
1636 <placement x="%indent%" y="%row4a_y%"/>
1637 <text>%tw_backup_name%</text>
1638 </text>
1639
1640 <fill color="%fileselector_linecolor%">
1641 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1642 </fill>
1643
1644 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001645 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001646 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1647 <fill color="%transparent%"/>
1648 <actions>
1649 <action function="set">tw_fileexists=0</action>
1650 <action function="page">backupname1</action>
1651 </actions>
1652 </button>
1653
1654 <partitionlist>
1655 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001656 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001657 <data name="tw_backup_list"/>
1658 <listtype name="backup"/>
1659 </partitionlist>
1660
1661 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001662 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001663 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001664 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001665 <actions>
1666 <action function="set">tw_back=backup</action>
1667 <action function="overlay">select_storage</action>
1668 </actions>
1669 </button>
1670
1671 <button style="main_button_half_height">
1672 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001673 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001674 <actions>
1675 <action function="refreshsizes"/>
1676 <action function="page">backup</action>
1677 </actions>
1678 </button>
1679
1680 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 <action function="page">backup_run</action>
1683 </slider>
1684
1685 <action>
1686 <touch key="home"/>
1687 <action function="page">main</action>
1688 </action>
1689
1690 <action>
1691 <touch key="back"/>
1692 <action function="page">main</action>
1693 </action>
1694 </page>
1695
1696 <page name="backup_options">
1697 <template name="page"/>
1698
1699 <text style="text_l">
1700 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001701 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001702 </text>
1703
1704 <text style="text_m">
1705 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001706 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001707 </text>
1708
1709 <template name="tabs_backup"/>
1710
1711 <fill color="%text_color%">
1712 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1713 </fill>
1714
1715 <button style="tab">
1716 <conditions>
1717 <condition var1="tw_include_encrypted_backup" var2="1"/>
1718 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001719 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001720 </conditions>
1721 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001722 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001723 <font resource="font_s" color="%text_color%"/>
1724 <actions>
1725 <action function="set">tw_password_not_match=0</action>
1726 <action function="page">backupencryption</action>
1727 </actions>
1728 </button>
1729
1730 <button style="tab">
1731 <conditions>
1732 <condition var1="tw_include_encrypted_backup" var2="1"/>
1733 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001734 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001735 </conditions>
1736 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001737 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001738 <font resource="font_s" color="%text_success_color%"/>
1739 <actions>
1740 <action function="set">tw_password_not_match=0</action>
1741 <action function="page">backupencryption</action>
1742 </actions>
1743 </button>
1744
1745 <checkbox>
1746 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 <data variable="tw_use_compression"/>
1749 </checkbox>
1750
1751 <checkbox>
1752 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001753 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1754 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001755 </checkbox>
1756
1757 <checkbox>
1758 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001759 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001760 <data variable="tw_disable_free_space"/>
1761 </checkbox>
1762
Ethan Yonker1b190162016-12-05 15:25:19 -06001763 <text style="text_m">
1764 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001765 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001766 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1767 </text>
1768
1769 <button style="main_button">
1770 <condition var1="tw_has_boot_slots" var2="1"/>
1771 <placement x="%indent%" y="%row19_y%"/>
1772 <text>{@boot_slot_a=Slot A}</text>
1773 <actions>
1774 <action function="set">tw_back=backup_options</action>
1775 <action function="set">tw_action=setbootslot</action>
1776 <action function="set">tw_action_param=A</action>
1777 <action function="set">tw_has_action2=0</action>
1778 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1779 <action function="set">tw_action_text2=</action>
1780 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1781 <action function="page">action_page</action>
1782 </actions>
1783 </button>
1784
1785 <button style="main_button">
1786 <condition var1="tw_has_boot_slots" var2="1"/>
1787 <placement x="%center_x%" y="%row19_y%"/>
1788 <text>{@boot_slot_b=Slot B}</text>
1789 <actions>
1790 <action function="set">tw_back=backup_options</action>
1791 <action function="set">tw_action=setbootslot</action>
1792 <action function="set">tw_action_param=B</action>
1793 <action function="set">tw_has_action2=0</action>
1794 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1795 <action function="set">tw_action_text2=</action>
1796 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1797 <action function="page">action_page</action>
1798 </actions>
1799 </button>
1800
z31s1g28f0a922015-11-07 18:50:22 +01001801 <action>
1802 <touch key="home"/>
1803 <action function="page">main</action>
1804 </action>
1805
1806 <action>
1807 <touch key="back"/>
1808 <action function="page">backup</action>
1809 </action>
1810 </page>
1811
1812 <page name="backupname1">
1813 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001814 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001815 <action function="generatebackupname"/>
1816 </action>
1817
1818 <action>
1819 <action function="page">backupname2</action>
1820 </action>
1821 </page>
1822
1823 <page name="backupname2">
1824 <template name="page"/>
1825
1826 <text style="text_l">
1827 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001828 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001829 </text>
1830
1831 <text style="text_m">
1832 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001833 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001834 </text>
1835
1836 <template name="tabs_backup"/>
1837
1838 <fill color="%text_color%">
1839 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1840 </fill>
1841
1842 <button style="tab">
1843 <conditions>
1844 <condition var1="tw_include_encrypted_backup" var2="1"/>
1845 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001846 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001847 </conditions>
1848 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001849 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001850 <font resource="font_s" color="%text_color%"/>
1851 <actions>
1852 <action function="set">tw_password_not_match=0</action>
1853 <action function="page">backupencryption</action>
1854 </actions>
1855 </button>
1856
1857 <button style="tab">
1858 <conditions>
1859 <condition var1="tw_include_encrypted_backup" var2="1"/>
1860 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001861 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001862 </conditions>
1863 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001864 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001865 <font resource="font_s" color="%text_success_color%"/>
1866 <actions>
1867 <action function="set">tw_password_not_match=0</action>
1868 <action function="page">backupencryption</action>
1869 </actions>
1870 </button>
1871
1872 <text style="text_m_accent">
1873 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001874 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001875 </text>
1876
1877 <input>
1878 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1879 <text>%tw_backup_name%</text>
1880 <data name="tw_backup_name"/>
1881 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1882 <actions>
1883 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1884 <action function="set">tw_existpage=backupname2</action>
1885 <action function="set">tw_notexistpage=backup</action>
1886 <action function="page">filecheck</action>
1887 </actions>
1888 </input>
1889
1890 <fill color="%accent_color%">
1891 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1892 </fill>
1893
1894 <fill color="%text_fail_color%">
1895 <condition var1="tw_fileexists" var2="1"/>
1896 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1897 </fill>
1898
1899 <text style="text_m_fail">
1900 <condition var1="tw_fileexists" var2="1"/>
1901 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001902 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </text>
1904
1905 <button style="main_button_half_height">
1906 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001907 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001908 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001909 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001910 <action function="page">backup</action>
1911 </actions>
1912 </button>
1913
1914 <button style="main_button_half_height">
1915 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001916 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001917 <action function="appenddatetobackupname"/>
1918 </button>
1919
1920 <template name="keyboardtemplate"/>
1921
1922 <action>
1923 <touch key="home"/>
1924 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001925 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">main</action>
1927 </actions>
1928 </action>
1929
1930 <action>
1931 <touch key="back"/>
1932 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <action function="page">backup</action>
1935 </actions>
1936 </action>
1937 </page>
1938
1939 <page name="backupencryption">
1940 <template name="page"/>
1941
1942 <text style="text_l">
1943 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001944 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001945 </text>
1946
1947 <text style="text_m">
1948 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 </text>
1951
1952 <template name="tabs_backup"/>
1953
1954 <button style="tab">
1955 <conditions>
1956 <condition var1="tw_include_encrypted_backup" var2="1"/>
1957 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001958 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001959 </conditions>
1960 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001961 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001962 <font resource="font_s" color="%text_color%"/>
1963 <actions>
1964 <action function="set">tw_password_not_match=0</action>
1965 <action function="page">backupencryption</action>
1966 </actions>
1967 </button>
1968
1969 <button style="tab">
1970 <conditions>
1971 <condition var1="tw_include_encrypted_backup" var2="1"/>
1972 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001973 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001974 </conditions>
1975 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001976 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001977 <font resource="font_s" color="%text_success_color%"/>
1978 <actions>
1979 <action function="set">tw_password_not_match=0</action>
1980 <action function="page">backupencryption</action>
1981 </actions>
1982 </button>
1983
1984 <fill color="%text_color%">
1985 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1986 </fill>
1987
1988 <text style="text_m_accent">
1989 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001990 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001991 </text>
1992
1993 <text style="text_m">
1994 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001995 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001996 </text>
1997
1998 <input>
1999 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2000 <text>%tw_backup_encrypt_display%</text>
2001 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2002 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2003 <action function="page">backupencryption2</action>
2004 </input>
2005
2006 <fill color="%accent_color%">
2007 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2008 </fill>
2009
2010 <fill color="%text_fail_color%">
2011 <condition var1="tw_password_not_match" var2="1"/>
2012 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2013 </fill>
2014
2015 <text style="text_m_fail">
2016 <condition var1="tw_password_not_match" var2="1"/>
2017 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002019 </text>
2020
2021 <button style="main_button_half_height">
2022 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002023 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002024 <actions>
2025 <action function="set">tw_encrypt_backup=0</action>
2026 <action function="set">tw_backup_password=</action>
2027 <action function="set">tw_backup_password2=</action>
2028 <action function="set">tw_backup_encrypt_display=</action>
2029 <action function="set">tw_backup_encrypt_display2=</action>
2030 <action function="page">backup</action>
2031 </actions>
2032 </button>
2033
2034 <template name="keyboardtemplate"/>
2035
2036 <action>
2037 <touch key="home"/>
2038 <action function="page">main</action>
2039 </action>
2040
2041 <action>
2042 <touch key="back"/>
2043 <action function="page">backup</action>
2044 </action>
2045 </page>
2046
2047 <page name="backupencryption2">
2048 <template name="page"/>
2049
2050 <text style="text_l">
2051 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002052 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002053 </text>
2054
2055 <text style="text_m">
2056 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002057 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002058 </text>
2059
2060 <template name="tabs_backup"/>
2061
2062 <button style="tab">
2063 <conditions>
2064 <condition var1="tw_include_encrypted_backup" var2="1"/>
2065 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002066 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002067 </conditions>
2068 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002069 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002070 <font resource="font_s" color="%text_color%"/>
2071 <actions>
2072 <action function="set">tw_password_not_match=0</action>
2073 <action function="page">backupencryption</action>
2074 </actions>
2075 </button>
2076
2077 <button style="tab">
2078 <conditions>
2079 <condition var1="tw_include_encrypted_backup" var2="1"/>
2080 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002081 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002082 </conditions>
2083 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002084 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002085 <font resource="font_s" color="%text_success_color%"/>
2086 <actions>
2087 <action function="set">tw_password_not_match=0</action>
2088 <action function="page">backupencryption</action>
2089 </actions>
2090 </button>
2091
2092 <fill color="%text_color%">
2093 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2094 </fill>
2095
2096 <text style="text_m_accent">
2097 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002098 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002099 </text>
2100
2101 <text style="text_m">
2102 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002103 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002104 </text>
2105
2106 <input>
2107 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2108 <text>%tw_backup_encrypt_display2%</text>
2109 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2110 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2111 <action function="page">checkbackuppassword</action>
2112 </input>
2113
2114 <fill color="%accent_color%">
2115 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2116 </fill>
2117
2118 <button style="main_button_half_height">
2119 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002120 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002121 <actions>
2122 <action function="set">tw_encrypt_backup=0</action>
2123 <action function="set">tw_backup_password=</action>
2124 <action function="set">tw_backup_password2=</action>
2125 <action function="set">tw_backup_encrypt_display=</action>
2126 <action function="set">tw_backup_encrypt_display2=</action>
2127 <action function="page">backup</action>
2128 </actions>
2129 </button>
2130
2131 <template name="keyboardtemplate"/>
2132
2133 <action>
2134 <touch key="home"/>
2135 <action function="page">main</action>
2136 </action>
2137
2138 <action>
2139 <touch key="back"/>
2140 <action function="page">backup</action>
2141 </action>
2142 </page>
2143
2144 <page name="checkbackuppassword">
2145 <action>
2146 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2147 <actions>
2148 <action function="set">tw_encrypt_backup=1</action>
2149 <action function="page">backup</action>
2150 </actions>
2151 </action>
2152
2153 <action>
2154 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2155 <actions>
2156 <action function="set">tw_encrypt_backup=0</action>
2157 <action function="set">tw_password_not_match=1</action>
2158 <action function="set">tw_backup_password=</action>
2159 <action function="set">tw_backup_password2=</action>
2160 <action function="set">tw_backup_encrypt_display=</action>
2161 <action function="set">tw_backup_encrypt_display2=</action>
2162 <action function="page">backupencryption</action>
2163 </actions>
2164 </action>
2165 </page>
2166
2167 <page name="backup_run">
2168 <template name="page"/>
2169
2170 <text style="text_l">
2171 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2172 <text>%tw_operation%</text>
2173 </text>
2174
2175 <text style="text_m">
2176 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2177 <text>%tw_partition% Partition</text>
2178 </text>
2179
2180 <template name="console"/>
2181
2182 <template name="progress_bar"/>
2183
2184 <text style="text_m_accent">
2185 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002186 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002187 </text>
2188
2189 <text style="text_m">
2190 <placement x="%indent%" y="%row20_y%"/>
2191 <text>%tw_file_progress%</text>
2192 </text>
2193
2194 <text style="text_m">
2195 <placement x="%indent%" y="%row21_y%"/>
2196 <text>%tw_size_progress%</text>
2197 </text>
2198
2199 <button style="main_button_half_height">
2200 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002201 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002202 <action function="cancelbackup"/>
2203 </button>
2204
2205 <action>
2206 <action function="nandroid">backup</action>
2207 </action>
2208
2209 <action>
2210 <condition var1="tw_operation_state" var2="1"/>
2211 <condition var1="tw_cancel_backup" var2="0"/>
2212 <actions>
2213 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002214 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002215 <action function="set">tw_show_reboot=1</action>
2216 <action function="page">action_complete</action>
2217 </actions>
2218 </action>
2219
2220 <action>
2221 <condition var1="tw_operation_state" var2="1"/>
2222 <condition var1="tw_cancel_backup" var2="1"/>
2223 <actions>
2224 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002225 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002226 <action function="set">tw_show_reboot=1</action>
2227 <action function="page">action_complete</action>
2228 </actions>
2229 </action>
2230 </page>
2231
2232 <page name="restore">
2233 <template name="page"/>
2234
2235 <text style="text_l">
2236 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002237 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002238 </text>
2239
2240 <text style="text_m">
2241 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002242 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002243 </text>
2244
2245 <template name="sort_options"/>
2246
2247 <fileselector>
2248 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002249 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002250 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002251 <path name="tw_backups_folder"/>
2252 <data name="tw_restore" default=""/>
2253 <selection name="tw_restore_name"/>
2254 </fileselector>
2255
2256 <button style="main_button_half_height">
2257 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002258 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002259 <actions>
2260 <action function="set">tw_back=restore</action>
2261 <action function="overlay">select_storage</action>
2262 </actions>
2263 </button>
2264
2265 <action>
2266 <condition var1="tw_restore" op="modified"/>
2267 <actions>
2268 <action function="readBackup"/>
2269 <action function="page">restore_read</action>
2270 </actions>
2271 </action>
2272
2273 <action>
2274 <touch key="home"/>
2275 <action function="page">main</action>
2276 </action>
2277
2278 <action>
2279 <touch key="back"/>
2280 <action function="page">main</action>
2281 </action>
2282 </page>
2283
2284 <page name="restore_read">
2285 <action>
2286 <condition var1="tw_restore_encrypted" var2="1"/>
2287 <actions>
2288 <action function="set">tw_password_fail=0</action>
2289 <action function="page">restore_decrypt</action>
2290 </actions>
2291 </action>
2292
2293 <action>
2294 <condition var1="tw_restore_encrypted" var2="0"/>
2295 <actions>
2296 <action function="page">restore_select</action>
2297 </actions>
2298 </action>
2299 </page>
2300
2301 <page name="restore_decrypt">
2302 <template name="page"/>
2303
2304 <text style="text_l">
2305 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002306 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002307 </text>
2308
2309 <text style="text_m">
2310 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 </text>
2313
2314 <text style="text_m_accent">
2315 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002316 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002317 </text>
2318
2319 <input>
2320 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2321 <text>%tw_restore_display%</text>
2322 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2323 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2324 <action function="page">try_restore_decrypt</action>
2325 </input>
2326
2327 <fill color="%accent_color%">
2328 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2329 </fill>
2330
2331 <fill color="%text_fail_color%">
2332 <condition var1="tw_password_fail" var2="1"/>
2333 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2334 </fill>
2335
2336 <text style="text_m_fail">
2337 <condition var1="tw_password_fail" var2="1"/>
2338 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002339 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002340 </text>
2341
2342 <button style="main_button_half_height">
2343 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002344 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002345 <actions>
2346 <action function="set">tw_page_done=1</action>
2347 <action function="page">restore</action>
2348 </actions>
2349 </button>
2350
2351 <button style="main_button_half_height">
2352 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002353 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002354 <actions>
2355 <action function="set">tw_back=restore</action>
2356 <action function="set">tw_action=cmd</action>
2357 <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 -05002358 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2359 <action function="set">tw_text2=%tw_restore_name%</action>
2360 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2361 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2362 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2363 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002364 <action function="page">confirm_action</action>
2365 </actions>
2366 </button>
2367
2368 <template name="keyboardtemplate"/>
2369
2370 <action>
2371 <touch key="home"/>
2372 <action function="page">main</action>
2373 </action>
2374
2375 <action>
2376 <touch key="back"/>
2377 <action function="page">restore</action>
2378 </action>
2379 </page>
2380
2381 <page name="try_restore_decrypt">
2382 <template name="page"/>
2383
2384 <text style="text_l">
2385 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002386 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002387 </text>
2388
2389 <text style="text_m">
2390 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002391 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002392 </text>
2393
2394 <template name="console"/>
2395
2396 <template name="progress_bar"/>
2397
2398 <action>
2399 <action function="decrypt_backup"/>
2400 </action>
2401
2402 <action>
2403 <conditions>
2404 <condition var1="tw_operation_state" var2="1"/>
2405 <condition var1="tw_operation_status" op="!=" var2="0"/>
2406 </conditions>
2407 <actions>
2408 <action function="set">tw_password_fail=1</action>
2409 <action function="page">restore_decrypt</action>
2410 </actions>
2411 </action>
2412
2413 <action>
2414 <conditions>
2415 <condition var1="tw_operation_state" var2="1"/>
2416 <condition var1="tw_operation_status" op="=" var2="0"/>
2417 </conditions>
2418 <actions>
2419 <action function="set">tw_page_done=1</action>
2420 <action function="page">restore_select</action>
2421 </actions>
2422 </action>
2423 </page>
2424
2425 <page name="restore_select">
2426 <template name="page"/>
2427
2428 <text style="text_l">
2429 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002430 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002431 </text>
2432
2433 <text style="text_m">
2434 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002435 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002436 </text>
2437
2438 <text style="text_m_accent">
2439 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002440 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002441 </text>
2442
2443 <text style="text_m">
2444 <placement x="%indent%" y="%row3_y%"/>
2445 <text>%tw_restore_name%</text>
2446 </text>
2447
2448 <fill color="%fileselector_linecolor%">
2449 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2450 </fill>
2451
2452 <button>
2453 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2454 <fill color="%transparent%"/>
2455 <actions>
2456 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2457 <action function="set">tw_fileexists=0</action>
2458 <action function="page">renamebackup</action>
2459 </actions>
2460 </button>
2461
2462 <partitionlist>
2463 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002464 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002465 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2466 <listtype name="restore"/>
2467 </partitionlist>
2468
2469 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002470 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002471 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002472 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2473 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002474 </checkbox>
2475
2476 <button style="main_button_half_height">
2477 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002478 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002479 <actions>
2480 <action function="set">tw_back=restore</action>
2481 <action function="set">tw_action=cmd</action>
2482 <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 -05002483 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002484 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002485 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2486 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2487 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2488 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002489 <action function="page">confirm_action</action>
2490 </actions>
2491 </button>
2492
2493 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002494 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002495 <action function="page">restore_run</action>
2496 </slider>
2497
2498 <action>
2499 <touch key="home"/>
2500 <action function="page">main</action>
2501 </action>
2502
2503 <action>
2504 <touch key="back"/>
2505 <action function="page">restore</action>
2506 </action>
2507 </page>
2508
2509 <page name="renamebackup">
2510 <template name="page"/>
2511
2512 <text style="text_l">
2513 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002514 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002515 </text>
2516
2517 <text style="text_m">
2518 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002519 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002520 </text>
2521
2522 <text style="text_m_accent">
2523 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002524 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002525 </text>
2526
2527 <input>
2528 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2529 <text>%tw_backup_rename%</text>
2530 <data name="tw_backup_rename"/>
2531 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2532 <actions>
2533 <action function="set">tw_back=restore</action>
2534 <action function="set">tw_action=cmd</action>
2535 <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 -05002536 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2537 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2538 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2539 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2540 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002541 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2542 <action function="set">tw_existpage=renamebackup</action>
2543 <action function="set">tw_notexistpage=confirm_action</action>
2544 <action function="page">filecheck</action>
2545 </actions>
2546 </input>
2547
2548 <fill color="%accent_color%">
2549 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2550 </fill>
2551
2552 <fill color="%text_fail_color%">
2553 <condition var1="tw_fileexists" var2="1"/>
2554 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2555 </fill>
2556
2557 <text style="text_m_fail">
2558 <condition var1="tw_fileexists" var2="1"/>
2559 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002560 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002561 </text>
2562
2563 <button style="main_button_half_height">
2564 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002565 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002566 <action function="page">restore_select</action>
2567 </button>
2568
2569 <template name="keyboardtemplate"/>
2570
2571 <action>
2572 <touch key="home"/>
2573 <action function="page">main</action>
2574 </action>
2575
2576 <action>
2577 <touch key="back"/>
2578 <action function="page">restore_select</action>
2579 </action>
2580 </page>
2581
2582 <page name="restore_run">
2583 <template name="page"/>
2584
2585 <text style="text_l">
2586 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002587 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002588 </text>
2589
2590 <text style="text_m">
2591 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2592 <text>%tw_operation% %tw_partition%</text>
2593 </text>
2594
2595 <template name="console"/>
2596
2597 <template name="progress_bar"/>
2598
2599 <text style="text_m_accent">
2600 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002601 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002602 </text>
2603
2604 <text style="text_m">
2605 <placement x="%indent%" y="%row20_y%"/>
2606 <text>%tw_size_progress%</text>
2607 </text>
2608
2609 <action>
2610 <condition var1="tw_operation_state" var2="1"/>
2611 <actions>
2612 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002613 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002614 <action function="set">tw_show_reboot=1</action>
2615 <action function="page">action_complete</action>
2616 </actions>
2617 </action>
2618
2619 <action>
2620 <action function="nandroid">restore</action>
2621 </action>
2622 </page>
2623
2624 <page name="mount">
2625 <template name="page"/>
2626
2627 <text style="text_l">
2628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002629 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002630 </text>
2631
2632 <text style="text_m">
2633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002634 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002635 </text>
2636
2637 <partitionlist>
2638 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002639 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002640 <listtype name="mount"/>
2641 </partitionlist>
2642
2643 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002644 <conditions>
2645 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2646 <condition var1="tw_is_super" op="=" var2="0"/>
2647 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002648 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002649 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002650 <image resource="checkbox_false"/>
2651 <action function="mountsystemtoggle">1</action>
2652 </button>
2653
2654 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002655 <conditions>
2656 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2657 <condition var1="tw_is_super" op="=" var2="0"/>
2658 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002659 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002660 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002661 <image resource="checkbox_true"/>
2662 <actions>
2663 <action function="set">tw_lifetime_writes=2</action>
2664 <action function="page">system_readonly_check</action>
2665 </actions>
2666 </button>
2667
2668 <button style="main_button_half_height">
2669 <condition var1="tw_has_usb_storage" var2="1"/>
2670 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002671 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002672 <action function="page">usb_mount</action>
2673 </button>
2674
2675 <button style="main_button_half_height">
2676 <conditions>
2677 <condition var1="tw_is_encrypted" var2="1"/>
2678 <condition var1="tw_is_decrypted" var2="0"/>
2679 </conditions>
2680 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002681 <text>{@decrypt_data_btn=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002682 <action function="page">decrypt</action>
2683 </button>
2684
2685 <button style="main_button_half_height">
2686 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002687 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002688 <actions>
2689 <action function="set">tw_back=mount</action>
2690 <action function="overlay">select_storage</action>
2691 </actions>
2692 </button>
2693
2694 <button style="main_button_half_height">
2695 <conditions>
2696 <condition var1="tw_has_mtp" var2="1"/>
2697 <condition var1="tw_mtp_enabled" var2="0"/>
2698 </conditions>
2699 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002700 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002701 <action function="startmtp"/>
2702 </button>
2703
2704 <button style="main_button_half_height">
2705 <conditions>
2706 <condition var1="tw_has_mtp" var2="1"/>
2707 <condition var1="tw_mtp_enabled" var2="1"/>
2708 </conditions>
2709 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002710 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002711 <action function="stopmtp"/>
2712 </button>
2713
2714 <action>
2715 <touch key="home"/>
2716 <action function="page">main</action>
2717 </action>
2718
2719 <action>
2720 <touch key="back"/>
2721 <action function="page">main</action>
2722 </action>
2723 </page>
2724
2725 <page name="usb_mount">
2726 <template name="page"/>
2727
2728 <text style="text_l">
2729 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002730 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002731 </text>
2732
2733 <text style="text_m">
2734 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002735 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002736 </text>
2737
2738 <text style="text_m_accent">
2739 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002740 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002741 </text>
2742
2743 <text style="text_m">
2744 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002745 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002746 </text>
2747
2748 <text style="text_m">
2749 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002750 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002751 </text>
2752
2753 <button style="main_button_half_height">
2754 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002755 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002756 <action function="page">usb_umount</action>
2757 </button>
2758
2759 <action>
2760 <action function="mount">usb</action>
2761 <action function="set">tw_busy=1</action>
2762 </action>
2763 </page>
2764
2765 <page name="usb_umount">
2766 <action>
2767 <action function="unmount">usb</action>
2768 </action>
2769
2770 <action>
2771 <action function="page">mount</action>
2772 <action function="set">tw_busy=0</action>
2773 </action>
2774 </page>
2775
2776 <page name="system_readonly_check">
2777 <action>
2778 <action function="checkpartitionlifetimewrites">/system</action>
2779 </action>
2780
2781 <action>
2782 <condition var1="tw_lifetime_writes" var2="1"/>
2783 <actions>
2784 <action function="mountsystemtoggle">0</action>
2785 <action function="page">mount</action>
2786 </actions>
2787 </action>
2788
2789 <action>
2790 <condition var1="tw_lifetime_writes" var2="0"/>
2791 <actions>
2792 <action function="set">tw_back=mount</action>
2793 <action function="page">system_readonly</action>
2794 </actions>
2795 </action>
2796 </page>
2797
bigbiffdf8436b2020-08-30 16:22:34 -04002798 <page name="fastbootreboot">
2799 <template name="page"/>
2800
2801 <text style="text_l">
2802 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2803 <text>{@reboot_hdr=Reboot}</text>
2804 </text>
2805
2806 <listbox style="advanced_listbox">
2807 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2808
2809 <listitem name="{@rb_system_btn=System}">
2810 <condition var1="tw_reboot_system" var2="1"/>
2811 <actions>
2812 <action function="set">tw_back=fastbootreboot</action>
2813 <action function="set">tw_action=reboot</action>
2814 <action function="set">tw_action_param=system</action>
2815 <action function="set">tw_reboot_param=system</action>
2816 <action function="set">tw_has_action2=0</action>
2817 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2818 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2819 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2820 <action function="page">confirm_action</action>
2821 </actions>
2822 </listitem>
2823
2824 <listitem name="{@rb_poweroff_btn=Power Off}">
2825 <condition var1="tw_reboot_poweroff" var2="1"/>
2826 <actions>
2827 <action function="set">tw_back=fastbootreboot</action>
2828 <action function="set">tw_action=reboot</action>
2829 <action function="set">tw_action_param=poweroff</action>
2830 <action function="set">tw_reboot_param=poweroff</action>
2831 <action function="set">tw_has_action2=0</action>
2832 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2833 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2834 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2835 <action function="page">confirm_action</action>
2836 </actions>
2837 </listitem>
2838
2839 <listitem name="{@rb_recovery_btn=Recovery}">
2840 <condition var1="tw_reboot_recovery" var2="1"/>
2841 <actions>
2842 <action function="set">tw_back=fastbootreboot</action>
2843 <action function="set">tw_action=reboot</action>
2844 <action function="set">tw_action_param=recovery</action>
2845 <action function="set">tw_reboot_param=recovery</action>
2846 <action function="set">tw_has_action2=0</action>
2847 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2848 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2849 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2850 <action function="page">confirm_action</action>
2851 </actions>
2852 </listitem>
2853
2854 <listitem name="{@rb_bootloader_btn=Bootloader}">
2855 <condition var1="tw_reboot_bootloader" var2="1"/>
2856 <actions>
2857 <action function="set">tw_back=fastbootreboot</action>
2858 <action function="set">tw_action=reboot</action>
2859 <action function="set">tw_action_param=bootloader</action>
2860 <action function="set">tw_reboot_param=bootloader</action>
2861 <action function="set">tw_has_action2=0</action>
2862 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2863 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2864 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2865 <action function="page">confirm_action</action>
2866 </actions>
2867 </listitem>
2868
2869 <listitem name="{@rb_download_btn=Download}">
2870 <condition var1="tw_download_mode" var2="1"/>
2871 <actions>
2872 <action function="set">tw_back=fastbootreboot</action>
2873 <action function="set">tw_action=reboot</action>
2874 <action function="set">tw_action_param=download</action>
2875 <action function="set">tw_reboot_param=download</action>
2876 <action function="set">tw_has_action2=0</action>
2877 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2878 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2879 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2880 <action function="page">confirm_action</action>
2881 </actions>
2882 </listitem>
2883
2884 <listitem name="{@fastboot_button=Fastboot}">
2885 <condition var1="tw_fastboot_mode" var2="1"/>
2886 <actions>
2887 <action function="set">tw_back=fastbootreboot</action>
2888 <action function="set">tw_action=reboot</action>
2889 <action function="set">tw_action_param=fastboot</action>
2890 <action function="set">tw_reboot_param=fastboot</action>
2891 <action function="set">tw_has_action2=0</action>
2892 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2893 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2894 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2895 <action function="page">confirm_action</action>
2896 </actions>
2897 </listitem>
2898
2899 <listitem name="{@rb_edl_btn=Edl}">
2900 <condition var1="tw_edl_mode" var2="1"/>
2901 <actions>
2902 <action function="set">tw_back=fastbootreboot</action>
2903 <action function="set">tw_action=reboot</action>
2904 <action function="set">tw_action_param=edl</action>
2905 <action function="set">tw_reboot_param=edl</action>
2906 <action function="set">tw_has_action2=0</action>
2907 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2908 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2909 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2910 <action function="page">confirm_action</action>
2911 </actions>
2912 </listitem>
2913 </listbox>
2914
2915 <action>
2916 <touch key="home"/>
2917 <action function="page">fastboot</action>
2918 </action>
2919
2920 <action>
2921 <touch key="back"/>
2922 <action function="page">fastboot</action>
2923 </action>
2924 </page>
2925
z31s1g28f0a922015-11-07 18:50:22 +01002926 <page name="reboot">
2927 <template name="page"/>
2928
2929 <text style="text_l">
2930 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002931 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002932 </text>
2933
bigbiffdf8436b2020-08-30 16:22:34 -04002934 <listbox style="advanced_listbox">
2935 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01002936
bigbiffdf8436b2020-08-30 16:22:34 -04002937 <listitem name="{@rb_system_btn=System}">
2938 <condition var1="tw_reboot_system" var2="1"/>
2939 <actions>
2940 <action function="set">tw_back=reboot</action>
2941 <action function="page">reboot_system_routine</action>
2942 </actions>
2943 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002944
bigbiffdf8436b2020-08-30 16:22:34 -04002945 <listitem name="{@rb_poweroff_btn=Power Off}">
2946 <condition var1="tw_reboot_poweroff" var2="1"/>
2947 <actions>
2948 <action function="set">tw_back=reboot</action>
2949 <action function="set">tw_action=reboot</action>
2950 <action function="set">tw_action_param=poweroff</action>
2951 <action function="set">tw_reboot_param=poweroff</action>
2952 <action function="set">tw_has_action2=0</action>
2953 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2954 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2955 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2956 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2957 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2958 <action function="page">rebootcheck</action>
2959 </actions>
2960 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002961
bigbiffdf8436b2020-08-30 16:22:34 -04002962 <listitem name="{@rb_recovery_btn=Recovery}">
2963 <condition var1="tw_reboot_recovery" var2="1"/>
2964 <actions>
2965 <action function="set">tw_back=reboot</action>
2966 <action function="set">tw_action=reboot</action>
2967 <action function="set">tw_action_param=recovery</action>
2968 <action function="set">tw_reboot_param=recovery</action>
2969 <action function="set">tw_has_action2=0</action>
2970 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2971 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2972 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2973 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2974 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2975 <action function="page">rebootcheck</action>
2976 </actions>
2977 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002978
bigbiffdf8436b2020-08-30 16:22:34 -04002979 <listitem name="{@rb_bootloader_btn=Bootloader}">
2980 <condition var1="tw_reboot_bootloader" var2="1"/>
2981 <actions>
2982 <action function="set">tw_back=reboot</action>
2983 <action function="set">tw_action=reboot</action>
2984 <action function="set">tw_action_param=bootloader</action>
2985 <action function="set">tw_reboot_param=bootloader</action>
2986 <action function="set">tw_has_action2=0</action>
2987 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2988 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2989 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2990 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2991 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2992 <action function="page">rebootcheck</action>
2993 </actions>
2994 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002995
bigbiffdf8436b2020-08-30 16:22:34 -04002996 <listitem name="{@rb_download_btn=Download}">
2997 <condition var1="tw_download_mode" var2="1"/>
2998 <actions>
2999 <action function="set">tw_back=reboot</action>
3000 <action function="set">tw_action=reboot</action>
3001 <action function="set">tw_action_param=download</action>
3002 <action function="set">tw_reboot_param=download</action>
3003 <action function="set">tw_has_action2=0</action>
3004 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3005 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3006 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3007 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3008 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3009 <action function="page">rebootcheck</action>
3010 </actions>
3011 </listitem>
3012
3013 <listitem name="{@fastboot_button=Fastboot}">
3014 <condition var1="tw_fastboot_mode" var2="1"/>
3015 <actions>
3016 <action function="set">tw_back=reboot</action>
3017 <action function="set">tw_action=reboot</action>
3018 <action function="set">tw_action_param=fastboot</action>
3019 <action function="set">tw_reboot_param=fastboot</action>
3020 <action function="set">tw_has_action2=0</action>
3021 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3022 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3023 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3024 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3025 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3026 <action function="page">rebootcheck</action>
3027 </actions>
3028 </listitem>
3029
3030 <listitem name="{@rb_edl_btn=Edl}">
3031 <condition var1="tw_edl_mode" var2="1"/>
3032 <actions>
3033 <action function="set">tw_back=reboot</action>
3034 <action function="set">tw_action=reboot</action>
3035 <action function="set">tw_action_param=edl</action>
3036 <action function="set">tw_reboot_param=edl</action>
3037 <action function="set">tw_has_action2=0</action>
3038 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3039 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3040 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3041 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3042 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3043 <action function="page">rebootcheck</action>
3044 </actions>
3045 </button>
3046 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003047
Ethan Yonker1b190162016-12-05 15:25:19 -06003048 <text style="text_m">
3049 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003050 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003051 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3052 </text>
3053
bigbiffdf8436b2020-08-30 16:22:34 -04003054 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003055 <condition var1="tw_has_boot_slots" var2="1"/>
3056 <placement x="%indent%" y="%row19_y%"/>
3057 <text>{@boot_slot_a=Slot A}</text>
3058 <actions>
3059 <action function="set">tw_back=reboot</action>
3060 <action function="set">tw_action=setbootslot</action>
3061 <action function="set">tw_action_param=A</action>
3062 <action function="set">tw_has_action2=0</action>
3063 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3064 <action function="set">tw_action_text2=</action>
3065 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3066 <action function="page">action_page</action>
3067 </actions>
3068 </button>
3069
bigbiffdf8436b2020-08-30 16:22:34 -04003070 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003071 <condition var1="tw_has_boot_slots" var2="1"/>
3072 <placement x="%center_x%" y="%row19_y%"/>
3073 <text>{@boot_slot_b=Slot B}</text>
3074 <actions>
3075 <action function="set">tw_back=reboot</action>
3076 <action function="set">tw_action=setbootslot</action>
3077 <action function="set">tw_action_param=B</action>
3078 <action function="set">tw_has_action2=0</action>
3079 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3080 <action function="set">tw_action_text2=</action>
3081 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3082 <action function="page">action_page</action>
3083 </actions>
3084 </button>
3085
z31s1g28f0a922015-11-07 18:50:22 +01003086 <action>
3087 <touch key="home"/>
3088 <action function="page">main</action>
3089 </action>
3090
3091 <action>
3092 <touch key="back"/>
3093 <action function="page">main</action>
3094 </action>
3095 </page>
3096
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003097 <page name="rebootapp">
3098 <template name="page"/>
3099
3100 <text style="text_l">
3101 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3102 <text>{@reboot_hdr=Reboot}</text>
3103 </text>
3104
3105 <text style="text_m">
3106 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3107 <text>{@reboot_install_app_hdr=Install TWRP App?}</text>
3108 </text>
3109
3110 <text style="text_m_accent">
3111 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3112 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3113 </text>
3114
3115 <text style="text_m_accent">
3116 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3117 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3118 </text>
3119
3120 <checkbox>
3121 <placement x="%indent%" y="%row5_y%"/>
3122 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
3123 <data variable="tw_app_prompt"/>
3124 </checkbox>
3125
3126 <checkbox>
3127 <condition var1="tw_mount_system_ro" var2="0"/>
3128 <placement x="%indent%" y="%row7_y%"/>
3129 <text>{@reboot_install_app_system=Install as a System App}</text>
3130 <data variable="tw_app_install_system"/>
3131 </checkbox>
3132
3133 <button style="main_button_half_height">
3134 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003135 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003136 <action function="reboot">%tw_reboot_param%</action>
3137 </button>
3138
3139 <slider>
3140 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3141 <actions>
3142 <action function="set">tw_back=reboot</action>
3143 <action function="set">tw_action=installapp</action>
3144 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3145 <action function="set">tw_action_text2=</action>
3146 <action function="set">tw_has_action2=1</action>
3147 <action function="set">tw_action2=reboot</action>
3148 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3149 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3150 <action function="page">action_page</action>
3151 </actions>
3152 </slider>
3153
3154 <action>
3155 <touch key="home"/>
3156 <actions>
3157 <action function="set">tw_app_install_status=0</action>
3158 <action function="page">main</action>
3159 </actions>
3160 </action>
3161
3162 <action>
3163 <touch key="back"/>
3164 <actions>
3165 <action function="set">tw_app_install_status=0</action>
3166 <action function="page">reboot</action>
3167 </actions>
3168 </action>
3169 </page>
3170
z31s1g28f0a922015-11-07 18:50:22 +01003171 <page name="system_readonly">
3172 <template name="page"/>
3173
3174 <text style="text_l">
3175 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003176 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003177 </text>
3178
3179 <text style="text_m_accent">
3180 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003181 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003182 </text>
3183
3184 <text style="text_m">
3185 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003186 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003187 </text>
3188
3189 <text style="text_m">
3190 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003191 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003192 </text>
3193
3194 <text style="text_m">
3195 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003196 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003197 </text>
3198
3199 <text style="text_m">
3200 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003201 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003202 </text>
3203
3204 <text style="text_m_fail">
3205 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003206 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003207 </text>
3208
3209 <text style="text_m_fail">
3210 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003211 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003212 </text>
3213
3214 <checkbox>
3215 <condition var1="tw_is_encrypted" var2="0"/>
3216 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003217 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003218 <data variable="tw_never_show_system_ro_page"/>
3219 </checkbox>
3220
3221 <button style="main_button_half_height">
3222 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003223 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003224 <actions>
3225 <action function="mountsystemtoggle">1</action>
3226 <action function="set">tw_page_done=1</action>
3227 <action function="page">%tw_back%</action>
3228 </actions>
3229 </button>
3230
z31s1g608d7ff2016-01-18 19:47:25 +01003231 <button style="main_button_half_height">
3232 <placement x="%center_x%" y="%row18a_y%"/>
3233 <text>{@sel_lang_btn=Select Language}</text>
3234 <action function="overlay">select_language</action>
3235 </button>
3236
z31s1g28f0a922015-11-07 18:50:22 +01003237 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003238 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003239 <actions>
3240 <action function="mountsystemtoggle">0</action>
3241 <action function="set">tw_page_done=1</action>
3242 <action function="page">%tw_back%</action>
3243 </actions>
3244 </slider>
3245 </page>
3246
3247 <page name="settings">
3248 <template name="page"/>
3249
3250 <text style="text_l">
3251 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003252 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003253 </text>
3254
3255 <text style="text_m">
3256 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003257 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003258 </text>
3259
3260 <template name="tabs_settings"/>
3261
3262 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003263 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003264 </fill>
3265
3266 <listbox style="scrolllist">
3267 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3268 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003269 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003270 <data variable="tw_signed_zip_verify"/>
3271 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003272 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3273 <data variable="tw_install_reboot"/>
3274 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003275 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003276 <data variable="tw_rm_rf"/>
3277 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003278 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3279 <data variable="tw_disable_free_space"/>
3280 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003281 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3282 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003283 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003284 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3285 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003286 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003287 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003288 <data variable="tw_military_time"/>
3289 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003290 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003291 <data variable="tw_samsung_navbar"/>
3292 </listitem>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003293 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3294 <data variable="tw_app_prompt"/>
3295 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003296 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003297 <data variable="tw_simulate_actions"/>
3298 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003299 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003300 <condition var1="tw_simulate_actions" var2="1"/>
3301 <data variable="tw_simulate_fail"/>
3302 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003303 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3304 <condition var1="tw_no_sha2" var2="0"/>
3305 <data variable="tw_use_sha2"/>
3306 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003307 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3308 <data variable="tw_unmount_system"/>
3309 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003310 </listbox>
3311
3312 <button style="main_button_half_height">
3313 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003314 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003315 <actions>
3316 <action function="set">tw_samsung_navbar=0</action>
3317 <action function="set">tw_tab_icons=0</action>
3318 <action function="restoredefaultsettings"/>
3319 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003320 </button>
3321
3322 <action>
3323 <touch key="home"/>
3324 <action function="page">main</action>
3325 </action>
3326
3327 <action>
3328 <touch key="back"/>
3329 <action function="page">main</action>
3330 </action>
3331 </page>
3332
3333 <page name="settings_timezone">
3334 <template name="page"/>
3335
3336 <text style="text_l">
3337 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003338 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003339 </text>
3340
3341 <text style="text_m">
3342 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003343 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003344 </text>
3345
3346 <template name="tabs_settings"/>
3347
3348 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003349 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003350 </fill>
3351
3352 <listbox>
3353 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003354 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003355 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003356 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3357 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3358 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3359 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3360 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3361 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3362 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3363 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3364 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3365 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3366 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3367 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3368 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3369 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3370 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3371 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3372 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3373 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3374 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3375 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3376 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3377 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3378 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3379 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003380 </listbox>
3381
3382 <text style="text_m_accent">
3383 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003384 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003385 </text>
3386
3387 <button style="button_quarter_width">
3388 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003390 <action function="set">tw_time_zone_guioffset=0</action>
3391 </button>
3392
3393 <button style="button_quarter_width">
3394 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003395 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003396 <action function="set">tw_time_zone_guioffset=15</action>
3397 </button>
3398
3399 <button style="button_quarter_width">
3400 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003402 <action function="set">tw_time_zone_guioffset=30</action>
3403 </button>
3404
3405 <button style="button_quarter_width">
3406 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003408 <action function="set">tw_time_zone_guioffset=45</action>
3409 </button>
3410
3411 <checkbox>
3412 <placement x="%indent%" y="%row18a_y%"/>
3413 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003414 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003415 <data variable="tw_time_zone_guidst"/>
3416 <image checked="checkbox_true" unchecked="checkbox_false"/>
3417 </checkbox>
3418
3419 <text color="%text_color%">
3420 <font resource="font_m"/>
3421 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003422 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003423 </text>
3424
3425 <button>
3426 <highlight color="%highlight_color%"/>
3427 <placement x="%center_x%" y="%row21a_y%"/>
3428 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003429 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003430 <image resource="main_button_half_height"/>
3431 <action function="setguitimezone"/>
3432 </button>
3433
3434 <action>
3435 <touch key="home"/>
3436 <action function="page">main</action>
3437 </action>
3438
3439 <action>
3440 <touch key="back"/>
3441 <action function="page">main</action>
3442 </action>
3443 </page>
3444
3445 <page name="settings_screen">
3446 <template name="page"/>
3447
3448 <text style="text_l">
3449 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003450 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003451 </text>
3452
3453 <text style="text_m">
3454 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003455 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003456 </text>
3457
3458 <template name="tabs_settings"/>
3459
3460 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003461 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003462 </fill>
3463
3464 <button>
3465 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3466 <font resource="font_m" color="%text_color%"/>
3467 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3468 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003470 <image resource="checkbox_false"/>
3471 <action function="set">tw_screen_timeout_secs=60</action>
3472 </button>
3473
3474 <button>
3475 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3476 <font resource="font_m" color="%text_color%"/>
3477 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3478 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003479 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003480 <image resource="checkbox_true"/>
3481 <action function="set">tw_screen_timeout_secs=0</action>
3482 </button>
3483
3484 <slidervalue>
3485 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3486 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3487 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003488 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003489 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3490 </slidervalue>
3491
3492 <slidervalue>
3493 <condition var1="tw_has_brightnesss_file" var2="1"/>
3494 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003495 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003496 <data variable="tw_brightness_pct" min="10" max="100"/>
3497 <actions>
3498 <action function="set">tw_brightness=%tw_brightness_max%</action>
3499 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3500 <action function="compute">tw_brightness/100</action>
3501 <action function="setbrightness">%tw_brightness%</action>
3502 </actions>
3503 </slidervalue>
3504
3505 <action>
3506 <touch key="home"/>
3507 <action function="page">main</action>
3508 </action>
3509
3510 <action>
3511 <touch key="back"/>
3512 <action function="page">main</action>
3513 </action>
3514 </page>
3515
3516 <page name="settings_vibration">
3517 <template name="page"/>
3518
3519 <text style="text_l">
3520 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003521 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003522 </text>
3523
3524 <text style="text_m">
3525 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003526 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003527 </text>
3528
3529 <template name="tabs_settings"/>
3530
3531 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003532 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003533 </fill>
3534
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003535 <text style="text_m">
3536 <condition var1="tw_disable_haptics" var2="1"/>
3537 <placement x="%indent%" y="%row4_y%"/>
3538 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3539 </text>
3540
z31s1g28f0a922015-11-07 18:50:22 +01003541 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003542 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003543 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003544 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003545 <data variable="tw_button_vibrate" min="0" max="300"/>
3546 </slidervalue>
3547
3548 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003549 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003550 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003551 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003552 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3553 </slidervalue>
3554
3555 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003556 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003557 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003558 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003559 <data variable="tw_action_vibrate" min="0" max="500"/>
3560 </slidervalue>
3561
3562 <action>
3563 <touch key="home"/>
3564 <action function="page">main</action>
3565 </action>
3566
3567 <action>
3568 <touch key="back"/>
3569 <action function="page">main</action>
3570 </action>
3571 </page>
3572
Ethan Yonker74db1572015-10-28 12:44:49 -05003573 <page name="settings_language">
3574 <template name="page"/>
3575
3576 <text style="text_l">
3577 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3578 <text>{@settings_hdr=Settings}</text>
3579 </text>
3580
3581 <text style="text_m">
3582 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3583 <text>{@language_hdr=Language - %tw_language_display%}</text>
3584 </text>
3585
3586 <template name="tabs_settings"/>
3587
3588 <fill color="%text_color%">
3589 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3590 </fill>
3591
3592 <listbox>
3593 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3594 <text>{@select_language=Select Language:}</text>
3595 <icon selected="radio_true" unselected="radio_false" />
3596 <data name="tw_language" />
3597 </listbox>
3598
3599 <button style="main_button_half_height">
3600 <placement x="%center_x%" y="%row21a_y%"/>
3601 <text>{@set_language_btn=Set Language}</text>
3602 <action function="setlanguage"></action>
3603 </button>
3604
3605 <action>
3606 <touch key="home" />
3607 <action function="page">main</action>
3608 </action>
3609
3610 <action>
3611 <touch key="back" />
3612 <action function="page">settings</action>
3613 </action>
3614 </page>
3615
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003616 <page name="copylog">
3617 <template name="page"/>
3618
3619 <text style="text_l">
3620 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3621 <text>{@copying_log=Copy Logs to SD Card}</text>
3622 </text>
3623
3624 <checkbox>
3625 <placement x="%indent%" y="%row4_y%"/>
3626 <text>{@include_kernel_log=Include Kernel Log}</text>
3627 <data variable="tw_include_kernel_log" value="1"/>
3628 </checkbox>
3629
3630 <slider>
3631 <text>{@copying_log=Copy Logs to SD Card}</text>
3632 <actions>
3633 <action function="set">tw_back=advanced</action>
3634 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003635 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3636 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003637 <action function="page">action_page</action>
3638 </actions>
3639 </slider>
3640
3641 <action>
3642 <touch key="home"/>
3643 <action function="page">main</action>
3644 </action>
3645
3646 <action>
3647 <touch key="back"/>
3648 <actions>
3649 <action function="page">advanced</action>
3650 </actions>
3651 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003652 </page>
3653
z31s1g28f0a922015-11-07 18:50:22 +01003654 <page name="advanced">
3655 <template name="page"/>
3656
3657 <text style="text_l">
3658 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003659 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003660 </text>
3661
3662 <button style="main_button">
3663 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003664 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003665 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003666 </button>
3667
3668 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003669 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003670 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003671 <text>{@adb_sideload_btn=ADB Sideload}</text>
3672 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003673 </button>
3674
3675 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003676 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003677 <text>{@terminal_btn=Terminal}</text>
3678 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003679 </button>
3680
3681 <button style="main_button">
3682 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003683 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003684 <action function="page">filemanagerlist</action>
3685 </button>
3686
Ethan Yonker64e0a652018-07-25 09:52:17 -05003687 <listbox style="advanced_listbox">
3688 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
3689 <listitem name="{@reload_theme_btn=Reload Theme}">
3690 <action function="reload"/>
3691 </listitem>
3692 <listitem name="{@part_sd_btn=Partition SD Card}">
3693 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3694 <actions>
3695 <action function="set">partitionlisterror=0</action>
3696 <action function="page">partsdcardsel</action>
3697 </actions>
3698 </listitem>
3699 <listitem name="{@fix_context_btn=Fix Contexts}">
3700 <condition var1="tw_has_data_media" var2="1"/>
3701 <action function="page">fixcontexts</action>
3702 </listitem>
3703 <listitem name="{@dumlock_btn=HTC Dumlock}">
3704 <condition var1="tw_show_dumlock" var2="1"/>
3705 <action function="page">htcdumlock</action>
3706 </listitem>
3707 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3708 <condition var1="tw_has_injecttwrp" var2="1"/>
3709 <actions>
3710 <action function="set">tw_back=advanced</action>
3711 <action function="set">tw_action=reinjecttwrp</action>
3712 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3713 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3714 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3715 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3716 <action function="page">confirm_action</action>
3717 </actions>
3718 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003719 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3720 <conditions>
3721 <condition var1="tw_has_boot_slots" var2="1"/>
3722 <condition var1="tw_has_repack_tools" var2="1"/>
3723 </conditions>
3724 <actions>
3725 <action function="set">tw_repack_kernel=0</action>
3726 <action function="page">repackselect</action>
3727 </actions>
3728 </listitem>
3729 <listitem name="{@install_kernel=Install Kernel}">
3730 <conditions>
3731 <condition var1="tw_has_boot_slots" var2="1"/>
3732 <condition var1="tw_has_repack_tools" var2="1"/>
3733 </conditions>
3734 <actions>
3735 <action function="set">tw_repack_kernel=1</action>
3736 <action function="page">repackselect</action>
3737 </actions>
3738 </listitem>
3739 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3740 <conditions>
3741 <condition var1="tw_has_boot_slots" var2="1"/>
3742 <condition var1="tw_has_repack_tools" var2="1"/>
3743 </conditions>
3744 <actions>
3745 <action function="set">tw_back=advanced</action>
3746 <action function="set">tw_action=fixabrecoverybootloop</action>
3747 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3748 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3749 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3750 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3751 <action function="page">confirm_action</action>
3752 </actions>
3753 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003754 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3755 <condition var1="tw_app_installed_in_system" var2="1"/>
3756 <actions>
3757 <action function="set">tw_back=advanced</action>
3758 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3759 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3760 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3761 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3762 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3763 <action function="page">confirm_action</action>
3764 </actions>
3765 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003766 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003767
3768 <action>
3769 <touch key="home"/>
3770 <action function="page">main</action>
3771 </action>
3772
3773 <action>
3774 <touch key="back"/>
3775 <action function="page">main</action>
3776 </action>
3777 </page>
3778
Ethan Yonker483e9f42016-01-11 22:21:18 -06003779 <page name="partsdcardsel">
3780 <template name="page"/>
3781
3782 <text style="text_l">
3783 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3784 <text>{@advanced_hdr=Advanced}</text>
3785 </text>
3786
3787 <text style="text_m">
3788 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3789 <text>{@part_sd_hdr=Partition SD Card}</text>
3790 </text>
3791
z31s1g782e1c92016-01-30 16:50:09 +01003792 <partitionlist>
3793 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003794 <text>{@sel_storage_list=Select Storage}</text>
3795 <data name="tw_storage_path"/>
3796 <listtype name="storage"/>
3797 </partitionlist>
3798
3799 <text style="text_m_fail">
3800 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003801 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003802 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3803 </text>
3804
z31s1g782e1c92016-01-30 16:50:09 +01003805 <button style="main_button_half_height">
3806 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003807 <text>{@ok_btn=OK}</text>
3808 <actions>
3809 <action function="getpartitiondetails">tw_storage_path</action>
3810 <action function="page">partsdcardcheck</action>
3811 </actions>
3812 </button>
3813
3814 <action>
3815 <touch key="home"/>
3816 <action function="page">main</action>
3817 </action>
3818
3819 <action>
3820 <touch key="back"/>
3821 <action function="page">advanced</action>
3822 </action>
3823 </page>
3824
3825 <page name="partsdcardcheck">
3826 <action>
3827 <condition var1="tw_partition_removable" op="=" var2="1"/>
3828 <actions>
3829 <action function="set">partitionlisterror=0</action>
3830 <action function="page">partsdcard</action>
3831 </actions>
3832 </action>
3833
3834 <action>
3835 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3836 <actions>
3837 <action function="set">partitionlisterror=1</action>
3838 <action function="page">partsdcardsel</action>
3839 </actions>
3840 </action>
3841 </page>
3842
z31s1g28f0a922015-11-07 18:50:22 +01003843 <page name="partsdcard">
3844 <template name="page"/>
3845
3846 <text style="text_l">
3847 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003848 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003849 </text>
3850
3851 <text style="text_m">
3852 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003853 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003854 </text>
3855
3856 <text style="text_m_fail">
3857 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003858 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003859 </text>
3860
3861 <text style="text_m_fail">
3862 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003863 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003864 </text>
3865
3866 <text style="text_m_accent">
3867 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003868 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003869 </text>
3870
3871 <text style="text_m">
3872 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3873 <text>%tw_sdext_size%</text>
3874 </text>
3875
3876 <button style="button_quarter_width">
3877 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003878 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003879 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003880 </button>
3881
3882 <button style="button_quarter_width">
3883 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003884 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003885 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003886 </button>
3887
3888 <text style="text_m_accent">
3889 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003890 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003891 </text>
3892
3893 <text style="text_m">
3894 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3895 <text>%tw_swap_size%</text>
3896 </text>
3897
3898 <button style="button_quarter_width">
3899 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003900 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003901 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003902 </button>
3903
3904 <button style="button_quarter_width">
3905 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003906 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003907 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003908 </button>
3909
3910 <text style="text_m_accent">
3911 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003912 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003913 </text>
3914
3915 <text style="text_m">
3916 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3917 <text>%tw_sdpart_file_system%</text>
3918 </text>
3919
3920 <button style="button_quarter_width">
3921 <placement x="%indent%" y="%row14_y%"/>
3922 <text>EXT3</text>
3923 <action function="set">tw_sdpart_file_system=ext3</action>
3924 </button>
3925
3926 <button style="button_quarter_width">
3927 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3928 <text>EXT4</text>
3929 <action function="set">tw_sdpart_file_system=ext4</action>
3930 </button>
3931
3932 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003933 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003934 <action function="page">partsdcardaction</action>
3935 <actions>
3936 <action function="set">tw_back=partsdcard</action>
3937 <action function="set">tw_action=partitionsd</action>
3938 <action function="set">tw_has_action2=1</action>
3939 <action function="set">tw_action2=set</action>
3940 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003941 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3942 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3943 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003944 <action function="page">action_page</action>
3945 </actions>
3946 </slider>
3947
3948 <action>
3949 <touch key="home"/>
3950 <action function="page">main</action>
3951 </action>
3952
3953 <action>
3954 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003955 <actions>
3956 <action function="set">partitionlisterror=0</action>
3957 <action function="page">partsdcardsel</action>
3958 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003959 </action>
3960 </page>
3961
3962 <page name="htcdumlock">
3963 <template name="page"/>
3964
3965 <text style="text_l">
3966 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003967 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003968 </text>
3969
3970 <text style="text_m">
3971 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003972 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003973 </text>
3974
3975 <button style="main_button_half_height_full_width">
3976 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003977 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003978 <actions>
3979 <action function="set">tw_back=htcdumlock</action>
3980 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003981 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3982 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3983 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3984 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003985 <action function="page">confirm_action</action>
3986 </actions>
3987 </button>
3988
3989 <button style="main_button_half_height_full_width">
3990 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003991 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003992 <actions>
3993 <action function="set">tw_back=htcdumlock</action>
3994 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003995 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3996 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3997 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3998 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003999 <action function="page">confirm_action</action>
4000 </actions>
4001 </button>
4002
4003 <button style="main_button_half_height_full_width">
4004 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004005 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004006 <actions>
4007 <action function="set">tw_back=htcdumlock</action>
4008 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004009 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4010 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4011 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4012 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004013 <action function="page">confirm_action</action>
4014 </actions>
4015 </button>
4016
4017 <action>
4018 <touch key="home"/>
4019 <action function="page">main</action>
4020 </action>
4021
4022 <action>
4023 <touch key="back"/>
4024 <action function="page">advanced</action>
4025 </action>
4026 </page>
4027
Ethan Yonker53796e72019-01-11 22:49:52 -06004028 <page name="repackselect">
4029 <template name="page"/>
4030
4031 <text style="text_l">
4032 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4033 <text>{@repack_image_hdr=Select Image}</text>
4034 </text>
4035
4036 <text style="text_m">
4037 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4038 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4039 </text>
4040
4041 <template name="sort_options"/>
4042
4043 <fileselector>
4044 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4045 <text>%tw_zip_location%</text>
4046 <filter extn=".img" folders="1" files="1"/>
4047 <path name="tw_zip_location" default="/sdcard"/>
4048 <data name="tw_filename"/>
4049 <selection name="tw_file"/>
4050 </fileselector>
4051
4052 <button style="main_button_half_height">
4053 <placement x="%indent%" y="%row21a_y%"/>
4054 <text>{@select_storage_btn=Select Storage}</text>
4055 <actions>
4056 <action function="set">tw_back=repackselect</action>
4057 <action function="overlay">select_storage</action>
4058 </actions>
4059 </button>
4060
4061 <action>
4062 <conditions>
4063 <condition var1="tw_filename" op="modified"/>
4064 </conditions>
4065 <action function="page">repackconfirm</action>
4066 </action>
4067
4068 <action>
4069 <touch key="back"/>
4070 <action function="page">advanced</action>
4071 </action>
4072
4073 <action>
4074 <touch key="home"/>
4075 <action function="page">main</action>
4076 </action>
4077 </page>
4078
4079 <page name="repackconfirm">
4080 <template name="page"/>
4081
4082 <text style="text_l">
4083 <condition var1="tw_repack_kernel" var2="1"/>
4084 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4085 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4086 </text>
4087
4088 <text style="text_l">
4089 <condition var1="tw_repack_kernel" var2="0"/>
4090 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4091 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4092 </text>
4093
4094 <text style="text_m">
4095 <condition var1="tw_repack_kernel" var2="1"/>
4096 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4097 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4098 </text>
4099
4100 <text style="text_m">
4101 <condition var1="tw_repack_kernel" var2="0"/>
4102 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4103 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4104 </text>
4105
4106 <text style="text_m_accent">
4107 <placement x="%indent%" y="%row2_y%"/>
4108 <text>{@folder=Folder:}</text>
4109 </text>
4110
4111 <text style="text_m">
4112 <placement x="%indent%" y="%row3_y%"/>
4113 <text>%tw_zip_location%</text>
4114 </text>
4115
4116 <text style="text_m_accent">
4117 <placement x="%indent%" y="%row4_y%"/>
4118 <text>{@file=File:}</text>
4119 </text>
4120
4121 <text style="text_m">
4122 <placement x="%indent%" y="%row5_y%"/>
4123 <text>%tw_file%</text>
4124 </text>
4125
4126 <checkbox>
4127 <placement x="%indent%" y="%row7_y%"/>
4128 <text>{@repack_backup_first=Back up existing image first}</text>
4129 <data variable="tw_repack_backup_first"/>
4130 </checkbox>
4131
4132 <button style="main_button_half_height">
4133 <placement x="%indent%" y="%row16_y%"/>
4134 <text>{@install_cancel=Do not Install}</text>
4135 <action function="page">repackselect</action>
4136 </button>
4137
4138 <slider>
4139 <text>{@swipe_to_install=Swipe to Install}</text>
4140 <actions>
4141 <action function="set">tw_back=advanced</action>
4142 <action function="set">tw_action=repackimage</action>
4143 <action function="set">tw_action_param=/boot</action>
4144 <action function="set">tw_action_text1={@installing=Installing...}</action>
4145 <action function="set">tw_action_text2=</action>
4146 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4147 <action function="page">action_page</action>
4148 </actions>
4149 </slider>
4150
4151 <action>
4152 <touch key="back"/>
4153 <action function="page">repackselect</action>
4154 </action>
4155
4156 <action>
4157 <touch key="home"/>
4158 <action function="page">main</action>
4159 </action>
4160 </page>
4161
z31s1g28f0a922015-11-07 18:50:22 +01004162 <page name="lock">
4163 <background color="%semi_transparent%"/>
4164
4165 <image>
4166 <image resource="unlock_icon"/>
4167 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4168 </image>
4169
4170 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004171 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004172 <action function="overlay"/>
4173 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004174
4175 <action>
4176 <touch key="power"/>
4177 <action function="togglebacklight"/>
4178 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004179 </page>
4180
4181 <page name="filemanagerlist">
4182 <template name="page"/>
4183
4184 <text style="text_l">
4185 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004186 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004187 </text>
4188
4189 <text style="text_m">
4190 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004191 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004192 </text>
4193
4194 <template name="sort_options"/>
4195
4196 <fileselector>
4197 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4198 <text>%tw_file_location1%</text>
4199 <filter folders="1" files="1"/>
4200 <path name="tw_file_location1" default="/"/>
4201 <data name="tw_filename1"/>
4202 <selection name="tw_selection1"/>
4203 </fileselector>
4204
4205 <button style="fab">
4206 <image resource="fab_selectfolder"/>
4207 <actions>
4208 <action function="set">tw_filename1=tw_file_location1</action>
4209 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004210 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004211 <action function="page">filemanageroptions</action>
4212 </actions>
4213 </button>
4214
4215 <action>
4216 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004217 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004218 <action function="set">tw_fm_isfolder=0</action>
4219 </actions>
4220 </action>
4221
4222 <action>
4223 <touch key="home"/>
4224 <action function="page">main</action>
4225 </action>
4226
4227 <action>
4228 <touch key="back"/>
4229 <action function="page">advanced</action>
4230 </action>
4231
4232 <action>
4233 <condition var1="tw_filename1" op="modified"/>
4234 <action function="page">filemanageroptions</action>
4235 </action>
4236 </page>
4237
4238 <page name="filemanageroptions">
4239 <template name="page"/>
4240
4241 <text style="text_l">
4242 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004243 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004244 </text>
4245
4246 <text style="text_m">
4247 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004248 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004249 </text>
4250
4251 <text style="text_m_accent">
4252 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004253 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004254 </text>
4255
4256 <text style="text_m">
4257 <placement x="%indent%" y="%row3_y%"/>
4258 <text>%tw_filename1%</text>
4259 </text>
4260
4261 <button style="main_button_half_height">
4262 <condition var1="tw_fm_isfolder" var2="0"/>
4263 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004264 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004265 <actions>
4266 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004267 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004268 <action function="page">choosedestinationfolder</action>
4269 </actions>
4270 </button>
4271
4272 <button style="main_button_half_height">
4273 <condition var1="tw_fm_isfolder" var2="1"/>
4274 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004275 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004276 <actions>
4277 <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 -05004278 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004279 <action function="page">choosedestinationfolder</action>
4280 </actions>
4281 </button>
4282
4283 <button style="main_button_half_height">
4284 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004285 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004286 <actions>
4287 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004288 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004289 <action function="page">choosedestinationfolder</action>
4290 </actions>
4291 </button>
4292
4293 <button style="main_button_half_height">
4294 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004295 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004296 <actions>
4297 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004298 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004299 <action function="set">tw_fm_text2=</action>
4300 <action function="set">tw_fm_text3=</action>
4301 <action function="set">tw_include_text3=0</action>
4302 <action function="set">tw_back=filemanageroptions</action>
4303 <action function="page">filemanagerconfirm</action>
4304 </actions>
4305 </button>
4306
4307 <button style="main_button_half_height">
4308 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004309 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004310 <actions>
4311 <action function="set">tw_filemanager_rename=0000</action>
4312 <action function="set">tw_fm_text2=</action>
4313 <action function="set">tw_fm_text3=</action>
4314 <action function="set">tw_include_text3=0</action>
4315 <action function="set">tw_back=filemanageroptions</action>
4316 <action function="page">filemanagerchmod</action>
4317 </actions>
4318 </button>
4319
4320 <button style="main_button_half_height">
4321 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004322 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004323 <actions>
4324 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004325 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004326 <action function="set">tw_fm_text2=</action>
4327 <action function="set">tw_fm_text3=</action>
4328 <action function="set">tw_include_text3=0</action>
4329 <action function="set">tw_back=filemanageroptions</action>
4330 <action function="page">filemanagerconfirm</action>
4331 </actions>
4332 </button>
4333
4334 <button style="main_button_half_height">
4335 <condition var1="tw_fm_isfolder" var2="0"/>
4336 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004337 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004338 <actions>
4339 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004340 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004341 <action function="set">tw_filemanager_command=mv</action>
4342 <action function="page">filemanagerrenamefile</action>
4343 </actions>
4344 </button>
4345
4346 <button style="main_button_half_height">
4347 <condition var1="tw_fm_isfolder" var2="1"/>
4348 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004349 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004350 <actions>
4351 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004352 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004353 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4354 <action function="page">filemanagerrenamefolder</action>
4355 </actions>
4356 </button>
4357
4358 <action>
4359 <touch key="home"/>
4360 <action function="page">main</action>
4361 </action>
4362
4363 <action>
4364 <touch key="back"/>
4365 <action function="page">filemanagerlist</action>
4366 </action>
4367 </page>
4368
4369 <page name="choosedestinationfolder">
4370 <template name="page"/>
4371
4372 <text style="text_l">
4373 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004374 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004375 </text>
4376
4377 <text style="text_m">
4378 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004379 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004380 </text>
4381
4382 <template name="sort_options"/>
4383
4384 <fileselector>
4385 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4386 <text>%tw_file_location2%</text>
4387 <filter folders="1" files="0"/>
4388 <path name="tw_file_location2" default="/"/>
4389 <data name="tw_filename2"/>
4390 <selection name="tw_selection2"/>
4391 </fileselector>
4392
4393 <button style="fab">
4394 <image resource="fab_selectfolder"/>
4395 <actions>
4396 <action function="set">tw_fm_text2=to</action>
4397 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4398 <action function="set">tw_include_text3=1</action>
4399 <action function="set">tw_back=filemanageroptions</action>
4400 <action function="page">filemanagerconfirm</action>
4401 </actions>
4402 </button>
4403
4404 <action>
4405 <touch key="home"/>
4406 <action function="page">main</action>
4407 </action>
4408
4409 <action>
4410 <touch key="back"/>
4411 <action function="page">filemanageroptions</action>
4412 </action>
4413 </page>
4414
4415 <page name="filemanagerrenamefile">
4416 <template name="page"/>
4417
4418 <text style="text_l">
4419 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004420 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004421 </text>
4422
4423 <text style="text_m">
4424 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004425 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004426 </text>
4427
4428 <text style="text_m_accent">
4429 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004430 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004431 </text>
4432
4433 <input>
4434 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4435 <text>%tw_filemanager_rename%</text>
4436 <data name="tw_filemanager_rename"/>
4437 <restrict minlen="1" maxlen="128"/>
4438 <actions>
4439 <action function="set">tw_fm_text2=to</action>
4440 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4441 <action function="set">tw_include_text3=1</action>
4442 <action function="set">tw_back=filemanageroptions</action>
4443 <action function="page">filemanagerconfirm</action>
4444 </actions>
4445 </input>
4446
4447 <fill color="%accent_color%">
4448 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4449 </fill>
4450
4451 <button style="main_button_half_height">
4452 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004453 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004454 <action function="page">filemanageroptions</action>
4455 </button>
4456
4457 <template name="keyboardtemplate"/>
4458
4459 <action>
4460 <touch key="home"/>
4461 <action function="page">main</action>
4462 </action>
4463
4464 <action>
4465 <touch key="back"/>
4466 <action function="page">filemanageroptions</action>
4467 </action>
4468 </page>
4469
4470 <page name="filemanagerrenamefolder">
4471 <template name="page"/>
4472
4473 <text style="text_l">
4474 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004475 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004476 </text>
4477
4478 <text style="text_m">
4479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004480 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004481 </text>
4482
4483 <text style="text_m_accent">
4484 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004485 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004486 </text>
4487
4488 <input>
4489 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4490 <text>%tw_filemanager_rename%</text>
4491 <data name="tw_filemanager_rename"/>
4492 <restrict minlen="1" maxlen="128"/>
4493 <actions>
4494 <action function="set">tw_fm_text2=to</action>
4495 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4496 <action function="set">tw_include_text3=1</action>
4497 <action function="set">tw_back=filemanageroptions</action>
4498 <action function="page">filemanagerconfirm</action>
4499 </actions>
4500 </input>
4501
4502 <fill color="%accent_color%">
4503 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4504 </fill>
4505
4506 <button style="main_button_half_height">
4507 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004508 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004509 <action function="page">filemanageroptions</action>
4510 </button>
4511
4512 <template name="keyboardtemplate"/>
4513
4514 <action>
4515 <touch key="home"/>
4516 <action function="page">main</action>
4517 </action>
4518
4519 <action>
4520 <touch key="back"/>
4521 <action function="page">filemanageroptions</action>
4522 </action>
4523 </page>
4524
4525 <page name="filemanagerchmod">
4526 <template name="page"/>
4527
4528 <text style="text_l">
4529 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004530 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004531 </text>
4532
4533 <text style="text_m">
4534 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004535 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004536 </text>
4537
4538 <text style="text_m_accent">
4539 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004540 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004541 </text>
4542
4543 <input>
4544 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4545 <text>%tw_filemanager_rename%</text>
4546 <data name="tw_filemanager_rename"/>
4547 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4548 <actions>
4549 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4550 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4551 <action function="set">tw_back=filemanageroptions</action>
4552 <action function="page">filemanagerconfirm</action>
4553 </actions>
4554 </input>
4555
4556 <fill color="%accent_color%">
4557 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4558 </fill>
4559
4560 <button style="main_button_half_height">
4561 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 <action function="page">filemanageroptions</action>
4564 </button>
4565
4566 <template name="keyboardtemplate"/>
4567
4568 <action>
4569 <touch key="home"/>
4570 <action function="page">main</action>
4571 </action>
4572
4573 <action>
4574 <touch key="back"/>
4575 <action function="page">filemanageroptions</action>
4576 </action>
4577 </page>
4578
4579 <page name="filemanagerconfirm">
4580 <template name="page"/>
4581
4582 <text style="text_l">
4583 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004584 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004585 </text>
4586
4587 <text style="text_m">
4588 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004589 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004590 </text>
4591
4592 <text style="text_m_accent">
4593 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4594 <text>%tw_fm_text1%</text>
4595 </text>
4596
4597 <text style="text_m">
4598 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4599 <text>%tw_filename1%</text>
4600 </text>
4601
4602 <text style="text_m_accent">
4603 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4604 <text>%tw_fm_text2%</text>
4605 </text>
4606
4607 <text style="text_m">
4608 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4609 <text>%tw_fm_text3%</text>
4610 </text>
4611
4612 <text style="text_m">
4613 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004615 </text>
4616
4617 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004618 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004619 <action function="page">filemanageraction</action>
4620 </slider>
4621
4622 <action>
4623 <touch key="back"/>
4624 <action function="page">%tw_back%</action>
4625 </action>
4626
4627 <action>
4628 <touch key="home"/>
4629 <action function="page">main</action>
4630 </action>
4631 </page>
4632
4633 <page name="filemanageraction">
4634 <template name="page"/>
4635
4636 <text style="text_l">
4637 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004638 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004639 </text>
4640
4641 <text style="text_m">
4642 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4643 <text>%tw_fm_text1%</text>
4644 </text>
4645
4646 <template name="console"/>
4647
4648 <template name="progress_bar"/>
4649
4650 <action>
4651 <conditions>
4652 <condition var1="tw_operation_state" var2="1"/>
4653 <condition var1="tw_operation_status" var2="0"/>
4654 </conditions>
4655 <actions>
4656 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004657 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004658 <action function="page">action_complete</action>
4659 </actions>
4660 </action>
4661
4662 <action>
4663 <conditions>
4664 <condition var1="tw_operation_state" var2="1"/>
4665 <condition var1="tw_operation_status" op="!=" var2="0"/>
4666 </conditions>
4667 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004668 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004669 <action function="page">action_complete</action>
4670 </actions>
4671 </action>
4672
4673 <action>
4674 <condition var1="tw_include_text3" var2="0"/>
4675 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4676 </action>
4677
4678 <action>
4679 <condition var1="tw_include_text3" var2="1"/>
4680 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4681 </action>
4682 </page>
4683
4684 <page name="decrypt">
4685 <template name="page"/>
4686
4687 <action>
4688 <condition var1="tw_crypto_pwtype" var2="2"/>
4689 <action function="page">decrypt_pattern</action>
4690 </action>
4691
4692 <text style="text_l">
4693 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004694 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004695 </text>
4696
4697 <text style="text_m">
4698 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004699 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004700 </text>
4701
4702 <text style="text_m_accent">
4703 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004704 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004705 </text>
4706
4707 <input>
4708 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4709 <text>%tw_crypto_display%</text>
4710 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4711 <restrict minlen="1" maxlen="254"/>
4712 <action function="page">trydecrypt</action>
4713 </input>
4714
4715 <fill color="%accent_color%">
4716 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4717 </fill>
4718
4719 <fill color="%text_fail_color%">
4720 <condition var1="tw_password_fail" var2="1"/>
4721 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4722 </fill>
4723
4724 <text style="text_m_fail">
4725 <condition var1="tw_password_fail" var2="1"/>
4726 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004727 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004728 </text>
4729
4730 <button style="main_button_half_height">
4731 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004732 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004733 <actions>
4734 <action function="set">tw_page_done=1</action>
4735 <action function="page">main</action>
4736 </actions>
4737 </button>
4738
z31s1g608d7ff2016-01-18 19:47:25 +01004739 <button style="main_button_half_height">
4740 <placement x="%center_x%" y="%row10_y%"/>
4741 <text>{@sel_lang_btn=Select Language}</text>
4742 <action function="overlay">select_language</action>
4743 </button>
4744
z31s1g28f0a922015-11-07 18:50:22 +01004745 <template name="keyboardtemplate"/>
4746 </page>
4747
4748 <page name="decrypt_pattern">
4749 <template name="page"/>
4750
4751 <text style="text_l">
4752 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004753 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004754 </text>
4755
4756 <text style="text_m">
4757 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004758 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004759 </text>
4760
4761 <text style="text_m_accent">
4762 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004763 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004764 </text>
4765
Aleksa Saraib25a1832015-12-31 17:36:00 +01004766 <text style="text_m_fail">
4767 <condition var1="tw_password_fail" var2="1"/>
4768 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004769 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004770 </text>
4771
z31s1g28f0a922015-11-07 18:50:22 +01004772 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004773 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004774 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4775 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4776 <data name="tw_crypto_password"/>
4777 <action function="page">trydecrypt</action>
4778 </patternpassword>
4779
Aleksa Saraib25a1832015-12-31 17:36:00 +01004780 <button style="button_quarter_width">
4781 <placement x="%indent%" y="%row19a_y%"/>
4782 <text>3x3</text>
4783 <action function="set">tw_gui_pattern_grid_size=3</action>
4784 </button>
4785
4786 <button style="button_quarter_width">
4787 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4788 <text>4x4</text>
4789 <action function="set">tw_gui_pattern_grid_size=4</action>
4790 </button>
4791
4792 <button style="button_quarter_width">
4793 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4794 <text>5x5</text>
4795 <action function="set">tw_gui_pattern_grid_size=5</action>
4796 </button>
4797
4798 <button style="button_quarter_width">
4799 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4800 <text>6x6</text>
4801 <action function="set">tw_gui_pattern_grid_size=6</action>
4802 </button>
4803
z31s1g28f0a922015-11-07 18:50:22 +01004804 <button style="main_button_half_height">
4805 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004806 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004807 <actions>
4808 <action function="set">tw_page_done=1</action>
4809 <action function="page">main</action>
4810 </actions>
4811 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004812
4813 <button style="main_button_half_height">
4814 <placement x="%center_x%" y="%row21a_y%"/>
4815 <text>{@sel_lang_btn=Select Language}</text>
4816 <action function="overlay">select_language</action>
4817 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004818 </page>
4819
4820 <page name="trydecrypt">
4821 <template name="page"/>
4822
4823 <text style="text_l">
4824 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004825 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004826 </text>
4827
4828 <text style="text_m">
4829 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004830 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004831 </text>
4832
4833 <template name="console"/>
4834
4835 <template name="progress_bar"/>
4836
4837 <action>
4838 <action function="decrypt"/>
4839 </action>
4840
4841 <action>
4842 <conditions>
4843 <condition var1="tw_operation_state" var2="1"/>
4844 <condition var1="tw_operation_status" op="!=" var2="0"/>
4845 </conditions>
4846 <actions>
4847 <action function="set">tw_password_fail=1</action>
4848 <action function="page">decrypt</action>
4849 </actions>
4850 </action>
4851
4852 <action>
4853 <conditions>
4854 <condition var1="tw_operation_state" var2="1"/>
4855 <condition var1="tw_operation_status" op="=" var2="0"/>
4856 </conditions>
4857 <actions>
4858 <action function="set">tw_page_done=1</action>
4859 <action function="page">main</action>
4860 </actions>
4861 </action>
4862 </page>
4863
z31s1g28f0a922015-11-07 18:50:22 +01004864 <page name="terminalcommand">
4865 <template name="page"/>
4866
z31s1g56189522016-01-13 19:12:40 +01004867 <fill color="%background_color%">
4868 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004869 </fill>
4870
z31s1g56189522016-01-13 19:12:40 +01004871 <terminal>
4872 <condition var1="tw_hide_kb" var2="0"/>
4873 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4874 </terminal>
4875
4876 <terminal>
4877 <condition var1="tw_hide_kb" var2="1"/>
4878 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4879 </terminal>
4880
4881 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004882
4883 <template name="keyboardtemplate"/>
4884
z31s1g608d7ff2016-01-18 19:47:25 +01004885 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004886 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004887 </fill>
z31s1g56189522016-01-13 19:12:40 +01004888
z31s1g608d7ff2016-01-18 19:47:25 +01004889 <button>
z31s1g56189522016-01-13 19:12:40 +01004890 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4891 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4892 <image resource="back" />
4893 <condition var1="tw_busy" var2="0" />
4894 <actions>
4895 <action function="set">tw_hide_kb=0</action>
4896 <action function="key">back</action>
4897 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004898 </button>
z31s1g56189522016-01-13 19:12:40 +01004899
z31s1g608d7ff2016-01-18 19:47:25 +01004900 <button>
z31s1g56189522016-01-13 19:12:40 +01004901 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4902 <condition var1="tw_hide_kb" op="=" var2="0" />
4903 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4904 <image resource="kb_hide" />
4905 <condition var1="tw_busy" var2="0" />
4906 <actions>
4907 <action function="set">tw_hide_kb=1</action>
4908 <action function="page">terminalcommand</action>
4909 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004910 </button>
z31s1g56189522016-01-13 19:12:40 +01004911
z31s1g608d7ff2016-01-18 19:47:25 +01004912 <button>
z31s1g56189522016-01-13 19:12:40 +01004913 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4914 <condition var1="tw_hide_kb" op="=" var2="1" />
4915 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4916 <image resource="kb_show" />
4917 <condition var1="tw_busy" var2="0" />
4918 <actions>
4919 <action function="set">tw_hide_kb=0</action>
4920 <action function="page">terminalcommand</action>
4921 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004922 </button>
z31s1g56189522016-01-13 19:12:40 +01004923
z31s1g608d7ff2016-01-18 19:47:25 +01004924 <button>
z31s1g56189522016-01-13 19:12:40 +01004925 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4926 <image resource="home" />
4927 <condition var1="tw_busy" var2="0" />
4928 <actions>
4929 <action function="set">tw_hide_kb=0</action>
4930 <action function="key">home</action>
4931 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004932 </button>
z31s1g56189522016-01-13 19:12:40 +01004933
z31s1g608d7ff2016-01-18 19:47:25 +01004934 <button>
z31s1g56189522016-01-13 19:12:40 +01004935 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4936 <condition var1="tw_hide_kb" op="=" var2="0" />
4937 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4938 <image resource="kb_hide" />
4939 <condition var1="tw_busy" var2="0" />
4940 <actions>
4941 <action function="set">tw_hide_kb=1</action>
4942 <action function="page">terminalcommand</action>
4943 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004944 </button>
z31s1g56189522016-01-13 19:12:40 +01004945
z31s1g608d7ff2016-01-18 19:47:25 +01004946 <button>
z31s1g56189522016-01-13 19:12:40 +01004947 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4948 <condition var1="tw_hide_kb" op="=" var2="1" />
4949 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4950 <image resource="kb_show" />
4951 <condition var1="tw_busy" var2="0" />
4952 <actions>
4953 <action function="set">tw_hide_kb=0</action>
4954 <action function="page">terminalcommand</action>
4955 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004956 </button>
z31s1g56189522016-01-13 19:12:40 +01004957
z31s1g608d7ff2016-01-18 19:47:25 +01004958 <button>
z31s1g56189522016-01-13 19:12:40 +01004959 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4960 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4961 <image resource="back" />
4962 <condition var1="tw_busy" var2="0" />
4963 <actions>
4964 <action function="set">tw_hide_kb=0</action>
4965 <action function="key">back</action>
4966 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004967 </button>
z31s1g56189522016-01-13 19:12:40 +01004968
z31s1g28f0a922015-11-07 18:50:22 +01004969 <action>
4970 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004971 <actions>
4972 <action function="set">tw_hide_kb=0</action>
4973 <action function="page">main</action>
4974 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004975 </action>
4976
4977 <action>
4978 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004979 <actions>
4980 <action function="set">tw_hide_kb=0</action>
4981 <action function="page">advanced</action>
4982 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004983 </action>
z31s1g56189522016-01-13 19:12:40 +01004984
z31s1g608d7ff2016-01-18 19:47:25 +01004985 <action>
z31s1g56189522016-01-13 19:12:40 +01004986 <touch key="power+voldown" />
4987 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004988 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004989 </page>
4990
bigbiffdf8436b2020-08-30 16:22:34 -04004991 <page name="fastboot">
4992 <template name="page"/>
4993
4994 <text style="text_l">
4995 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4996 <text>{@fastboot_button=Fastboot}</text>
4997 </text>
4998
4999 <template name="console"/>
5000
5001 <template name="progress_bar"/>
5002
5003 <button style="main_button_half_height">
5004 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5005 <placement x="%indent%" y="%row21a_y%"/>
5006 <text>{@enable_adb=Enable ADB}</text>
5007 <actions>
5008 <action function="enableadb"/>
5009 <action function="set">tw_enable_adb=1</action>
5010 <action function="set">tw_enable_fastboot=0</action>
5011 </actions>
5012 </button>
5013
5014 <button style="main_button_half_height">
5015 <condition var1="tw_enable_adb" op="=" var2="1" />
5016 <placement x="%indent%" y="%row21a_y%"/>
5017 <text>{@enable_fastboot=Enable Fastboot}</text>
5018 <actions>
5019 <action function="enablefastboot"/>
5020 <action function="set">tw_enable_fastboot=1</action>
5021 <action function="set">tw_enable_adb=0</action>
5022 </actions>
5023 </button>
5024
5025 <button style="main_button_half_height">
5026 <placement x="%center_x%" y="%row21a_y%"/>
5027 <text>{@reboot_btn=Reboot}</text>
5028 <action function="page">fastbootreboot</action>
5029 </button>
5030 </page>
5031
z31s1g28f0a922015-11-07 18:50:22 +01005032 <page name="sideload">
5033 <template name="page"/>
5034
5035 <text style="text_l">
5036 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005037 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005038 </text>
5039
5040 <text style="text_m">
5041 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005042 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005043 </text>
5044
5045 <checkbox>
5046 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005047 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005048 <data variable="tw_wipe_dalvik"/>
5049 </checkbox>
5050
5051 <checkbox>
5052 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005053 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005054 <data variable="tw_wipe_cache"/>
5055 </checkbox>
5056
5057 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005058 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005059 <actions>
5060 <action function="set">tw_back=advanced</action>
5061 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005062 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5063 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5064 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005065 <action function="set">tw_has_cancel=1</action>
5066 <action function="set">tw_show_reboot=1</action>
5067 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5068 <action function="page">action_page</action>
5069 </actions>
5070 </slider>
5071
5072 <action>
5073 <touch key="home"/>
5074 <action function="page">main</action>
5075 </action>
5076
5077 <action>
5078 <touch key="back"/>
5079 <action function="page">advanced</action>
5080 </action>
5081 </page>
5082
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005083 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005084 <template name="page"/>
5085
5086 <text style="text_l">
5087 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005088 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005089 </text>
5090
5091 <text style="text_m">
5092 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005093 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005094 </text>
5095
5096 <text style="text_m_accent">
5097 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005098 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005099 </text>
5100
z31s1g28f0a922015-11-07 18:50:22 +01005101 <text style="text_m_fail">
5102 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005103 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005104 </text>
5105
5106 <text style="text_m_fail">
5107 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005108 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005109 </text>
5110
5111 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005112 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005113 <actions>
5114 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005115 <action function="set">tw_action=fixcontexts</action>
5116 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5117 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005118 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005119 <action function="set">tw_show_reboot=1</action>
5120 <action function="page">action_page</action>
5121 </actions>
5122 </slider>
5123
5124 <action>
5125 <touch key="home"/>
5126 <action function="page">main</action>
5127 </action>
5128
5129 <action>
5130 <touch key="back"/>
5131 <action function="page">advanced</action>
5132 </action>
5133 </page>
5134
z31s1g28f0a922015-11-07 18:50:22 +01005135 <page name="slideout">
5136 <fill color="%background_color%">
5137 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5138 </fill>
5139
5140 <console>
5141 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5142 </console>
5143
5144 <button>
5145 <fill color="%transparent%"/>
5146 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5147 <action function="overlay"/>
5148 </button>
5149
5150 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005151 <touch key="power"/>
5152 <action function="togglebacklight"/>
5153 </action>
5154
5155 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005156 <touch key="power+voldown"/>
5157 <action function="screenshot"/>
5158 </action>
5159 </page>
5160
5161 <page name="select_storage">
5162 <fill color="%semi_transparent%">
5163 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5164 </fill>
5165
5166 <fill color="%background_color%">
5167 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5168 </fill>
5169
5170 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005171 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005172 <data name="tw_storage_path"/>
5173 <listtype name="storage"/>
5174 </partitionlist>
5175
5176 <button style="button_third_width">
5177 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005178 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005179 <actions>
5180 <action function="set">tw_clear_destination=%tw_back%</action>
5181 <action function="overlay"/>
5182 <action function="page">clear_vars</action>
5183 </actions>
5184 </button>
5185
5186 <fill color="#000000">
5187 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5188 </fill>
5189
5190 <button>
5191 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5192 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5193 <image resource="back"/>
5194 <condition var1="tw_busy" var2="0"/>
5195 <actions>
5196 <action function="overlay"/>
5197 <action function="key">%tw_back%</action>
5198 </actions>
5199 </button>
5200
5201 <button>
5202 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5203 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5204 <image resource="console"/>
5205 <condition var1="tw_busy" var2="0"/>
5206 <action function="overlay">slideout</action>
5207 </button>
5208
5209 <button>
5210 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5211 <image resource="home"/>
5212 <condition var1="tw_busy" var2="0"/>
5213 <actions>
5214 <action function="overlay"/>
5215 <action function="key">home</action>
5216 </actions>
5217 </button>
5218
5219 <button>
5220 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5221 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5222 <image resource="console"/>
5223 <condition var1="tw_busy" var2="0"/>
5224 <action function="overlay">slideout</action>
5225 </button>
5226
5227 <button>
5228 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5229 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5230 <image resource="back"/>
5231 <condition var1="tw_busy" var2="0"/>
5232 <actions>
5233 <action function="overlay"/>
5234 <action function="key">%tw_back%</action>
5235 </actions>
5236 </button>
5237
5238 <action>
5239 <touch key="power+voldown"/>
5240 <action function="screenshot"/>
5241 </action>
5242 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005243
5244 <page name="select_language">
5245 <fill color="%semi_transparent%">
5246 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5247 </fill>
5248
5249 <fill color="%background_color%">
5250 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5251 </fill>
5252
5253 <listbox>
5254 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5255 <text>{@select_language=Select Language:}</text>
5256 <icon selected="radio_true" unselected="radio_false" />
5257 <data name="tw_language" />
5258 </listbox>
5259
5260 <button style="button_third_width">
5261 <placement x="%dialog_button_x%" y="%row14_y%"/>
5262 <text>{@ok_btn=OK}</text>
5263 <actions>
5264 <action function="overlay"/>
5265 <action function="setlanguage"></action>
5266 </actions>
5267 </button>
5268
5269 <fill color="#000000">
5270 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5271 </fill>
5272
5273 <button>
5274 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5275 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5276 <image resource="back"/>
5277 <condition var1="tw_busy" var2="0"/>
5278 <actions>
5279 <action function="overlay"/>
5280 <action function="key">%tw_back%</action>
5281 </actions>
5282 </button>
5283
5284 <button>
5285 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5286 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5287 <image resource="console"/>
5288 <condition var1="tw_busy" var2="0"/>
5289 <action function="overlay">slideout</action>
5290 </button>
5291
5292 <button>
5293 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5294 <image resource="home"/>
5295 <condition var1="tw_busy" var2="0"/>
5296 <actions>
5297 <action function="overlay"/>
5298 <action function="key">home</action>
5299 </actions>
5300 </button>
5301
5302 <button>
5303 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5304 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5305 <image resource="console"/>
5306 <condition var1="tw_busy" var2="0"/>
5307 <action function="overlay">slideout</action>
5308 </button>
5309
5310 <button>
5311 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5312 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5313 <image resource="back"/>
5314 <condition var1="tw_busy" var2="0"/>
5315 <actions>
5316 <action function="overlay"/>
5317 <action function="key">%tw_back%</action>
5318 </actions>
5319 </button>
5320
5321 <action>
5322 <touch key="power+voldown"/>
5323 <action function="screenshot"/>
5324 </action>
5325 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005326 </pages>
5327</recovery>