blob: 31aef4660af52294eb69de0ad3bffdddce6678c1 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
z31s1g28f0a922015-11-07 18:50:22 +0100149 <style name="slider">
150 <placement x="%center_x%" y="%row23_y%"/>
151 <font resource="font_s" color="%text_color%"/>
152 <resource base="slider" used="slider_used" touch="slider_touch"/>
153 </style>
154
155 <style name="slidervalue">
156 <resource handle="handle"/>
157 <font resource="font_m" color="%text_color%"/>
158 <colors line="%fileselector_linecolor%"/>
159 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
160 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100161
162 <style name="patternpassword">
163 <size name="tw_gui_pattern_grid_size" default="3"/>
164 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100165 </styles>
166
167 <pages>
168 <page name="main">
169 <action>
170 <actions>
171 <action function="set">tw_clear_destination=main2</action>
172 <action function="page">clear_vars</action>
173 </actions>
174 </action>
175 </page>
176
177 <page name="main2">
178 <template name="page"/>
179
180 <text style="text_l">
181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500182 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100183 </text>
184
185 <text style="text_m">
186 <condition var1="tw_no_cpu_temp" var2="0"/>
187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
188 <text>%tw_version%</text>
189 </text>
190
191 <button style="main_button">
192 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500193 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100194 <actions>
195 <action function="queueclear"/>
196 <action function="set">tw_selectimage=0</action>
197 <action function="page">install</action>
198 </actions>
199 </button>
200
201 <button style="main_button">
202 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500203 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100204 <action function="page">wipe</action>
205 </button>
206
207 <button style="main_button">
208 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500209 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100210 <action function="page">backup</action>
211 </button>
212
213 <button style="main_button">
214 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500215 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100216 <action function="page">restore</action>
217 </button>
218
219 <button style="main_button">
220 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">mount</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">settings</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">advanced</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">reboot</action>
241 </button>
242 </page>
243
244 <page name="install">
245 <template name="page"/>
246
247 <text style="text_l">
248 <condition var1="tw_selectimage" var2="0"/>
249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 </text>
252
253 <text style="text_l">
254 <condition var1="tw_selectimage" var2="1"/>
255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 </text>
258
259 <text style="text_m">
260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500261 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100262 </text>
263
264 <template name="sort_options"/>
265
266 <fileselector>
267 <condition var1="tw_selectimage" var2="0"/>
268 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
269 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200270 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100271 <path name="tw_zip_location" default="/sdcard"/>
272 <data name="tw_filename"/>
273 <selection name="tw_file"/>
274 </fileselector>
275
276 <fileselector>
277 <condition var1="tw_selectimage" var2="1"/>
278 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
279 <text>%tw_zip_location%</text>
280 <filter extn=".img" folders="1" files="1"/>
281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <button style="main_button_half_height">
287 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500288 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100289 <actions>
290 <action function="set">tw_back=install</action>
291 <action function="overlay">select_storage</action>
292 </actions>
293 </button>
294
295 <button style="main_button_half_height">
296 <condition var1="tw_selectimage" var2="0"/>
297 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_selectimage=1</action>
301 <action function="page">install</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="1"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=0</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <action>
316 <conditions>
317 <condition var1="tw_selectimage" var2="0"/>
318 <condition var1="tw_filename" op="modified"/>
319 </conditions>
320 <actions>
321 <action function="queuezip"/>
322 <action function="page">flash_confirm</action>
323 </actions>
324 </action>
325
326 <action>
327 <conditions>
328 <condition var1="tw_selectimage" var2="1"/>
329 <condition var1="tw_filename" op="modified"/>
330 </conditions>
331 <action function="page">flashimage_confirm</action>
332 </action>
333
334 <action>
335 <touch key="back"/>
336 <action function="page">main</action>
337 </action>
338
339 <action>
340 <touch key="home"/>
341 <action function="page">main</action>
342 </action>
343 </page>
344
345 <page name="flash_confirm">
346 <template name="page"/>
347
348 <text style="text_l">
349 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500350 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100351 </text>
352
353 <text style="text_m">
354 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500355 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100356 </text>
357
358 <text style="text_m_accent">
359 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500360 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100361 </text>
362
363 <text style="text_m_accent">
364 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500365 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100366 </text>
367
368 <text style="text_m">
369 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500370 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100371 </text>
372
373 <text style="text_m_accent">
374 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500375 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100376 </text>
377
378 <text style="text_m">
379 <placement x="%indent%" y="%row8_y%"/>
380 <text>%tw_zip_location%</text>
381 </text>
382
383 <text style="text_m_accent">
384 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500385 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100386 </text>
387
388 <text style="text_m">
389 <placement x="%indent%" y="%row10a_y%"/>
390 <text>%tw_file%</text>
391 </text>
392
393 <checkbox>
394 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500395 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100396 <data variable="tw_signed_zip_verify"/>
397 </checkbox>
398
399 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600400 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500401 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600402 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500403 </checkbox>
404
405 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500406 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300407 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500408 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100409 <data variable="tw_inject_after_zip"/>
410 </checkbox>
411
412 <button style="main_button_half_height">
413 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500414 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100415 <action function="page">install</action>
416 </button>
417
418 <button style="main_button_half_height">
419 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500420 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100421 <actions>
422 <action function="queueclear"/>
423 <action function="page">install</action>
424 </actions>
425 </button>
426
427 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500428 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100429 <action function="flash">flash_zip</action>
430 </slider>
431
432 <action>
433 <touch key="back"/>
434 <actions>
435 <action function="cancelzip"/>
436 <action function="page">install</action>
437 </actions>
438 </action>
439
440 <action>
441 <touch key="home"/>
442 <action function="page">main</action>
443 </action>
444 </page>
445
446 <page name="flash_zip">
447 <template name="page"/>
448
449 <text style="text_l">
450 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 </text>
453
454 <text style="text_m">
455 <placement x="%col1_x_header%" y="%row4_header_y%"/>
456 <text>%tw_file%</text>
457 </text>
458
459 <template name="console"/>
460
461 <template name="progress_bar"/>
462
463 <action>
464 <condition var1="tw_operation_state" var2="1"/>
465 <action function="page">flash_done</action>
466 </action>
467 </page>
468
469 <page name="flash_done">
470 <template name="page"/>
471
472 <text style="text_l">
473 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500474 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100475 </text>
476
477 <text style="text_m_fail">
478 <condition var1="tw_operation_status" op="!=" var2="0"/>
479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500480 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100481 </text>
482
483 <text style="text_m">
484 <condition var1="tw_operation_status" var2="0"/>
485 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500486 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100487 </text>
488
489 <template name="console"/>
490
491 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500492 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100493 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500494 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100495 <actions>
496 <action function="set">tw_back=flash_done</action>
497 <action function="set">tw_action=wipe</action>
498 <action function="set">tw_action_param=/cache</action>
499 <action function="set">tw_has_action2=1</action>
500 <action function="set">tw_action2=wipe</action>
501 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500502 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
503 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
504 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
505 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100506 <action function="page">confirm_action</action>
507 </actions>
508 </button>
509
510 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500511 <condition var1="tw_ab_device" var2="1"/>
512 <placement x="%indent%" y="%row21a_y%"/>
513 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
514 <actions>
515 <action function="set">tw_back=flash_done</action>
516 <action function="set">tw_action=wipe</action>
517 <action function="set">tw_action_param=dalvik</action>
518 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
519 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
520 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
521 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
522 <action function="page">confirm_action</action>
523 </actions>
524 </button>
525
526 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100527 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100528 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500529 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100530 <actions>
531 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500532 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100533 </actions>
534 </button>
535
Chaosmaster7b66bf52020-02-07 20:33:43 +0100536 <button style="main_button_half_height">
537 <condition var1="tw_ab_device" var2="1"/>
538 <placement x="%center_x%" y="%row21a_y%"/>
539 <text>{@reboot_btn=Reboot}</text>
540 <actions>
541 <action function="set">tw_back=main2</action>
542 <action function="page">reboot</action>
543 </actions>
544 </button>
545
z31s1g28f0a922015-11-07 18:50:22 +0100546 <action>
547 <touch key="back"/>
548 <actions>
549 <action function="set">tw_clear_destination=install</action>
550 <action function="page">clear_vars</action>
551 </actions>
552 </action>
553
554 <action>
555 <touch key="home"/>
556 <actions>
557 <action function="set">tw_clear_destination=main2</action>
558 <action function="page">clear_vars</action>
559 </actions>
560 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500561
562 <action>
563 <conditions>
564 <condition var1="tw_install_reboot" var2="1"/>
565 <condition var1="tw_operation_status" var2="0"/>
566 <condition var1="tw_reboot_system" var2="1"/>
567 </conditions>
568 <actions>
569 <action function="set">tw_sleep=%tw_sleep_total%</action>
570 <action function="page">flash_sleep_and_reboot</action>
571 </actions>
572 </action>
573 </page>
574
575 <page name="flash_sleep_and_reboot">
576 <template name="page"/>
577
578 <text style="text_l">
579 <placement x="%col1_x_header%" y="%row3_header_y%"/>
580 <text>{@install_zip_hdr=Install Zip}</text>
581 </text>
582
583 <text style="text_m">
584 <placement x="%col1_x_header%" y="%row4_header_y%"/>
585 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
586 </text>
587
588 <template name="console"/>
589
590 <template name="progress_bar"/>
591
592 <button style="main_button_half_height">
593 <condition var1="tw_sleep" op="&gt;" var2="0"/>
594 <placement x="%center_x%" y="%row21a_y%"/>
595 <text>{@cancel_btn=Cancel}</text>
596 <actions>
597 <action function="set">tw_install_reboot=0</action>
598 <action function="page">flash_done</action>
599 </actions>
600 </button>
601
602 <action>
603 <conditions>
604 <condition var1="tw_sleep" var2="tw_sleep_total"/>
605 <condition var1="tw_install_reboot" var2="1"/>
606 </conditions>
607 <action function="sleepcounter">%tw_sleep_total%</action>
608 </action>
609
610 <action>
611 <conditions>
612 <condition var1="tw_sleep" var2="0"/>
613 <condition var1="tw_install_reboot" var2="1"/>
614 </conditions>
615 <actions>
616 <action function="sleep">50000</action>
617 <action function="set">tw_back=main2</action>
618 <action function="page">reboot_system_routine</action>
619 </actions>
620 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100621 </page>
622
623 <page name="flashimage_confirm">
624 <template name="page"/>
625
626 <text style="text_l">
627 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500628 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100629 </text>
630
631 <text style="text_m">
632 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500633 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100634 </text>
635
636 <text style="text_m_accent">
637 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500638 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100639 </text>
640
641 <text style="text_m">
642 <placement x="%indent%" y="%row3_y%"/>
643 <text>%tw_zip_location%</text>
644 </text>
645
646 <text style="text_m_accent">
647 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500648 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100649 </text>
650
651 <text style="text_m">
652 <placement x="%indent%" y="%row5a_y%"/>
653 <text>%tw_file%</text>
654 </text>
655
656 <partitionlist>
657 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
658 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500659 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100660 <data name="tw_flash_partition"/>
661 <listtype name="flashimg"/>
662 </partitionlist>
663
664 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500665 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100666 <actions>
667 <action function="set">tw_back=flashimage_confirm</action>
668 <action function="set">tw_action=flashimage</action>
669 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500670 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100671 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500672 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100673 <action function="page">action_page</action>
674 </actions>
675 <action function="flashimage"/>
676 </slider>
677
678 <action>
679 <touch key="back"/>
680 <actions>
681 <action function="set">tw_clear_destination=install</action>
682 <action function="page">clear_vars</action>
683 </actions>
684 </action>
685
686 <action>
687 <touch key="home"/>
688 <actions>
689 <action function="set">tw_clear_destination=main2</action>
690 <action function="page">clear_vars</action>
691 </actions>
692 </action>
693 </page>
694
695 <page name="clear_vars">
696 <action>
697 <action function="set">tw_operation_state=0</action>
698 <action function="set">tw_text1=</action>
699 <action function="set">tw_text2=</action>
700 <action function="set">tw_text3=</action>
701 <action function="set">tw_text4=</action>
702 <action function="set">tw_action_text1=</action>
703 <action function="set">tw_action_text2=</action>
704 <action function="set">tw_action_param=</action>
705 <action function="set">tw_has_action2=0</action>
706 <action function="set">tw_action2=</action>
707 <action function="set">tw_action2_param=</action>
708 <action function="set">tw_has_cancel=0</action>
709 <action function="set">tw_cancel_action=</action>
710 <action function="set">tw_cancel_param=</action>
711 <action function="set">tw_show_exclamation=0</action>
712 <action function="set">tw_show_reboot=0</action>
713 <action function="page">%tw_clear_destination%</action>
714 </action>
715 </page>
716
Matt Mower908dd252016-05-25 02:26:50 -0500717 <page name="reboot_system_routine">
718 <action>
719 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500720 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500721 <action function="set">tw_has_action2=0</action>
722 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
723 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
724 <action function="set">tw_text3=</action>
725 <action function="set">tw_text4=</action>
726 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
727 <action function="set">tw_action_text2=</action>
728 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
729 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
730 <action function="page">rebootcheck</action>
731 </action>
732 </page>
733
z31s1g28f0a922015-11-07 18:50:22 +0100734 <page name="confirm_action">
735 <template name="page"/>
736
737 <text style="text_l">
738 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500739 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100740 </text>
741
742 <text style="text_m">
743 <placement x="%col1_x_header%" y="%row4_header_y%"/>
744 <text/>
745 </text>
746
747 <text style="text_m_accent">
748 <placement x="%center_x%" y="%row2_y%" placement="5"/>
749 <text>%tw_text1%</text>
750 </text>
751
752 <text style="text_m_accent">
753 <placement x="%center_x%" y="%row3_y%" placement="5"/>
754 <text>%tw_text2%</text>
755 </text>
756
757 <text style="text_m">
758 <placement x="%center_x%" y="%row4_y%" placement="5"/>
759 <text>%tw_text3%</text>
760 </text>
761
762 <text style="text_m">
763 <placement x="%center_x%" y="%row5_y%" placement="5"/>
764 <text>%tw_text4%</text>
765 </text>
766
767 <text style="text_m">
768 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500769 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100770 </text>
771
772 <slider>
773 <text>%tw_slider_text%</text>
774 <action function="page">action_page</action>
775 </slider>
776
777 <action>
778 <touch key="back"/>
779 <actions>
780 <action function="set">tw_clear_destination=%tw_back%</action>
781 <action function="page">clear_vars</action>
782 </actions>
783 </action>
784
785 <action>
786 <touch key="home"/>
787 <action function="page">main</action>
788 </action>
789 </page>
790
791 <page name="action_page">
792 <template name="page"/>
793
794 <text style="text_l">
795 <placement x="%col1_x_header%" y="%row3_header_y%"/>
796 <text>%tw_action_text1%</text>
797 </text>
798
799 <text style="text_m">
800 <placement x="%col1_x_header%" y="%row4_header_y%"/>
801 <text>%tw_action_text2%</text>
802 </text>
803
804 <template name="console"/>
805
806 <template name="progress_bar"/>
807
808 <button style="main_button_half_height">
809 <condition var1="tw_has_cancel" var2="1"/>
810 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500811 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100812 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
813 </button>
814
815 <action>
816 <condition var1="tw_operation_state" var2="1"/>
817 <actions>
818 <action function="page">action_complete</action>
819 </actions>
820 </action>
821
822 <action>
823 <condition var1="tw_has_action2" var2="0"/>
824 <actions>
825 <action function="%tw_action%">%tw_action_param%</action>
826 </actions>
827 </action>
828
829 <action>
830 <condition var1="tw_has_action2" var2="1"/>
831 <actions>
832 <action function="%tw_action%">%tw_action_param%</action>
833 <action function="%tw_action2%">%tw_action2_param%</action>
834 </actions>
835 </action>
836 </page>
837
838 <page name="singleaction_page">
839 <template name="page"/>
840
841 <text style="text_l">
842 <placement x="%col1_x_header%" y="%row3_header_y%"/>
843 <text>%tw_action_text1%</text>
844 </text>
845
846 <text style="text_m">
847 <placement x="%col1_x_header%" y="%row4_header_y%"/>
848 <text>%tw_action_text2%</text>
849 </text>
850
851 <template name="console"/>
852
853 <template name="progress_bar"/>
854
855 <action>
856 <condition var1="tw_operation_state" var2="1"/>
857 <actions>
858 <action function="set">tw_page_done=1</action>
859 </actions>
860 </action>
861
862 <action>
863 <condition var1="tw_has_action2" var2="0"/>
864 <actions>
865 <action function="%tw_action%">%tw_action_param%</action>
866 </actions>
867 </action>
868
869 <action>
870 <condition var1="tw_has_action2" var2="1"/>
871 <actions>
872 <action function="%tw_action%">%tw_action_param%</action>
873 <action function="%tw_action2%">%tw_action2_param%</action>
874 </actions>
875 </action>
876 </page>
877
878 <page name="action_complete">
879 <template name="page"/>
880
881 <text style="text_l">
882 <placement x="%col1_x_header%" y="%row3_header_y%"/>
883 <text>%tw_complete_text1%</text>
884 </text>
885
886 <text style="text_m_fail">
887 <condition var1="tw_operation_status" op="!=" var2="0"/>
888 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500889 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100890 </text>
891
892 <text style="text_m">
893 <condition var1="tw_operation_status" var2="0"/>
894 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500895 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100896 </text>
897
898 <template name="console"/>
899
900 <button style="main_button_half_height">
901 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500902 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100903 <actions>
904 <action function="set">tw_clear_destination=%tw_back%</action>
905 <action function="page">clear_vars</action>
906 </actions>
907 </button>
908
909 <button style="main_button_half_height">
910 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500911 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100912 <actions>
913 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500914 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100915 </actions>
916 </button>
917
918 <action>
919 <touch key="home"/>
920 <actions>
921 <action function="set">tw_clear_destination=main2</action>
922 <action function="page">clear_vars</action>
923 </actions>
924 </action>
925
926 <action>
927 <touch key="back"/>
928 <actions>
929 <action function="set">tw_clear_destination=%tw_back%</action>
930 <action function="page">clear_vars</action>
931 </actions>
932 </action>
933 </page>
934
935 <page name="filecheck">
936 <action>
937 <action function="fileexists">%tw_filecheck%</action>
938 </action>
939
940 <action>
941 <conditions>
942 <condition var1="tw_operation_state" var2="1"/>
943 <condition var1="tw_operation_status" var2="0"/>
944 </conditions>
945 <actions>
946 <action function="set">tw_fileexists=1</action>
947 <action function="page">%tw_existpage%</action>
948 </actions>
949 </action>
950
951 <action>
952 <conditions>
953 <condition var1="tw_operation_state" var2="1"/>
954 <condition var1="tw_operation_status" var2="1"/>
955 </conditions>
956 <actions>
957 <action function="set">tw_fileexists=0</action>
958 <action function="page">%tw_notexistpage%</action>
959 </actions>
960 </action>
961 </page>
962
963 <page name="rebootcheck">
964 <action>
965 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600966 <action function="page">appcheck</action>
z31s1g28f0a922015-11-07 18:50:22 +0100967 </action>
968
969 <action>
970 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
971 <action function="page">confirm_action</action>
972 </action>
973 </page>
974
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -0600975 <page name="appcheck">
976 <action>
977 <condition var1="tw_app_prompt" var2="1"/>
978 <action function="checkforapp"></action>
979 </action>
980
981 <action>
982 <condition var1="tw_app_prompt" op="!=" var2="1"/>
983 <action function="reboot">%tw_reboot_param%</action>
984 </action>
985
986 <action>
987 <condition var1="tw_app_install_status" var2="1"/>
988 <action function="page">rebootapp</action>
989 </action>
990
991 <action>
992 <condition var1="tw_app_install_status" var2="2"/>
993 <action function="reboot">%tw_reboot_param%</action>
994 </action>
995 </page>
996
z31s1g28f0a922015-11-07 18:50:22 +0100997 <page name="wipe">
998 <template name="page"/>
999
1000 <text style="text_l">
1001 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001002 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001003 </text>
1004
1005 <text style="text_m">
1006 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001007 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001008 </text>
1009
1010 <text style="text_m_accent">
1011 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001012 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001013 </text>
1014
1015 <text style="text_m_accent">
Noah Jacobson0b25b1d2019-04-28 00:10:07 -04001016 <condition var1="tw_has_data_media" var2="1"/>
bigbiffadc599e2020-05-28 19:36:30 +00001017 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001018 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001019 </text>
1020
1021 <text style="text_m_accent">
1022 <conditions>
1023 <condition var1="tw_has_android_secure" var2="1"/>
1024 <condition var1="fileexists" var2="/and-sec"/>
1025 </conditions>
1026 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001027 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001028 </text>
1029
1030 <text style="text_m_accent">
1031 <condition var1="tw_has_sdext_partition" var2="1"/>
1032 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001033 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001034 </text>
1035
1036 <text style="text_m">
1037 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001038 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001039 </text>
1040
1041 <text style="text_m">
1042 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001043 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001044 </text>
1045
1046 <text style="text_m">
1047 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001048 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001049 </text>
1050
1051 <button style="main_button_half_height">
1052 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001053 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001054 <actions>
1055 <action function="set">partitionlisterror=0</action>
1056 <action function="page">advancedwipe</action>
1057 </actions>
1058 </button>
1059
1060 <button style="main_button_half_height">
1061 <condition var1="tw_has_data_media" var2="1"/>
1062 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001063 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001064 <action function="page">formatdata</action>
1065 </button>
1066
1067 <button style="main_button_half_height">
1068 <conditions>
1069 <condition var1="tw_is_encrypted" var2="1"/>
1070 <condition var1="tw_has_data_media" var2="0"/>
1071 </conditions>
1072 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001073 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001074 <actions>
1075 <action function="set">tw_back=wipe</action>
1076 <action function="set">tw_action=wipe</action>
1077 <action function="set">tw_action_param=DATAMEDIA</action>
1078 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001079 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001080 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1082 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1083 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001084 <action function="page">confirm_action</action>
1085 </actions>
1086 </button>
1087
1088 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001089 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001090 <actions>
1091 <action function="set">tw_back=wipe</action>
1092 <action function="set">tw_action=wipe</action>
1093 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001094 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1095 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001096 <action function="page">action_page</action>
1097 </actions>
1098 </slider>
1099
1100 <action>
1101 <touch key="back"/>
1102 <action function="page">main</action>
1103 </action>
1104
1105 <action>
1106 <touch key="home"/>
1107 <action function="page">main</action>
1108 </action>
1109 </page>
1110
1111 <page name="advancedwipe">
1112 <template name="page"/>
1113
1114 <action>
1115 <action function="set">tw_wipe_list=</action>
1116 </action>
1117
1118 <text style="text_l">
1119 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001120 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001121 </text>
1122
1123 <text style="text_m">
1124 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 </text>
1127
1128 <partitionlist>
1129 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <data name="tw_wipe_list"/>
1132 <listtype name="wipe"/>
1133 </partitionlist>
1134
1135 <text style="text_m_fail">
1136 <condition var1="partitionlisterror" var2="1"/>
1137 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 </text>
1140
1141 <button style="main_button_half_height_full_width">
1142 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001143 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001144 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001145 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001146 <action function="page">checkpartitionlist</action>
1147 </actions>
1148 </button>
1149
1150 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001151 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001152 <actions>
1153 <action function="set">tw_back=advancedwipe</action>
1154 <action function="set">tw_action=wipe</action>
1155 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001156 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1157 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1158 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001159 <action function="page">action_page</action>
1160 </actions>
1161 </slider>
1162
1163 <action>
1164 <touch key="home"/>
1165 <action function="page">main</action>
1166 </action>
1167
1168 <action>
1169 <touch key="back"/>
1170 <action function="page">wipe</action>
1171 </action>
1172 </page>
1173
1174 <page name="formatdata">
1175 <template name="page"/>
1176
1177 <text style="text_l">
1178 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001179 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001180 </text>
1181
1182 <text style="text_m">
1183 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001184 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001185 </text>
1186
1187 <text style="text_m_fail">
1188 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001189 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001190 </text>
1191
1192 <text style="text_m_fail">
1193 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001194 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001195 </text>
1196
1197 <text style="text_m_fail">
1198 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001199 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001200 </text>
1201
Ethan Yonker66a19492015-12-10 10:19:45 -06001202 <text style="text_m_fail">
1203 <condition var1="tw_has_adopted_storage" var2="1"/>
1204 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1205 <text>{@format_data_adopted=Including Adopted Storage}</text>
1206 </text>
1207
z31s1g28f0a922015-11-07 18:50:22 +01001208 <text style="text_m">
1209 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001210 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001211 </text>
1212
1213 <text style="text_m">
1214 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001215 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001216 </text>
1217
1218 <input>
1219 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1220 <text>%tw_confirm_formatdata%</text>
1221 <data name="tw_confirm_formatdata"/>
1222 <restrict minlen="3" maxlen="3" allow="yes"/>
1223 <action function="page">formatdata_confirm</action>
1224 </input>
1225
1226 <fill color="%accent_color%">
1227 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1228 </fill>
1229
1230 <template name="keyboardtemplate"/>
1231
1232 <action>
1233 <touch key="home"/>
1234 <action function="page">main</action>
1235 </action>
1236
1237 <action>
1238 <touch key="back"/>
1239 <action function="page">wipe</action>
1240 </action>
1241 </page>
1242
1243 <page name="formatdata_confirm">
1244 <action>
1245 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1246 <actions>
1247 <action function="set">tw_back=formatdata</action>
1248 <action function="set">tw_action=wipe</action>
1249 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001250 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1251 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001252 <action function="page">action_page</action>
1253 </actions>
1254 </action>
1255
1256 <action>
1257 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1258 <action function="page">formatdata</action>
1259 </action>
1260 </page>
1261
1262 <page name="checkpartitionlist">
1263 <action>
1264 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1265 <actions>
1266 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001267 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001268 <action function="page">partitionoptions</action>
1269 </actions>
1270 </action>
1271
1272 <action>
1273 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1274 <actions>
1275 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001276 <action function="page">advancedwipe</action>
1277 </actions>
1278 </action>
1279 </page>
1280
1281 <page name="partitionoptions">
1282 <template name="page"/>
1283
1284 <text style="text_l">
1285 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001286 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001287 </text>
1288
1289 <text style="text_m">
1290 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001291 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001292 </text>
1293
1294 <text style="text_m_accent">
1295 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001296 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001297 </text>
1298
1299 <text style="text_m_accent">
1300 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001301 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001302 </text>
1303
1304 <text style="text_m">
1305 <condition var1="tw_partition_is_present" var2="1"/>
1306 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001307 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001308 </text>
1309
1310 <text style="text_m">
1311 <condition var1="tw_partition_is_present" var2="0"/>
1312 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001313 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001314 </text>
1315
1316 <text style="text_m">
1317 <condition var1="tw_partition_removable" var2="1"/>
1318 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001319 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001320 </text>
1321
1322 <text style="text_m">
1323 <condition var1="tw_partition_removable" var2="0"/>
1324 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001325 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001326 </text>
1327
1328 <text style="text_m">
1329 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001330 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001331 </text>
1332
1333 <text style="text_m">
1334 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001335 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001336 </text>
1337
1338 <text style="text_m">
1339 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001340 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001341 </text>
1342
1343 <text style="text_m">
1344 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001346 </text>
1347
1348 <button style="main_button_half_height">
1349 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1350 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001351 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001352 <actions>
1353 <action function="set">tw_back=partitionoptions</action>
1354 <action function="set">tw_action=resize</action>
1355 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1356 <action function="set">tw_has_action2=1</action>
1357 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001358 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001360 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1362 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1363 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001364 <action function="page">confirm_action</action>
1365 </actions>
1366 </button>
1367
1368 <button style="main_button_half_height">
1369 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1370 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001372 <actions>
1373 <action function="set">tw_back=partitionoptions</action>
1374 <action function="set">tw_action=repair</action>
1375 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1376 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001377 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001378 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001379 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1380 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1381 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001382 <action function="page">confirm_action</action>
1383 </actions>
1384 </button>
1385
1386 <button style="main_button_half_height">
1387 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001388 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001389 <action function="page">selectfilesystem</action>
1390 </button>
1391
1392 <action>
1393 <touch key="home"/>
1394 <action function="page">main</action>
1395 </action>
1396
1397 <action>
1398 <touch key="back"/>
1399 <action function="page">advancedwipe</action>
1400 </action>
1401 </page>
1402
1403 <page name="refreshfilesystem">
1404 <action>
1405 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1406 <actions>
1407 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001408 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001409 <action function="page">selectfilesystem</action>
1410 </actions>
1411 </action>
1412
1413 <action>
1414 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1415 <actions>
1416 <action function="set">partitionlisterror=1</action>
1417 <action function="set">tw_wipe_list=</action>
1418 <action function="page">advancedwipe</action>
1419 </actions>
1420 </action>
1421 </page>
1422
1423 <page name="selectfilesystem">
1424 <template name="page"/>
1425
1426 <text style="text_l">
1427 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001428 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001429 </text>
1430
1431 <text style="text_m">
1432 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001433 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001434 </text>
1435
1436 <text style="text_m_accent">
1437 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001438 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001439 </text>
1440
1441 <text style="text_m_accent">
1442 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001443 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001444 </text>
1445
1446 <text style="text_m_fail">
1447 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001448 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001449 </text>
1450
1451 <text style="text_m_fail">
1452 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001454 </text>
1455
1456 <button style="main_button_half_height">
1457 <condition var1="tw_partition_ext" op="=" var2="1"/>
1458 <placement x="%indent%" y="%row15a_y%"/>
1459 <text>EXT2</text>
1460 <actions>
1461 <action function="set">tw_back=refreshfilesystem</action>
1462 <action function="set">tw_action=changefilesystem</action>
1463 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1464 <action function="set">tw_action_new_file_system=ext2</action>
1465 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001466 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1467 <action function="set">tw_text2=EXT2</action>
1468 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1469 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1470 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001471 <action function="page">confirm_action</action>
1472 </actions>
1473 </button>
1474
1475 <button style="main_button_half_height">
1476 <condition var1="tw_partition_ext" op="=" var2="1"/>
1477 <placement x="%indent%" y="%row18a_y%"/>
1478 <text>EXT3</text>
1479 <actions>
1480 <action function="set">tw_back=refreshfilesystem</action>
1481 <action function="set">tw_action=changefilesystem</action>
1482 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1483 <action function="set">tw_action_new_file_system=ext3</action>
1484 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001485 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1486 <action function="set">tw_text2=EXT3</action>
1487 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1488 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1489 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001490 <action function="page">confirm_action</action>
1491 </actions>
1492 </button>
1493
1494 <button style="main_button_half_height">
1495 <condition var1="tw_partition_ext" op="=" var2="1"/>
1496 <placement x="%indent%" y="%row21a_y%"/>
1497 <text>EXT4</text>
1498 <actions>
1499 <action function="set">tw_back=refreshfilesystem</action>
1500 <action function="set">tw_action=changefilesystem</action>
1501 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1502 <action function="set">tw_action_new_file_system=ext4</action>
1503 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001504 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1505 <action function="set">tw_text2=EXT4</action>
1506 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1507 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1508 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001509 <action function="page">confirm_action</action>
1510 </actions>
1511 </button>
1512
1513 <button style="main_button_half_height">
1514 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1515 <placement x="%center_x%" y="%row15a_y%"/>
1516 <text>FAT</text>
1517 <actions>
1518 <action function="set">tw_back=refreshfilesystem</action>
1519 <action function="set">tw_action=changefilesystem</action>
1520 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1521 <action function="set">tw_action_new_file_system=vfat</action>
1522 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001523 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1524 <action function="set">tw_text2=FAT</action>
1525 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1526 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1527 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001528 <action function="page">confirm_action</action>
1529 </actions>
1530 </button>
1531
1532 <button style="main_button_half_height">
1533 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1534 <placement x="%center_x%" y="%row18a_y%"/>
1535 <text>exFAT</text>
1536 <actions>
1537 <action function="set">tw_back=refreshfilesystem</action>
1538 <action function="set">tw_action=changefilesystem</action>
1539 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1540 <action function="set">tw_action_new_file_system=exfat</action>
1541 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001542 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1543 <action function="set">tw_text2=exFAT</action>
1544 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1545 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1546 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001547 <action function="page">confirm_action</action>
1548 </actions>
1549 </button>
1550
1551 <button style="main_button_half_height">
1552 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1553 <placement x="%center_x%" y="%row21a_y%"/>
1554 <text>F2FS</text>
1555 <actions>
1556 <action function="set">tw_back=refreshfilesystem</action>
1557 <action function="set">tw_action=changefilesystem</action>
1558 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1559 <action function="set">tw_action_new_file_system=f2fs</action>
1560 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001561 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1562 <action function="set">tw_text2=F2FS</action>
1563 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1564 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1565 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001566 <action function="page">confirm_action</action>
1567 </actions>
1568 </button>
1569
1570 <action>
1571 <touch key="home"/>
1572 <action function="page">main</action>
1573 </action>
1574
1575 <action>
1576 <touch key="back"/>
1577 <action function="page">partitionoptions</action>
1578 </action>
1579 </page>
1580
1581 <page name="backup">
1582 <template name="page"/>
1583
1584 <text style="text_l">
1585 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001586 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001587 </text>
1588
1589 <text style="text_m">
1590 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001591 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001592 </text>
1593
1594 <template name="tabs_backup"/>
1595
1596 <fill color="%text_color%">
1597 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1598 </fill>
1599
1600 <button style="tab">
1601 <conditions>
1602 <condition var1="tw_include_encrypted_backup" var2="1"/>
1603 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001604 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001605 </conditions>
1606 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001607 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001608 <font resource="font_s" color="%text_color%"/>
1609 <actions>
1610 <action function="set">tw_password_not_match=0</action>
1611 <action function="page">backupencryption</action>
1612 </actions>
1613 </button>
1614
1615 <button style="tab">
1616 <conditions>
1617 <condition var1="tw_include_encrypted_backup" var2="1"/>
1618 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001619 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001620 </conditions>
1621 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001622 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001623 <font resource="font_s" color="%text_success_color%"/>
1624 <actions>
1625 <action function="set">tw_password_not_match=0</action>
1626 <action function="page">backupencryption</action>
1627 </actions>
1628 </button>
1629
1630 <text style="text_m_accent">
1631 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001632 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001633 </text>
1634
1635 <text style="text_m">
1636 <placement x="%indent%" y="%row4a_y%"/>
1637 <text>%tw_backup_name%</text>
1638 </text>
1639
1640 <fill color="%fileselector_linecolor%">
1641 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1642 </fill>
1643
1644 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001645 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001646 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1647 <fill color="%transparent%"/>
1648 <actions>
1649 <action function="set">tw_fileexists=0</action>
1650 <action function="page">backupname1</action>
1651 </actions>
1652 </button>
1653
1654 <partitionlist>
1655 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001656 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001657 <data name="tw_backup_list"/>
1658 <listtype name="backup"/>
1659 </partitionlist>
1660
1661 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001662 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001663 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001664 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001665 <actions>
1666 <action function="set">tw_back=backup</action>
1667 <action function="overlay">select_storage</action>
1668 </actions>
1669 </button>
1670
1671 <button style="main_button_half_height">
1672 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001673 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001674 <actions>
1675 <action function="refreshsizes"/>
1676 <action function="page">backup</action>
1677 </actions>
1678 </button>
1679
1680 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001681 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001682 <action function="page">backup_run</action>
1683 </slider>
1684
1685 <action>
1686 <touch key="home"/>
1687 <action function="page">main</action>
1688 </action>
1689
1690 <action>
1691 <touch key="back"/>
1692 <action function="page">main</action>
1693 </action>
1694 </page>
1695
1696 <page name="backup_options">
1697 <template name="page"/>
1698
1699 <text style="text_l">
1700 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001701 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001702 </text>
1703
1704 <text style="text_m">
1705 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001706 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001707 </text>
1708
1709 <template name="tabs_backup"/>
1710
1711 <fill color="%text_color%">
1712 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1713 </fill>
1714
1715 <button style="tab">
1716 <conditions>
1717 <condition var1="tw_include_encrypted_backup" var2="1"/>
1718 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001719 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001720 </conditions>
1721 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001722 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001723 <font resource="font_s" color="%text_color%"/>
1724 <actions>
1725 <action function="set">tw_password_not_match=0</action>
1726 <action function="page">backupencryption</action>
1727 </actions>
1728 </button>
1729
1730 <button style="tab">
1731 <conditions>
1732 <condition var1="tw_include_encrypted_backup" var2="1"/>
1733 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001734 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001735 </conditions>
1736 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001737 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001738 <font resource="font_s" color="%text_success_color%"/>
1739 <actions>
1740 <action function="set">tw_password_not_match=0</action>
1741 <action function="page">backupencryption</action>
1742 </actions>
1743 </button>
1744
1745 <checkbox>
1746 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 <data variable="tw_use_compression"/>
1749 </checkbox>
1750
1751 <checkbox>
1752 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001753 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1754 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001755 </checkbox>
1756
1757 <checkbox>
1758 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001759 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001760 <data variable="tw_disable_free_space"/>
1761 </checkbox>
1762
Ethan Yonker1b190162016-12-05 15:25:19 -06001763 <text style="text_m">
1764 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001765 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001766 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1767 </text>
1768
1769 <button style="main_button">
1770 <condition var1="tw_has_boot_slots" var2="1"/>
1771 <placement x="%indent%" y="%row19_y%"/>
1772 <text>{@boot_slot_a=Slot A}</text>
1773 <actions>
1774 <action function="set">tw_back=backup_options</action>
1775 <action function="set">tw_action=setbootslot</action>
1776 <action function="set">tw_action_param=A</action>
1777 <action function="set">tw_has_action2=0</action>
1778 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1779 <action function="set">tw_action_text2=</action>
1780 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1781 <action function="page">action_page</action>
1782 </actions>
1783 </button>
1784
1785 <button style="main_button">
1786 <condition var1="tw_has_boot_slots" var2="1"/>
1787 <placement x="%center_x%" y="%row19_y%"/>
1788 <text>{@boot_slot_b=Slot B}</text>
1789 <actions>
1790 <action function="set">tw_back=backup_options</action>
1791 <action function="set">tw_action=setbootslot</action>
1792 <action function="set">tw_action_param=B</action>
1793 <action function="set">tw_has_action2=0</action>
1794 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1795 <action function="set">tw_action_text2=</action>
1796 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1797 <action function="page">action_page</action>
1798 </actions>
1799 </button>
1800
z31s1g28f0a922015-11-07 18:50:22 +01001801 <action>
1802 <touch key="home"/>
1803 <action function="page">main</action>
1804 </action>
1805
1806 <action>
1807 <touch key="back"/>
1808 <action function="page">backup</action>
1809 </action>
1810 </page>
1811
1812 <page name="backupname1">
1813 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001814 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001815 <action function="generatebackupname"/>
1816 </action>
1817
1818 <action>
1819 <action function="page">backupname2</action>
1820 </action>
1821 </page>
1822
1823 <page name="backupname2">
1824 <template name="page"/>
1825
1826 <text style="text_l">
1827 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001828 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001829 </text>
1830
1831 <text style="text_m">
1832 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001833 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001834 </text>
1835
1836 <template name="tabs_backup"/>
1837
1838 <fill color="%text_color%">
1839 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1840 </fill>
1841
1842 <button style="tab">
1843 <conditions>
1844 <condition var1="tw_include_encrypted_backup" var2="1"/>
1845 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001846 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001847 </conditions>
1848 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001849 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001850 <font resource="font_s" color="%text_color%"/>
1851 <actions>
1852 <action function="set">tw_password_not_match=0</action>
1853 <action function="page">backupencryption</action>
1854 </actions>
1855 </button>
1856
1857 <button style="tab">
1858 <conditions>
1859 <condition var1="tw_include_encrypted_backup" var2="1"/>
1860 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001861 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001862 </conditions>
1863 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001864 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001865 <font resource="font_s" color="%text_success_color%"/>
1866 <actions>
1867 <action function="set">tw_password_not_match=0</action>
1868 <action function="page">backupencryption</action>
1869 </actions>
1870 </button>
1871
1872 <text style="text_m_accent">
1873 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001874 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001875 </text>
1876
1877 <input>
1878 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1879 <text>%tw_backup_name%</text>
1880 <data name="tw_backup_name"/>
1881 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1882 <actions>
1883 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1884 <action function="set">tw_existpage=backupname2</action>
1885 <action function="set">tw_notexistpage=backup</action>
1886 <action function="page">filecheck</action>
1887 </actions>
1888 </input>
1889
1890 <fill color="%accent_color%">
1891 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1892 </fill>
1893
1894 <fill color="%text_fail_color%">
1895 <condition var1="tw_fileexists" var2="1"/>
1896 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1897 </fill>
1898
1899 <text style="text_m_fail">
1900 <condition var1="tw_fileexists" var2="1"/>
1901 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001902 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </text>
1904
1905 <button style="main_button_half_height">
1906 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001907 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001908 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001909 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001910 <action function="page">backup</action>
1911 </actions>
1912 </button>
1913
1914 <button style="main_button_half_height">
1915 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001916 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001917 <action function="appenddatetobackupname"/>
1918 </button>
1919
1920 <template name="keyboardtemplate"/>
1921
1922 <action>
1923 <touch key="home"/>
1924 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001925 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001926 <action function="page">main</action>
1927 </actions>
1928 </action>
1929
1930 <action>
1931 <touch key="back"/>
1932 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <action function="page">backup</action>
1935 </actions>
1936 </action>
1937 </page>
1938
1939 <page name="backupencryption">
1940 <template name="page"/>
1941
1942 <text style="text_l">
1943 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001944 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001945 </text>
1946
1947 <text style="text_m">
1948 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 </text>
1951
1952 <template name="tabs_backup"/>
1953
1954 <button style="tab">
1955 <conditions>
1956 <condition var1="tw_include_encrypted_backup" var2="1"/>
1957 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001958 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001959 </conditions>
1960 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001961 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001962 <font resource="font_s" color="%text_color%"/>
1963 <actions>
1964 <action function="set">tw_password_not_match=0</action>
1965 <action function="page">backupencryption</action>
1966 </actions>
1967 </button>
1968
1969 <button style="tab">
1970 <conditions>
1971 <condition var1="tw_include_encrypted_backup" var2="1"/>
1972 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001973 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001974 </conditions>
1975 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001976 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001977 <font resource="font_s" color="%text_success_color%"/>
1978 <actions>
1979 <action function="set">tw_password_not_match=0</action>
1980 <action function="page">backupencryption</action>
1981 </actions>
1982 </button>
1983
1984 <fill color="%text_color%">
1985 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1986 </fill>
1987
1988 <text style="text_m_accent">
1989 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001990 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001991 </text>
1992
1993 <text style="text_m">
1994 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001995 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001996 </text>
1997
1998 <input>
1999 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2000 <text>%tw_backup_encrypt_display%</text>
2001 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2002 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2003 <action function="page">backupencryption2</action>
2004 </input>
2005
2006 <fill color="%accent_color%">
2007 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2008 </fill>
2009
2010 <fill color="%text_fail_color%">
2011 <condition var1="tw_password_not_match" var2="1"/>
2012 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2013 </fill>
2014
2015 <text style="text_m_fail">
2016 <condition var1="tw_password_not_match" var2="1"/>
2017 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002019 </text>
2020
2021 <button style="main_button_half_height">
2022 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002023 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002024 <actions>
2025 <action function="set">tw_encrypt_backup=0</action>
2026 <action function="set">tw_backup_password=</action>
2027 <action function="set">tw_backup_password2=</action>
2028 <action function="set">tw_backup_encrypt_display=</action>
2029 <action function="set">tw_backup_encrypt_display2=</action>
2030 <action function="page">backup</action>
2031 </actions>
2032 </button>
2033
2034 <template name="keyboardtemplate"/>
2035
2036 <action>
2037 <touch key="home"/>
2038 <action function="page">main</action>
2039 </action>
2040
2041 <action>
2042 <touch key="back"/>
2043 <action function="page">backup</action>
2044 </action>
2045 </page>
2046
2047 <page name="backupencryption2">
2048 <template name="page"/>
2049
2050 <text style="text_l">
2051 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002052 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002053 </text>
2054
2055 <text style="text_m">
2056 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002057 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002058 </text>
2059
2060 <template name="tabs_backup"/>
2061
2062 <button style="tab">
2063 <conditions>
2064 <condition var1="tw_include_encrypted_backup" var2="1"/>
2065 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002066 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002067 </conditions>
2068 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002069 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002070 <font resource="font_s" color="%text_color%"/>
2071 <actions>
2072 <action function="set">tw_password_not_match=0</action>
2073 <action function="page">backupencryption</action>
2074 </actions>
2075 </button>
2076
2077 <button style="tab">
2078 <conditions>
2079 <condition var1="tw_include_encrypted_backup" var2="1"/>
2080 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002081 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002082 </conditions>
2083 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002084 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002085 <font resource="font_s" color="%text_success_color%"/>
2086 <actions>
2087 <action function="set">tw_password_not_match=0</action>
2088 <action function="page">backupencryption</action>
2089 </actions>
2090 </button>
2091
2092 <fill color="%text_color%">
2093 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2094 </fill>
2095
2096 <text style="text_m_accent">
2097 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002098 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002099 </text>
2100
2101 <text style="text_m">
2102 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002103 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002104 </text>
2105
2106 <input>
2107 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2108 <text>%tw_backup_encrypt_display2%</text>
2109 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2110 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2111 <action function="page">checkbackuppassword</action>
2112 </input>
2113
2114 <fill color="%accent_color%">
2115 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2116 </fill>
2117
2118 <button style="main_button_half_height">
2119 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002120 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002121 <actions>
2122 <action function="set">tw_encrypt_backup=0</action>
2123 <action function="set">tw_backup_password=</action>
2124 <action function="set">tw_backup_password2=</action>
2125 <action function="set">tw_backup_encrypt_display=</action>
2126 <action function="set">tw_backup_encrypt_display2=</action>
2127 <action function="page">backup</action>
2128 </actions>
2129 </button>
2130
2131 <template name="keyboardtemplate"/>
2132
2133 <action>
2134 <touch key="home"/>
2135 <action function="page">main</action>
2136 </action>
2137
2138 <action>
2139 <touch key="back"/>
2140 <action function="page">backup</action>
2141 </action>
2142 </page>
2143
2144 <page name="checkbackuppassword">
2145 <action>
2146 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2147 <actions>
2148 <action function="set">tw_encrypt_backup=1</action>
2149 <action function="page">backup</action>
2150 </actions>
2151 </action>
2152
2153 <action>
2154 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2155 <actions>
2156 <action function="set">tw_encrypt_backup=0</action>
2157 <action function="set">tw_password_not_match=1</action>
2158 <action function="set">tw_backup_password=</action>
2159 <action function="set">tw_backup_password2=</action>
2160 <action function="set">tw_backup_encrypt_display=</action>
2161 <action function="set">tw_backup_encrypt_display2=</action>
2162 <action function="page">backupencryption</action>
2163 </actions>
2164 </action>
2165 </page>
2166
2167 <page name="backup_run">
2168 <template name="page"/>
2169
2170 <text style="text_l">
2171 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2172 <text>%tw_operation%</text>
2173 </text>
2174
2175 <text style="text_m">
2176 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2177 <text>%tw_partition% Partition</text>
2178 </text>
2179
2180 <template name="console"/>
2181
2182 <template name="progress_bar"/>
2183
2184 <text style="text_m_accent">
2185 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002186 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002187 </text>
2188
2189 <text style="text_m">
2190 <placement x="%indent%" y="%row20_y%"/>
2191 <text>%tw_file_progress%</text>
2192 </text>
2193
2194 <text style="text_m">
2195 <placement x="%indent%" y="%row21_y%"/>
2196 <text>%tw_size_progress%</text>
2197 </text>
2198
2199 <button style="main_button_half_height">
2200 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002201 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002202 <action function="cancelbackup"/>
2203 </button>
2204
2205 <action>
2206 <action function="nandroid">backup</action>
2207 </action>
2208
2209 <action>
2210 <condition var1="tw_operation_state" var2="1"/>
2211 <condition var1="tw_cancel_backup" var2="0"/>
2212 <actions>
2213 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002214 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002215 <action function="set">tw_show_reboot=1</action>
2216 <action function="page">action_complete</action>
2217 </actions>
2218 </action>
2219
2220 <action>
2221 <condition var1="tw_operation_state" var2="1"/>
2222 <condition var1="tw_cancel_backup" var2="1"/>
2223 <actions>
2224 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002225 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002226 <action function="set">tw_show_reboot=1</action>
2227 <action function="page">action_complete</action>
2228 </actions>
2229 </action>
2230 </page>
2231
2232 <page name="restore">
2233 <template name="page"/>
2234
2235 <text style="text_l">
2236 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002237 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002238 </text>
2239
2240 <text style="text_m">
2241 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002242 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002243 </text>
2244
2245 <template name="sort_options"/>
2246
2247 <fileselector>
2248 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002249 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002250 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002251 <path name="tw_backups_folder"/>
2252 <data name="tw_restore" default=""/>
2253 <selection name="tw_restore_name"/>
2254 </fileselector>
2255
2256 <button style="main_button_half_height">
2257 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002258 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002259 <actions>
2260 <action function="set">tw_back=restore</action>
2261 <action function="overlay">select_storage</action>
2262 </actions>
2263 </button>
2264
2265 <action>
2266 <condition var1="tw_restore" op="modified"/>
2267 <actions>
2268 <action function="readBackup"/>
2269 <action function="page">restore_read</action>
2270 </actions>
2271 </action>
2272
2273 <action>
2274 <touch key="home"/>
2275 <action function="page">main</action>
2276 </action>
2277
2278 <action>
2279 <touch key="back"/>
2280 <action function="page">main</action>
2281 </action>
2282 </page>
2283
2284 <page name="restore_read">
2285 <action>
2286 <condition var1="tw_restore_encrypted" var2="1"/>
2287 <actions>
2288 <action function="set">tw_password_fail=0</action>
2289 <action function="page">restore_decrypt</action>
2290 </actions>
2291 </action>
2292
2293 <action>
2294 <condition var1="tw_restore_encrypted" var2="0"/>
2295 <actions>
2296 <action function="page">restore_select</action>
2297 </actions>
2298 </action>
2299 </page>
2300
2301 <page name="restore_decrypt">
2302 <template name="page"/>
2303
2304 <text style="text_l">
2305 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002306 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002307 </text>
2308
2309 <text style="text_m">
2310 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 </text>
2313
2314 <text style="text_m_accent">
2315 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002316 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002317 </text>
2318
2319 <input>
2320 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2321 <text>%tw_restore_display%</text>
2322 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2323 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2324 <action function="page">try_restore_decrypt</action>
2325 </input>
2326
2327 <fill color="%accent_color%">
2328 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2329 </fill>
2330
2331 <fill color="%text_fail_color%">
2332 <condition var1="tw_password_fail" var2="1"/>
2333 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2334 </fill>
2335
2336 <text style="text_m_fail">
2337 <condition var1="tw_password_fail" var2="1"/>
2338 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002339 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002340 </text>
2341
2342 <button style="main_button_half_height">
2343 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002344 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002345 <actions>
2346 <action function="set">tw_page_done=1</action>
2347 <action function="page">restore</action>
2348 </actions>
2349 </button>
2350
2351 <button style="main_button_half_height">
2352 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002353 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002354 <actions>
2355 <action function="set">tw_back=restore</action>
2356 <action function="set">tw_action=cmd</action>
2357 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002358 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2359 <action function="set">tw_text2=%tw_restore_name%</action>
2360 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2361 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2362 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2363 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002364 <action function="page">confirm_action</action>
2365 </actions>
2366 </button>
2367
2368 <template name="keyboardtemplate"/>
2369
2370 <action>
2371 <touch key="home"/>
2372 <action function="page">main</action>
2373 </action>
2374
2375 <action>
2376 <touch key="back"/>
2377 <action function="page">restore</action>
2378 </action>
2379 </page>
2380
2381 <page name="try_restore_decrypt">
2382 <template name="page"/>
2383
2384 <text style="text_l">
2385 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002386 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002387 </text>
2388
2389 <text style="text_m">
2390 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002391 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002392 </text>
2393
2394 <template name="console"/>
2395
2396 <template name="progress_bar"/>
2397
2398 <action>
2399 <action function="decrypt_backup"/>
2400 </action>
2401
2402 <action>
2403 <conditions>
2404 <condition var1="tw_operation_state" var2="1"/>
2405 <condition var1="tw_operation_status" op="!=" var2="0"/>
2406 </conditions>
2407 <actions>
2408 <action function="set">tw_password_fail=1</action>
2409 <action function="page">restore_decrypt</action>
2410 </actions>
2411 </action>
2412
2413 <action>
2414 <conditions>
2415 <condition var1="tw_operation_state" var2="1"/>
2416 <condition var1="tw_operation_status" op="=" var2="0"/>
2417 </conditions>
2418 <actions>
2419 <action function="set">tw_page_done=1</action>
2420 <action function="page">restore_select</action>
2421 </actions>
2422 </action>
2423 </page>
2424
2425 <page name="restore_select">
2426 <template name="page"/>
2427
2428 <text style="text_l">
2429 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002430 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002431 </text>
2432
2433 <text style="text_m">
2434 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002435 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002436 </text>
2437
2438 <text style="text_m_accent">
2439 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002440 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002441 </text>
2442
2443 <text style="text_m">
2444 <placement x="%indent%" y="%row3_y%"/>
2445 <text>%tw_restore_name%</text>
2446 </text>
2447
2448 <fill color="%fileselector_linecolor%">
2449 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2450 </fill>
2451
2452 <button>
2453 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2454 <fill color="%transparent%"/>
2455 <actions>
2456 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2457 <action function="set">tw_fileexists=0</action>
2458 <action function="page">renamebackup</action>
2459 </actions>
2460 </button>
2461
2462 <partitionlist>
2463 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002464 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002465 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2466 <listtype name="restore"/>
2467 </partitionlist>
2468
2469 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002470 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002471 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002472 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2473 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002474 </checkbox>
2475
2476 <button style="main_button_half_height">
2477 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002478 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002479 <actions>
2480 <action function="set">tw_back=restore</action>
2481 <action function="set">tw_action=cmd</action>
2482 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002483 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002484 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002485 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2486 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2487 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2488 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002489 <action function="page">confirm_action</action>
2490 </actions>
2491 </button>
2492
2493 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002494 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002495 <action function="page">restore_run</action>
2496 </slider>
2497
2498 <action>
2499 <touch key="home"/>
2500 <action function="page">main</action>
2501 </action>
2502
2503 <action>
2504 <touch key="back"/>
2505 <action function="page">restore</action>
2506 </action>
2507 </page>
2508
2509 <page name="renamebackup">
2510 <template name="page"/>
2511
2512 <text style="text_l">
2513 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002514 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002515 </text>
2516
2517 <text style="text_m">
2518 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002519 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002520 </text>
2521
2522 <text style="text_m_accent">
2523 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002524 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002525 </text>
2526
2527 <input>
2528 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2529 <text>%tw_backup_rename%</text>
2530 <data name="tw_backup_rename"/>
2531 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2532 <actions>
2533 <action function="set">tw_back=restore</action>
2534 <action function="set">tw_action=cmd</action>
2535 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv "%tw_restore_name%" "%tw_backup_rename%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2537 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2538 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2539 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2540 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002541 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2542 <action function="set">tw_existpage=renamebackup</action>
2543 <action function="set">tw_notexistpage=confirm_action</action>
2544 <action function="page">filecheck</action>
2545 </actions>
2546 </input>
2547
2548 <fill color="%accent_color%">
2549 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2550 </fill>
2551
2552 <fill color="%text_fail_color%">
2553 <condition var1="tw_fileexists" var2="1"/>
2554 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2555 </fill>
2556
2557 <text style="text_m_fail">
2558 <condition var1="tw_fileexists" var2="1"/>
2559 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002560 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002561 </text>
2562
2563 <button style="main_button_half_height">
2564 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002565 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002566 <action function="page">restore_select</action>
2567 </button>
2568
2569 <template name="keyboardtemplate"/>
2570
2571 <action>
2572 <touch key="home"/>
2573 <action function="page">main</action>
2574 </action>
2575
2576 <action>
2577 <touch key="back"/>
2578 <action function="page">restore_select</action>
2579 </action>
2580 </page>
2581
2582 <page name="restore_run">
2583 <template name="page"/>
2584
2585 <text style="text_l">
2586 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002587 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002588 </text>
2589
2590 <text style="text_m">
2591 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2592 <text>%tw_operation% %tw_partition%</text>
2593 </text>
2594
2595 <template name="console"/>
2596
2597 <template name="progress_bar"/>
2598
2599 <text style="text_m_accent">
2600 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002601 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002602 </text>
2603
2604 <text style="text_m">
2605 <placement x="%indent%" y="%row20_y%"/>
2606 <text>%tw_size_progress%</text>
2607 </text>
2608
2609 <action>
2610 <condition var1="tw_operation_state" var2="1"/>
2611 <actions>
2612 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002613 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002614 <action function="set">tw_show_reboot=1</action>
2615 <action function="page">action_complete</action>
2616 </actions>
2617 </action>
2618
2619 <action>
2620 <action function="nandroid">restore</action>
2621 </action>
2622 </page>
2623
2624 <page name="mount">
2625 <template name="page"/>
2626
2627 <text style="text_l">
2628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002629 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002630 </text>
2631
2632 <text style="text_m">
2633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002634 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002635 </text>
2636
2637 <partitionlist>
2638 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002639 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002640 <listtype name="mount"/>
2641 </partitionlist>
2642
2643 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002644 <conditions>
2645 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2646 <condition var1="tw_is_super" op="=" var2="0"/>
2647 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002648 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002649 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002650 <image resource="checkbox_false"/>
2651 <action function="mountsystemtoggle">1</action>
2652 </button>
2653
2654 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002655 <conditions>
2656 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2657 <condition var1="tw_is_super" op="=" var2="0"/>
2658 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002659 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002660 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002661 <image resource="checkbox_true"/>
2662 <actions>
2663 <action function="set">tw_lifetime_writes=2</action>
2664 <action function="page">system_readonly_check</action>
2665 </actions>
2666 </button>
2667
2668 <button style="main_button_half_height">
2669 <condition var1="tw_has_usb_storage" var2="1"/>
2670 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002671 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002672 <action function="page">usb_mount</action>
2673 </button>
2674
2675 <button style="main_button_half_height">
2676 <conditions>
2677 <condition var1="tw_is_encrypted" var2="1"/>
2678 <condition var1="tw_is_decrypted" var2="0"/>
2679 </conditions>
2680 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002681 <text>{@decrypt_data_btn=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002682 <action function="page">decrypt</action>
2683 </button>
2684
2685 <button style="main_button_half_height">
2686 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002687 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002688 <actions>
2689 <action function="set">tw_back=mount</action>
2690 <action function="overlay">select_storage</action>
2691 </actions>
2692 </button>
2693
2694 <button style="main_button_half_height">
2695 <conditions>
2696 <condition var1="tw_has_mtp" var2="1"/>
2697 <condition var1="tw_mtp_enabled" var2="0"/>
2698 </conditions>
2699 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002700 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002701 <action function="startmtp"/>
2702 </button>
2703
2704 <button style="main_button_half_height">
2705 <conditions>
2706 <condition var1="tw_has_mtp" var2="1"/>
2707 <condition var1="tw_mtp_enabled" var2="1"/>
2708 </conditions>
2709 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002710 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002711 <action function="stopmtp"/>
2712 </button>
2713
2714 <action>
2715 <touch key="home"/>
2716 <action function="page">main</action>
2717 </action>
2718
2719 <action>
2720 <touch key="back"/>
2721 <action function="page">main</action>
2722 </action>
2723 </page>
2724
2725 <page name="usb_mount">
2726 <template name="page"/>
2727
2728 <text style="text_l">
2729 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002730 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002731 </text>
2732
2733 <text style="text_m">
2734 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002735 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002736 </text>
2737
2738 <text style="text_m_accent">
2739 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002740 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002741 </text>
2742
2743 <text style="text_m">
2744 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002745 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002746 </text>
2747
2748 <text style="text_m">
2749 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002750 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002751 </text>
2752
2753 <button style="main_button_half_height">
2754 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002755 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002756 <action function="page">usb_umount</action>
2757 </button>
2758
2759 <action>
2760 <action function="mount">usb</action>
2761 <action function="set">tw_busy=1</action>
2762 </action>
2763 </page>
2764
2765 <page name="usb_umount">
2766 <action>
2767 <action function="unmount">usb</action>
2768 </action>
2769
2770 <action>
2771 <action function="page">mount</action>
2772 <action function="set">tw_busy=0</action>
2773 </action>
2774 </page>
2775
2776 <page name="system_readonly_check">
2777 <action>
2778 <action function="checkpartitionlifetimewrites">/system</action>
2779 </action>
2780
2781 <action>
2782 <condition var1="tw_lifetime_writes" var2="1"/>
2783 <actions>
2784 <action function="mountsystemtoggle">0</action>
2785 <action function="page">mount</action>
2786 </actions>
2787 </action>
2788
2789 <action>
2790 <condition var1="tw_lifetime_writes" var2="0"/>
2791 <actions>
2792 <action function="set">tw_back=mount</action>
2793 <action function="page">system_readonly</action>
2794 </actions>
2795 </action>
2796 </page>
2797
2798 <page name="reboot">
2799 <template name="page"/>
2800
2801 <text style="text_l">
2802 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002803 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 </text>
2805
2806 <button style="main_button">
2807 <condition var1="tw_reboot_system" var2="1"/>
2808 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002809 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002810 <actions>
2811 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05002812 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01002813 </actions>
2814 </button>
2815
2816 <button style="main_button">
2817 <condition var1="tw_reboot_poweroff" var2="1"/>
2818 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002819 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002820 <actions>
2821 <action function="set">tw_back=reboot</action>
2822 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002823 <action function="set">tw_action_param=poweroff</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002824 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01002825 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002826 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2827 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2828 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2829 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2830 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002831 <action function="page">rebootcheck</action>
2832 </actions>
2833 </button>
2834
2835 <button style="main_button">
2836 <condition var1="tw_reboot_recovery" var2="1"/>
2837 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002838 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002839 <actions>
2840 <action function="set">tw_back=reboot</action>
2841 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002842 <action function="set">tw_action_param=recovery</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002843 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01002844 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002845 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2846 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2847 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2848 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2849 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002850 <action function="page">rebootcheck</action>
2851 </actions>
2852 </button>
2853
2854 <button style="main_button">
2855 <condition var1="tw_reboot_bootloader" var2="1"/>
2856 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002857 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002858 <actions>
2859 <action function="set">tw_back=reboot</action>
2860 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002861 <action function="set">tw_action_param=bootloader</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002862 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01002863 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002864 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2865 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2866 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2867 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2868 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002869 <action function="page">rebootcheck</action>
2870 </actions>
2871 </button>
2872
2873 <button style="main_button">
2874 <condition var1="tw_download_mode" var2="1"/>
2875 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002876 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002877 <actions>
2878 <action function="set">tw_back=reboot</action>
2879 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05002880 <action function="set">tw_action_param=download</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002881 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01002882 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002883 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2884 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2885 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2886 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2887 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002888 <action function="page">rebootcheck</action>
2889 </actions>
2890 </button>
2891
mauronofrioe9a49ef2018-10-03 13:38:16 +02002892 <button style="main_button">
2893 <condition var1="tw_edl_mode" var2="1"/>
2894 <placement x="%center_x%" y="%row13a_y%"/>
2895 <text>{@rb_edl_btn=Edl}</text>
2896 <actions>
2897 <action function="set">tw_back=reboot</action>
2898 <action function="set">tw_action=reboot</action>
2899 <action function="set">tw_action_param=edl</action>
2900 <action function="set">tw_reboot_param=edl</action>
2901 <action function="set">tw_has_action2=0</action>
2902 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2903 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2904 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2905 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2906 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2907 <action function="page">rebootcheck</action>
2908 </actions>
2909 </button>
2910
Ethan Yonker1b190162016-12-05 15:25:19 -06002911 <text style="text_m">
2912 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01002913 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002914 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2915 </text>
2916
2917 <button style="main_button">
2918 <condition var1="tw_has_boot_slots" var2="1"/>
2919 <placement x="%indent%" y="%row19_y%"/>
2920 <text>{@boot_slot_a=Slot A}</text>
2921 <actions>
2922 <action function="set">tw_back=reboot</action>
2923 <action function="set">tw_action=setbootslot</action>
2924 <action function="set">tw_action_param=A</action>
2925 <action function="set">tw_has_action2=0</action>
2926 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2927 <action function="set">tw_action_text2=</action>
2928 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2929 <action function="page">action_page</action>
2930 </actions>
2931 </button>
2932
2933 <button style="main_button">
2934 <condition var1="tw_has_boot_slots" var2="1"/>
2935 <placement x="%center_x%" y="%row19_y%"/>
2936 <text>{@boot_slot_b=Slot B}</text>
2937 <actions>
2938 <action function="set">tw_back=reboot</action>
2939 <action function="set">tw_action=setbootslot</action>
2940 <action function="set">tw_action_param=B</action>
2941 <action function="set">tw_has_action2=0</action>
2942 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2943 <action function="set">tw_action_text2=</action>
2944 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2945 <action function="page">action_page</action>
2946 </actions>
2947 </button>
2948
z31s1g28f0a922015-11-07 18:50:22 +01002949 <action>
2950 <touch key="home"/>
2951 <action function="page">main</action>
2952 </action>
2953
2954 <action>
2955 <touch key="back"/>
2956 <action function="page">main</action>
2957 </action>
2958 </page>
2959
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002960 <page name="rebootapp">
2961 <template name="page"/>
2962
2963 <text style="text_l">
2964 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2965 <text>{@reboot_hdr=Reboot}</text>
2966 </text>
2967
2968 <text style="text_m">
2969 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2970 <text>{@reboot_install_app_hdr=Install TWRP App?}</text>
2971 </text>
2972
2973 <text style="text_m_accent">
2974 <placement x="%center_x%" y="%row2_y%" placement="5"/>
2975 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
2976 </text>
2977
2978 <text style="text_m_accent">
2979 <placement x="%center_x%" y="%row3_y%" placement="5"/>
2980 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
2981 </text>
2982
2983 <checkbox>
2984 <placement x="%indent%" y="%row5_y%"/>
2985 <text>{@reboot_install_app_prompt_install=Prompt to install TWRP app if not installed}</text>
2986 <data variable="tw_app_prompt"/>
2987 </checkbox>
2988
2989 <checkbox>
2990 <condition var1="tw_mount_system_ro" var2="0"/>
2991 <placement x="%indent%" y="%row7_y%"/>
2992 <text>{@reboot_install_app_system=Install as a System App}</text>
2993 <data variable="tw_app_install_system"/>
2994 </checkbox>
2995
2996 <button style="main_button_half_height">
2997 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05002998 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06002999 <action function="reboot">%tw_reboot_param%</action>
3000 </button>
3001
3002 <slider>
3003 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3004 <actions>
3005 <action function="set">tw_back=reboot</action>
3006 <action function="set">tw_action=installapp</action>
3007 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3008 <action function="set">tw_action_text2=</action>
3009 <action function="set">tw_has_action2=1</action>
3010 <action function="set">tw_action2=reboot</action>
3011 <action function="set">tw_action2_param=%tw_reboot_param%</action>
3012 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3013 <action function="page">action_page</action>
3014 </actions>
3015 </slider>
3016
3017 <action>
3018 <touch key="home"/>
3019 <actions>
3020 <action function="set">tw_app_install_status=0</action>
3021 <action function="page">main</action>
3022 </actions>
3023 </action>
3024
3025 <action>
3026 <touch key="back"/>
3027 <actions>
3028 <action function="set">tw_app_install_status=0</action>
3029 <action function="page">reboot</action>
3030 </actions>
3031 </action>
3032 </page>
3033
z31s1g28f0a922015-11-07 18:50:22 +01003034 <page name="system_readonly">
3035 <template name="page"/>
3036
3037 <text style="text_l">
3038 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003039 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003040 </text>
3041
3042 <text style="text_m_accent">
3043 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003044 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003045 </text>
3046
3047 <text style="text_m">
3048 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003049 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003050 </text>
3051
3052 <text style="text_m">
3053 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003054 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003055 </text>
3056
3057 <text style="text_m">
3058 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003059 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003060 </text>
3061
3062 <text style="text_m">
3063 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003064 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003065 </text>
3066
3067 <text style="text_m_fail">
3068 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003069 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003070 </text>
3071
3072 <text style="text_m_fail">
3073 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003074 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003075 </text>
3076
3077 <checkbox>
3078 <condition var1="tw_is_encrypted" var2="0"/>
3079 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003080 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003081 <data variable="tw_never_show_system_ro_page"/>
3082 </checkbox>
3083
3084 <button style="main_button_half_height">
3085 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003086 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003087 <actions>
3088 <action function="mountsystemtoggle">1</action>
3089 <action function="set">tw_page_done=1</action>
3090 <action function="page">%tw_back%</action>
3091 </actions>
3092 </button>
3093
z31s1g608d7ff2016-01-18 19:47:25 +01003094 <button style="main_button_half_height">
3095 <placement x="%center_x%" y="%row18a_y%"/>
3096 <text>{@sel_lang_btn=Select Language}</text>
3097 <action function="overlay">select_language</action>
3098 </button>
3099
z31s1g28f0a922015-11-07 18:50:22 +01003100 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003101 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003102 <actions>
3103 <action function="mountsystemtoggle">0</action>
3104 <action function="set">tw_page_done=1</action>
3105 <action function="page">%tw_back%</action>
3106 </actions>
3107 </slider>
3108 </page>
3109
3110 <page name="settings">
3111 <template name="page"/>
3112
3113 <text style="text_l">
3114 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003115 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003116 </text>
3117
3118 <text style="text_m">
3119 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003120 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003121 </text>
3122
3123 <template name="tabs_settings"/>
3124
3125 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003126 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003127 </fill>
3128
3129 <listbox style="scrolllist">
3130 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3131 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003132 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003133 <data variable="tw_signed_zip_verify"/>
3134 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003135 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3136 <data variable="tw_install_reboot"/>
3137 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003138 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003139 <data variable="tw_rm_rf"/>
3140 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003141 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3142 <data variable="tw_disable_free_space"/>
3143 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003144 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3145 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003146 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003147 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3148 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003149 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003150 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003151 <data variable="tw_military_time"/>
3152 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003153 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003154 <data variable="tw_samsung_navbar"/>
3155 </listitem>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003156 <listitem name="{@reboot_install_app_prompt_install=Prompt to install TWRP app on every reboot}">
3157 <data variable="tw_app_prompt"/>
3158 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003159 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003160 <data variable="tw_simulate_actions"/>
3161 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003162 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003163 <condition var1="tw_simulate_actions" var2="1"/>
3164 <data variable="tw_simulate_fail"/>
3165 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003166 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3167 <condition var1="tw_no_sha2" var2="0"/>
3168 <data variable="tw_use_sha2"/>
3169 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003170 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3171 <data variable="tw_unmount_system"/>
3172 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003173 </listbox>
3174
3175 <button style="main_button_half_height">
3176 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003177 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003178 <actions>
3179 <action function="set">tw_samsung_navbar=0</action>
3180 <action function="set">tw_tab_icons=0</action>
3181 <action function="restoredefaultsettings"/>
3182 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003183 </button>
3184
3185 <action>
3186 <touch key="home"/>
3187 <action function="page">main</action>
3188 </action>
3189
3190 <action>
3191 <touch key="back"/>
3192 <action function="page">main</action>
3193 </action>
3194 </page>
3195
3196 <page name="settings_timezone">
3197 <template name="page"/>
3198
3199 <text style="text_l">
3200 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003201 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003202 </text>
3203
3204 <text style="text_m">
3205 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003206 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003207 </text>
3208
3209 <template name="tabs_settings"/>
3210
3211 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003212 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003213 </fill>
3214
3215 <listbox>
3216 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003217 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003218 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003219 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3220 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3221 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3222 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3223 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3224 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3225 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3226 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3227 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3228 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3229 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3230 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3231 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3232 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3233 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3234 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3235 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3236 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3237 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3238 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3239 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3240 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3241 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3242 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003243 </listbox>
3244
3245 <text style="text_m_accent">
3246 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003247 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003248 </text>
3249
3250 <button style="button_quarter_width">
3251 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003252 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003253 <action function="set">tw_time_zone_guioffset=0</action>
3254 </button>
3255
3256 <button style="button_quarter_width">
3257 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003258 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003259 <action function="set">tw_time_zone_guioffset=15</action>
3260 </button>
3261
3262 <button style="button_quarter_width">
3263 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003264 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003265 <action function="set">tw_time_zone_guioffset=30</action>
3266 </button>
3267
3268 <button style="button_quarter_width">
3269 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003270 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003271 <action function="set">tw_time_zone_guioffset=45</action>
3272 </button>
3273
3274 <checkbox>
3275 <placement x="%indent%" y="%row18a_y%"/>
3276 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003278 <data variable="tw_time_zone_guidst"/>
3279 <image checked="checkbox_true" unchecked="checkbox_false"/>
3280 </checkbox>
3281
3282 <text color="%text_color%">
3283 <font resource="font_m"/>
3284 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003285 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003286 </text>
3287
3288 <button>
3289 <highlight color="%highlight_color%"/>
3290 <placement x="%center_x%" y="%row21a_y%"/>
3291 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003292 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003293 <image resource="main_button_half_height"/>
3294 <action function="setguitimezone"/>
3295 </button>
3296
3297 <action>
3298 <touch key="home"/>
3299 <action function="page">main</action>
3300 </action>
3301
3302 <action>
3303 <touch key="back"/>
3304 <action function="page">main</action>
3305 </action>
3306 </page>
3307
3308 <page name="settings_screen">
3309 <template name="page"/>
3310
3311 <text style="text_l">
3312 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003313 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003314 </text>
3315
3316 <text style="text_m">
3317 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003318 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003319 </text>
3320
3321 <template name="tabs_settings"/>
3322
3323 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003324 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003325 </fill>
3326
3327 <button>
3328 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3329 <font resource="font_m" color="%text_color%"/>
3330 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3331 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003332 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003333 <image resource="checkbox_false"/>
3334 <action function="set">tw_screen_timeout_secs=60</action>
3335 </button>
3336
3337 <button>
3338 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3339 <font resource="font_m" color="%text_color%"/>
3340 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3341 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003342 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003343 <image resource="checkbox_true"/>
3344 <action function="set">tw_screen_timeout_secs=0</action>
3345 </button>
3346
3347 <slidervalue>
3348 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3349 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3350 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003351 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003352 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3353 </slidervalue>
3354
3355 <slidervalue>
3356 <condition var1="tw_has_brightnesss_file" var2="1"/>
3357 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003358 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003359 <data variable="tw_brightness_pct" min="10" max="100"/>
3360 <actions>
3361 <action function="set">tw_brightness=%tw_brightness_max%</action>
3362 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3363 <action function="compute">tw_brightness/100</action>
3364 <action function="setbrightness">%tw_brightness%</action>
3365 </actions>
3366 </slidervalue>
3367
3368 <action>
3369 <touch key="home"/>
3370 <action function="page">main</action>
3371 </action>
3372
3373 <action>
3374 <touch key="back"/>
3375 <action function="page">main</action>
3376 </action>
3377 </page>
3378
3379 <page name="settings_vibration">
3380 <template name="page"/>
3381
3382 <text style="text_l">
3383 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003384 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003385 </text>
3386
3387 <text style="text_m">
3388 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </text>
3391
3392 <template name="tabs_settings"/>
3393
3394 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003395 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003396 </fill>
3397
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003398 <text style="text_m">
3399 <condition var1="tw_disable_haptics" var2="1"/>
3400 <placement x="%indent%" y="%row4_y%"/>
3401 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3402 </text>
3403
z31s1g28f0a922015-11-07 18:50:22 +01003404 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003405 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003406 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003408 <data variable="tw_button_vibrate" min="0" max="300"/>
3409 </slidervalue>
3410
3411 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003412 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003413 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003414 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003415 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3416 </slidervalue>
3417
3418 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003419 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003420 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003421 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003422 <data variable="tw_action_vibrate" min="0" max="500"/>
3423 </slidervalue>
3424
3425 <action>
3426 <touch key="home"/>
3427 <action function="page">main</action>
3428 </action>
3429
3430 <action>
3431 <touch key="back"/>
3432 <action function="page">main</action>
3433 </action>
3434 </page>
3435
Ethan Yonker74db1572015-10-28 12:44:49 -05003436 <page name="settings_language">
3437 <template name="page"/>
3438
3439 <text style="text_l">
3440 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3441 <text>{@settings_hdr=Settings}</text>
3442 </text>
3443
3444 <text style="text_m">
3445 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3446 <text>{@language_hdr=Language - %tw_language_display%}</text>
3447 </text>
3448
3449 <template name="tabs_settings"/>
3450
3451 <fill color="%text_color%">
3452 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3453 </fill>
3454
3455 <listbox>
3456 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3457 <text>{@select_language=Select Language:}</text>
3458 <icon selected="radio_true" unselected="radio_false" />
3459 <data name="tw_language" />
3460 </listbox>
3461
3462 <button style="main_button_half_height">
3463 <placement x="%center_x%" y="%row21a_y%"/>
3464 <text>{@set_language_btn=Set Language}</text>
3465 <action function="setlanguage"></action>
3466 </button>
3467
3468 <action>
3469 <touch key="home" />
3470 <action function="page">main</action>
3471 </action>
3472
3473 <action>
3474 <touch key="back" />
3475 <action function="page">settings</action>
3476 </action>
3477 </page>
3478
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003479 <page name="copylog">
3480 <template name="page"/>
3481
3482 <text style="text_l">
3483 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3484 <text>{@copying_log=Copy Logs to SD Card}</text>
3485 </text>
3486
3487 <checkbox>
3488 <placement x="%indent%" y="%row4_y%"/>
3489 <text>{@include_kernel_log=Include Kernel Log}</text>
3490 <data variable="tw_include_kernel_log" value="1"/>
3491 </checkbox>
3492
3493 <slider>
3494 <text>{@copying_log=Copy Logs to SD Card}</text>
3495 <actions>
3496 <action function="set">tw_back=advanced</action>
3497 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003498 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3499 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003500 <action function="page">action_page</action>
3501 </actions>
3502 </slider>
3503
3504 <action>
3505 <touch key="home"/>
3506 <action function="page">main</action>
3507 </action>
3508
3509 <action>
3510 <touch key="back"/>
3511 <actions>
3512 <action function="page">advanced</action>
3513 </actions>
3514 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003515 </page>
3516
z31s1g28f0a922015-11-07 18:50:22 +01003517 <page name="advanced">
3518 <template name="page"/>
3519
3520 <text style="text_l">
3521 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003522 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003523 </text>
3524
3525 <button style="main_button">
3526 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003527 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003528 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003529 </button>
3530
3531 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003532 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003533 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003534 <text>{@adb_sideload_btn=ADB Sideload}</text>
3535 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003536 </button>
3537
3538 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003539 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003540 <text>{@terminal_btn=Terminal}</text>
3541 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003542 </button>
3543
3544 <button style="main_button">
3545 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003546 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003547 <action function="page">filemanagerlist</action>
3548 </button>
3549
Ethan Yonker64e0a652018-07-25 09:52:17 -05003550 <listbox style="advanced_listbox">
3551 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
3552 <listitem name="{@reload_theme_btn=Reload Theme}">
3553 <action function="reload"/>
3554 </listitem>
3555 <listitem name="{@part_sd_btn=Partition SD Card}">
3556 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3557 <actions>
3558 <action function="set">partitionlisterror=0</action>
3559 <action function="page">partsdcardsel</action>
3560 </actions>
3561 </listitem>
3562 <listitem name="{@fix_context_btn=Fix Contexts}">
3563 <condition var1="tw_has_data_media" var2="1"/>
3564 <action function="page">fixcontexts</action>
3565 </listitem>
3566 <listitem name="{@dumlock_btn=HTC Dumlock}">
3567 <condition var1="tw_show_dumlock" var2="1"/>
3568 <action function="page">htcdumlock</action>
3569 </listitem>
3570 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3571 <condition var1="tw_has_injecttwrp" var2="1"/>
3572 <actions>
3573 <action function="set">tw_back=advanced</action>
3574 <action function="set">tw_action=reinjecttwrp</action>
3575 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3576 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3577 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3578 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3579 <action function="page">confirm_action</action>
3580 </actions>
3581 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003582 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3583 <conditions>
3584 <condition var1="tw_has_boot_slots" var2="1"/>
3585 <condition var1="tw_has_repack_tools" var2="1"/>
3586 </conditions>
3587 <actions>
3588 <action function="set">tw_repack_kernel=0</action>
3589 <action function="page">repackselect</action>
3590 </actions>
3591 </listitem>
3592 <listitem name="{@install_kernel=Install Kernel}">
3593 <conditions>
3594 <condition var1="tw_has_boot_slots" var2="1"/>
3595 <condition var1="tw_has_repack_tools" var2="1"/>
3596 </conditions>
3597 <actions>
3598 <action function="set">tw_repack_kernel=1</action>
3599 <action function="page">repackselect</action>
3600 </actions>
3601 </listitem>
3602 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3603 <conditions>
3604 <condition var1="tw_has_boot_slots" var2="1"/>
3605 <condition var1="tw_has_repack_tools" var2="1"/>
3606 </conditions>
3607 <actions>
3608 <action function="set">tw_back=advanced</action>
3609 <action function="set">tw_action=fixabrecoverybootloop</action>
3610 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3611 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3612 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3613 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3614 <action function="page">confirm_action</action>
3615 </actions>
3616 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003617 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3618 <condition var1="tw_app_installed_in_system" var2="1"/>
3619 <actions>
3620 <action function="set">tw_back=advanced</action>
3621 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3622 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3623 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3624 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3625 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3626 <action function="page">confirm_action</action>
3627 </actions>
3628 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003629 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003630
3631 <action>
3632 <touch key="home"/>
3633 <action function="page">main</action>
3634 </action>
3635
3636 <action>
3637 <touch key="back"/>
3638 <action function="page">main</action>
3639 </action>
3640 </page>
3641
Ethan Yonker483e9f42016-01-11 22:21:18 -06003642 <page name="partsdcardsel">
3643 <template name="page"/>
3644
3645 <text style="text_l">
3646 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3647 <text>{@advanced_hdr=Advanced}</text>
3648 </text>
3649
3650 <text style="text_m">
3651 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3652 <text>{@part_sd_hdr=Partition SD Card}</text>
3653 </text>
3654
z31s1g782e1c92016-01-30 16:50:09 +01003655 <partitionlist>
3656 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003657 <text>{@sel_storage_list=Select Storage}</text>
3658 <data name="tw_storage_path"/>
3659 <listtype name="storage"/>
3660 </partitionlist>
3661
3662 <text style="text_m_fail">
3663 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003664 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003665 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3666 </text>
3667
z31s1g782e1c92016-01-30 16:50:09 +01003668 <button style="main_button_half_height">
3669 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003670 <text>{@ok_btn=OK}</text>
3671 <actions>
3672 <action function="getpartitiondetails">tw_storage_path</action>
3673 <action function="page">partsdcardcheck</action>
3674 </actions>
3675 </button>
3676
3677 <action>
3678 <touch key="home"/>
3679 <action function="page">main</action>
3680 </action>
3681
3682 <action>
3683 <touch key="back"/>
3684 <action function="page">advanced</action>
3685 </action>
3686 </page>
3687
3688 <page name="partsdcardcheck">
3689 <action>
3690 <condition var1="tw_partition_removable" op="=" var2="1"/>
3691 <actions>
3692 <action function="set">partitionlisterror=0</action>
3693 <action function="page">partsdcard</action>
3694 </actions>
3695 </action>
3696
3697 <action>
3698 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3699 <actions>
3700 <action function="set">partitionlisterror=1</action>
3701 <action function="page">partsdcardsel</action>
3702 </actions>
3703 </action>
3704 </page>
3705
z31s1g28f0a922015-11-07 18:50:22 +01003706 <page name="partsdcard">
3707 <template name="page"/>
3708
3709 <text style="text_l">
3710 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003711 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003712 </text>
3713
3714 <text style="text_m">
3715 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003716 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003717 </text>
3718
3719 <text style="text_m_fail">
3720 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003721 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003722 </text>
3723
3724 <text style="text_m_fail">
3725 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003726 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003727 </text>
3728
3729 <text style="text_m_accent">
3730 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003731 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003732 </text>
3733
3734 <text style="text_m">
3735 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3736 <text>%tw_sdext_size%</text>
3737 </text>
3738
3739 <button style="button_quarter_width">
3740 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003741 <text>{@part_sd_m=-}</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 <button style="button_quarter_width">
3746 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003747 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003748 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003749 </button>
3750
3751 <text style="text_m_accent">
3752 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003753 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003754 </text>
3755
3756 <text style="text_m">
3757 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3758 <text>%tw_swap_size%</text>
3759 </text>
3760
3761 <button style="button_quarter_width">
3762 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003763 <text>{@part_sd_m=-}</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 <button style="button_quarter_width">
3768 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003769 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003770 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003771 </button>
3772
3773 <text style="text_m_accent">
3774 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003775 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003776 </text>
3777
3778 <text style="text_m">
3779 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3780 <text>%tw_sdpart_file_system%</text>
3781 </text>
3782
3783 <button style="button_quarter_width">
3784 <placement x="%indent%" y="%row14_y%"/>
3785 <text>EXT3</text>
3786 <action function="set">tw_sdpart_file_system=ext3</action>
3787 </button>
3788
3789 <button style="button_quarter_width">
3790 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3791 <text>EXT4</text>
3792 <action function="set">tw_sdpart_file_system=ext4</action>
3793 </button>
3794
3795 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003796 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003797 <action function="page">partsdcardaction</action>
3798 <actions>
3799 <action function="set">tw_back=partsdcard</action>
3800 <action function="set">tw_action=partitionsd</action>
3801 <action function="set">tw_has_action2=1</action>
3802 <action function="set">tw_action2=set</action>
3803 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003804 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3805 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3806 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003807 <action function="page">action_page</action>
3808 </actions>
3809 </slider>
3810
3811 <action>
3812 <touch key="home"/>
3813 <action function="page">main</action>
3814 </action>
3815
3816 <action>
3817 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003818 <actions>
3819 <action function="set">partitionlisterror=0</action>
3820 <action function="page">partsdcardsel</action>
3821 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003822 </action>
3823 </page>
3824
3825 <page name="htcdumlock">
3826 <template name="page"/>
3827
3828 <text style="text_l">
3829 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003830 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003831 </text>
3832
3833 <text style="text_m">
3834 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003835 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003836 </text>
3837
3838 <button style="main_button_half_height_full_width">
3839 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003840 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003841 <actions>
3842 <action function="set">tw_back=htcdumlock</action>
3843 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003844 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3845 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3846 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3847 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003848 <action function="page">confirm_action</action>
3849 </actions>
3850 </button>
3851
3852 <button style="main_button_half_height_full_width">
3853 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003854 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003855 <actions>
3856 <action function="set">tw_back=htcdumlock</action>
3857 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003858 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3859 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3860 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3861 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003862 <action function="page">confirm_action</action>
3863 </actions>
3864 </button>
3865
3866 <button style="main_button_half_height_full_width">
3867 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003868 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003869 <actions>
3870 <action function="set">tw_back=htcdumlock</action>
3871 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003872 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3873 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3874 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3875 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003876 <action function="page">confirm_action</action>
3877 </actions>
3878 </button>
3879
3880 <action>
3881 <touch key="home"/>
3882 <action function="page">main</action>
3883 </action>
3884
3885 <action>
3886 <touch key="back"/>
3887 <action function="page">advanced</action>
3888 </action>
3889 </page>
3890
Ethan Yonker53796e72019-01-11 22:49:52 -06003891 <page name="repackselect">
3892 <template name="page"/>
3893
3894 <text style="text_l">
3895 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3896 <text>{@repack_image_hdr=Select Image}</text>
3897 </text>
3898
3899 <text style="text_m">
3900 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3901 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3902 </text>
3903
3904 <template name="sort_options"/>
3905
3906 <fileselector>
3907 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3908 <text>%tw_zip_location%</text>
3909 <filter extn=".img" folders="1" files="1"/>
3910 <path name="tw_zip_location" default="/sdcard"/>
3911 <data name="tw_filename"/>
3912 <selection name="tw_file"/>
3913 </fileselector>
3914
3915 <button style="main_button_half_height">
3916 <placement x="%indent%" y="%row21a_y%"/>
3917 <text>{@select_storage_btn=Select Storage}</text>
3918 <actions>
3919 <action function="set">tw_back=repackselect</action>
3920 <action function="overlay">select_storage</action>
3921 </actions>
3922 </button>
3923
3924 <action>
3925 <conditions>
3926 <condition var1="tw_filename" op="modified"/>
3927 </conditions>
3928 <action function="page">repackconfirm</action>
3929 </action>
3930
3931 <action>
3932 <touch key="back"/>
3933 <action function="page">advanced</action>
3934 </action>
3935
3936 <action>
3937 <touch key="home"/>
3938 <action function="page">main</action>
3939 </action>
3940 </page>
3941
3942 <page name="repackconfirm">
3943 <template name="page"/>
3944
3945 <text style="text_l">
3946 <condition var1="tw_repack_kernel" var2="1"/>
3947 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3948 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
3949 </text>
3950
3951 <text style="text_l">
3952 <condition var1="tw_repack_kernel" var2="0"/>
3953 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3954 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
3955 </text>
3956
3957 <text style="text_m">
3958 <condition var1="tw_repack_kernel" var2="1"/>
3959 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3960 <text>{@repack_kernel_confirm=Install Kernel?}</text>
3961 </text>
3962
3963 <text style="text_m">
3964 <condition var1="tw_repack_kernel" var2="0"/>
3965 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3966 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
3967 </text>
3968
3969 <text style="text_m_accent">
3970 <placement x="%indent%" y="%row2_y%"/>
3971 <text>{@folder=Folder:}</text>
3972 </text>
3973
3974 <text style="text_m">
3975 <placement x="%indent%" y="%row3_y%"/>
3976 <text>%tw_zip_location%</text>
3977 </text>
3978
3979 <text style="text_m_accent">
3980 <placement x="%indent%" y="%row4_y%"/>
3981 <text>{@file=File:}</text>
3982 </text>
3983
3984 <text style="text_m">
3985 <placement x="%indent%" y="%row5_y%"/>
3986 <text>%tw_file%</text>
3987 </text>
3988
3989 <checkbox>
3990 <placement x="%indent%" y="%row7_y%"/>
3991 <text>{@repack_backup_first=Back up existing image first}</text>
3992 <data variable="tw_repack_backup_first"/>
3993 </checkbox>
3994
3995 <button style="main_button_half_height">
3996 <placement x="%indent%" y="%row16_y%"/>
3997 <text>{@install_cancel=Do not Install}</text>
3998 <action function="page">repackselect</action>
3999 </button>
4000
4001 <slider>
4002 <text>{@swipe_to_install=Swipe to Install}</text>
4003 <actions>
4004 <action function="set">tw_back=advanced</action>
4005 <action function="set">tw_action=repackimage</action>
4006 <action function="set">tw_action_param=/boot</action>
4007 <action function="set">tw_action_text1={@installing=Installing...}</action>
4008 <action function="set">tw_action_text2=</action>
4009 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4010 <action function="page">action_page</action>
4011 </actions>
4012 </slider>
4013
4014 <action>
4015 <touch key="back"/>
4016 <action function="page">repackselect</action>
4017 </action>
4018
4019 <action>
4020 <touch key="home"/>
4021 <action function="page">main</action>
4022 </action>
4023 </page>
4024
z31s1g28f0a922015-11-07 18:50:22 +01004025 <page name="lock">
4026 <background color="%semi_transparent%"/>
4027
4028 <image>
4029 <image resource="unlock_icon"/>
4030 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4031 </image>
4032
4033 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004034 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004035 <action function="overlay"/>
4036 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004037
4038 <action>
4039 <touch key="power"/>
4040 <action function="togglebacklight"/>
4041 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004042 </page>
4043
4044 <page name="filemanagerlist">
4045 <template name="page"/>
4046
4047 <text style="text_l">
4048 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004049 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004050 </text>
4051
4052 <text style="text_m">
4053 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004054 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004055 </text>
4056
4057 <template name="sort_options"/>
4058
4059 <fileselector>
4060 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4061 <text>%tw_file_location1%</text>
4062 <filter folders="1" files="1"/>
4063 <path name="tw_file_location1" default="/"/>
4064 <data name="tw_filename1"/>
4065 <selection name="tw_selection1"/>
4066 </fileselector>
4067
4068 <button style="fab">
4069 <image resource="fab_selectfolder"/>
4070 <actions>
4071 <action function="set">tw_filename1=tw_file_location1</action>
4072 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004073 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004074 <action function="page">filemanageroptions</action>
4075 </actions>
4076 </button>
4077
4078 <action>
4079 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004080 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004081 <action function="set">tw_fm_isfolder=0</action>
4082 </actions>
4083 </action>
4084
4085 <action>
4086 <touch key="home"/>
4087 <action function="page">main</action>
4088 </action>
4089
4090 <action>
4091 <touch key="back"/>
4092 <action function="page">advanced</action>
4093 </action>
4094
4095 <action>
4096 <condition var1="tw_filename1" op="modified"/>
4097 <action function="page">filemanageroptions</action>
4098 </action>
4099 </page>
4100
4101 <page name="filemanageroptions">
4102 <template name="page"/>
4103
4104 <text style="text_l">
4105 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004106 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004107 </text>
4108
4109 <text style="text_m">
4110 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004111 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004112 </text>
4113
4114 <text style="text_m_accent">
4115 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004116 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004117 </text>
4118
4119 <text style="text_m">
4120 <placement x="%indent%" y="%row3_y%"/>
4121 <text>%tw_filename1%</text>
4122 </text>
4123
4124 <button style="main_button_half_height">
4125 <condition var1="tw_fm_isfolder" var2="0"/>
4126 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004127 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004128 <actions>
4129 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004130 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004131 <action function="page">choosedestinationfolder</action>
4132 </actions>
4133 </button>
4134
4135 <button style="main_button_half_height">
4136 <condition var1="tw_fm_isfolder" var2="1"/>
4137 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004138 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004139 <actions>
4140 <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 -05004141 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004142 <action function="page">choosedestinationfolder</action>
4143 </actions>
4144 </button>
4145
4146 <button style="main_button_half_height">
4147 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004148 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004149 <actions>
4150 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004151 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004152 <action function="page">choosedestinationfolder</action>
4153 </actions>
4154 </button>
4155
4156 <button style="main_button_half_height">
4157 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004158 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004159 <actions>
4160 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004161 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004162 <action function="set">tw_fm_text2=</action>
4163 <action function="set">tw_fm_text3=</action>
4164 <action function="set">tw_include_text3=0</action>
4165 <action function="set">tw_back=filemanageroptions</action>
4166 <action function="page">filemanagerconfirm</action>
4167 </actions>
4168 </button>
4169
4170 <button style="main_button_half_height">
4171 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004172 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004173 <actions>
4174 <action function="set">tw_filemanager_rename=0000</action>
4175 <action function="set">tw_fm_text2=</action>
4176 <action function="set">tw_fm_text3=</action>
4177 <action function="set">tw_include_text3=0</action>
4178 <action function="set">tw_back=filemanageroptions</action>
4179 <action function="page">filemanagerchmod</action>
4180 </actions>
4181 </button>
4182
4183 <button style="main_button_half_height">
4184 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004185 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004186 <actions>
4187 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004188 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004189 <action function="set">tw_fm_text2=</action>
4190 <action function="set">tw_fm_text3=</action>
4191 <action function="set">tw_include_text3=0</action>
4192 <action function="set">tw_back=filemanageroptions</action>
4193 <action function="page">filemanagerconfirm</action>
4194 </actions>
4195 </button>
4196
4197 <button style="main_button_half_height">
4198 <condition var1="tw_fm_isfolder" var2="0"/>
4199 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004200 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004201 <actions>
4202 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004203 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004204 <action function="set">tw_filemanager_command=mv</action>
4205 <action function="page">filemanagerrenamefile</action>
4206 </actions>
4207 </button>
4208
4209 <button style="main_button_half_height">
4210 <condition var1="tw_fm_isfolder" var2="1"/>
4211 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004212 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004213 <actions>
4214 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004215 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004216 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4217 <action function="page">filemanagerrenamefolder</action>
4218 </actions>
4219 </button>
4220
4221 <action>
4222 <touch key="home"/>
4223 <action function="page">main</action>
4224 </action>
4225
4226 <action>
4227 <touch key="back"/>
4228 <action function="page">filemanagerlist</action>
4229 </action>
4230 </page>
4231
4232 <page name="choosedestinationfolder">
4233 <template name="page"/>
4234
4235 <text style="text_l">
4236 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004237 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004238 </text>
4239
4240 <text style="text_m">
4241 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004242 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004243 </text>
4244
4245 <template name="sort_options"/>
4246
4247 <fileselector>
4248 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4249 <text>%tw_file_location2%</text>
4250 <filter folders="1" files="0"/>
4251 <path name="tw_file_location2" default="/"/>
4252 <data name="tw_filename2"/>
4253 <selection name="tw_selection2"/>
4254 </fileselector>
4255
4256 <button style="fab">
4257 <image resource="fab_selectfolder"/>
4258 <actions>
4259 <action function="set">tw_fm_text2=to</action>
4260 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4261 <action function="set">tw_include_text3=1</action>
4262 <action function="set">tw_back=filemanageroptions</action>
4263 <action function="page">filemanagerconfirm</action>
4264 </actions>
4265 </button>
4266
4267 <action>
4268 <touch key="home"/>
4269 <action function="page">main</action>
4270 </action>
4271
4272 <action>
4273 <touch key="back"/>
4274 <action function="page">filemanageroptions</action>
4275 </action>
4276 </page>
4277
4278 <page name="filemanagerrenamefile">
4279 <template name="page"/>
4280
4281 <text style="text_l">
4282 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004283 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004284 </text>
4285
4286 <text style="text_m">
4287 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004288 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004289 </text>
4290
4291 <text style="text_m_accent">
4292 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004293 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004294 </text>
4295
4296 <input>
4297 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4298 <text>%tw_filemanager_rename%</text>
4299 <data name="tw_filemanager_rename"/>
4300 <restrict minlen="1" maxlen="128"/>
4301 <actions>
4302 <action function="set">tw_fm_text2=to</action>
4303 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4304 <action function="set">tw_include_text3=1</action>
4305 <action function="set">tw_back=filemanageroptions</action>
4306 <action function="page">filemanagerconfirm</action>
4307 </actions>
4308 </input>
4309
4310 <fill color="%accent_color%">
4311 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4312 </fill>
4313
4314 <button style="main_button_half_height">
4315 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004316 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004317 <action function="page">filemanageroptions</action>
4318 </button>
4319
4320 <template name="keyboardtemplate"/>
4321
4322 <action>
4323 <touch key="home"/>
4324 <action function="page">main</action>
4325 </action>
4326
4327 <action>
4328 <touch key="back"/>
4329 <action function="page">filemanageroptions</action>
4330 </action>
4331 </page>
4332
4333 <page name="filemanagerrenamefolder">
4334 <template name="page"/>
4335
4336 <text style="text_l">
4337 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004338 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004339 </text>
4340
4341 <text style="text_m">
4342 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004343 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004344 </text>
4345
4346 <text style="text_m_accent">
4347 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004348 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004349 </text>
4350
4351 <input>
4352 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4353 <text>%tw_filemanager_rename%</text>
4354 <data name="tw_filemanager_rename"/>
4355 <restrict minlen="1" maxlen="128"/>
4356 <actions>
4357 <action function="set">tw_fm_text2=to</action>
4358 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4359 <action function="set">tw_include_text3=1</action>
4360 <action function="set">tw_back=filemanageroptions</action>
4361 <action function="page">filemanagerconfirm</action>
4362 </actions>
4363 </input>
4364
4365 <fill color="%accent_color%">
4366 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4367 </fill>
4368
4369 <button style="main_button_half_height">
4370 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004371 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004372 <action function="page">filemanageroptions</action>
4373 </button>
4374
4375 <template name="keyboardtemplate"/>
4376
4377 <action>
4378 <touch key="home"/>
4379 <action function="page">main</action>
4380 </action>
4381
4382 <action>
4383 <touch key="back"/>
4384 <action function="page">filemanageroptions</action>
4385 </action>
4386 </page>
4387
4388 <page name="filemanagerchmod">
4389 <template name="page"/>
4390
4391 <text style="text_l">
4392 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004393 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004394 </text>
4395
4396 <text style="text_m">
4397 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004398 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004399 </text>
4400
4401 <text style="text_m_accent">
4402 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004403 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004404 </text>
4405
4406 <input>
4407 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4408 <text>%tw_filemanager_rename%</text>
4409 <data name="tw_filemanager_rename"/>
4410 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4411 <actions>
4412 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4413 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4414 <action function="set">tw_back=filemanageroptions</action>
4415 <action function="page">filemanagerconfirm</action>
4416 </actions>
4417 </input>
4418
4419 <fill color="%accent_color%">
4420 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4421 </fill>
4422
4423 <button style="main_button_half_height">
4424 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004425 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004426 <action function="page">filemanageroptions</action>
4427 </button>
4428
4429 <template name="keyboardtemplate"/>
4430
4431 <action>
4432 <touch key="home"/>
4433 <action function="page">main</action>
4434 </action>
4435
4436 <action>
4437 <touch key="back"/>
4438 <action function="page">filemanageroptions</action>
4439 </action>
4440 </page>
4441
4442 <page name="filemanagerconfirm">
4443 <template name="page"/>
4444
4445 <text style="text_l">
4446 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004447 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004448 </text>
4449
4450 <text style="text_m">
4451 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004452 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004453 </text>
4454
4455 <text style="text_m_accent">
4456 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4457 <text>%tw_fm_text1%</text>
4458 </text>
4459
4460 <text style="text_m">
4461 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4462 <text>%tw_filename1%</text>
4463 </text>
4464
4465 <text style="text_m_accent">
4466 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4467 <text>%tw_fm_text2%</text>
4468 </text>
4469
4470 <text style="text_m">
4471 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4472 <text>%tw_fm_text3%</text>
4473 </text>
4474
4475 <text style="text_m">
4476 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004477 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004478 </text>
4479
4480 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004481 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004482 <action function="page">filemanageraction</action>
4483 </slider>
4484
4485 <action>
4486 <touch key="back"/>
4487 <action function="page">%tw_back%</action>
4488 </action>
4489
4490 <action>
4491 <touch key="home"/>
4492 <action function="page">main</action>
4493 </action>
4494 </page>
4495
4496 <page name="filemanageraction">
4497 <template name="page"/>
4498
4499 <text style="text_l">
4500 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004501 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004502 </text>
4503
4504 <text style="text_m">
4505 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4506 <text>%tw_fm_text1%</text>
4507 </text>
4508
4509 <template name="console"/>
4510
4511 <template name="progress_bar"/>
4512
4513 <action>
4514 <conditions>
4515 <condition var1="tw_operation_state" var2="1"/>
4516 <condition var1="tw_operation_status" var2="0"/>
4517 </conditions>
4518 <actions>
4519 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004520 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004521 <action function="page">action_complete</action>
4522 </actions>
4523 </action>
4524
4525 <action>
4526 <conditions>
4527 <condition var1="tw_operation_state" var2="1"/>
4528 <condition var1="tw_operation_status" op="!=" var2="0"/>
4529 </conditions>
4530 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004531 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004532 <action function="page">action_complete</action>
4533 </actions>
4534 </action>
4535
4536 <action>
4537 <condition var1="tw_include_text3" var2="0"/>
4538 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4539 </action>
4540
4541 <action>
4542 <condition var1="tw_include_text3" var2="1"/>
4543 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4544 </action>
4545 </page>
4546
4547 <page name="decrypt">
4548 <template name="page"/>
4549
4550 <action>
4551 <condition var1="tw_crypto_pwtype" var2="2"/>
4552 <action function="page">decrypt_pattern</action>
4553 </action>
4554
4555 <text style="text_l">
4556 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004557 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004558 </text>
4559
4560 <text style="text_m">
4561 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 </text>
4564
4565 <text style="text_m_accent">
4566 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004567 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004568 </text>
4569
4570 <input>
4571 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4572 <text>%tw_crypto_display%</text>
4573 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4574 <restrict minlen="1" maxlen="254"/>
4575 <action function="page">trydecrypt</action>
4576 </input>
4577
4578 <fill color="%accent_color%">
4579 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4580 </fill>
4581
4582 <fill color="%text_fail_color%">
4583 <condition var1="tw_password_fail" var2="1"/>
4584 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4585 </fill>
4586
4587 <text style="text_m_fail">
4588 <condition var1="tw_password_fail" var2="1"/>
4589 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004590 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004591 </text>
4592
4593 <button style="main_button_half_height">
4594 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004595 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004596 <actions>
4597 <action function="set">tw_page_done=1</action>
4598 <action function="page">main</action>
4599 </actions>
4600 </button>
4601
z31s1g608d7ff2016-01-18 19:47:25 +01004602 <button style="main_button_half_height">
4603 <placement x="%center_x%" y="%row10_y%"/>
4604 <text>{@sel_lang_btn=Select Language}</text>
4605 <action function="overlay">select_language</action>
4606 </button>
4607
z31s1g28f0a922015-11-07 18:50:22 +01004608 <template name="keyboardtemplate"/>
4609 </page>
4610
4611 <page name="decrypt_pattern">
4612 <template name="page"/>
4613
4614 <text style="text_l">
4615 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004616 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004617 </text>
4618
4619 <text style="text_m">
4620 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004621 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004622 </text>
4623
4624 <text style="text_m_accent">
4625 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004626 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004627 </text>
4628
Aleksa Saraib25a1832015-12-31 17:36:00 +01004629 <text style="text_m_fail">
4630 <condition var1="tw_password_fail" var2="1"/>
4631 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004632 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004633 </text>
4634
z31s1g28f0a922015-11-07 18:50:22 +01004635 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004636 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004637 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4638 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4639 <data name="tw_crypto_password"/>
4640 <action function="page">trydecrypt</action>
4641 </patternpassword>
4642
Aleksa Saraib25a1832015-12-31 17:36:00 +01004643 <button style="button_quarter_width">
4644 <placement x="%indent%" y="%row19a_y%"/>
4645 <text>3x3</text>
4646 <action function="set">tw_gui_pattern_grid_size=3</action>
4647 </button>
4648
4649 <button style="button_quarter_width">
4650 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4651 <text>4x4</text>
4652 <action function="set">tw_gui_pattern_grid_size=4</action>
4653 </button>
4654
4655 <button style="button_quarter_width">
4656 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4657 <text>5x5</text>
4658 <action function="set">tw_gui_pattern_grid_size=5</action>
4659 </button>
4660
4661 <button style="button_quarter_width">
4662 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4663 <text>6x6</text>
4664 <action function="set">tw_gui_pattern_grid_size=6</action>
4665 </button>
4666
z31s1g28f0a922015-11-07 18:50:22 +01004667 <button style="main_button_half_height">
4668 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004669 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004670 <actions>
4671 <action function="set">tw_page_done=1</action>
4672 <action function="page">main</action>
4673 </actions>
4674 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004675
4676 <button style="main_button_half_height">
4677 <placement x="%center_x%" y="%row21a_y%"/>
4678 <text>{@sel_lang_btn=Select Language}</text>
4679 <action function="overlay">select_language</action>
4680 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004681 </page>
4682
4683 <page name="trydecrypt">
4684 <template name="page"/>
4685
4686 <text style="text_l">
4687 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004688 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004689 </text>
4690
4691 <text style="text_m">
4692 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004693 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004694 </text>
4695
4696 <template name="console"/>
4697
4698 <template name="progress_bar"/>
4699
4700 <action>
4701 <action function="decrypt"/>
4702 </action>
4703
4704 <action>
4705 <conditions>
4706 <condition var1="tw_operation_state" var2="1"/>
4707 <condition var1="tw_operation_status" op="!=" var2="0"/>
4708 </conditions>
4709 <actions>
4710 <action function="set">tw_password_fail=1</action>
4711 <action function="page">decrypt</action>
4712 </actions>
4713 </action>
4714
4715 <action>
4716 <conditions>
4717 <condition var1="tw_operation_state" var2="1"/>
4718 <condition var1="tw_operation_status" op="=" var2="0"/>
4719 </conditions>
4720 <actions>
4721 <action function="set">tw_page_done=1</action>
4722 <action function="page">main</action>
4723 </actions>
4724 </action>
4725 </page>
4726
z31s1g28f0a922015-11-07 18:50:22 +01004727 <page name="terminalcommand">
4728 <template name="page"/>
4729
z31s1g56189522016-01-13 19:12:40 +01004730 <fill color="%background_color%">
4731 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004732 </fill>
4733
z31s1g56189522016-01-13 19:12:40 +01004734 <terminal>
4735 <condition var1="tw_hide_kb" var2="0"/>
4736 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4737 </terminal>
4738
4739 <terminal>
4740 <condition var1="tw_hide_kb" var2="1"/>
4741 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4742 </terminal>
4743
4744 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004745
4746 <template name="keyboardtemplate"/>
4747
z31s1g608d7ff2016-01-18 19:47:25 +01004748 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004749 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004750 </fill>
z31s1g56189522016-01-13 19:12:40 +01004751
z31s1g608d7ff2016-01-18 19:47:25 +01004752 <button>
z31s1g56189522016-01-13 19:12:40 +01004753 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4754 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4755 <image resource="back" />
4756 <condition var1="tw_busy" var2="0" />
4757 <actions>
4758 <action function="set">tw_hide_kb=0</action>
4759 <action function="key">back</action>
4760 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004761 </button>
z31s1g56189522016-01-13 19:12:40 +01004762
z31s1g608d7ff2016-01-18 19:47:25 +01004763 <button>
z31s1g56189522016-01-13 19:12:40 +01004764 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4765 <condition var1="tw_hide_kb" op="=" var2="0" />
4766 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4767 <image resource="kb_hide" />
4768 <condition var1="tw_busy" var2="0" />
4769 <actions>
4770 <action function="set">tw_hide_kb=1</action>
4771 <action function="page">terminalcommand</action>
4772 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004773 </button>
z31s1g56189522016-01-13 19:12:40 +01004774
z31s1g608d7ff2016-01-18 19:47:25 +01004775 <button>
z31s1g56189522016-01-13 19:12:40 +01004776 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4777 <condition var1="tw_hide_kb" op="=" var2="1" />
4778 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4779 <image resource="kb_show" />
4780 <condition var1="tw_busy" var2="0" />
4781 <actions>
4782 <action function="set">tw_hide_kb=0</action>
4783 <action function="page">terminalcommand</action>
4784 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004785 </button>
z31s1g56189522016-01-13 19:12:40 +01004786
z31s1g608d7ff2016-01-18 19:47:25 +01004787 <button>
z31s1g56189522016-01-13 19:12:40 +01004788 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4789 <image resource="home" />
4790 <condition var1="tw_busy" var2="0" />
4791 <actions>
4792 <action function="set">tw_hide_kb=0</action>
4793 <action function="key">home</action>
4794 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004795 </button>
z31s1g56189522016-01-13 19:12:40 +01004796
z31s1g608d7ff2016-01-18 19:47:25 +01004797 <button>
z31s1g56189522016-01-13 19:12:40 +01004798 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4799 <condition var1="tw_hide_kb" op="=" var2="0" />
4800 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4801 <image resource="kb_hide" />
4802 <condition var1="tw_busy" var2="0" />
4803 <actions>
4804 <action function="set">tw_hide_kb=1</action>
4805 <action function="page">terminalcommand</action>
4806 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004807 </button>
z31s1g56189522016-01-13 19:12:40 +01004808
z31s1g608d7ff2016-01-18 19:47:25 +01004809 <button>
z31s1g56189522016-01-13 19:12:40 +01004810 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4811 <condition var1="tw_hide_kb" op="=" var2="1" />
4812 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4813 <image resource="kb_show" />
4814 <condition var1="tw_busy" var2="0" />
4815 <actions>
4816 <action function="set">tw_hide_kb=0</action>
4817 <action function="page">terminalcommand</action>
4818 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004819 </button>
z31s1g56189522016-01-13 19:12:40 +01004820
z31s1g608d7ff2016-01-18 19:47:25 +01004821 <button>
z31s1g56189522016-01-13 19:12:40 +01004822 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4823 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4824 <image resource="back" />
4825 <condition var1="tw_busy" var2="0" />
4826 <actions>
4827 <action function="set">tw_hide_kb=0</action>
4828 <action function="key">back</action>
4829 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004830 </button>
z31s1g56189522016-01-13 19:12:40 +01004831
z31s1g28f0a922015-11-07 18:50:22 +01004832 <action>
4833 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004834 <actions>
4835 <action function="set">tw_hide_kb=0</action>
4836 <action function="page">main</action>
4837 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004838 </action>
4839
4840 <action>
4841 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004842 <actions>
4843 <action function="set">tw_hide_kb=0</action>
4844 <action function="page">advanced</action>
4845 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004846 </action>
z31s1g56189522016-01-13 19:12:40 +01004847
z31s1g608d7ff2016-01-18 19:47:25 +01004848 <action>
z31s1g56189522016-01-13 19:12:40 +01004849 <touch key="power+voldown" />
4850 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004851 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004852 </page>
4853
4854 <page name="sideload">
4855 <template name="page"/>
4856
4857 <text style="text_l">
4858 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004859 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004860 </text>
4861
4862 <text style="text_m">
4863 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004864 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004865 </text>
4866
4867 <checkbox>
4868 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004869 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004870 <data variable="tw_wipe_dalvik"/>
4871 </checkbox>
4872
4873 <checkbox>
4874 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004875 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004876 <data variable="tw_wipe_cache"/>
4877 </checkbox>
4878
4879 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004880 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004881 <actions>
4882 <action function="set">tw_back=advanced</action>
4883 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004884 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4885 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4886 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004887 <action function="set">tw_has_cancel=1</action>
4888 <action function="set">tw_show_reboot=1</action>
4889 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4890 <action function="page">action_page</action>
4891 </actions>
4892 </slider>
4893
4894 <action>
4895 <touch key="home"/>
4896 <action function="page">main</action>
4897 </action>
4898
4899 <action>
4900 <touch key="back"/>
4901 <action function="page">advanced</action>
4902 </action>
4903 </page>
4904
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004905 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01004906 <template name="page"/>
4907
4908 <text style="text_l">
4909 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004910 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004911 </text>
4912
4913 <text style="text_m">
4914 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004915 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004916 </text>
4917
4918 <text style="text_m_accent">
4919 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004920 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004921 </text>
4922
z31s1g28f0a922015-11-07 18:50:22 +01004923 <text style="text_m_fail">
4924 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004925 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004926 </text>
4927
4928 <text style="text_m_fail">
4929 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004930 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004931 </text>
4932
4933 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004934 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004935 <actions>
4936 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004937 <action function="set">tw_action=fixcontexts</action>
4938 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
4939 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004940 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004941 <action function="set">tw_show_reboot=1</action>
4942 <action function="page">action_page</action>
4943 </actions>
4944 </slider>
4945
4946 <action>
4947 <touch key="home"/>
4948 <action function="page">main</action>
4949 </action>
4950
4951 <action>
4952 <touch key="back"/>
4953 <action function="page">advanced</action>
4954 </action>
4955 </page>
4956
z31s1g28f0a922015-11-07 18:50:22 +01004957 <page name="slideout">
4958 <fill color="%background_color%">
4959 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
4960 </fill>
4961
4962 <console>
4963 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
4964 </console>
4965
4966 <button>
4967 <fill color="%transparent%"/>
4968 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
4969 <action function="overlay"/>
4970 </button>
4971
4972 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06004973 <touch key="power"/>
4974 <action function="togglebacklight"/>
4975 </action>
4976
4977 <action>
z31s1g28f0a922015-11-07 18:50:22 +01004978 <touch key="power+voldown"/>
4979 <action function="screenshot"/>
4980 </action>
4981 </page>
4982
4983 <page name="select_storage">
4984 <fill color="%semi_transparent%">
4985 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
4986 </fill>
4987
4988 <fill color="%background_color%">
4989 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
4990 </fill>
4991
4992 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05004993 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004994 <data name="tw_storage_path"/>
4995 <listtype name="storage"/>
4996 </partitionlist>
4997
4998 <button style="button_third_width">
4999 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005000 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005001 <actions>
5002 <action function="set">tw_clear_destination=%tw_back%</action>
5003 <action function="overlay"/>
5004 <action function="page">clear_vars</action>
5005 </actions>
5006 </button>
5007
5008 <fill color="#000000">
5009 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5010 </fill>
5011
5012 <button>
5013 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5014 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5015 <image resource="back"/>
5016 <condition var1="tw_busy" var2="0"/>
5017 <actions>
5018 <action function="overlay"/>
5019 <action function="key">%tw_back%</action>
5020 </actions>
5021 </button>
5022
5023 <button>
5024 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5025 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5026 <image resource="console"/>
5027 <condition var1="tw_busy" var2="0"/>
5028 <action function="overlay">slideout</action>
5029 </button>
5030
5031 <button>
5032 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5033 <image resource="home"/>
5034 <condition var1="tw_busy" var2="0"/>
5035 <actions>
5036 <action function="overlay"/>
5037 <action function="key">home</action>
5038 </actions>
5039 </button>
5040
5041 <button>
5042 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5043 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5044 <image resource="console"/>
5045 <condition var1="tw_busy" var2="0"/>
5046 <action function="overlay">slideout</action>
5047 </button>
5048
5049 <button>
5050 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5051 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5052 <image resource="back"/>
5053 <condition var1="tw_busy" var2="0"/>
5054 <actions>
5055 <action function="overlay"/>
5056 <action function="key">%tw_back%</action>
5057 </actions>
5058 </button>
5059
5060 <action>
5061 <touch key="power+voldown"/>
5062 <action function="screenshot"/>
5063 </action>
5064 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005065
5066 <page name="select_language">
5067 <fill color="%semi_transparent%">
5068 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5069 </fill>
5070
5071 <fill color="%background_color%">
5072 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5073 </fill>
5074
5075 <listbox>
5076 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5077 <text>{@select_language=Select Language:}</text>
5078 <icon selected="radio_true" unselected="radio_false" />
5079 <data name="tw_language" />
5080 </listbox>
5081
5082 <button style="button_third_width">
5083 <placement x="%dialog_button_x%" y="%row14_y%"/>
5084 <text>{@ok_btn=OK}</text>
5085 <actions>
5086 <action function="overlay"/>
5087 <action function="setlanguage"></action>
5088 </actions>
5089 </button>
5090
5091 <fill color="#000000">
5092 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5093 </fill>
5094
5095 <button>
5096 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5097 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5098 <image resource="back"/>
5099 <condition var1="tw_busy" var2="0"/>
5100 <actions>
5101 <action function="overlay"/>
5102 <action function="key">%tw_back%</action>
5103 </actions>
5104 </button>
5105
5106 <button>
5107 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5108 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5109 <image resource="console"/>
5110 <condition var1="tw_busy" var2="0"/>
5111 <action function="overlay">slideout</action>
5112 </button>
5113
5114 <button>
5115 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5116 <image resource="home"/>
5117 <condition var1="tw_busy" var2="0"/>
5118 <actions>
5119 <action function="overlay"/>
5120 <action function="key">home</action>
5121 </actions>
5122 </button>
5123
5124 <button>
5125 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5126 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5127 <image resource="console"/>
5128 <condition var1="tw_busy" var2="0"/>
5129 <action function="overlay">slideout</action>
5130 </button>
5131
5132 <button>
5133 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5134 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5135 <image resource="back"/>
5136 <condition var1="tw_busy" var2="0"/>
5137 <actions>
5138 <action function="overlay"/>
5139 <action function="key">%tw_back%</action>
5140 </actions>
5141 </button>
5142
5143 <action>
5144 <touch key="power+voldown"/>
5145 <action function="screenshot"/>
5146 </action>
5147 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005148 </pages>
5149</recovery>