blob: 64b8776d00cda33a9fb827f0cc0a8b015556b637 [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>
270 <filter extn=".zip" folders="1" files="1"/>
271 <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">
1016 <condition var1="tw_has_data_media" var2="1"/>
1017 <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">
2644 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2645 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 <image resource="checkbox_false"/>
2648 <action function="mountsystemtoggle">1</action>
2649 </button>
2650
2651 <button style="checkbox">
2652 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2653 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002654 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002655 <image resource="checkbox_true"/>
2656 <actions>
2657 <action function="set">tw_lifetime_writes=2</action>
2658 <action function="page">system_readonly_check</action>
2659 </actions>
2660 </button>
2661
2662 <button style="main_button_half_height">
2663 <condition var1="tw_has_usb_storage" var2="1"/>
2664 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002665 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002666 <action function="page">usb_mount</action>
2667 </button>
2668
2669 <button style="main_button_half_height">
2670 <conditions>
2671 <condition var1="tw_is_encrypted" var2="1"/>
2672 <condition var1="tw_is_decrypted" var2="0"/>
2673 </conditions>
2674 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002675 <text>{@decrypt_data_btn=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002676 <action function="page">decrypt</action>
2677 </button>
2678
2679 <button style="main_button_half_height">
2680 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002681 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002682 <actions>
2683 <action function="set">tw_back=mount</action>
2684 <action function="overlay">select_storage</action>
2685 </actions>
2686 </button>
2687
2688 <button style="main_button_half_height">
2689 <conditions>
2690 <condition var1="tw_has_mtp" var2="1"/>
2691 <condition var1="tw_mtp_enabled" var2="0"/>
2692 </conditions>
2693 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002694 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002695 <action function="startmtp"/>
2696 </button>
2697
2698 <button style="main_button_half_height">
2699 <conditions>
2700 <condition var1="tw_has_mtp" var2="1"/>
2701 <condition var1="tw_mtp_enabled" var2="1"/>
2702 </conditions>
2703 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002704 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002705 <action function="stopmtp"/>
2706 </button>
2707
2708 <action>
2709 <touch key="home"/>
2710 <action function="page">main</action>
2711 </action>
2712
2713 <action>
2714 <touch key="back"/>
2715 <action function="page">main</action>
2716 </action>
2717 </page>
2718
2719 <page name="usb_mount">
2720 <template name="page"/>
2721
2722 <text style="text_l">
2723 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002724 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002725 </text>
2726
2727 <text style="text_m">
2728 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002729 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002730 </text>
2731
2732 <text style="text_m_accent">
2733 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002734 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002735 </text>
2736
2737 <text style="text_m">
2738 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002739 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002740 </text>
2741
2742 <text style="text_m">
2743 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002744 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002745 </text>
2746
2747 <button style="main_button_half_height">
2748 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002749 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002750 <action function="page">usb_umount</action>
2751 </button>
2752
2753 <action>
2754 <action function="mount">usb</action>
2755 <action function="set">tw_busy=1</action>
2756 </action>
2757 </page>
2758
2759 <page name="usb_umount">
2760 <action>
2761 <action function="unmount">usb</action>
2762 </action>
2763
2764 <action>
2765 <action function="page">mount</action>
2766 <action function="set">tw_busy=0</action>
2767 </action>
2768 </page>
2769
2770 <page name="system_readonly_check">
2771 <action>
2772 <action function="checkpartitionlifetimewrites">/system</action>
2773 </action>
2774
2775 <action>
2776 <condition var1="tw_lifetime_writes" var2="1"/>
2777 <actions>
2778 <action function="mountsystemtoggle">0</action>
2779 <action function="page">mount</action>
2780 </actions>
2781 </action>
2782
2783 <action>
2784 <condition var1="tw_lifetime_writes" var2="0"/>
2785 <actions>
2786 <action function="set">tw_back=mount</action>
2787 <action function="page">system_readonly</action>
2788 </actions>
2789 </action>
2790 </page>
2791
2792 <page name="reboot">
2793 <template name="page"/>
2794
2795 <text style="text_l">
2796 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002797 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002798 </text>
2799
2800 <button style="main_button">
2801 <condition var1="tw_reboot_system" var2="1"/>
2802 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 <actions>
2805 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05002806 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01002807 </actions>
2808 </button>
2809
2810 <button style="main_button">
2811 <condition var1="tw_reboot_poweroff" var2="1"/>
2812 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002813 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002814 <actions>
2815 <action function="set">tw_back=reboot</action>
2816 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002817 <action function="set">tw_action_param=poweroff</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002818 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01002819 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002820 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2821 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2822 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2823 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2824 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002825 <action function="page">rebootcheck</action>
2826 </actions>
2827 </button>
2828
2829 <button style="main_button">
2830 <condition var1="tw_reboot_recovery" var2="1"/>
2831 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002832 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002833 <actions>
2834 <action function="set">tw_back=reboot</action>
2835 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002836 <action function="set">tw_action_param=recovery</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002837 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01002838 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002839 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2840 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2841 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2842 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2843 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002844 <action function="page">rebootcheck</action>
2845 </actions>
2846 </button>
2847
2848 <button style="main_button">
2849 <condition var1="tw_reboot_bootloader" var2="1"/>
2850 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002851 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002852 <actions>
2853 <action function="set">tw_back=reboot</action>
2854 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002855 <action function="set">tw_action_param=bootloader</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002856 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01002857 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002858 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2859 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2860 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2861 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2862 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002863 <action function="page">rebootcheck</action>
2864 </actions>
2865 </button>
2866
2867 <button style="main_button">
2868 <condition var1="tw_download_mode" var2="1"/>
2869 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002870 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002871 <actions>
2872 <action function="set">tw_back=reboot</action>
2873 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002874 <action function="set">tw_action_param=download</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002875 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01002876 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002877 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2878 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2879 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2880 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2881 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002882 <action function="page">rebootcheck</action>
2883 </actions>
2884 </button>
2885
mauronofrioe9a49ef2018-10-03 13:38:16 +02002886 <button style="main_button">
2887 <condition var1="tw_edl_mode" var2="1"/>
2888 <placement x="%center_x%" y="%row13a_y%"/>
2889 <text>{@rb_edl_btn=Edl}</text>
2890 <actions>
2891 <action function="set">tw_back=reboot</action>
2892 <action function="set">tw_action=reboot</action>
2893 <action function="set">tw_action_param=edl</action>
2894 <action function="set">tw_reboot_param=edl</action>
2895 <action function="set">tw_has_action2=0</action>
2896 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2897 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2898 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2899 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2900 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2901 <action function="page">rebootcheck</action>
2902 </actions>
2903 </button>
2904
Ethan Yonker1b190162016-12-05 15:25:19 -06002905 <text style="text_m">
2906 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01002907 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002908 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2909 </text>
2910
2911 <button style="main_button">
2912 <condition var1="tw_has_boot_slots" var2="1"/>
2913 <placement x="%indent%" y="%row19_y%"/>
2914 <text>{@boot_slot_a=Slot A}</text>
2915 <actions>
2916 <action function="set">tw_back=reboot</action>
2917 <action function="set">tw_action=setbootslot</action>
2918 <action function="set">tw_action_param=A</action>
2919 <action function="set">tw_has_action2=0</action>
2920 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2921 <action function="set">tw_action_text2=</action>
2922 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2923 <action function="page">action_page</action>
2924 </actions>
2925 </button>
2926
2927 <button style="main_button">
2928 <condition var1="tw_has_boot_slots" var2="1"/>
2929 <placement x="%center_x%" y="%row19_y%"/>
2930 <text>{@boot_slot_b=Slot B}</text>
2931 <actions>
2932 <action function="set">tw_back=reboot</action>
2933 <action function="set">tw_action=setbootslot</action>
2934 <action function="set">tw_action_param=B</action>
2935 <action function="set">tw_has_action2=0</action>
2936 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2937 <action function="set">tw_action_text2=</action>
2938 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2939 <action function="page">action_page</action>
2940 </actions>
2941 </button>
2942
z31s1g28f0a922015-11-07 18:50:22 +01002943 <action>
2944 <touch key="home"/>
2945 <action function="page">main</action>
2946 </action>
2947
2948 <action>
2949 <touch key="back"/>
2950 <action function="page">main</action>
2951 </action>
2952 </page>
2953
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002954 <page name="rebootapp">
2955 <template name="page"/>
2956
2957 <text style="text_l">
2958 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2959 <text>{@reboot_hdr=Reboot}</text>
2960 </text>
2961
2962 <text style="text_m">
2963 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2964 <text>{@reboot_install_app_hdr=Install TWRP App?}</text>
2965 </text>
2966
2967 <text style="text_m_accent">
2968 <placement x="%center_x%" y="%row2_y%" placement="5"/>
2969 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
2970 </text>
2971
2972 <text style="text_m_accent">
2973 <placement x="%center_x%" y="%row3_y%" placement="5"/>
2974 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
2975 </text>
2976
2977 <checkbox>
2978 <placement x="%indent%" y="%row5_y%"/>
2979 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
2980 <data variable="tw_app_prompt"/>
2981 </checkbox>
2982
2983 <checkbox>
2984 <condition var1="tw_mount_system_ro" var2="0"/>
2985 <placement x="%indent%" y="%row7_y%"/>
2986 <text>{@reboot_install_app_system=Install as a System App}</text>
2987 <data variable="tw_app_install_system"/>
2988 </checkbox>
2989
2990 <button style="main_button_half_height">
2991 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05002992 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002993 <action function="reboot">%tw_reboot_param%</action>
2994 </button>
2995
2996 <slider>
2997 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
2998 <actions>
2999 <action function="set">tw_back=reboot</action>
3000 <action function="set">tw_action=installapp</action>
3001 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3002 <action function="set">tw_action_text2=</action>
3003 <action function="set">tw_has_action2=1</action>
3004 <action function="set">tw_action2=reboot</action>
3005 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3006 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3007 <action function="page">action_page</action>
3008 </actions>
3009 </slider>
3010
3011 <action>
3012 <touch key="home"/>
3013 <actions>
3014 <action function="set">tw_app_install_status=0</action>
3015 <action function="page">main</action>
3016 </actions>
3017 </action>
3018
3019 <action>
3020 <touch key="back"/>
3021 <actions>
3022 <action function="set">tw_app_install_status=0</action>
3023 <action function="page">reboot</action>
3024 </actions>
3025 </action>
3026 </page>
3027
z31s1g28f0a922015-11-07 18:50:22 +01003028 <page name="system_readonly">
3029 <template name="page"/>
3030
3031 <text style="text_l">
3032 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003033 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003034 </text>
3035
3036 <text style="text_m_accent">
3037 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003038 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003039 </text>
3040
3041 <text style="text_m">
3042 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003043 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003044 </text>
3045
3046 <text style="text_m">
3047 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003048 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003049 </text>
3050
3051 <text style="text_m">
3052 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003053 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003054 </text>
3055
3056 <text style="text_m">
3057 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003058 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003059 </text>
3060
3061 <text style="text_m_fail">
3062 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003063 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003064 </text>
3065
3066 <text style="text_m_fail">
3067 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003068 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003069 </text>
3070
3071 <checkbox>
3072 <condition var1="tw_is_encrypted" var2="0"/>
3073 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003074 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003075 <data variable="tw_never_show_system_ro_page"/>
3076 </checkbox>
3077
3078 <button style="main_button_half_height">
3079 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003080 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003081 <actions>
3082 <action function="mountsystemtoggle">1</action>
3083 <action function="set">tw_page_done=1</action>
3084 <action function="page">%tw_back%</action>
3085 </actions>
3086 </button>
3087
z31s1g608d7ff2016-01-18 19:47:25 +01003088 <button style="main_button_half_height">
3089 <placement x="%center_x%" y="%row18a_y%"/>
3090 <text>{@sel_lang_btn=Select Language}</text>
3091 <action function="overlay">select_language</action>
3092 </button>
3093
z31s1g28f0a922015-11-07 18:50:22 +01003094 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003095 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003096 <actions>
3097 <action function="mountsystemtoggle">0</action>
3098 <action function="set">tw_page_done=1</action>
3099 <action function="page">%tw_back%</action>
3100 </actions>
3101 </slider>
3102 </page>
3103
3104 <page name="settings">
3105 <template name="page"/>
3106
3107 <text style="text_l">
3108 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003109 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003110 </text>
3111
3112 <text style="text_m">
3113 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003114 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003115 </text>
3116
3117 <template name="tabs_settings"/>
3118
3119 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003120 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003121 </fill>
3122
3123 <listbox style="scrolllist">
3124 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3125 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003126 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003127 <data variable="tw_signed_zip_verify"/>
3128 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003129 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3130 <data variable="tw_install_reboot"/>
3131 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003132 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003133 <data variable="tw_rm_rf"/>
3134 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003135 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3136 <data variable="tw_disable_free_space"/>
3137 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003138 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3139 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003140 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003141 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3142 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003143 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003144 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003145 <data variable="tw_military_time"/>
3146 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003147 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003148 <data variable="tw_samsung_navbar"/>
3149 </listitem>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003150 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3151 <data variable="tw_app_prompt"/>
3152 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003153 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003154 <data variable="tw_simulate_actions"/>
3155 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003156 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003157 <condition var1="tw_simulate_actions" var2="1"/>
3158 <data variable="tw_simulate_fail"/>
3159 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003160 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3161 <condition var1="tw_no_sha2" var2="0"/>
3162 <data variable="tw_use_sha2"/>
3163 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003164 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3165 <data variable="tw_unmount_system"/>
3166 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003167 </listbox>
3168
3169 <button style="main_button_half_height">
3170 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003171 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003172 <actions>
3173 <action function="set">tw_samsung_navbar=0</action>
3174 <action function="set">tw_tab_icons=0</action>
3175 <action function="restoredefaultsettings"/>
3176 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003177 </button>
3178
3179 <action>
3180 <touch key="home"/>
3181 <action function="page">main</action>
3182 </action>
3183
3184 <action>
3185 <touch key="back"/>
3186 <action function="page">main</action>
3187 </action>
3188 </page>
3189
3190 <page name="settings_timezone">
3191 <template name="page"/>
3192
3193 <text style="text_l">
3194 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003195 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003196 </text>
3197
3198 <text style="text_m">
3199 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003200 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003201 </text>
3202
3203 <template name="tabs_settings"/>
3204
3205 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003206 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003207 </fill>
3208
3209 <listbox>
3210 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003211 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003212 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003213 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3214 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3215 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3216 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3217 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3218 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3219 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3220 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3221 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3222 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3223 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3224 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3225 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3226 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3227 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3228 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3229 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3230 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3231 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3232 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3233 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3234 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3235 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3236 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003237 </listbox>
3238
3239 <text style="text_m_accent">
3240 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003241 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003242 </text>
3243
3244 <button style="button_quarter_width">
3245 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003246 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003247 <action function="set">tw_time_zone_guioffset=0</action>
3248 </button>
3249
3250 <button style="button_quarter_width">
3251 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003252 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003253 <action function="set">tw_time_zone_guioffset=15</action>
3254 </button>
3255
3256 <button style="button_quarter_width">
3257 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003258 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003259 <action function="set">tw_time_zone_guioffset=30</action>
3260 </button>
3261
3262 <button style="button_quarter_width">
3263 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003264 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003265 <action function="set">tw_time_zone_guioffset=45</action>
3266 </button>
3267
3268 <checkbox>
3269 <placement x="%indent%" y="%row18a_y%"/>
3270 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003271 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003272 <data variable="tw_time_zone_guidst"/>
3273 <image checked="checkbox_true" unchecked="checkbox_false"/>
3274 </checkbox>
3275
3276 <text color="%text_color%">
3277 <font resource="font_m"/>
3278 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003279 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003280 </text>
3281
3282 <button>
3283 <highlight color="%highlight_color%"/>
3284 <placement x="%center_x%" y="%row21a_y%"/>
3285 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003286 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003287 <image resource="main_button_half_height"/>
3288 <action function="setguitimezone"/>
3289 </button>
3290
3291 <action>
3292 <touch key="home"/>
3293 <action function="page">main</action>
3294 </action>
3295
3296 <action>
3297 <touch key="back"/>
3298 <action function="page">main</action>
3299 </action>
3300 </page>
3301
3302 <page name="settings_screen">
3303 <template name="page"/>
3304
3305 <text style="text_l">
3306 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003307 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003308 </text>
3309
3310 <text style="text_m">
3311 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003312 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003313 </text>
3314
3315 <template name="tabs_settings"/>
3316
3317 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003318 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003319 </fill>
3320
3321 <button>
3322 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3323 <font resource="font_m" color="%text_color%"/>
3324 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3325 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003326 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003327 <image resource="checkbox_false"/>
3328 <action function="set">tw_screen_timeout_secs=60</action>
3329 </button>
3330
3331 <button>
3332 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3333 <font resource="font_m" color="%text_color%"/>
3334 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3335 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003336 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003337 <image resource="checkbox_true"/>
3338 <action function="set">tw_screen_timeout_secs=0</action>
3339 </button>
3340
3341 <slidervalue>
3342 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3343 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3344 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003345 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003346 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3347 </slidervalue>
3348
3349 <slidervalue>
3350 <condition var1="tw_has_brightnesss_file" var2="1"/>
3351 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003352 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003353 <data variable="tw_brightness_pct" min="10" max="100"/>
3354 <actions>
3355 <action function="set">tw_brightness=%tw_brightness_max%</action>
3356 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3357 <action function="compute">tw_brightness/100</action>
3358 <action function="setbrightness">%tw_brightness%</action>
3359 </actions>
3360 </slidervalue>
3361
3362 <action>
3363 <touch key="home"/>
3364 <action function="page">main</action>
3365 </action>
3366
3367 <action>
3368 <touch key="back"/>
3369 <action function="page">main</action>
3370 </action>
3371 </page>
3372
3373 <page name="settings_vibration">
3374 <template name="page"/>
3375
3376 <text style="text_l">
3377 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003378 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003379 </text>
3380
3381 <text style="text_m">
3382 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003383 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003384 </text>
3385
3386 <template name="tabs_settings"/>
3387
3388 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </fill>
3391
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003392 <text style="text_m">
3393 <condition var1="tw_disable_haptics" var2="1"/>
3394 <placement x="%indent%" y="%row4_y%"/>
3395 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3396 </text>
3397
z31s1g28f0a922015-11-07 18:50:22 +01003398 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003399 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003400 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003402 <data variable="tw_button_vibrate" min="0" max="300"/>
3403 </slidervalue>
3404
3405 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003406 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003407 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003408 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3410 </slidervalue>
3411
3412 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003413 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003414 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003415 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003416 <data variable="tw_action_vibrate" min="0" max="500"/>
3417 </slidervalue>
3418
3419 <action>
3420 <touch key="home"/>
3421 <action function="page">main</action>
3422 </action>
3423
3424 <action>
3425 <touch key="back"/>
3426 <action function="page">main</action>
3427 </action>
3428 </page>
3429
Ethan Yonker74db1572015-10-28 12:44:49 -05003430 <page name="settings_language">
3431 <template name="page"/>
3432
3433 <text style="text_l">
3434 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3435 <text>{@settings_hdr=Settings}</text>
3436 </text>
3437
3438 <text style="text_m">
3439 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3440 <text>{@language_hdr=Language - %tw_language_display%}</text>
3441 </text>
3442
3443 <template name="tabs_settings"/>
3444
3445 <fill color="%text_color%">
3446 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3447 </fill>
3448
3449 <listbox>
3450 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3451 <text>{@select_language=Select Language:}</text>
3452 <icon selected="radio_true" unselected="radio_false" />
3453 <data name="tw_language" />
3454 </listbox>
3455
3456 <button style="main_button_half_height">
3457 <placement x="%center_x%" y="%row21a_y%"/>
3458 <text>{@set_language_btn=Set Language}</text>
3459 <action function="setlanguage"></action>
3460 </button>
3461
3462 <action>
3463 <touch key="home" />
3464 <action function="page">main</action>
3465 </action>
3466
3467 <action>
3468 <touch key="back" />
3469 <action function="page">settings</action>
3470 </action>
3471 </page>
3472
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003473 <page name="copylog">
3474 <template name="page"/>
3475
3476 <text style="text_l">
3477 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3478 <text>{@copying_log=Copy Logs to SD Card}</text>
3479 </text>
3480
3481 <checkbox>
3482 <placement x="%indent%" y="%row4_y%"/>
3483 <text>{@include_kernel_log=Include Kernel Log}</text>
3484 <data variable="tw_include_kernel_log" value="1"/>
3485 </checkbox>
3486
3487 <slider>
3488 <text>{@copying_log=Copy Logs to SD Card}</text>
3489 <actions>
3490 <action function="set">tw_back=advanced</action>
3491 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003492 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3493 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003494 <action function="page">action_page</action>
3495 </actions>
3496 </slider>
3497
3498 <action>
3499 <touch key="home"/>
3500 <action function="page">main</action>
3501 </action>
3502
3503 <action>
3504 <touch key="back"/>
3505 <actions>
3506 <action function="page">advanced</action>
3507 </actions>
3508 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003509 </page>
3510
z31s1g28f0a922015-11-07 18:50:22 +01003511 <page name="advanced">
3512 <template name="page"/>
3513
3514 <text style="text_l">
3515 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003516 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003517 </text>
3518
3519 <button style="main_button">
3520 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003521 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003522 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003523 </button>
3524
3525 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003526 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003527 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003528 <text>{@adb_sideload_btn=ADB Sideload}</text>
3529 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003530 </button>
3531
3532 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003533 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003534 <text>{@terminal_btn=Terminal}</text>
3535 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003536 </button>
3537
3538 <button style="main_button">
3539 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003540 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003541 <action function="page">filemanagerlist</action>
3542 </button>
3543
Ethan Yonker64e0a652018-07-25 09:52:17 -05003544 <listbox style="advanced_listbox">
3545 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
3546 <listitem name="{@reload_theme_btn=Reload Theme}">
3547 <action function="reload"/>
3548 </listitem>
3549 <listitem name="{@part_sd_btn=Partition SD Card}">
3550 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3551 <actions>
3552 <action function="set">partitionlisterror=0</action>
3553 <action function="page">partsdcardsel</action>
3554 </actions>
3555 </listitem>
3556 <listitem name="{@fix_context_btn=Fix Contexts}">
3557 <condition var1="tw_has_data_media" var2="1"/>
3558 <action function="page">fixcontexts</action>
3559 </listitem>
3560 <listitem name="{@dumlock_btn=HTC Dumlock}">
3561 <condition var1="tw_show_dumlock" var2="1"/>
3562 <action function="page">htcdumlock</action>
3563 </listitem>
3564 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3565 <condition var1="tw_has_injecttwrp" var2="1"/>
3566 <actions>
3567 <action function="set">tw_back=advanced</action>
3568 <action function="set">tw_action=reinjecttwrp</action>
3569 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3570 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3571 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3572 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3573 <action function="page">confirm_action</action>
3574 </actions>
3575 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003576 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3577 <conditions>
3578 <condition var1="tw_has_boot_slots" var2="1"/>
3579 <condition var1="tw_has_repack_tools" var2="1"/>
3580 </conditions>
3581 <actions>
3582 <action function="set">tw_repack_kernel=0</action>
3583 <action function="page">repackselect</action>
3584 </actions>
3585 </listitem>
3586 <listitem name="{@install_kernel=Install Kernel}">
3587 <conditions>
3588 <condition var1="tw_has_boot_slots" var2="1"/>
3589 <condition var1="tw_has_repack_tools" var2="1"/>
3590 </conditions>
3591 <actions>
3592 <action function="set">tw_repack_kernel=1</action>
3593 <action function="page">repackselect</action>
3594 </actions>
3595 </listitem>
3596 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3597 <conditions>
3598 <condition var1="tw_has_boot_slots" var2="1"/>
3599 <condition var1="tw_has_repack_tools" var2="1"/>
3600 </conditions>
3601 <actions>
3602 <action function="set">tw_back=advanced</action>
3603 <action function="set">tw_action=fixabrecoverybootloop</action>
3604 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3605 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3606 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3607 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3608 <action function="page">confirm_action</action>
3609 </actions>
3610 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003611 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3612 <condition var1="tw_app_installed_in_system" var2="1"/>
3613 <actions>
3614 <action function="set">tw_back=advanced</action>
3615 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3616 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3617 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3618 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3619 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3620 <action function="page">confirm_action</action>
3621 </actions>
3622 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003623 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003624
3625 <action>
3626 <touch key="home"/>
3627 <action function="page">main</action>
3628 </action>
3629
3630 <action>
3631 <touch key="back"/>
3632 <action function="page">main</action>
3633 </action>
3634 </page>
3635
Ethan Yonker483e9f42016-01-11 22:21:18 -06003636 <page name="partsdcardsel">
3637 <template name="page"/>
3638
3639 <text style="text_l">
3640 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3641 <text>{@advanced_hdr=Advanced}</text>
3642 </text>
3643
3644 <text style="text_m">
3645 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3646 <text>{@part_sd_hdr=Partition SD Card}</text>
3647 </text>
3648
z31s1g782e1c92016-01-30 16:50:09 +01003649 <partitionlist>
3650 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003651 <text>{@sel_storage_list=Select Storage}</text>
3652 <data name="tw_storage_path"/>
3653 <listtype name="storage"/>
3654 </partitionlist>
3655
3656 <text style="text_m_fail">
3657 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003658 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003659 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3660 </text>
3661
z31s1g782e1c92016-01-30 16:50:09 +01003662 <button style="main_button_half_height">
3663 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003664 <text>{@ok_btn=OK}</text>
3665 <actions>
3666 <action function="getpartitiondetails">tw_storage_path</action>
3667 <action function="page">partsdcardcheck</action>
3668 </actions>
3669 </button>
3670
3671 <action>
3672 <touch key="home"/>
3673 <action function="page">main</action>
3674 </action>
3675
3676 <action>
3677 <touch key="back"/>
3678 <action function="page">advanced</action>
3679 </action>
3680 </page>
3681
3682 <page name="partsdcardcheck">
3683 <action>
3684 <condition var1="tw_partition_removable" op="=" var2="1"/>
3685 <actions>
3686 <action function="set">partitionlisterror=0</action>
3687 <action function="page">partsdcard</action>
3688 </actions>
3689 </action>
3690
3691 <action>
3692 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3693 <actions>
3694 <action function="set">partitionlisterror=1</action>
3695 <action function="page">partsdcardsel</action>
3696 </actions>
3697 </action>
3698 </page>
3699
z31s1g28f0a922015-11-07 18:50:22 +01003700 <page name="partsdcard">
3701 <template name="page"/>
3702
3703 <text style="text_l">
3704 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003705 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003706 </text>
3707
3708 <text style="text_m">
3709 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003710 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003711 </text>
3712
3713 <text style="text_m_fail">
3714 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003715 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003716 </text>
3717
3718 <text style="text_m_fail">
3719 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003720 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003721 </text>
3722
3723 <text style="text_m_accent">
3724 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003725 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003726 </text>
3727
3728 <text style="text_m">
3729 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3730 <text>%tw_sdext_size%</text>
3731 </text>
3732
3733 <button style="button_quarter_width">
3734 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003735 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003736 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003737 </button>
3738
3739 <button style="button_quarter_width">
3740 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003741 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003742 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003743 </button>
3744
3745 <text style="text_m_accent">
3746 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003747 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003748 </text>
3749
3750 <text style="text_m">
3751 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3752 <text>%tw_swap_size%</text>
3753 </text>
3754
3755 <button style="button_quarter_width">
3756 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003757 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003758 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003759 </button>
3760
3761 <button style="button_quarter_width">
3762 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003763 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003764 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003765 </button>
3766
3767 <text style="text_m_accent">
3768 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003769 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003770 </text>
3771
3772 <text style="text_m">
3773 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3774 <text>%tw_sdpart_file_system%</text>
3775 </text>
3776
3777 <button style="button_quarter_width">
3778 <placement x="%indent%" y="%row14_y%"/>
3779 <text>EXT3</text>
3780 <action function="set">tw_sdpart_file_system=ext3</action>
3781 </button>
3782
3783 <button style="button_quarter_width">
3784 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3785 <text>EXT4</text>
3786 <action function="set">tw_sdpart_file_system=ext4</action>
3787 </button>
3788
3789 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003790 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003791 <action function="page">partsdcardaction</action>
3792 <actions>
3793 <action function="set">tw_back=partsdcard</action>
3794 <action function="set">tw_action=partitionsd</action>
3795 <action function="set">tw_has_action2=1</action>
3796 <action function="set">tw_action2=set</action>
3797 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003798 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3799 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3800 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003801 <action function="page">action_page</action>
3802 </actions>
3803 </slider>
3804
3805 <action>
3806 <touch key="home"/>
3807 <action function="page">main</action>
3808 </action>
3809
3810 <action>
3811 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003812 <actions>
3813 <action function="set">partitionlisterror=0</action>
3814 <action function="page">partsdcardsel</action>
3815 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003816 </action>
3817 </page>
3818
3819 <page name="htcdumlock">
3820 <template name="page"/>
3821
3822 <text style="text_l">
3823 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003824 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003825 </text>
3826
3827 <text style="text_m">
3828 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003829 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003830 </text>
3831
3832 <button style="main_button_half_height_full_width">
3833 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003834 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003835 <actions>
3836 <action function="set">tw_back=htcdumlock</action>
3837 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003838 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3839 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3840 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3841 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003842 <action function="page">confirm_action</action>
3843 </actions>
3844 </button>
3845
3846 <button style="main_button_half_height_full_width">
3847 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003848 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003849 <actions>
3850 <action function="set">tw_back=htcdumlock</action>
3851 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003852 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3853 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3854 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3855 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003856 <action function="page">confirm_action</action>
3857 </actions>
3858 </button>
3859
3860 <button style="main_button_half_height_full_width">
3861 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003862 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003863 <actions>
3864 <action function="set">tw_back=htcdumlock</action>
3865 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003866 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3867 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3868 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3869 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003870 <action function="page">confirm_action</action>
3871 </actions>
3872 </button>
3873
3874 <action>
3875 <touch key="home"/>
3876 <action function="page">main</action>
3877 </action>
3878
3879 <action>
3880 <touch key="back"/>
3881 <action function="page">advanced</action>
3882 </action>
3883 </page>
3884
Ethan Yonker53796e72019-01-11 22:49:52 -06003885 <page name="repackselect">
3886 <template name="page"/>
3887
3888 <text style="text_l">
3889 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3890 <text>{@repack_image_hdr=Select Image}</text>
3891 </text>
3892
3893 <text style="text_m">
3894 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3895 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3896 </text>
3897
3898 <template name="sort_options"/>
3899
3900 <fileselector>
3901 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3902 <text>%tw_zip_location%</text>
3903 <filter extn=".img" folders="1" files="1"/>
3904 <path name="tw_zip_location" default="/sdcard"/>
3905 <data name="tw_filename"/>
3906 <selection name="tw_file"/>
3907 </fileselector>
3908
3909 <button style="main_button_half_height">
3910 <placement x="%indent%" y="%row21a_y%"/>
3911 <text>{@select_storage_btn=Select Storage}</text>
3912 <actions>
3913 <action function="set">tw_back=repackselect</action>
3914 <action function="overlay">select_storage</action>
3915 </actions>
3916 </button>
3917
3918 <action>
3919 <conditions>
3920 <condition var1="tw_filename" op="modified"/>
3921 </conditions>
3922 <action function="page">repackconfirm</action>
3923 </action>
3924
3925 <action>
3926 <touch key="back"/>
3927 <action function="page">advanced</action>
3928 </action>
3929
3930 <action>
3931 <touch key="home"/>
3932 <action function="page">main</action>
3933 </action>
3934 </page>
3935
3936 <page name="repackconfirm">
3937 <template name="page"/>
3938
3939 <text style="text_l">
3940 <condition var1="tw_repack_kernel" var2="1"/>
3941 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3942 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
3943 </text>
3944
3945 <text style="text_l">
3946 <condition var1="tw_repack_kernel" var2="0"/>
3947 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3948 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
3949 </text>
3950
3951 <text style="text_m">
3952 <condition var1="tw_repack_kernel" var2="1"/>
3953 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3954 <text>{@repack_kernel_confirm=Install Kernel?}</text>
3955 </text>
3956
3957 <text style="text_m">
3958 <condition var1="tw_repack_kernel" var2="0"/>
3959 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3960 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
3961 </text>
3962
3963 <text style="text_m_accent">
3964 <placement x="%indent%" y="%row2_y%"/>
3965 <text>{@folder=Folder:}</text>
3966 </text>
3967
3968 <text style="text_m">
3969 <placement x="%indent%" y="%row3_y%"/>
3970 <text>%tw_zip_location%</text>
3971 </text>
3972
3973 <text style="text_m_accent">
3974 <placement x="%indent%" y="%row4_y%"/>
3975 <text>{@file=File:}</text>
3976 </text>
3977
3978 <text style="text_m">
3979 <placement x="%indent%" y="%row5_y%"/>
3980 <text>%tw_file%</text>
3981 </text>
3982
3983 <checkbox>
3984 <placement x="%indent%" y="%row7_y%"/>
3985 <text>{@repack_backup_first=Back up existing image first}</text>
3986 <data variable="tw_repack_backup_first"/>
3987 </checkbox>
3988
3989 <button style="main_button_half_height">
3990 <placement x="%indent%" y="%row16_y%"/>
3991 <text>{@install_cancel=Do not Install}</text>
3992 <action function="page">repackselect</action>
3993 </button>
3994
3995 <slider>
3996 <text>{@swipe_to_install=Swipe to Install}</text>
3997 <actions>
3998 <action function="set">tw_back=advanced</action>
3999 <action function="set">tw_action=repackimage</action>
4000 <action function="set">tw_action_param=/boot</action>
4001 <action function="set">tw_action_text1={@installing=Installing...}</action>
4002 <action function="set">tw_action_text2=</action>
4003 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4004 <action function="page">action_page</action>
4005 </actions>
4006 </slider>
4007
4008 <action>
4009 <touch key="back"/>
4010 <action function="page">repackselect</action>
4011 </action>
4012
4013 <action>
4014 <touch key="home"/>
4015 <action function="page">main</action>
4016 </action>
4017 </page>
4018
z31s1g28f0a922015-11-07 18:50:22 +01004019 <page name="lock">
4020 <background color="%semi_transparent%"/>
4021
4022 <image>
4023 <image resource="unlock_icon"/>
4024 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4025 </image>
4026
4027 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004028 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004029 <action function="overlay"/>
4030 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004031
4032 <action>
4033 <touch key="power"/>
4034 <action function="togglebacklight"/>
4035 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004036 </page>
4037
4038 <page name="filemanagerlist">
4039 <template name="page"/>
4040
4041 <text style="text_l">
4042 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004043 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004044 </text>
4045
4046 <text style="text_m">
4047 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004048 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004049 </text>
4050
4051 <template name="sort_options"/>
4052
4053 <fileselector>
4054 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4055 <text>%tw_file_location1%</text>
4056 <filter folders="1" files="1"/>
4057 <path name="tw_file_location1" default="/"/>
4058 <data name="tw_filename1"/>
4059 <selection name="tw_selection1"/>
4060 </fileselector>
4061
4062 <button style="fab">
4063 <image resource="fab_selectfolder"/>
4064 <actions>
4065 <action function="set">tw_filename1=tw_file_location1</action>
4066 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004067 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004068 <action function="page">filemanageroptions</action>
4069 </actions>
4070 </button>
4071
4072 <action>
4073 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004074 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004075 <action function="set">tw_fm_isfolder=0</action>
4076 </actions>
4077 </action>
4078
4079 <action>
4080 <touch key="home"/>
4081 <action function="page">main</action>
4082 </action>
4083
4084 <action>
4085 <touch key="back"/>
4086 <action function="page">advanced</action>
4087 </action>
4088
4089 <action>
4090 <condition var1="tw_filename1" op="modified"/>
4091 <action function="page">filemanageroptions</action>
4092 </action>
4093 </page>
4094
4095 <page name="filemanageroptions">
4096 <template name="page"/>
4097
4098 <text style="text_l">
4099 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004100 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004101 </text>
4102
4103 <text style="text_m">
4104 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004105 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004106 </text>
4107
4108 <text style="text_m_accent">
4109 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004110 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004111 </text>
4112
4113 <text style="text_m">
4114 <placement x="%indent%" y="%row3_y%"/>
4115 <text>%tw_filename1%</text>
4116 </text>
4117
4118 <button style="main_button_half_height">
4119 <condition var1="tw_fm_isfolder" var2="0"/>
4120 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004121 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004122 <actions>
4123 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004124 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004125 <action function="page">choosedestinationfolder</action>
4126 </actions>
4127 </button>
4128
4129 <button style="main_button_half_height">
4130 <condition var1="tw_fm_isfolder" var2="1"/>
4131 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004133 <actions>
4134 <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 -05004135 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004136 <action function="page">choosedestinationfolder</action>
4137 </actions>
4138 </button>
4139
4140 <button style="main_button_half_height">
4141 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004142 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004143 <actions>
4144 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004145 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004146 <action function="page">choosedestinationfolder</action>
4147 </actions>
4148 </button>
4149
4150 <button style="main_button_half_height">
4151 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004152 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004153 <actions>
4154 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004155 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004156 <action function="set">tw_fm_text2=</action>
4157 <action function="set">tw_fm_text3=</action>
4158 <action function="set">tw_include_text3=0</action>
4159 <action function="set">tw_back=filemanageroptions</action>
4160 <action function="page">filemanagerconfirm</action>
4161 </actions>
4162 </button>
4163
4164 <button style="main_button_half_height">
4165 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004166 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004167 <actions>
4168 <action function="set">tw_filemanager_rename=0000</action>
4169 <action function="set">tw_fm_text2=</action>
4170 <action function="set">tw_fm_text3=</action>
4171 <action function="set">tw_include_text3=0</action>
4172 <action function="set">tw_back=filemanageroptions</action>
4173 <action function="page">filemanagerchmod</action>
4174 </actions>
4175 </button>
4176
4177 <button style="main_button_half_height">
4178 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004179 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004180 <actions>
4181 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004182 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004183 <action function="set">tw_fm_text2=</action>
4184 <action function="set">tw_fm_text3=</action>
4185 <action function="set">tw_include_text3=0</action>
4186 <action function="set">tw_back=filemanageroptions</action>
4187 <action function="page">filemanagerconfirm</action>
4188 </actions>
4189 </button>
4190
4191 <button style="main_button_half_height">
4192 <condition var1="tw_fm_isfolder" var2="0"/>
4193 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004194 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004195 <actions>
4196 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004197 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004198 <action function="set">tw_filemanager_command=mv</action>
4199 <action function="page">filemanagerrenamefile</action>
4200 </actions>
4201 </button>
4202
4203 <button style="main_button_half_height">
4204 <condition var1="tw_fm_isfolder" var2="1"/>
4205 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004206 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004207 <actions>
4208 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004209 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004210 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4211 <action function="page">filemanagerrenamefolder</action>
4212 </actions>
4213 </button>
4214
4215 <action>
4216 <touch key="home"/>
4217 <action function="page">main</action>
4218 </action>
4219
4220 <action>
4221 <touch key="back"/>
4222 <action function="page">filemanagerlist</action>
4223 </action>
4224 </page>
4225
4226 <page name="choosedestinationfolder">
4227 <template name="page"/>
4228
4229 <text style="text_l">
4230 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004231 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004232 </text>
4233
4234 <text style="text_m">
4235 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004236 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004237 </text>
4238
4239 <template name="sort_options"/>
4240
4241 <fileselector>
4242 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4243 <text>%tw_file_location2%</text>
4244 <filter folders="1" files="0"/>
4245 <path name="tw_file_location2" default="/"/>
4246 <data name="tw_filename2"/>
4247 <selection name="tw_selection2"/>
4248 </fileselector>
4249
4250 <button style="fab">
4251 <image resource="fab_selectfolder"/>
4252 <actions>
4253 <action function="set">tw_fm_text2=to</action>
4254 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4255 <action function="set">tw_include_text3=1</action>
4256 <action function="set">tw_back=filemanageroptions</action>
4257 <action function="page">filemanagerconfirm</action>
4258 </actions>
4259 </button>
4260
4261 <action>
4262 <touch key="home"/>
4263 <action function="page">main</action>
4264 </action>
4265
4266 <action>
4267 <touch key="back"/>
4268 <action function="page">filemanageroptions</action>
4269 </action>
4270 </page>
4271
4272 <page name="filemanagerrenamefile">
4273 <template name="page"/>
4274
4275 <text style="text_l">
4276 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004277 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004278 </text>
4279
4280 <text style="text_m">
4281 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004282 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004283 </text>
4284
4285 <text style="text_m_accent">
4286 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004287 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004288 </text>
4289
4290 <input>
4291 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4292 <text>%tw_filemanager_rename%</text>
4293 <data name="tw_filemanager_rename"/>
4294 <restrict minlen="1" maxlen="128"/>
4295 <actions>
4296 <action function="set">tw_fm_text2=to</action>
4297 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4298 <action function="set">tw_include_text3=1</action>
4299 <action function="set">tw_back=filemanageroptions</action>
4300 <action function="page">filemanagerconfirm</action>
4301 </actions>
4302 </input>
4303
4304 <fill color="%accent_color%">
4305 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4306 </fill>
4307
4308 <button style="main_button_half_height">
4309 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004310 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004311 <action function="page">filemanageroptions</action>
4312 </button>
4313
4314 <template name="keyboardtemplate"/>
4315
4316 <action>
4317 <touch key="home"/>
4318 <action function="page">main</action>
4319 </action>
4320
4321 <action>
4322 <touch key="back"/>
4323 <action function="page">filemanageroptions</action>
4324 </action>
4325 </page>
4326
4327 <page name="filemanagerrenamefolder">
4328 <template name="page"/>
4329
4330 <text style="text_l">
4331 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004332 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004333 </text>
4334
4335 <text style="text_m">
4336 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004337 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004338 </text>
4339
4340 <text style="text_m_accent">
4341 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004342 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004343 </text>
4344
4345 <input>
4346 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4347 <text>%tw_filemanager_rename%</text>
4348 <data name="tw_filemanager_rename"/>
4349 <restrict minlen="1" maxlen="128"/>
4350 <actions>
4351 <action function="set">tw_fm_text2=to</action>
4352 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4353 <action function="set">tw_include_text3=1</action>
4354 <action function="set">tw_back=filemanageroptions</action>
4355 <action function="page">filemanagerconfirm</action>
4356 </actions>
4357 </input>
4358
4359 <fill color="%accent_color%">
4360 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4361 </fill>
4362
4363 <button style="main_button_half_height">
4364 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004365 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004366 <action function="page">filemanageroptions</action>
4367 </button>
4368
4369 <template name="keyboardtemplate"/>
4370
4371 <action>
4372 <touch key="home"/>
4373 <action function="page">main</action>
4374 </action>
4375
4376 <action>
4377 <touch key="back"/>
4378 <action function="page">filemanageroptions</action>
4379 </action>
4380 </page>
4381
4382 <page name="filemanagerchmod">
4383 <template name="page"/>
4384
4385 <text style="text_l">
4386 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004387 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004388 </text>
4389
4390 <text style="text_m">
4391 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004392 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004393 </text>
4394
4395 <text style="text_m_accent">
4396 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004397 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004398 </text>
4399
4400 <input>
4401 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4402 <text>%tw_filemanager_rename%</text>
4403 <data name="tw_filemanager_rename"/>
4404 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4405 <actions>
4406 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4407 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4408 <action function="set">tw_back=filemanageroptions</action>
4409 <action function="page">filemanagerconfirm</action>
4410 </actions>
4411 </input>
4412
4413 <fill color="%accent_color%">
4414 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4415 </fill>
4416
4417 <button style="main_button_half_height">
4418 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004419 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004420 <action function="page">filemanageroptions</action>
4421 </button>
4422
4423 <template name="keyboardtemplate"/>
4424
4425 <action>
4426 <touch key="home"/>
4427 <action function="page">main</action>
4428 </action>
4429
4430 <action>
4431 <touch key="back"/>
4432 <action function="page">filemanageroptions</action>
4433 </action>
4434 </page>
4435
4436 <page name="filemanagerconfirm">
4437 <template name="page"/>
4438
4439 <text style="text_l">
4440 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004441 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004442 </text>
4443
4444 <text style="text_m">
4445 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004446 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004447 </text>
4448
4449 <text style="text_m_accent">
4450 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4451 <text>%tw_fm_text1%</text>
4452 </text>
4453
4454 <text style="text_m">
4455 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4456 <text>%tw_filename1%</text>
4457 </text>
4458
4459 <text style="text_m_accent">
4460 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4461 <text>%tw_fm_text2%</text>
4462 </text>
4463
4464 <text style="text_m">
4465 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4466 <text>%tw_fm_text3%</text>
4467 </text>
4468
4469 <text style="text_m">
4470 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004471 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004472 </text>
4473
4474 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004475 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004476 <action function="page">filemanageraction</action>
4477 </slider>
4478
4479 <action>
4480 <touch key="back"/>
4481 <action function="page">%tw_back%</action>
4482 </action>
4483
4484 <action>
4485 <touch key="home"/>
4486 <action function="page">main</action>
4487 </action>
4488 </page>
4489
4490 <page name="filemanageraction">
4491 <template name="page"/>
4492
4493 <text style="text_l">
4494 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004495 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004496 </text>
4497
4498 <text style="text_m">
4499 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4500 <text>%tw_fm_text1%</text>
4501 </text>
4502
4503 <template name="console"/>
4504
4505 <template name="progress_bar"/>
4506
4507 <action>
4508 <conditions>
4509 <condition var1="tw_operation_state" var2="1"/>
4510 <condition var1="tw_operation_status" var2="0"/>
4511 </conditions>
4512 <actions>
4513 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004514 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004515 <action function="page">action_complete</action>
4516 </actions>
4517 </action>
4518
4519 <action>
4520 <conditions>
4521 <condition var1="tw_operation_state" var2="1"/>
4522 <condition var1="tw_operation_status" op="!=" var2="0"/>
4523 </conditions>
4524 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004525 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004526 <action function="page">action_complete</action>
4527 </actions>
4528 </action>
4529
4530 <action>
4531 <condition var1="tw_include_text3" var2="0"/>
4532 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4533 </action>
4534
4535 <action>
4536 <condition var1="tw_include_text3" var2="1"/>
4537 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4538 </action>
4539 </page>
4540
4541 <page name="decrypt">
4542 <template name="page"/>
4543
4544 <action>
4545 <condition var1="tw_crypto_pwtype" var2="2"/>
4546 <action function="page">decrypt_pattern</action>
4547 </action>
4548
4549 <text style="text_l">
4550 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004551 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004552 </text>
4553
4554 <text style="text_m">
4555 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004556 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004557 </text>
4558
4559 <text style="text_m_accent">
4560 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004561 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004562 </text>
4563
4564 <input>
4565 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4566 <text>%tw_crypto_display%</text>
4567 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4568 <restrict minlen="1" maxlen="254"/>
4569 <action function="page">trydecrypt</action>
4570 </input>
4571
4572 <fill color="%accent_color%">
4573 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4574 </fill>
4575
4576 <fill color="%text_fail_color%">
4577 <condition var1="tw_password_fail" var2="1"/>
4578 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4579 </fill>
4580
4581 <text style="text_m_fail">
4582 <condition var1="tw_password_fail" var2="1"/>
4583 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004584 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004585 </text>
4586
4587 <button style="main_button_half_height">
4588 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004589 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004590 <actions>
4591 <action function="set">tw_page_done=1</action>
4592 <action function="page">main</action>
4593 </actions>
4594 </button>
4595
z31s1g608d7ff2016-01-18 19:47:25 +01004596 <button style="main_button_half_height">
4597 <placement x="%center_x%" y="%row10_y%"/>
4598 <text>{@sel_lang_btn=Select Language}</text>
4599 <action function="overlay">select_language</action>
4600 </button>
4601
z31s1g28f0a922015-11-07 18:50:22 +01004602 <template name="keyboardtemplate"/>
4603 </page>
4604
4605 <page name="decrypt_pattern">
4606 <template name="page"/>
4607
4608 <text style="text_l">
4609 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004610 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004611 </text>
4612
4613 <text style="text_m">
4614 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004615 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004616 </text>
4617
4618 <text style="text_m_accent">
4619 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004620 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004621 </text>
4622
Aleksa Saraib25a1832015-12-31 17:36:00 +01004623 <text style="text_m_fail">
4624 <condition var1="tw_password_fail" var2="1"/>
4625 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004626 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004627 </text>
4628
z31s1g28f0a922015-11-07 18:50:22 +01004629 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004630 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004631 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4632 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4633 <data name="tw_crypto_password"/>
4634 <action function="page">trydecrypt</action>
4635 </patternpassword>
4636
Aleksa Saraib25a1832015-12-31 17:36:00 +01004637 <button style="button_quarter_width">
4638 <placement x="%indent%" y="%row19a_y%"/>
4639 <text>3x3</text>
4640 <action function="set">tw_gui_pattern_grid_size=3</action>
4641 </button>
4642
4643 <button style="button_quarter_width">
4644 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4645 <text>4x4</text>
4646 <action function="set">tw_gui_pattern_grid_size=4</action>
4647 </button>
4648
4649 <button style="button_quarter_width">
4650 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4651 <text>5x5</text>
4652 <action function="set">tw_gui_pattern_grid_size=5</action>
4653 </button>
4654
4655 <button style="button_quarter_width">
4656 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4657 <text>6x6</text>
4658 <action function="set">tw_gui_pattern_grid_size=6</action>
4659 </button>
4660
z31s1g28f0a922015-11-07 18:50:22 +01004661 <button style="main_button_half_height">
4662 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004663 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004664 <actions>
4665 <action function="set">tw_page_done=1</action>
4666 <action function="page">main</action>
4667 </actions>
4668 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004669
4670 <button style="main_button_half_height">
4671 <placement x="%center_x%" y="%row21a_y%"/>
4672 <text>{@sel_lang_btn=Select Language}</text>
4673 <action function="overlay">select_language</action>
4674 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004675 </page>
4676
4677 <page name="trydecrypt">
4678 <template name="page"/>
4679
4680 <text style="text_l">
4681 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004682 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004683 </text>
4684
4685 <text style="text_m">
4686 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004687 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004688 </text>
4689
4690 <template name="console"/>
4691
4692 <template name="progress_bar"/>
4693
4694 <action>
4695 <action function="decrypt"/>
4696 </action>
4697
4698 <action>
4699 <conditions>
4700 <condition var1="tw_operation_state" var2="1"/>
4701 <condition var1="tw_operation_status" op="!=" var2="0"/>
4702 </conditions>
4703 <actions>
4704 <action function="set">tw_password_fail=1</action>
4705 <action function="page">decrypt</action>
4706 </actions>
4707 </action>
4708
4709 <action>
4710 <conditions>
4711 <condition var1="tw_operation_state" var2="1"/>
4712 <condition var1="tw_operation_status" op="=" var2="0"/>
4713 </conditions>
4714 <actions>
4715 <action function="set">tw_page_done=1</action>
4716 <action function="page">main</action>
4717 </actions>
4718 </action>
4719 </page>
4720
z31s1g28f0a922015-11-07 18:50:22 +01004721 <page name="terminalcommand">
4722 <template name="page"/>
4723
z31s1g56189522016-01-13 19:12:40 +01004724 <fill color="%background_color%">
4725 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004726 </fill>
4727
z31s1g56189522016-01-13 19:12:40 +01004728 <terminal>
4729 <condition var1="tw_hide_kb" var2="0"/>
4730 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4731 </terminal>
4732
4733 <terminal>
4734 <condition var1="tw_hide_kb" var2="1"/>
4735 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4736 </terminal>
4737
4738 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004739
4740 <template name="keyboardtemplate"/>
4741
z31s1g608d7ff2016-01-18 19:47:25 +01004742 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004743 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004744 </fill>
z31s1g56189522016-01-13 19:12:40 +01004745
z31s1g608d7ff2016-01-18 19:47:25 +01004746 <button>
z31s1g56189522016-01-13 19:12:40 +01004747 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4748 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4749 <image resource="back" />
4750 <condition var1="tw_busy" var2="0" />
4751 <actions>
4752 <action function="set">tw_hide_kb=0</action>
4753 <action function="key">back</action>
4754 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004755 </button>
z31s1g56189522016-01-13 19:12:40 +01004756
z31s1g608d7ff2016-01-18 19:47:25 +01004757 <button>
z31s1g56189522016-01-13 19:12:40 +01004758 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4759 <condition var1="tw_hide_kb" op="=" var2="0" />
4760 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4761 <image resource="kb_hide" />
4762 <condition var1="tw_busy" var2="0" />
4763 <actions>
4764 <action function="set">tw_hide_kb=1</action>
4765 <action function="page">terminalcommand</action>
4766 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004767 </button>
z31s1g56189522016-01-13 19:12:40 +01004768
z31s1g608d7ff2016-01-18 19:47:25 +01004769 <button>
z31s1g56189522016-01-13 19:12:40 +01004770 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4771 <condition var1="tw_hide_kb" op="=" var2="1" />
4772 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4773 <image resource="kb_show" />
4774 <condition var1="tw_busy" var2="0" />
4775 <actions>
4776 <action function="set">tw_hide_kb=0</action>
4777 <action function="page">terminalcommand</action>
4778 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004779 </button>
z31s1g56189522016-01-13 19:12:40 +01004780
z31s1g608d7ff2016-01-18 19:47:25 +01004781 <button>
z31s1g56189522016-01-13 19:12:40 +01004782 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4783 <image resource="home" />
4784 <condition var1="tw_busy" var2="0" />
4785 <actions>
4786 <action function="set">tw_hide_kb=0</action>
4787 <action function="key">home</action>
4788 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004789 </button>
z31s1g56189522016-01-13 19:12:40 +01004790
z31s1g608d7ff2016-01-18 19:47:25 +01004791 <button>
z31s1g56189522016-01-13 19:12:40 +01004792 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4793 <condition var1="tw_hide_kb" op="=" var2="0" />
4794 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4795 <image resource="kb_hide" />
4796 <condition var1="tw_busy" var2="0" />
4797 <actions>
4798 <action function="set">tw_hide_kb=1</action>
4799 <action function="page">terminalcommand</action>
4800 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004801 </button>
z31s1g56189522016-01-13 19:12:40 +01004802
z31s1g608d7ff2016-01-18 19:47:25 +01004803 <button>
z31s1g56189522016-01-13 19:12:40 +01004804 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4805 <condition var1="tw_hide_kb" op="=" var2="1" />
4806 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4807 <image resource="kb_show" />
4808 <condition var1="tw_busy" var2="0" />
4809 <actions>
4810 <action function="set">tw_hide_kb=0</action>
4811 <action function="page">terminalcommand</action>
4812 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004813 </button>
z31s1g56189522016-01-13 19:12:40 +01004814
z31s1g608d7ff2016-01-18 19:47:25 +01004815 <button>
z31s1g56189522016-01-13 19:12:40 +01004816 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4817 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4818 <image resource="back" />
4819 <condition var1="tw_busy" var2="0" />
4820 <actions>
4821 <action function="set">tw_hide_kb=0</action>
4822 <action function="key">back</action>
4823 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004824 </button>
z31s1g56189522016-01-13 19:12:40 +01004825
z31s1g28f0a922015-11-07 18:50:22 +01004826 <action>
4827 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004828 <actions>
4829 <action function="set">tw_hide_kb=0</action>
4830 <action function="page">main</action>
4831 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004832 </action>
4833
4834 <action>
4835 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004836 <actions>
4837 <action function="set">tw_hide_kb=0</action>
4838 <action function="page">advanced</action>
4839 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004840 </action>
z31s1g56189522016-01-13 19:12:40 +01004841
z31s1g608d7ff2016-01-18 19:47:25 +01004842 <action>
z31s1g56189522016-01-13 19:12:40 +01004843 <touch key="power+voldown" />
4844 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004845 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004846 </page>
4847
4848 <page name="sideload">
4849 <template name="page"/>
4850
4851 <text style="text_l">
4852 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004853 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004854 </text>
4855
4856 <text style="text_m">
4857 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004858 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004859 </text>
4860
4861 <checkbox>
4862 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004863 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004864 <data variable="tw_wipe_dalvik"/>
4865 </checkbox>
4866
4867 <checkbox>
4868 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004869 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004870 <data variable="tw_wipe_cache"/>
4871 </checkbox>
4872
4873 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004874 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004875 <actions>
4876 <action function="set">tw_back=advanced</action>
4877 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004878 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4879 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4880 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004881 <action function="set">tw_has_cancel=1</action>
4882 <action function="set">tw_show_reboot=1</action>
4883 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4884 <action function="page">action_page</action>
4885 </actions>
4886 </slider>
4887
4888 <action>
4889 <touch key="home"/>
4890 <action function="page">main</action>
4891 </action>
4892
4893 <action>
4894 <touch key="back"/>
4895 <action function="page">advanced</action>
4896 </action>
4897 </page>
4898
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004899 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01004900 <template name="page"/>
4901
4902 <text style="text_l">
4903 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004904 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004905 </text>
4906
4907 <text style="text_m">
4908 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004909 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004910 </text>
4911
4912 <text style="text_m_accent">
4913 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004914 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004915 </text>
4916
z31s1g28f0a922015-11-07 18:50:22 +01004917 <text style="text_m_fail">
4918 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004919 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004920 </text>
4921
4922 <text style="text_m_fail">
4923 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004924 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004925 </text>
4926
4927 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004928 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004929 <actions>
4930 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004931 <action function="set">tw_action=fixcontexts</action>
4932 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
4933 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004934 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004935 <action function="set">tw_show_reboot=1</action>
4936 <action function="page">action_page</action>
4937 </actions>
4938 </slider>
4939
4940 <action>
4941 <touch key="home"/>
4942 <action function="page">main</action>
4943 </action>
4944
4945 <action>
4946 <touch key="back"/>
4947 <action function="page">advanced</action>
4948 </action>
4949 </page>
4950
z31s1g28f0a922015-11-07 18:50:22 +01004951 <page name="slideout">
4952 <fill color="%background_color%">
4953 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
4954 </fill>
4955
4956 <console>
4957 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
4958 </console>
4959
4960 <button>
4961 <fill color="%transparent%"/>
4962 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
4963 <action function="overlay"/>
4964 </button>
4965
4966 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06004967 <touch key="power"/>
4968 <action function="togglebacklight"/>
4969 </action>
4970
4971 <action>
z31s1g28f0a922015-11-07 18:50:22 +01004972 <touch key="power+voldown"/>
4973 <action function="screenshot"/>
4974 </action>
4975 </page>
4976
4977 <page name="select_storage">
4978 <fill color="%semi_transparent%">
4979 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
4980 </fill>
4981
4982 <fill color="%background_color%">
4983 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
4984 </fill>
4985
4986 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05004987 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004988 <data name="tw_storage_path"/>
4989 <listtype name="storage"/>
4990 </partitionlist>
4991
4992 <button style="button_third_width">
4993 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004994 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004995 <actions>
4996 <action function="set">tw_clear_destination=%tw_back%</action>
4997 <action function="overlay"/>
4998 <action function="page">clear_vars</action>
4999 </actions>
5000 </button>
5001
5002 <fill color="#000000">
5003 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5004 </fill>
5005
5006 <button>
5007 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5008 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5009 <image resource="back"/>
5010 <condition var1="tw_busy" var2="0"/>
5011 <actions>
5012 <action function="overlay"/>
5013 <action function="key">%tw_back%</action>
5014 </actions>
5015 </button>
5016
5017 <button>
5018 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5019 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5020 <image resource="console"/>
5021 <condition var1="tw_busy" var2="0"/>
5022 <action function="overlay">slideout</action>
5023 </button>
5024
5025 <button>
5026 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5027 <image resource="home"/>
5028 <condition var1="tw_busy" var2="0"/>
5029 <actions>
5030 <action function="overlay"/>
5031 <action function="key">home</action>
5032 </actions>
5033 </button>
5034
5035 <button>
5036 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5037 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5038 <image resource="console"/>
5039 <condition var1="tw_busy" var2="0"/>
5040 <action function="overlay">slideout</action>
5041 </button>
5042
5043 <button>
5044 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5045 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5046 <image resource="back"/>
5047 <condition var1="tw_busy" var2="0"/>
5048 <actions>
5049 <action function="overlay"/>
5050 <action function="key">%tw_back%</action>
5051 </actions>
5052 </button>
5053
5054 <action>
5055 <touch key="power+voldown"/>
5056 <action function="screenshot"/>
5057 </action>
5058 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005059
5060 <page name="select_language">
5061 <fill color="%semi_transparent%">
5062 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5063 </fill>
5064
5065 <fill color="%background_color%">
5066 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5067 </fill>
5068
5069 <listbox>
5070 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5071 <text>{@select_language=Select Language:}</text>
5072 <icon selected="radio_true" unselected="radio_false" />
5073 <data name="tw_language" />
5074 </listbox>
5075
5076 <button style="button_third_width">
5077 <placement x="%dialog_button_x%" y="%row14_y%"/>
5078 <text>{@ok_btn=OK}</text>
5079 <actions>
5080 <action function="overlay"/>
5081 <action function="setlanguage"></action>
5082 </actions>
5083 </button>
5084
5085 <fill color="#000000">
5086 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5087 </fill>
5088
5089 <button>
5090 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5091 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5092 <image resource="back"/>
5093 <condition var1="tw_busy" var2="0"/>
5094 <actions>
5095 <action function="overlay"/>
5096 <action function="key">%tw_back%</action>
5097 </actions>
5098 </button>
5099
5100 <button>
5101 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5102 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5103 <image resource="console"/>
5104 <condition var1="tw_busy" var2="0"/>
5105 <action function="overlay">slideout</action>
5106 </button>
5107
5108 <button>
5109 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5110 <image resource="home"/>
5111 <condition var1="tw_busy" var2="0"/>
5112 <actions>
5113 <action function="overlay"/>
5114 <action function="key">home</action>
5115 </actions>
5116 </button>
5117
5118 <button>
5119 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5120 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5121 <image resource="console"/>
5122 <condition var1="tw_busy" var2="0"/>
5123 <action function="overlay">slideout</action>
5124 </button>
5125
5126 <button>
5127 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5128 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5129 <image resource="back"/>
5130 <condition var1="tw_busy" var2="0"/>
5131 <actions>
5132 <action function="overlay"/>
5133 <action function="key">%tw_back%</action>
5134 </actions>
5135 </button>
5136
5137 <action>
5138 <touch key="power+voldown"/>
5139 <action function="screenshot"/>
5140 </action>
5141 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005142 </pages>
5143</recovery>