blob: 4bcaf5775e36b614520a2f6662b03b9e0538ab93 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
z31s1g28f0a922015-11-07 18:50:22 +0100149 <style name="slider">
150 <placement x="%center_x%" y="%row23_y%"/>
151 <font resource="font_s" color="%text_color%"/>
152 <resource base="slider" used="slider_used" touch="slider_touch"/>
153 </style>
154
155 <style name="slidervalue">
156 <resource handle="handle"/>
157 <font resource="font_m" color="%text_color%"/>
158 <colors line="%fileselector_linecolor%"/>
159 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
160 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100161
162 <style name="patternpassword">
163 <size name="tw_gui_pattern_grid_size" default="3"/>
164 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100165 </styles>
166
167 <pages>
168 <page name="main">
169 <action>
170 <actions>
171 <action function="set">tw_clear_destination=main2</action>
172 <action function="page">clear_vars</action>
173 </actions>
174 </action>
175 </page>
176
177 <page name="main2">
178 <template name="page"/>
179
180 <text style="text_l">
181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500182 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100183 </text>
184
185 <text style="text_m">
186 <condition var1="tw_no_cpu_temp" var2="0"/>
187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
188 <text>%tw_version%</text>
189 </text>
190
191 <button style="main_button">
192 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500193 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100194 <actions>
195 <action function="queueclear"/>
196 <action function="set">tw_selectimage=0</action>
197 <action function="page">install</action>
198 </actions>
199 </button>
200
201 <button style="main_button">
202 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500203 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100204 <action function="page">wipe</action>
205 </button>
206
207 <button style="main_button">
208 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500209 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100210 <action function="page">backup</action>
211 </button>
212
213 <button style="main_button">
214 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500215 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100216 <action function="page">restore</action>
217 </button>
218
219 <button style="main_button">
220 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">mount</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">settings</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">advanced</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">reboot</action>
241 </button>
242 </page>
243
244 <page name="install">
245 <template name="page"/>
246
247 <text style="text_l">
248 <condition var1="tw_selectimage" var2="0"/>
249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 </text>
252
253 <text style="text_l">
254 <condition var1="tw_selectimage" var2="1"/>
255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 </text>
258
259 <text style="text_m">
260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500261 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100262 </text>
263
264 <template name="sort_options"/>
265
266 <fileselector>
267 <condition var1="tw_selectimage" var2="0"/>
268 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
269 <text>%tw_zip_location%</text>
mauronofrio0ff59842019-10-26 19:47:55 +0200270 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonald15430b62021-01-23 18:52:28 +0100271 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100272 <path name="tw_zip_location" default="/sdcard"/>
273 <data name="tw_filename"/>
274 <selection name="tw_file"/>
275 </fileselector>
276
277 <fileselector>
278 <condition var1="tw_selectimage" var2="1"/>
279 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
280 <text>%tw_zip_location%</text>
281 <filter extn=".img" folders="1" files="1"/>
282 <path name="tw_zip_location" default="/sdcard"/>
283 <data name="tw_filename"/>
284 <selection name="tw_file"/>
285 </fileselector>
286
287 <button style="main_button_half_height">
288 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500289 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100290 <actions>
291 <action function="set">tw_back=install</action>
292 <action function="overlay">select_storage</action>
293 </actions>
294 </button>
295
296 <button style="main_button_half_height">
297 <condition var1="tw_selectimage" var2="0"/>
298 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500299 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100300 <actions>
301 <action function="set">tw_selectimage=1</action>
302 <action function="page">install</action>
303 </actions>
304 </button>
305
306 <button style="main_button_half_height">
307 <condition var1="tw_selectimage" var2="1"/>
308 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500309 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100310 <actions>
311 <action function="set">tw_selectimage=0</action>
312 <action function="page">install</action>
313 </actions>
314 </button>
315
316 <action>
317 <conditions>
318 <condition var1="tw_selectimage" var2="0"/>
319 <condition var1="tw_filename" op="modified"/>
320 </conditions>
321 <actions>
322 <action function="queuezip"/>
323 <action function="page">flash_confirm</action>
324 </actions>
325 </action>
326
327 <action>
328 <conditions>
329 <condition var1="tw_selectimage" var2="1"/>
330 <condition var1="tw_filename" op="modified"/>
331 </conditions>
332 <action function="page">flashimage_confirm</action>
333 </action>
334
335 <action>
336 <touch key="back"/>
337 <action function="page">main</action>
338 </action>
339
340 <action>
341 <touch key="home"/>
342 <action function="page">main</action>
343 </action>
344 </page>
345
346 <page name="flash_confirm">
347 <template name="page"/>
348
349 <text style="text_l">
350 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500351 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100352 </text>
353
354 <text style="text_m">
355 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500356 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100357 </text>
358
359 <text style="text_m_accent">
360 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500361 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100362 </text>
363
364 <text style="text_m_accent">
365 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500366 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100367 </text>
368
369 <text style="text_m">
370 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500371 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100372 </text>
373
374 <text style="text_m_accent">
375 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500376 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100377 </text>
378
379 <text style="text_m">
380 <placement x="%indent%" y="%row8_y%"/>
381 <text>%tw_zip_location%</text>
382 </text>
383
384 <text style="text_m_accent">
385 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500386 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100387 </text>
388
389 <text style="text_m">
390 <placement x="%indent%" y="%row10a_y%"/>
391 <text>%tw_file%</text>
392 </text>
393
394 <checkbox>
395 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500396 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100397 <data variable="tw_signed_zip_verify"/>
398 </checkbox>
399
400 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600401 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500402 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600403 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500404 </checkbox>
405
406 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500407 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300408 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500409 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100410 <data variable="tw_inject_after_zip"/>
411 </checkbox>
412
413 <button style="main_button_half_height">
414 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500415 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100416 <action function="page">install</action>
417 </button>
418
419 <button style="main_button_half_height">
420 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500421 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100422 <actions>
423 <action function="queueclear"/>
424 <action function="page">install</action>
425 </actions>
426 </button>
427
428 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500429 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100430 <action function="flash">flash_zip</action>
431 </slider>
432
433 <action>
434 <touch key="back"/>
435 <actions>
436 <action function="cancelzip"/>
437 <action function="page">install</action>
438 </actions>
439 </action>
440
441 <action>
442 <touch key="home"/>
443 <action function="page">main</action>
444 </action>
445 </page>
446
447 <page name="flash_zip">
448 <template name="page"/>
449
450 <text style="text_l">
451 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500452 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100453 </text>
454
455 <text style="text_m">
456 <placement x="%col1_x_header%" y="%row4_header_y%"/>
457 <text>%tw_file%</text>
458 </text>
459
460 <template name="console"/>
461
462 <template name="progress_bar"/>
463
464 <action>
465 <condition var1="tw_operation_state" var2="1"/>
466 <action function="page">flash_done</action>
467 </action>
468 </page>
469
470 <page name="flash_done">
471 <template name="page"/>
472
473 <text style="text_l">
474 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500475 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100476 </text>
477
478 <text style="text_m_fail">
479 <condition var1="tw_operation_status" op="!=" var2="0"/>
480 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500481 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100482 </text>
483
484 <text style="text_m">
485 <condition var1="tw_operation_status" var2="0"/>
486 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500487 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100488 </text>
489
490 <template name="console"/>
491
492 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500493 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100494 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500495 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100496 <actions>
497 <action function="set">tw_back=flash_done</action>
498 <action function="set">tw_action=wipe</action>
499 <action function="set">tw_action_param=/cache</action>
500 <action function="set">tw_has_action2=1</action>
501 <action function="set">tw_action2=wipe</action>
502 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500503 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
504 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
505 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
506 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100507 <action function="page">confirm_action</action>
508 </actions>
509 </button>
510
511 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500512 <condition var1="tw_ab_device" var2="1"/>
513 <placement x="%indent%" y="%row21a_y%"/>
514 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
515 <actions>
516 <action function="set">tw_back=flash_done</action>
517 <action function="set">tw_action=wipe</action>
518 <action function="set">tw_action_param=dalvik</action>
519 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
520 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
521 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
522 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
523 <action function="page">confirm_action</action>
524 </actions>
525 </button>
526
527 <button style="main_button_half_height">
Chaosmaster90df3de2020-02-07 20:33:43 +0100528 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100529 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500530 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100531 <actions>
532 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500533 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100534 </actions>
535 </button>
536
Chaosmaster90df3de2020-02-07 20:33:43 +0100537 <button style="main_button_half_height">
538 <condition var1="tw_ab_device" var2="1"/>
539 <placement x="%center_x%" y="%row21a_y%"/>
540 <text>{@reboot_btn=Reboot}</text>
541 <actions>
542 <action function="set">tw_back=main2</action>
543 <action function="page">reboot</action>
544 </actions>
545 </button>
546
z31s1g28f0a922015-11-07 18:50:22 +0100547 <action>
548 <touch key="back"/>
549 <actions>
550 <action function="set">tw_clear_destination=install</action>
551 <action function="page">clear_vars</action>
552 </actions>
553 </action>
554
555 <action>
556 <touch key="home"/>
557 <actions>
558 <action function="set">tw_clear_destination=main2</action>
559 <action function="page">clear_vars</action>
560 </actions>
561 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500562
563 <action>
564 <conditions>
565 <condition var1="tw_install_reboot" var2="1"/>
566 <condition var1="tw_operation_status" var2="0"/>
567 <condition var1="tw_reboot_system" var2="1"/>
568 </conditions>
569 <actions>
570 <action function="set">tw_sleep=%tw_sleep_total%</action>
571 <action function="page">flash_sleep_and_reboot</action>
572 </actions>
573 </action>
574 </page>
575
576 <page name="flash_sleep_and_reboot">
577 <template name="page"/>
578
579 <text style="text_l">
580 <placement x="%col1_x_header%" y="%row3_header_y%"/>
581 <text>{@install_zip_hdr=Install Zip}</text>
582 </text>
583
584 <text style="text_m">
585 <placement x="%col1_x_header%" y="%row4_header_y%"/>
586 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
587 </text>
588
589 <template name="console"/>
590
591 <template name="progress_bar"/>
592
593 <button style="main_button_half_height">
594 <condition var1="tw_sleep" op="&gt;" var2="0"/>
595 <placement x="%center_x%" y="%row21a_y%"/>
596 <text>{@cancel_btn=Cancel}</text>
597 <actions>
598 <action function="set">tw_install_reboot=0</action>
599 <action function="page">flash_done</action>
600 </actions>
601 </button>
602
603 <action>
604 <conditions>
605 <condition var1="tw_sleep" var2="tw_sleep_total"/>
606 <condition var1="tw_install_reboot" var2="1"/>
607 </conditions>
608 <action function="sleepcounter">%tw_sleep_total%</action>
609 </action>
610
611 <action>
612 <conditions>
613 <condition var1="tw_sleep" var2="0"/>
614 <condition var1="tw_install_reboot" var2="1"/>
615 </conditions>
616 <actions>
617 <action function="sleep">50000</action>
618 <action function="set">tw_back=main2</action>
619 <action function="page">reboot_system_routine</action>
620 </actions>
621 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100622 </page>
623
624 <page name="flashimage_confirm">
625 <template name="page"/>
626
627 <text style="text_l">
628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500629 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100630 </text>
631
632 <text style="text_m">
633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500634 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100635 </text>
636
637 <text style="text_m_accent">
638 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500639 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100640 </text>
641
642 <text style="text_m">
643 <placement x="%indent%" y="%row3_y%"/>
644 <text>%tw_zip_location%</text>
645 </text>
646
647 <text style="text_m_accent">
648 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500649 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100650 </text>
651
652 <text style="text_m">
653 <placement x="%indent%" y="%row5a_y%"/>
654 <text>%tw_file%</text>
655 </text>
656
657 <partitionlist>
658 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
659 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500660 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100661 <data name="tw_flash_partition"/>
662 <listtype name="flashimg"/>
663 </partitionlist>
664
665 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500666 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100667 <actions>
668 <action function="set">tw_back=flashimage_confirm</action>
669 <action function="set">tw_action=flashimage</action>
670 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500671 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100672 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500673 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100674 <action function="page">action_page</action>
675 </actions>
676 <action function="flashimage"/>
677 </slider>
678
679 <action>
680 <touch key="back"/>
681 <actions>
682 <action function="set">tw_clear_destination=install</action>
683 <action function="page">clear_vars</action>
684 </actions>
685 </action>
686
687 <action>
688 <touch key="home"/>
689 <actions>
690 <action function="set">tw_clear_destination=main2</action>
691 <action function="page">clear_vars</action>
692 </actions>
693 </action>
694 </page>
695
696 <page name="clear_vars">
697 <action>
698 <action function="set">tw_operation_state=0</action>
699 <action function="set">tw_text1=</action>
700 <action function="set">tw_text2=</action>
701 <action function="set">tw_text3=</action>
702 <action function="set">tw_text4=</action>
703 <action function="set">tw_action_text1=</action>
704 <action function="set">tw_action_text2=</action>
705 <action function="set">tw_action_param=</action>
706 <action function="set">tw_has_action2=0</action>
707 <action function="set">tw_action2=</action>
708 <action function="set">tw_action2_param=</action>
709 <action function="set">tw_has_cancel=0</action>
710 <action function="set">tw_cancel_action=</action>
711 <action function="set">tw_cancel_param=</action>
712 <action function="set">tw_show_exclamation=0</action>
713 <action function="set">tw_show_reboot=0</action>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400714 <action function="set">tw_crypto_user_id=</action>
Noah Jacobson3ad80f42020-07-21 01:28:22 -0400715 <action function="set">tw_multiuser_warning_accepted=</action>
716 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100717 <action function="page">%tw_clear_destination%</action>
718 </action>
719 </page>
720
Matt Mower908dd252016-05-25 02:26:50 -0500721 <page name="reboot_system_routine">
722 <action>
723 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500724 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500725 <action function="set">tw_has_action2=0</action>
726 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
727 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
728 <action function="set">tw_text3=</action>
729 <action function="set">tw_text4=</action>
730 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
731 <action function="set">tw_action_text2=</action>
732 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
733 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
734 <action function="page">rebootcheck</action>
735 </action>
736 </page>
737
z31s1g28f0a922015-11-07 18:50:22 +0100738 <page name="confirm_action">
739 <template name="page"/>
740
741 <text style="text_l">
742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500743 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100744 </text>
745
746 <text style="text_m">
747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
748 <text/>
749 </text>
750
751 <text style="text_m_accent">
752 <placement x="%center_x%" y="%row2_y%" placement="5"/>
753 <text>%tw_text1%</text>
754 </text>
755
756 <text style="text_m_accent">
757 <placement x="%center_x%" y="%row3_y%" placement="5"/>
758 <text>%tw_text2%</text>
759 </text>
760
761 <text style="text_m">
762 <placement x="%center_x%" y="%row4_y%" placement="5"/>
763 <text>%tw_text3%</text>
764 </text>
765
766 <text style="text_m">
767 <placement x="%center_x%" y="%row5_y%" placement="5"/>
768 <text>%tw_text4%</text>
769 </text>
770
771 <text style="text_m">
772 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500773 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100774 </text>
775
776 <slider>
777 <text>%tw_slider_text%</text>
778 <action function="page">action_page</action>
779 </slider>
780
781 <action>
782 <touch key="back"/>
783 <actions>
784 <action function="set">tw_clear_destination=%tw_back%</action>
785 <action function="page">clear_vars</action>
786 </actions>
787 </action>
788
789 <action>
790 <touch key="home"/>
791 <action function="page">main</action>
792 </action>
793 </page>
794
795 <page name="action_page">
796 <template name="page"/>
797
798 <text style="text_l">
799 <placement x="%col1_x_header%" y="%row3_header_y%"/>
800 <text>%tw_action_text1%</text>
801 </text>
802
803 <text style="text_m">
804 <placement x="%col1_x_header%" y="%row4_header_y%"/>
805 <text>%tw_action_text2%</text>
806 </text>
807
808 <template name="console"/>
809
810 <template name="progress_bar"/>
811
812 <button style="main_button_half_height">
813 <condition var1="tw_has_cancel" var2="1"/>
814 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500815 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
817 </button>
818
819 <action>
820 <condition var1="tw_operation_state" var2="1"/>
821 <actions>
822 <action function="page">action_complete</action>
823 </actions>
824 </action>
825
826 <action>
827 <condition var1="tw_has_action2" var2="0"/>
828 <actions>
829 <action function="%tw_action%">%tw_action_param%</action>
830 </actions>
831 </action>
832
833 <action>
834 <condition var1="tw_has_action2" var2="1"/>
835 <actions>
836 <action function="%tw_action%">%tw_action_param%</action>
837 <action function="%tw_action2%">%tw_action2_param%</action>
838 </actions>
839 </action>
840 </page>
841
842 <page name="singleaction_page">
843 <template name="page"/>
844
845 <text style="text_l">
846 <placement x="%col1_x_header%" y="%row3_header_y%"/>
847 <text>%tw_action_text1%</text>
848 </text>
849
850 <text style="text_m">
851 <placement x="%col1_x_header%" y="%row4_header_y%"/>
852 <text>%tw_action_text2%</text>
853 </text>
854
855 <template name="console"/>
856
857 <template name="progress_bar"/>
858
859 <action>
860 <condition var1="tw_operation_state" var2="1"/>
861 <actions>
862 <action function="set">tw_page_done=1</action>
863 </actions>
864 </action>
865
866 <action>
867 <condition var1="tw_has_action2" var2="0"/>
868 <actions>
869 <action function="%tw_action%">%tw_action_param%</action>
870 </actions>
871 </action>
872
873 <action>
874 <condition var1="tw_has_action2" var2="1"/>
875 <actions>
876 <action function="%tw_action%">%tw_action_param%</action>
877 <action function="%tw_action2%">%tw_action2_param%</action>
878 </actions>
879 </action>
880 </page>
881
882 <page name="action_complete">
883 <template name="page"/>
884
885 <text style="text_l">
886 <placement x="%col1_x_header%" y="%row3_header_y%"/>
887 <text>%tw_complete_text1%</text>
888 </text>
889
890 <text style="text_m_fail">
891 <condition var1="tw_operation_status" op="!=" var2="0"/>
892 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500893 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100894 </text>
895
896 <text style="text_m">
897 <condition var1="tw_operation_status" var2="0"/>
898 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500899 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100900 </text>
901
902 <template name="console"/>
903
904 <button style="main_button_half_height">
905 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500906 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100907 <actions>
908 <action function="set">tw_clear_destination=%tw_back%</action>
909 <action function="page">clear_vars</action>
910 </actions>
911 </button>
912
913 <button style="main_button_half_height">
914 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500915 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100916 <actions>
917 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500918 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100919 </actions>
920 </button>
921
922 <action>
923 <touch key="home"/>
924 <actions>
925 <action function="set">tw_clear_destination=main2</action>
926 <action function="page">clear_vars</action>
927 </actions>
928 </action>
929
930 <action>
931 <touch key="back"/>
932 <actions>
933 <action function="set">tw_clear_destination=%tw_back%</action>
934 <action function="page">clear_vars</action>
935 </actions>
936 </action>
937 </page>
938
939 <page name="filecheck">
940 <action>
941 <action function="fileexists">%tw_filecheck%</action>
942 </action>
943
944 <action>
945 <conditions>
946 <condition var1="tw_operation_state" var2="1"/>
947 <condition var1="tw_operation_status" var2="0"/>
948 </conditions>
949 <actions>
950 <action function="set">tw_fileexists=1</action>
951 <action function="page">%tw_existpage%</action>
952 </actions>
953 </action>
954
955 <action>
956 <conditions>
957 <condition var1="tw_operation_state" var2="1"/>
958 <condition var1="tw_operation_status" var2="1"/>
959 </conditions>
960 <actions>
961 <action function="set">tw_fileexists=0</action>
962 <action function="page">%tw_notexistpage%</action>
963 </actions>
964 </action>
965 </page>
966
967 <page name="rebootcheck">
968 <action>
969 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -0600970 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +0100971 </action>
972
973 <action>
974 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
975 <action function="page">confirm_action</action>
976 </action>
977 </page>
978
979 <page name="wipe">
980 <template name="page"/>
981
982 <text style="text_l">
983 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500984 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100985 </text>
986
987 <text style="text_m">
988 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500989 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100990 </text>
991
992 <text style="text_m_accent">
993 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500994 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100995 </text>
996
997 <text style="text_m_accent">
z31s1g28f0a922015-11-07 18:50:22 +0100998 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400999 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1000 </text>
1001
1002 <text style="text_m_accent">
1003 <condition var1="tw_has_data_media" var2="1"/>
1004 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001005 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001006 </text>
1007
1008 <text style="text_m_accent">
1009 <conditions>
1010 <condition var1="tw_has_android_secure" var2="1"/>
1011 <condition var1="fileexists" var2="/and-sec"/>
1012 </conditions>
1013 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001014 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001015 </text>
1016
1017 <text style="text_m_accent">
1018 <condition var1="tw_has_sdext_partition" var2="1"/>
1019 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001020 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001021 </text>
1022
1023 <text style="text_m">
1024 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001025 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001026 </text>
1027
1028 <text style="text_m">
1029 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001030 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001031 </text>
1032
1033 <text style="text_m">
1034 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001035 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001036 </text>
1037
1038 <button style="main_button_half_height">
1039 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001040 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001041 <actions>
1042 <action function="set">partitionlisterror=0</action>
1043 <action function="page">advancedwipe</action>
1044 </actions>
1045 </button>
1046
1047 <button style="main_button_half_height">
1048 <condition var1="tw_has_data_media" var2="1"/>
1049 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001050 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001051 <action function="page">formatdata</action>
1052 </button>
1053
1054 <button style="main_button_half_height">
1055 <conditions>
1056 <condition var1="tw_is_encrypted" var2="1"/>
1057 <condition var1="tw_has_data_media" var2="0"/>
1058 </conditions>
1059 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001060 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001061 <actions>
1062 <action function="set">tw_back=wipe</action>
1063 <action function="set">tw_action=wipe</action>
1064 <action function="set">tw_action_param=DATAMEDIA</action>
1065 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001066 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001067 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001068 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1069 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1070 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001071 <action function="page">confirm_action</action>
1072 </actions>
1073 </button>
1074
1075 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001076 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001077 <actions>
1078 <action function="set">tw_back=wipe</action>
1079 <action function="set">tw_action=wipe</action>
1080 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1082 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001083 <action function="page">action_page</action>
1084 </actions>
1085 </slider>
1086
1087 <action>
1088 <touch key="back"/>
1089 <action function="page">main</action>
1090 </action>
1091
1092 <action>
1093 <touch key="home"/>
1094 <action function="page">main</action>
1095 </action>
1096 </page>
1097
1098 <page name="advancedwipe">
1099 <template name="page"/>
1100
1101 <action>
1102 <action function="set">tw_wipe_list=</action>
1103 </action>
1104
1105 <text style="text_l">
1106 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001107 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001108 </text>
1109
1110 <text style="text_m">
1111 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001112 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001113 </text>
1114
1115 <partitionlist>
1116 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001117 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001118 <data name="tw_wipe_list"/>
1119 <listtype name="wipe"/>
1120 </partitionlist>
1121
1122 <text style="text_m_fail">
1123 <condition var1="partitionlisterror" var2="1"/>
1124 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 </text>
1127
1128 <button style="main_button_half_height_full_width">
1129 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001132 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001133 <action function="page">checkpartitionlist</action>
1134 </actions>
1135 </button>
1136
1137 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 <actions>
1140 <action function="set">tw_back=advancedwipe</action>
1141 <action function="set">tw_action=wipe</action>
1142 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001143 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1144 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1145 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001146 <action function="page">action_page</action>
1147 </actions>
1148 </slider>
1149
1150 <action>
1151 <touch key="home"/>
1152 <action function="page">main</action>
1153 </action>
1154
1155 <action>
1156 <touch key="back"/>
1157 <action function="page">wipe</action>
1158 </action>
1159 </page>
1160
1161 <page name="formatdata">
1162 <template name="page"/>
1163
1164 <text style="text_l">
1165 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001166 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001167 </text>
1168
1169 <text style="text_m">
1170 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001171 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001172 </text>
1173
1174 <text style="text_m_fail">
1175 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001176 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001177 </text>
1178
1179 <text style="text_m_fail">
1180 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001181 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001182 </text>
1183
1184 <text style="text_m_fail">
1185 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001186 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001187 </text>
1188
Ethan Yonker66a19492015-12-10 10:19:45 -06001189 <text style="text_m_fail">
1190 <condition var1="tw_has_adopted_storage" var2="1"/>
1191 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1192 <text>{@format_data_adopted=Including Adopted Storage}</text>
1193 </text>
1194
z31s1g28f0a922015-11-07 18:50:22 +01001195 <text style="text_m">
1196 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001197 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001198 </text>
1199
1200 <text style="text_m">
1201 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001202 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001203 </text>
1204
1205 <input>
1206 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1207 <text>%tw_confirm_formatdata%</text>
1208 <data name="tw_confirm_formatdata"/>
1209 <restrict minlen="3" maxlen="3" allow="yes"/>
1210 <action function="page">formatdata_confirm</action>
1211 </input>
1212
1213 <fill color="%accent_color%">
1214 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1215 </fill>
1216
1217 <template name="keyboardtemplate"/>
1218
1219 <action>
1220 <touch key="home"/>
1221 <action function="page">main</action>
1222 </action>
1223
1224 <action>
1225 <touch key="back"/>
1226 <action function="page">wipe</action>
1227 </action>
1228 </page>
1229
1230 <page name="formatdata_confirm">
1231 <action>
1232 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1233 <actions>
1234 <action function="set">tw_back=formatdata</action>
1235 <action function="set">tw_action=wipe</action>
1236 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001237 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1238 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001239 <action function="page">action_page</action>
1240 </actions>
1241 </action>
1242
1243 <action>
1244 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1245 <action function="page">formatdata</action>
1246 </action>
1247 </page>
1248
1249 <page name="checkpartitionlist">
1250 <action>
1251 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1252 <actions>
1253 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001254 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001255 <action function="page">partitionoptions</action>
1256 </actions>
1257 </action>
1258
1259 <action>
1260 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1261 <actions>
1262 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001263 <action function="page">advancedwipe</action>
1264 </actions>
1265 </action>
1266 </page>
1267
1268 <page name="partitionoptions">
1269 <template name="page"/>
1270
1271 <text style="text_l">
1272 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001273 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001274 </text>
1275
1276 <text style="text_m">
1277 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001278 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001279 </text>
1280
1281 <text style="text_m_accent">
1282 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001283 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001284 </text>
1285
1286 <text style="text_m_accent">
1287 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001288 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001289 </text>
1290
1291 <text style="text_m">
1292 <condition var1="tw_partition_is_present" var2="1"/>
1293 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001294 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001295 </text>
1296
1297 <text style="text_m">
1298 <condition var1="tw_partition_is_present" var2="0"/>
1299 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001300 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001301 </text>
1302
1303 <text style="text_m">
1304 <condition var1="tw_partition_removable" var2="1"/>
1305 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001306 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001307 </text>
1308
1309 <text style="text_m">
1310 <condition var1="tw_partition_removable" var2="0"/>
1311 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001312 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001313 </text>
1314
1315 <text style="text_m">
1316 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001317 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001318 </text>
1319
1320 <text style="text_m">
1321 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001322 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001323 </text>
1324
1325 <text style="text_m">
1326 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <text style="text_m">
1331 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001332 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001333 </text>
1334
1335 <button style="main_button_half_height">
1336 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1337 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001338 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001339 <actions>
1340 <action function="set">tw_back=partitionoptions</action>
1341 <action function="set">tw_action=resize</action>
1342 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1343 <action function="set">tw_has_action2=1</action>
1344 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001345 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001346 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001347 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001348 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1349 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1350 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001351 <action function="page">confirm_action</action>
1352 </actions>
1353 </button>
1354
1355 <button style="main_button_half_height">
1356 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1357 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001358 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001359 <actions>
1360 <action function="set">tw_back=partitionoptions</action>
1361 <action function="set">tw_action=repair</action>
1362 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1363 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001364 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001365 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1367 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1368 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001369 <action function="page">confirm_action</action>
1370 </actions>
1371 </button>
1372
1373 <button style="main_button_half_height">
1374 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001376 <action function="page">selectfilesystem</action>
1377 </button>
1378
1379 <action>
1380 <touch key="home"/>
1381 <action function="page">main</action>
1382 </action>
1383
1384 <action>
1385 <touch key="back"/>
1386 <action function="page">advancedwipe</action>
1387 </action>
1388 </page>
1389
1390 <page name="refreshfilesystem">
1391 <action>
1392 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1393 <actions>
1394 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001395 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001396 <action function="page">selectfilesystem</action>
1397 </actions>
1398 </action>
1399
1400 <action>
1401 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1402 <actions>
1403 <action function="set">partitionlisterror=1</action>
1404 <action function="set">tw_wipe_list=</action>
1405 <action function="page">advancedwipe</action>
1406 </actions>
1407 </action>
1408 </page>
1409
1410 <page name="selectfilesystem">
1411 <template name="page"/>
1412
1413 <text style="text_l">
1414 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001415 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001416 </text>
1417
1418 <text style="text_m">
1419 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001420 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001421 </text>
1422
1423 <text style="text_m_accent">
1424 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001425 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001426 </text>
1427
1428 <text style="text_m_accent">
1429 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001430 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001431 </text>
1432
1433 <text style="text_m_fail">
1434 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001435 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001436 </text>
1437
1438 <text style="text_m_fail">
1439 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001440 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001441 </text>
1442
1443 <button style="main_button_half_height">
1444 <condition var1="tw_partition_ext" op="=" var2="1"/>
1445 <placement x="%indent%" y="%row15a_y%"/>
1446 <text>EXT2</text>
1447 <actions>
1448 <action function="set">tw_back=refreshfilesystem</action>
1449 <action function="set">tw_action=changefilesystem</action>
1450 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1451 <action function="set">tw_action_new_file_system=ext2</action>
1452 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1454 <action function="set">tw_text2=EXT2</action>
1455 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1456 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1457 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001458 <action function="page">confirm_action</action>
1459 </actions>
1460 </button>
1461
1462 <button style="main_button_half_height">
1463 <condition var1="tw_partition_ext" op="=" var2="1"/>
1464 <placement x="%indent%" y="%row18a_y%"/>
1465 <text>EXT3</text>
1466 <actions>
1467 <action function="set">tw_back=refreshfilesystem</action>
1468 <action function="set">tw_action=changefilesystem</action>
1469 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1470 <action function="set">tw_action_new_file_system=ext3</action>
1471 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1473 <action function="set">tw_text2=EXT3</action>
1474 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1475 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1476 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001477 <action function="page">confirm_action</action>
1478 </actions>
1479 </button>
1480
1481 <button style="main_button_half_height">
1482 <condition var1="tw_partition_ext" op="=" var2="1"/>
1483 <placement x="%indent%" y="%row21a_y%"/>
1484 <text>EXT4</text>
1485 <actions>
1486 <action function="set">tw_back=refreshfilesystem</action>
1487 <action function="set">tw_action=changefilesystem</action>
1488 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1489 <action function="set">tw_action_new_file_system=ext4</action>
1490 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001491 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1492 <action function="set">tw_text2=EXT4</action>
1493 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1494 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1495 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001496 <action function="page">confirm_action</action>
1497 </actions>
1498 </button>
1499
1500 <button style="main_button_half_height">
1501 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1502 <placement x="%center_x%" y="%row15a_y%"/>
1503 <text>FAT</text>
1504 <actions>
1505 <action function="set">tw_back=refreshfilesystem</action>
1506 <action function="set">tw_action=changefilesystem</action>
1507 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1508 <action function="set">tw_action_new_file_system=vfat</action>
1509 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001510 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1511 <action function="set">tw_text2=FAT</action>
1512 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1513 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1514 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001515 <action function="page">confirm_action</action>
1516 </actions>
1517 </button>
1518
1519 <button style="main_button_half_height">
1520 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1521 <placement x="%center_x%" y="%row18a_y%"/>
1522 <text>exFAT</text>
1523 <actions>
1524 <action function="set">tw_back=refreshfilesystem</action>
1525 <action function="set">tw_action=changefilesystem</action>
1526 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1527 <action function="set">tw_action_new_file_system=exfat</action>
1528 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001529 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1530 <action function="set">tw_text2=exFAT</action>
1531 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1532 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1533 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001534 <action function="page">confirm_action</action>
1535 </actions>
1536 </button>
1537
1538 <button style="main_button_half_height">
1539 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1540 <placement x="%center_x%" y="%row21a_y%"/>
1541 <text>F2FS</text>
1542 <actions>
1543 <action function="set">tw_back=refreshfilesystem</action>
1544 <action function="set">tw_action=changefilesystem</action>
1545 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1546 <action function="set">tw_action_new_file_system=f2fs</action>
1547 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001548 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1549 <action function="set">tw_text2=F2FS</action>
1550 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1551 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1552 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001553 <action function="page">confirm_action</action>
1554 </actions>
1555 </button>
1556
1557 <action>
1558 <touch key="home"/>
1559 <action function="page">main</action>
1560 </action>
1561
1562 <action>
1563 <touch key="back"/>
1564 <action function="page">partitionoptions</action>
1565 </action>
1566 </page>
1567
1568 <page name="backup">
1569 <template name="page"/>
1570
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001571 <action>
1572 <conditions>
1573 <condition var1="tw_is_fbe" var2="1"/>
1574 <condition var1="tw_all_users_decrypted" var2="0"/>
1575 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1576 </conditions>
1577 <actions>
1578 <action function="set">tw_multiuser_warning_destination=backup</action>
1579 <action function="page">multiuser_warning</action>
1580 </actions>
1581 </action>
1582
z31s1g28f0a922015-11-07 18:50:22 +01001583 <text style="text_l">
1584 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001585 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001586 </text>
1587
1588 <text style="text_m">
1589 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001590 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001591 </text>
1592
1593 <template name="tabs_backup"/>
1594
1595 <fill color="%text_color%">
1596 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1597 </fill>
1598
1599 <button style="tab">
1600 <conditions>
1601 <condition var1="tw_include_encrypted_backup" var2="1"/>
1602 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001603 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001604 </conditions>
1605 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001606 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001607 <font resource="font_s" color="%text_color%"/>
1608 <actions>
1609 <action function="set">tw_password_not_match=0</action>
1610 <action function="page">backupencryption</action>
1611 </actions>
1612 </button>
1613
1614 <button style="tab">
1615 <conditions>
1616 <condition var1="tw_include_encrypted_backup" var2="1"/>
1617 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001618 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001619 </conditions>
1620 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001621 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001622 <font resource="font_s" color="%text_success_color%"/>
1623 <actions>
1624 <action function="set">tw_password_not_match=0</action>
1625 <action function="page">backupencryption</action>
1626 </actions>
1627 </button>
1628
1629 <text style="text_m_accent">
1630 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001631 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001632 </text>
1633
1634 <text style="text_m">
1635 <placement x="%indent%" y="%row4a_y%"/>
1636 <text>%tw_backup_name%</text>
1637 </text>
1638
1639 <fill color="%fileselector_linecolor%">
1640 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1641 </fill>
1642
1643 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001644 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001645 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1646 <fill color="%transparent%"/>
1647 <actions>
1648 <action function="set">tw_fileexists=0</action>
1649 <action function="page">backupname1</action>
1650 </actions>
1651 </button>
1652
1653 <partitionlist>
1654 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001655 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001656 <data name="tw_backup_list"/>
1657 <listtype name="backup"/>
1658 </partitionlist>
1659
1660 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001661 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001662 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001663 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001664 <actions>
1665 <action function="set">tw_back=backup</action>
1666 <action function="overlay">select_storage</action>
1667 </actions>
1668 </button>
1669
1670 <button style="main_button_half_height">
1671 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001672 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001673 <actions>
1674 <action function="refreshsizes"/>
1675 <action function="page">backup</action>
1676 </actions>
1677 </button>
1678
1679 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001680 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001681 <action function="page">backup_run</action>
1682 </slider>
1683
1684 <action>
1685 <touch key="home"/>
1686 <action function="page">main</action>
1687 </action>
1688
1689 <action>
1690 <touch key="back"/>
1691 <action function="page">main</action>
1692 </action>
1693 </page>
1694
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001695 <page name="multiuser_warning">
1696 <template name="page"/>
1697
1698 <text style="text_l">
1699 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1700 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1701 </text>
1702
1703 <text style="text_m_fail">
1704 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1705 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1706 </text>
1707
1708 <text style="text_m_fail">
1709 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1710 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1711 </text>
1712
1713 <button style="main_button_half_height_full_width">
1714 <placement x="%indent%" y="%row18a_y%"/>
1715 <text>{@decrypt_users=Decrypt Users}</text>
1716 <action function="page">decrypt_users</action>
1717 </button>
1718
1719 <slider>>
1720 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1721 <actions>
1722 <action function="set">tw_multiuser_warning_accepted=1</action>
1723 <action function="page">%tw_multiuser_warning_destination%</action>
1724 </actions>
1725 </slider>
1726
1727 <action>
1728 <touch key="home"/>
1729 <action function="page">main</action>
1730 </action>
1731
1732 <action>
1733 <touch key="back"/>
1734 <action function="page">main</action>
1735 </action>
1736 </page>
1737
z31s1g28f0a922015-11-07 18:50:22 +01001738 <page name="backup_options">
1739 <template name="page"/>
1740
1741 <text style="text_l">
1742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001743 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001744 </text>
1745
1746 <text style="text_m">
1747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001748 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001749 </text>
1750
1751 <template name="tabs_backup"/>
1752
1753 <fill color="%text_color%">
1754 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1755 </fill>
1756
1757 <button style="tab">
1758 <conditions>
1759 <condition var1="tw_include_encrypted_backup" var2="1"/>
1760 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001761 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001762 </conditions>
1763 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001764 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001765 <font resource="font_s" color="%text_color%"/>
1766 <actions>
1767 <action function="set">tw_password_not_match=0</action>
1768 <action function="page">backupencryption</action>
1769 </actions>
1770 </button>
1771
1772 <button style="tab">
1773 <conditions>
1774 <condition var1="tw_include_encrypted_backup" var2="1"/>
1775 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001776 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001777 </conditions>
1778 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001779 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001780 <font resource="font_s" color="%text_success_color%"/>
1781 <actions>
1782 <action function="set">tw_password_not_match=0</action>
1783 <action function="page">backupencryption</action>
1784 </actions>
1785 </button>
1786
1787 <checkbox>
1788 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001789 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001790 <data variable="tw_use_compression"/>
1791 </checkbox>
1792
1793 <checkbox>
1794 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001795 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1796 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001797 </checkbox>
1798
1799 <checkbox>
1800 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001801 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001802 <data variable="tw_disable_free_space"/>
1803 </checkbox>
1804
Ethan Yonker1b190162016-12-05 15:25:19 -06001805 <text style="text_m">
1806 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001807 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001808 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1809 </text>
1810
1811 <button style="main_button">
1812 <condition var1="tw_has_boot_slots" var2="1"/>
1813 <placement x="%indent%" y="%row19_y%"/>
1814 <text>{@boot_slot_a=Slot A}</text>
1815 <actions>
1816 <action function="set">tw_back=backup_options</action>
1817 <action function="set">tw_action=setbootslot</action>
1818 <action function="set">tw_action_param=A</action>
1819 <action function="set">tw_has_action2=0</action>
1820 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1821 <action function="set">tw_action_text2=</action>
1822 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1823 <action function="page">action_page</action>
1824 </actions>
1825 </button>
1826
1827 <button style="main_button">
1828 <condition var1="tw_has_boot_slots" var2="1"/>
1829 <placement x="%center_x%" y="%row19_y%"/>
1830 <text>{@boot_slot_b=Slot B}</text>
1831 <actions>
1832 <action function="set">tw_back=backup_options</action>
1833 <action function="set">tw_action=setbootslot</action>
1834 <action function="set">tw_action_param=B</action>
1835 <action function="set">tw_has_action2=0</action>
1836 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1837 <action function="set">tw_action_text2=</action>
1838 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1839 <action function="page">action_page</action>
1840 </actions>
1841 </button>
1842
z31s1g28f0a922015-11-07 18:50:22 +01001843 <action>
1844 <touch key="home"/>
1845 <action function="page">main</action>
1846 </action>
1847
1848 <action>
1849 <touch key="back"/>
1850 <action function="page">backup</action>
1851 </action>
1852 </page>
1853
1854 <page name="backupname1">
1855 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001856 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001857 <action function="generatebackupname"/>
1858 </action>
1859
1860 <action>
1861 <action function="page">backupname2</action>
1862 </action>
1863 </page>
1864
1865 <page name="backupname2">
1866 <template name="page"/>
1867
1868 <text style="text_l">
1869 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001871 </text>
1872
1873 <text style="text_m">
1874 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001875 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001876 </text>
1877
1878 <template name="tabs_backup"/>
1879
1880 <fill color="%text_color%">
1881 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1882 </fill>
1883
1884 <button style="tab">
1885 <conditions>
1886 <condition var1="tw_include_encrypted_backup" var2="1"/>
1887 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001888 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001889 </conditions>
1890 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001892 <font resource="font_s" color="%text_color%"/>
1893 <actions>
1894 <action function="set">tw_password_not_match=0</action>
1895 <action function="page">backupencryption</action>
1896 </actions>
1897 </button>
1898
1899 <button style="tab">
1900 <conditions>
1901 <condition var1="tw_include_encrypted_backup" var2="1"/>
1902 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001903 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001904 </conditions>
1905 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001906 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001907 <font resource="font_s" color="%text_success_color%"/>
1908 <actions>
1909 <action function="set">tw_password_not_match=0</action>
1910 <action function="page">backupencryption</action>
1911 </actions>
1912 </button>
1913
1914 <text style="text_m_accent">
1915 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001916 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001917 </text>
1918
1919 <input>
1920 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1921 <text>%tw_backup_name%</text>
1922 <data name="tw_backup_name"/>
1923 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1924 <actions>
1925 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1926 <action function="set">tw_existpage=backupname2</action>
1927 <action function="set">tw_notexistpage=backup</action>
1928 <action function="page">filecheck</action>
1929 </actions>
1930 </input>
1931
1932 <fill color="%accent_color%">
1933 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1934 </fill>
1935
1936 <fill color="%text_fail_color%">
1937 <condition var1="tw_fileexists" var2="1"/>
1938 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1939 </fill>
1940
1941 <text style="text_m_fail">
1942 <condition var1="tw_fileexists" var2="1"/>
1943 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001944 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001945 </text>
1946
1947 <button style="main_button_half_height">
1948 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001951 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001952 <action function="page">backup</action>
1953 </actions>
1954 </button>
1955
1956 <button style="main_button_half_height">
1957 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001958 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001959 <action function="appenddatetobackupname"/>
1960 </button>
1961
1962 <template name="keyboardtemplate"/>
1963
1964 <action>
1965 <touch key="home"/>
1966 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001967 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001968 <action function="page">main</action>
1969 </actions>
1970 </action>
1971
1972 <action>
1973 <touch key="back"/>
1974 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001975 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001976 <action function="page">backup</action>
1977 </actions>
1978 </action>
1979 </page>
1980
1981 <page name="backupencryption">
1982 <template name="page"/>
1983
1984 <text style="text_l">
1985 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001986 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001987 </text>
1988
1989 <text style="text_m">
1990 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001992 </text>
1993
1994 <template name="tabs_backup"/>
1995
1996 <button style="tab">
1997 <conditions>
1998 <condition var1="tw_include_encrypted_backup" var2="1"/>
1999 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002000 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002001 </conditions>
2002 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002003 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002004 <font resource="font_s" color="%text_color%"/>
2005 <actions>
2006 <action function="set">tw_password_not_match=0</action>
2007 <action function="page">backupencryption</action>
2008 </actions>
2009 </button>
2010
2011 <button style="tab">
2012 <conditions>
2013 <condition var1="tw_include_encrypted_backup" var2="1"/>
2014 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002015 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002016 </conditions>
2017 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002019 <font resource="font_s" color="%text_success_color%"/>
2020 <actions>
2021 <action function="set">tw_password_not_match=0</action>
2022 <action function="page">backupencryption</action>
2023 </actions>
2024 </button>
2025
2026 <fill color="%text_color%">
2027 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2028 </fill>
2029
2030 <text style="text_m_accent">
2031 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002032 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002033 </text>
2034
2035 <text style="text_m">
2036 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002037 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002038 </text>
2039
2040 <input>
2041 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2042 <text>%tw_backup_encrypt_display%</text>
2043 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2044 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2045 <action function="page">backupencryption2</action>
2046 </input>
2047
2048 <fill color="%accent_color%">
2049 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2050 </fill>
2051
2052 <fill color="%text_fail_color%">
2053 <condition var1="tw_password_not_match" var2="1"/>
2054 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2055 </fill>
2056
2057 <text style="text_m_fail">
2058 <condition var1="tw_password_not_match" var2="1"/>
2059 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002060 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002061 </text>
2062
2063 <button style="main_button_half_height">
2064 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002065 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002066 <actions>
2067 <action function="set">tw_encrypt_backup=0</action>
2068 <action function="set">tw_backup_password=</action>
2069 <action function="set">tw_backup_password2=</action>
2070 <action function="set">tw_backup_encrypt_display=</action>
2071 <action function="set">tw_backup_encrypt_display2=</action>
2072 <action function="page">backup</action>
2073 </actions>
2074 </button>
2075
2076 <template name="keyboardtemplate"/>
2077
2078 <action>
2079 <touch key="home"/>
2080 <action function="page">main</action>
2081 </action>
2082
2083 <action>
2084 <touch key="back"/>
2085 <action function="page">backup</action>
2086 </action>
2087 </page>
2088
2089 <page name="backupencryption2">
2090 <template name="page"/>
2091
2092 <text style="text_l">
2093 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002094 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002095 </text>
2096
2097 <text style="text_m">
2098 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002099 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002100 </text>
2101
2102 <template name="tabs_backup"/>
2103
2104 <button style="tab">
2105 <conditions>
2106 <condition var1="tw_include_encrypted_backup" var2="1"/>
2107 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002108 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002109 </conditions>
2110 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002111 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002112 <font resource="font_s" color="%text_color%"/>
2113 <actions>
2114 <action function="set">tw_password_not_match=0</action>
2115 <action function="page">backupencryption</action>
2116 </actions>
2117 </button>
2118
2119 <button style="tab">
2120 <conditions>
2121 <condition var1="tw_include_encrypted_backup" var2="1"/>
2122 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002123 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002124 </conditions>
2125 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002126 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002127 <font resource="font_s" color="%text_success_color%"/>
2128 <actions>
2129 <action function="set">tw_password_not_match=0</action>
2130 <action function="page">backupencryption</action>
2131 </actions>
2132 </button>
2133
2134 <fill color="%text_color%">
2135 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2136 </fill>
2137
2138 <text style="text_m_accent">
2139 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002140 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002141 </text>
2142
2143 <text style="text_m">
2144 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002145 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002146 </text>
2147
2148 <input>
2149 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2150 <text>%tw_backup_encrypt_display2%</text>
2151 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2152 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2153 <action function="page">checkbackuppassword</action>
2154 </input>
2155
2156 <fill color="%accent_color%">
2157 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2158 </fill>
2159
2160 <button style="main_button_half_height">
2161 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002162 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002163 <actions>
2164 <action function="set">tw_encrypt_backup=0</action>
2165 <action function="set">tw_backup_password=</action>
2166 <action function="set">tw_backup_password2=</action>
2167 <action function="set">tw_backup_encrypt_display=</action>
2168 <action function="set">tw_backup_encrypt_display2=</action>
2169 <action function="page">backup</action>
2170 </actions>
2171 </button>
2172
2173 <template name="keyboardtemplate"/>
2174
2175 <action>
2176 <touch key="home"/>
2177 <action function="page">main</action>
2178 </action>
2179
2180 <action>
2181 <touch key="back"/>
2182 <action function="page">backup</action>
2183 </action>
2184 </page>
2185
2186 <page name="checkbackuppassword">
2187 <action>
2188 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2189 <actions>
2190 <action function="set">tw_encrypt_backup=1</action>
2191 <action function="page">backup</action>
2192 </actions>
2193 </action>
2194
2195 <action>
2196 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2197 <actions>
2198 <action function="set">tw_encrypt_backup=0</action>
2199 <action function="set">tw_password_not_match=1</action>
2200 <action function="set">tw_backup_password=</action>
2201 <action function="set">tw_backup_password2=</action>
2202 <action function="set">tw_backup_encrypt_display=</action>
2203 <action function="set">tw_backup_encrypt_display2=</action>
2204 <action function="page">backupencryption</action>
2205 </actions>
2206 </action>
2207 </page>
2208
2209 <page name="backup_run">
2210 <template name="page"/>
2211
2212 <text style="text_l">
2213 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2214 <text>%tw_operation%</text>
2215 </text>
2216
2217 <text style="text_m">
2218 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2219 <text>%tw_partition% Partition</text>
2220 </text>
2221
2222 <template name="console"/>
2223
2224 <template name="progress_bar"/>
2225
2226 <text style="text_m_accent">
2227 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002228 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002229 </text>
2230
2231 <text style="text_m">
2232 <placement x="%indent%" y="%row20_y%"/>
2233 <text>%tw_file_progress%</text>
2234 </text>
2235
2236 <text style="text_m">
2237 <placement x="%indent%" y="%row21_y%"/>
2238 <text>%tw_size_progress%</text>
2239 </text>
2240
2241 <button style="main_button_half_height">
2242 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002243 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002244 <action function="cancelbackup"/>
2245 </button>
2246
2247 <action>
2248 <action function="nandroid">backup</action>
2249 </action>
2250
2251 <action>
2252 <condition var1="tw_operation_state" var2="1"/>
2253 <condition var1="tw_cancel_backup" var2="0"/>
2254 <actions>
2255 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002256 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002257 <action function="set">tw_show_reboot=1</action>
2258 <action function="page">action_complete</action>
2259 </actions>
2260 </action>
2261
2262 <action>
2263 <condition var1="tw_operation_state" var2="1"/>
2264 <condition var1="tw_cancel_backup" var2="1"/>
2265 <actions>
2266 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002267 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002268 <action function="set">tw_show_reboot=1</action>
2269 <action function="page">action_complete</action>
2270 </actions>
2271 </action>
2272 </page>
2273
2274 <page name="restore">
2275 <template name="page"/>
2276
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002277 <action>
2278 <conditions>
2279 <condition var1="tw_is_fbe" var2="1"/>
2280 <condition var1="tw_all_users_decrypted" var2="0"/>
2281 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2282 </conditions>
2283 <actions>
2284 <action function="set">tw_multiuser_warning_destination=restore</action>
2285 <action function="page">multiuser_warning</action>
2286 </actions>
2287 </action>
2288
z31s1g28f0a922015-11-07 18:50:22 +01002289 <text style="text_l">
2290 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002291 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002292 </text>
2293
2294 <text style="text_m">
2295 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002296 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002297 </text>
2298
2299 <template name="sort_options"/>
2300
2301 <fileselector>
2302 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002303 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002304 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002305 <path name="tw_backups_folder"/>
2306 <data name="tw_restore" default=""/>
2307 <selection name="tw_restore_name"/>
2308 </fileselector>
2309
2310 <button style="main_button_half_height">
2311 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002312 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002313 <actions>
2314 <action function="set">tw_back=restore</action>
2315 <action function="overlay">select_storage</action>
2316 </actions>
2317 </button>
2318
2319 <action>
2320 <condition var1="tw_restore" op="modified"/>
2321 <actions>
2322 <action function="readBackup"/>
2323 <action function="page">restore_read</action>
2324 </actions>
2325 </action>
2326
2327 <action>
2328 <touch key="home"/>
2329 <action function="page">main</action>
2330 </action>
2331
2332 <action>
2333 <touch key="back"/>
2334 <action function="page">main</action>
2335 </action>
2336 </page>
2337
2338 <page name="restore_read">
2339 <action>
2340 <condition var1="tw_restore_encrypted" var2="1"/>
2341 <actions>
2342 <action function="set">tw_password_fail=0</action>
2343 <action function="page">restore_decrypt</action>
2344 </actions>
2345 </action>
2346
2347 <action>
2348 <condition var1="tw_restore_encrypted" var2="0"/>
2349 <actions>
2350 <action function="page">restore_select</action>
2351 </actions>
2352 </action>
2353 </page>
2354
2355 <page name="restore_decrypt">
2356 <template name="page"/>
2357
2358 <text style="text_l">
2359 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002360 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002361 </text>
2362
2363 <text style="text_m">
2364 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002365 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002366 </text>
2367
2368 <text style="text_m_accent">
2369 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002370 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002371 </text>
2372
2373 <input>
2374 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2375 <text>%tw_restore_display%</text>
2376 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2377 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2378 <action function="page">try_restore_decrypt</action>
2379 </input>
2380
2381 <fill color="%accent_color%">
2382 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2383 </fill>
2384
2385 <fill color="%text_fail_color%">
2386 <condition var1="tw_password_fail" var2="1"/>
2387 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2388 </fill>
2389
2390 <text style="text_m_fail">
2391 <condition var1="tw_password_fail" var2="1"/>
2392 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002393 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002394 </text>
2395
2396 <button style="main_button_half_height">
2397 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002398 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002399 <actions>
2400 <action function="set">tw_page_done=1</action>
2401 <action function="page">restore</action>
2402 </actions>
2403 </button>
2404
2405 <button style="main_button_half_height">
2406 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002407 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002408 <actions>
2409 <action function="set">tw_back=restore</action>
2410 <action function="set">tw_action=cmd</action>
2411 <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 -05002412 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2413 <action function="set">tw_text2=%tw_restore_name%</action>
2414 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2415 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2416 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2417 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002418 <action function="page">confirm_action</action>
2419 </actions>
2420 </button>
2421
2422 <template name="keyboardtemplate"/>
2423
2424 <action>
2425 <touch key="home"/>
2426 <action function="page">main</action>
2427 </action>
2428
2429 <action>
2430 <touch key="back"/>
2431 <action function="page">restore</action>
2432 </action>
2433 </page>
2434
2435 <page name="try_restore_decrypt">
2436 <template name="page"/>
2437
2438 <text style="text_l">
2439 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002440 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002441 </text>
2442
2443 <text style="text_m">
2444 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002445 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002446 </text>
2447
2448 <template name="console"/>
2449
2450 <template name="progress_bar"/>
2451
2452 <action>
2453 <action function="decrypt_backup"/>
2454 </action>
2455
2456 <action>
2457 <conditions>
2458 <condition var1="tw_operation_state" var2="1"/>
2459 <condition var1="tw_operation_status" op="!=" var2="0"/>
2460 </conditions>
2461 <actions>
2462 <action function="set">tw_password_fail=1</action>
2463 <action function="page">restore_decrypt</action>
2464 </actions>
2465 </action>
2466
2467 <action>
2468 <conditions>
2469 <condition var1="tw_operation_state" var2="1"/>
2470 <condition var1="tw_operation_status" op="=" var2="0"/>
2471 </conditions>
2472 <actions>
2473 <action function="set">tw_page_done=1</action>
2474 <action function="page">restore_select</action>
2475 </actions>
2476 </action>
2477 </page>
2478
2479 <page name="restore_select">
2480 <template name="page"/>
2481
2482 <text style="text_l">
2483 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002484 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002485 </text>
2486
2487 <text style="text_m">
2488 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002489 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002490 </text>
2491
2492 <text style="text_m_accent">
2493 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002494 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002495 </text>
2496
2497 <text style="text_m">
2498 <placement x="%indent%" y="%row3_y%"/>
2499 <text>%tw_restore_name%</text>
2500 </text>
2501
2502 <fill color="%fileselector_linecolor%">
2503 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2504 </fill>
2505
2506 <button>
2507 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2508 <fill color="%transparent%"/>
2509 <actions>
2510 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2511 <action function="set">tw_fileexists=0</action>
2512 <action function="page">renamebackup</action>
2513 </actions>
2514 </button>
2515
2516 <partitionlist>
2517 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002518 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002519 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2520 <listtype name="restore"/>
2521 </partitionlist>
2522
2523 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002524 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002525 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002526 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2527 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002528 </checkbox>
2529
2530 <button style="main_button_half_height">
2531 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002532 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002533 <actions>
2534 <action function="set">tw_back=restore</action>
2535 <action function="set">tw_action=cmd</action>
2536 <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 -05002537 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002538 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002539 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2540 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2541 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2542 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002543 <action function="page">confirm_action</action>
2544 </actions>
2545 </button>
2546
2547 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002548 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002549 <action function="page">restore_run</action>
2550 </slider>
2551
2552 <action>
2553 <touch key="home"/>
2554 <action function="page">main</action>
2555 </action>
2556
2557 <action>
2558 <touch key="back"/>
2559 <action function="page">restore</action>
2560 </action>
2561 </page>
2562
2563 <page name="renamebackup">
2564 <template name="page"/>
2565
2566 <text style="text_l">
2567 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002568 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002569 </text>
2570
2571 <text style="text_m">
2572 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002573 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002574 </text>
2575
2576 <text style="text_m_accent">
2577 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002578 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002579 </text>
2580
2581 <input>
2582 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2583 <text>%tw_backup_rename%</text>
2584 <data name="tw_backup_rename"/>
2585 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2586 <actions>
2587 <action function="set">tw_back=restore</action>
2588 <action function="set">tw_action=cmd</action>
2589 <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 -05002590 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2591 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2592 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2593 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2594 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002595 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2596 <action function="set">tw_existpage=renamebackup</action>
2597 <action function="set">tw_notexistpage=confirm_action</action>
2598 <action function="page">filecheck</action>
2599 </actions>
2600 </input>
2601
2602 <fill color="%accent_color%">
2603 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2604 </fill>
2605
2606 <fill color="%text_fail_color%">
2607 <condition var1="tw_fileexists" var2="1"/>
2608 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2609 </fill>
2610
2611 <text style="text_m_fail">
2612 <condition var1="tw_fileexists" var2="1"/>
2613 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002614 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002615 </text>
2616
2617 <button style="main_button_half_height">
2618 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002619 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002620 <action function="page">restore_select</action>
2621 </button>
2622
2623 <template name="keyboardtemplate"/>
2624
2625 <action>
2626 <touch key="home"/>
2627 <action function="page">main</action>
2628 </action>
2629
2630 <action>
2631 <touch key="back"/>
2632 <action function="page">restore_select</action>
2633 </action>
2634 </page>
2635
2636 <page name="restore_run">
2637 <template name="page"/>
2638
2639 <text style="text_l">
2640 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002641 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </text>
2643
2644 <text style="text_m">
2645 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2646 <text>%tw_operation% %tw_partition%</text>
2647 </text>
2648
2649 <template name="console"/>
2650
2651 <template name="progress_bar"/>
2652
2653 <text style="text_m_accent">
2654 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002655 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002656 </text>
2657
2658 <text style="text_m">
2659 <placement x="%indent%" y="%row20_y%"/>
2660 <text>%tw_size_progress%</text>
2661 </text>
2662
2663 <action>
2664 <condition var1="tw_operation_state" var2="1"/>
2665 <actions>
2666 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002667 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002668 <action function="set">tw_show_reboot=1</action>
2669 <action function="page">action_complete</action>
2670 </actions>
2671 </action>
2672
2673 <action>
2674 <action function="nandroid">restore</action>
2675 </action>
2676 </page>
2677
2678 <page name="mount">
2679 <template name="page"/>
2680
2681 <text style="text_l">
2682 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002683 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002684 </text>
2685
2686 <text style="text_m">
2687 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002688 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002689 </text>
2690
2691 <partitionlist>
2692 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002693 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002694 <listtype name="mount"/>
2695 </partitionlist>
2696
2697 <button style="checkbox">
2698 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2699 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002700 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002701 <image resource="checkbox_false"/>
2702 <action function="mountsystemtoggle">1</action>
2703 </button>
2704
2705 <button style="checkbox">
2706 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2707 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002708 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002709 <image resource="checkbox_true"/>
2710 <actions>
2711 <action function="set">tw_lifetime_writes=2</action>
2712 <action function="page">system_readonly_check</action>
2713 </actions>
2714 </button>
2715
2716 <button style="main_button_half_height">
2717 <condition var1="tw_has_usb_storage" var2="1"/>
2718 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002719 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002720 <action function="page">usb_mount</action>
2721 </button>
2722
2723 <button style="main_button_half_height">
2724 <conditions>
2725 <condition var1="tw_is_encrypted" var2="1"/>
2726 <condition var1="tw_is_decrypted" var2="0"/>
2727 </conditions>
2728 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002729 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson5a79f672019-04-28 00:10:07 -04002730 <action function="set">tw_crypto_user_id=0</action>
2731 <action function="set">tw_crypto_password=</action>
2732 <action function="set">tw_password_fail=0</action>
2733 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002734 <action function="page">decrypt</action>
2735 </button>
2736
2737 <button style="main_button_half_height">
2738 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002739 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002740 <actions>
2741 <action function="set">tw_back=mount</action>
2742 <action function="overlay">select_storage</action>
2743 </actions>
2744 </button>
2745
2746 <button style="main_button_half_height">
2747 <conditions>
2748 <condition var1="tw_has_mtp" var2="1"/>
2749 <condition var1="tw_mtp_enabled" var2="0"/>
2750 </conditions>
2751 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002752 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002753 <action function="startmtp"/>
2754 </button>
2755
2756 <button style="main_button_half_height">
2757 <conditions>
2758 <condition var1="tw_has_mtp" var2="1"/>
2759 <condition var1="tw_mtp_enabled" var2="1"/>
2760 </conditions>
2761 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002762 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002763 <action function="stopmtp"/>
2764 </button>
2765
2766 <action>
2767 <touch key="home"/>
2768 <action function="page">main</action>
2769 </action>
2770
2771 <action>
2772 <touch key="back"/>
2773 <action function="page">main</action>
2774 </action>
2775 </page>
2776
2777 <page name="usb_mount">
2778 <template name="page"/>
2779
2780 <text style="text_l">
2781 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002782 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002783 </text>
2784
2785 <text style="text_m">
2786 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002787 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002788 </text>
2789
2790 <text style="text_m_accent">
2791 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002792 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002793 </text>
2794
2795 <text style="text_m">
2796 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002797 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002798 </text>
2799
2800 <text style="text_m">
2801 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002802 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002803 </text>
2804
2805 <button style="main_button_half_height">
2806 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002807 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002808 <action function="page">usb_umount</action>
2809 </button>
2810
2811 <action>
2812 <action function="mount">usb</action>
2813 <action function="set">tw_busy=1</action>
2814 </action>
2815 </page>
2816
2817 <page name="usb_umount">
2818 <action>
2819 <action function="unmount">usb</action>
2820 </action>
2821
2822 <action>
2823 <action function="page">mount</action>
2824 <action function="set">tw_busy=0</action>
2825 </action>
2826 </page>
2827
2828 <page name="system_readonly_check">
2829 <action>
2830 <action function="checkpartitionlifetimewrites">/system</action>
2831 </action>
2832
2833 <action>
2834 <condition var1="tw_lifetime_writes" var2="1"/>
2835 <actions>
2836 <action function="mountsystemtoggle">0</action>
2837 <action function="page">mount</action>
2838 </actions>
2839 </action>
2840
2841 <action>
2842 <condition var1="tw_lifetime_writes" var2="0"/>
2843 <actions>
2844 <action function="set">tw_back=mount</action>
2845 <action function="page">system_readonly</action>
2846 </actions>
2847 </action>
2848 </page>
2849
2850 <page name="reboot">
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06002851 <action>
2852 <action function="checkforapp"></action>
2853 <action function="page">reboot2</action>
2854 </action>
2855 </page>
2856
2857 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002858 <template name="page"/>
2859
2860 <text style="text_l">
2861 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002862 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002863 </text>
2864
bigbiff97829df2020-12-20 12:26:15 -05002865 <listbox style="advanced_listbox">
2866 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01002867
bigbiff97829df2020-12-20 12:26:15 -05002868 <listitem name="{@rb_system_btn=System}">
2869 <condition var1="tw_reboot_system" var2="1"/>
2870 <actions>
2871 <action function="set">tw_back=reboot</action>
2872 <action function="page">reboot_system_routine</action>
2873 </actions>
2874 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002875
bigbiff97829df2020-12-20 12:26:15 -05002876 <listitem name="{@rb_poweroff_btn=Power Off}">
2877 <condition var1="tw_reboot_poweroff" var2="1"/>
2878 <actions>
2879 <action function="set">tw_back=reboot</action>
2880 <action function="set">tw_action=reboot</action>
2881 <action function="set">tw_action_param=poweroff</action>
2882 <action function="set">tw_reboot_param=poweroff</action>
2883 <action function="set">tw_has_action2=0</action>
2884 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2885 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2886 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2887 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2888 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2889 <action function="page">rebootcheck</action>
2890 </actions>
2891 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002892
bigbiff97829df2020-12-20 12:26:15 -05002893 <listitem name="{@rb_recovery_btn=Recovery}">
2894 <condition var1="tw_reboot_recovery" var2="1"/>
2895 <actions>
2896 <action function="set">tw_back=reboot</action>
2897 <action function="set">tw_action=reboot</action>
2898 <action function="set">tw_action_param=recovery</action>
2899 <action function="set">tw_reboot_param=recovery</action>
2900 <action function="set">tw_has_action2=0</action>
2901 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2902 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2903 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2904 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2905 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2906 <action function="page">rebootcheck</action>
2907 </actions>
2908 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002909
bigbiff97829df2020-12-20 12:26:15 -05002910 <listitem name="{@rb_bootloader_btn=Bootloader}">
2911 <condition var1="tw_reboot_bootloader" var2="1"/>
2912 <actions>
2913 <action function="set">tw_back=reboot</action>
2914 <action function="set">tw_action=reboot</action>
2915 <action function="set">tw_action_param=bootloader</action>
2916 <action function="set">tw_reboot_param=bootloader</action>
2917 <action function="set">tw_has_action2=0</action>
2918 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2919 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2920 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2921 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2922 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2923 <action function="page">rebootcheck</action>
2924 </actions>
2925 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002926
bigbiff97829df2020-12-20 12:26:15 -05002927 <listitem name="{@rb_download_btn=Download}">
2928 <condition var1="tw_download_mode" var2="1"/>
2929 <actions>
2930 <action function="set">tw_back=reboot</action>
2931 <action function="set">tw_action=reboot</action>
2932 <action function="set">tw_action_param=download</action>
2933 <action function="set">tw_reboot_param=download</action>
2934 <action function="set">tw_has_action2=0</action>
2935 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2936 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2937 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2938 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2939 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2940 <action function="page">rebootcheck</action>
2941 </actions>
2942 </listitem>
2943
2944 <listitem name="{@rb_edl_btn=Edl}">
2945 <condition var1="tw_edl_mode" var2="1"/>
2946 <actions>
2947 <action function="set">tw_back=reboot</action>
2948 <action function="set">tw_action=reboot</action>
2949 <action function="set">tw_action_param=edl</action>
2950 <action function="set">tw_reboot_param=edl</action>
2951 <action function="set">tw_has_action2=0</action>
2952 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2953 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2954 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2955 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2956 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2957 <action function="page">rebootcheck</action>
2958 </actions>
2959 </button>
2960 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02002961
Ethan Yonker1b190162016-12-05 15:25:19 -06002962 <text style="text_m">
2963 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiff97829df2020-12-20 12:26:15 -05002964 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002965 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2966 </text>
2967
bigbiff97829df2020-12-20 12:26:15 -05002968 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002969 <condition var1="tw_has_boot_slots" var2="1"/>
2970 <placement x="%indent%" y="%row19_y%"/>
2971 <text>{@boot_slot_a=Slot A}</text>
2972 <actions>
2973 <action function="set">tw_back=reboot</action>
2974 <action function="set">tw_action=setbootslot</action>
2975 <action function="set">tw_action_param=A</action>
2976 <action function="set">tw_has_action2=0</action>
2977 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2978 <action function="set">tw_action_text2=</action>
2979 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2980 <action function="page">action_page</action>
2981 </actions>
2982 </button>
2983
bigbiff97829df2020-12-20 12:26:15 -05002984 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002985 <condition var1="tw_has_boot_slots" var2="1"/>
2986 <placement x="%center_x%" y="%row19_y%"/>
2987 <text>{@boot_slot_b=Slot B}</text>
2988 <actions>
2989 <action function="set">tw_back=reboot</action>
2990 <action function="set">tw_action=setbootslot</action>
2991 <action function="set">tw_action_param=B</action>
2992 <action function="set">tw_has_action2=0</action>
2993 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2994 <action function="set">tw_action_text2=</action>
2995 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2996 <action function="page">action_page</action>
2997 </actions>
2998 </button>
2999
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003000 <button style="main_button_half_height">
3001 <condition var1="tw_app_install_status" var2="1"/>
3002 <placement x="%indent%" y="%row22_y%"/>
3003 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3004 <actions>
3005 <action function="set">tw_back=reboot</action>
3006 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3007 <action function="page">installapp</action>
3008 </actions>
3009 </button>
3010
z31s1g28f0a922015-11-07 18:50:22 +01003011 <action>
3012 <touch key="home"/>
3013 <action function="page">main</action>
3014 </action>
3015
3016 <action>
3017 <touch key="back"/>
3018 <action function="page">main</action>
3019 </action>
3020 </page>
3021
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003022 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003023 <template name="page"/>
3024
3025 <text style="text_l">
3026 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003027 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003028 </text>
3029
3030 <text style="text_m">
3031 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003032 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003033 </text>
3034
3035 <text style="text_m_accent">
3036 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3037 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3038 </text>
3039
3040 <text style="text_m_accent">
3041 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3042 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3043 </text>
3044
3045 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003046 <condition var1="tw_mount_system_ro" var2="0"/>
3047 <placement x="%indent%" y="%row7_y%"/>
3048 <text>{@reboot_install_app_system=Install as a System App}</text>
3049 <data variable="tw_app_install_system"/>
3050 </checkbox>
3051
3052 <button style="main_button_half_height">
3053 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003054 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003055 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003056 </button>
3057
3058 <slider>
3059 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3060 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003061 <action function="set">tw_action=installapp</action>
3062 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3063 <action function="set">tw_action_text2=</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003064 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003065 <action function="page">action_page</action>
3066 </actions>
3067 </slider>
3068
3069 <action>
3070 <touch key="home"/>
3071 <actions>
3072 <action function="set">tw_app_install_status=0</action>
3073 <action function="page">main</action>
3074 </actions>
3075 </action>
3076
3077 <action>
3078 <touch key="back"/>
3079 <actions>
3080 <action function="set">tw_app_install_status=0</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003081 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003082 </actions>
3083 </action>
3084 </page>
3085
z31s1g28f0a922015-11-07 18:50:22 +01003086 <page name="system_readonly">
3087 <template name="page"/>
3088
3089 <text style="text_l">
3090 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003091 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003092 </text>
3093
3094 <text style="text_m_accent">
3095 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003096 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003097 </text>
3098
3099 <text style="text_m">
3100 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003101 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003102 </text>
3103
3104 <text style="text_m">
3105 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003106 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003107 </text>
3108
3109 <text style="text_m">
3110 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003111 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003112 </text>
3113
3114 <text style="text_m">
3115 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003116 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003117 </text>
3118
3119 <text style="text_m_fail">
3120 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003121 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003122 </text>
3123
3124 <text style="text_m_fail">
3125 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003126 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003127 </text>
3128
3129 <checkbox>
3130 <condition var1="tw_is_encrypted" var2="0"/>
3131 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003132 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003133 <data variable="tw_never_show_system_ro_page"/>
3134 </checkbox>
3135
3136 <button style="main_button_half_height">
3137 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003138 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003139 <actions>
3140 <action function="mountsystemtoggle">1</action>
3141 <action function="set">tw_page_done=1</action>
3142 <action function="page">%tw_back%</action>
3143 </actions>
3144 </button>
3145
z31s1g608d7ff2016-01-18 19:47:25 +01003146 <button style="main_button_half_height">
3147 <placement x="%center_x%" y="%row18a_y%"/>
3148 <text>{@sel_lang_btn=Select Language}</text>
3149 <action function="overlay">select_language</action>
3150 </button>
3151
z31s1g28f0a922015-11-07 18:50:22 +01003152 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003153 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003154 <actions>
3155 <action function="mountsystemtoggle">0</action>
3156 <action function="set">tw_page_done=1</action>
3157 <action function="page">%tw_back%</action>
3158 </actions>
3159 </slider>
3160 </page>
3161
3162 <page name="settings">
3163 <template name="page"/>
3164
3165 <text style="text_l">
3166 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003167 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003168 </text>
3169
3170 <text style="text_m">
3171 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003172 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003173 </text>
3174
3175 <template name="tabs_settings"/>
3176
3177 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003178 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003179 </fill>
3180
3181 <listbox style="scrolllist">
3182 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3183 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003184 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003185 <data variable="tw_signed_zip_verify"/>
3186 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003187 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3188 <data variable="tw_install_reboot"/>
3189 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003190 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003191 <data variable="tw_rm_rf"/>
3192 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003193 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3194 <data variable="tw_disable_free_space"/>
3195 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003196 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3197 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003198 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003199 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3200 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003201 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003202 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003203 <data variable="tw_military_time"/>
3204 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003206 <data variable="tw_samsung_navbar"/>
3207 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003208 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003209 <data variable="tw_simulate_actions"/>
3210 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003211 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003212 <condition var1="tw_simulate_actions" var2="1"/>
3213 <data variable="tw_simulate_fail"/>
3214 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003215 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3216 <condition var1="tw_no_sha2" var2="0"/>
3217 <data variable="tw_use_sha2"/>
3218 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003219 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3220 <data variable="tw_unmount_system"/>
3221 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003222 </listbox>
3223
3224 <button style="main_button_half_height">
3225 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003226 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003227 <actions>
3228 <action function="set">tw_samsung_navbar=0</action>
3229 <action function="set">tw_tab_icons=0</action>
3230 <action function="restoredefaultsettings"/>
3231 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003232 </button>
3233
3234 <action>
3235 <touch key="home"/>
3236 <action function="page">main</action>
3237 </action>
3238
3239 <action>
3240 <touch key="back"/>
3241 <action function="page">main</action>
3242 </action>
3243 </page>
3244
3245 <page name="settings_timezone">
3246 <template name="page"/>
3247
3248 <text style="text_l">
3249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003250 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003251 </text>
3252
3253 <text style="text_m">
3254 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003255 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003256 </text>
3257
3258 <template name="tabs_settings"/>
3259
3260 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003261 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003262 </fill>
3263
3264 <listbox>
3265 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003266 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003267 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003268 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3269 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3270 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3271 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3272 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3273 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3274 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3275 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3276 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3277 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3278 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3279 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3280 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3281 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3282 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3283 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3284 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3285 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3286 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3287 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3288 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3289 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3290 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3291 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003292 </listbox>
3293
3294 <text style="text_m_accent">
3295 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003296 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003297 </text>
3298
3299 <button style="button_quarter_width">
3300 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003301 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003302 <action function="set">tw_time_zone_guioffset=0</action>
3303 </button>
3304
3305 <button style="button_quarter_width">
3306 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003307 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003308 <action function="set">tw_time_zone_guioffset=15</action>
3309 </button>
3310
3311 <button style="button_quarter_width">
3312 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003313 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003314 <action function="set">tw_time_zone_guioffset=30</action>
3315 </button>
3316
3317 <button style="button_quarter_width">
3318 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003319 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003320 <action function="set">tw_time_zone_guioffset=45</action>
3321 </button>
3322
3323 <checkbox>
3324 <placement x="%indent%" y="%row18a_y%"/>
3325 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003326 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003327 <data variable="tw_time_zone_guidst"/>
3328 <image checked="checkbox_true" unchecked="checkbox_false"/>
3329 </checkbox>
3330
3331 <text color="%text_color%">
3332 <font resource="font_m"/>
3333 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003334 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003335 </text>
3336
3337 <button>
3338 <highlight color="%highlight_color%"/>
3339 <placement x="%center_x%" y="%row21a_y%"/>
3340 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003341 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003342 <image resource="main_button_half_height"/>
3343 <action function="setguitimezone"/>
3344 </button>
3345
3346 <action>
3347 <touch key="home"/>
3348 <action function="page">main</action>
3349 </action>
3350
3351 <action>
3352 <touch key="back"/>
3353 <action function="page">main</action>
3354 </action>
3355 </page>
3356
3357 <page name="settings_screen">
3358 <template name="page"/>
3359
3360 <text style="text_l">
3361 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003362 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003363 </text>
3364
3365 <text style="text_m">
3366 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003367 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003368 </text>
3369
3370 <template name="tabs_settings"/>
3371
3372 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003373 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003374 </fill>
3375
3376 <button>
3377 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3378 <font resource="font_m" color="%text_color%"/>
3379 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3380 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003381 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003382 <image resource="checkbox_false"/>
3383 <action function="set">tw_screen_timeout_secs=60</action>
3384 </button>
3385
3386 <button>
3387 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3388 <font resource="font_m" color="%text_color%"/>
3389 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3390 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003391 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003392 <image resource="checkbox_true"/>
3393 <action function="set">tw_screen_timeout_secs=0</action>
3394 </button>
3395
3396 <slidervalue>
3397 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3398 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3399 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003400 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003401 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3402 </slidervalue>
3403
3404 <slidervalue>
3405 <condition var1="tw_has_brightnesss_file" var2="1"/>
3406 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003408 <data variable="tw_brightness_pct" min="10" max="100"/>
3409 <actions>
3410 <action function="set">tw_brightness=%tw_brightness_max%</action>
3411 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3412 <action function="compute">tw_brightness/100</action>
3413 <action function="setbrightness">%tw_brightness%</action>
3414 </actions>
3415 </slidervalue>
3416
3417 <action>
3418 <touch key="home"/>
3419 <action function="page">main</action>
3420 </action>
3421
3422 <action>
3423 <touch key="back"/>
3424 <action function="page">main</action>
3425 </action>
3426 </page>
3427
3428 <page name="settings_vibration">
3429 <template name="page"/>
3430
3431 <text style="text_l">
3432 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003433 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003434 </text>
3435
3436 <text style="text_m">
3437 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003438 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003439 </text>
3440
3441 <template name="tabs_settings"/>
3442
3443 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003444 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003445 </fill>
3446
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003447 <text style="text_m">
3448 <condition var1="tw_disable_haptics" var2="1"/>
3449 <placement x="%indent%" y="%row4_y%"/>
3450 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3451 </text>
3452
z31s1g28f0a922015-11-07 18:50:22 +01003453 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003454 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003455 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003456 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003457 <data variable="tw_button_vibrate" min="0" max="300"/>
3458 </slidervalue>
3459
3460 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003461 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003462 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003463 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003464 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3465 </slidervalue>
3466
3467 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003468 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003469 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003470 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003471 <data variable="tw_action_vibrate" min="0" max="500"/>
3472 </slidervalue>
3473
3474 <action>
3475 <touch key="home"/>
3476 <action function="page">main</action>
3477 </action>
3478
3479 <action>
3480 <touch key="back"/>
3481 <action function="page">main</action>
3482 </action>
3483 </page>
3484
Ethan Yonker74db1572015-10-28 12:44:49 -05003485 <page name="settings_language">
3486 <template name="page"/>
3487
3488 <text style="text_l">
3489 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3490 <text>{@settings_hdr=Settings}</text>
3491 </text>
3492
3493 <text style="text_m">
3494 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3495 <text>{@language_hdr=Language - %tw_language_display%}</text>
3496 </text>
3497
3498 <template name="tabs_settings"/>
3499
3500 <fill color="%text_color%">
3501 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3502 </fill>
3503
3504 <listbox>
3505 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3506 <text>{@select_language=Select Language:}</text>
3507 <icon selected="radio_true" unselected="radio_false" />
3508 <data name="tw_language" />
3509 </listbox>
3510
3511 <button style="main_button_half_height">
3512 <placement x="%center_x%" y="%row21a_y%"/>
3513 <text>{@set_language_btn=Set Language}</text>
3514 <action function="setlanguage"></action>
3515 </button>
3516
3517 <action>
3518 <touch key="home" />
3519 <action function="page">main</action>
3520 </action>
3521
3522 <action>
3523 <touch key="back" />
3524 <action function="page">settings</action>
3525 </action>
3526 </page>
3527
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003528 <page name="copylog">
3529 <template name="page"/>
3530
3531 <text style="text_l">
3532 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3533 <text>{@copying_log=Copy Logs to SD Card}</text>
3534 </text>
3535
3536 <checkbox>
3537 <placement x="%indent%" y="%row4_y%"/>
3538 <text>{@include_kernel_log=Include Kernel Log}</text>
3539 <data variable="tw_include_kernel_log" value="1"/>
3540 </checkbox>
3541
3542 <slider>
3543 <text>{@copying_log=Copy Logs to SD Card}</text>
3544 <actions>
3545 <action function="set">tw_back=advanced</action>
3546 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003547 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3548 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003549 <action function="page">action_page</action>
3550 </actions>
3551 </slider>
3552
3553 <action>
3554 <touch key="home"/>
3555 <action function="page">main</action>
3556 </action>
3557
3558 <action>
3559 <touch key="back"/>
3560 <actions>
3561 <action function="page">advanced</action>
3562 </actions>
3563 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003564 </page>
3565
z31s1g28f0a922015-11-07 18:50:22 +01003566 <page name="advanced">
3567 <template name="page"/>
3568
3569 <text style="text_l">
3570 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003571 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003572 </text>
3573
3574 <button style="main_button">
3575 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003576 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003577 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003578 </button>
3579
3580 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003581 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003582 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003583 <text>{@adb_sideload_btn=ADB Sideload}</text>
3584 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003585 </button>
3586
3587 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003588 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003589 <text>{@terminal_btn=Terminal}</text>
3590 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003591 </button>
3592
3593 <button style="main_button">
3594 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003595 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003596 <action function="page">filemanagerlist</action>
3597 </button>
3598
Ethan Yonker64e0a652018-07-25 09:52:17 -05003599 <listbox style="advanced_listbox">
3600 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldd259b372021-03-01 21:31:07 +01003601 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicX98053c32021-01-04 13:01:31 +05303602 <condition var1="tw_is_encrypted" var2="0"/>
3603 <action function="page">changeTwrpFolder</action>
3604 </listitem>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003605 <listitem name="{@decrypt_users=Decrypt Users}">
3606 <conditions>
3607 <condition var1="tw_is_fbe" var2="1"/>
3608 <condition var1="tw_all_users_decrypted" var2="0"/>
3609 </conditions>
3610 <actions>
3611 <action function="set">tw_crypto_user_id=</action>
3612 <action function="page">decrypt_users</action>
3613 </actions>
3614 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003615 <listitem name="{@reload_theme_btn=Reload Theme}">
3616 <action function="reload"/>
3617 </listitem>
3618 <listitem name="{@part_sd_btn=Partition SD Card}">
3619 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3620 <actions>
3621 <action function="set">partitionlisterror=0</action>
3622 <action function="page">partsdcardsel</action>
3623 </actions>
3624 </listitem>
3625 <listitem name="{@fix_context_btn=Fix Contexts}">
3626 <condition var1="tw_has_data_media" var2="1"/>
3627 <action function="page">fixcontexts</action>
3628 </listitem>
3629 <listitem name="{@dumlock_btn=HTC Dumlock}">
3630 <condition var1="tw_show_dumlock" var2="1"/>
3631 <action function="page">htcdumlock</action>
3632 </listitem>
3633 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3634 <condition var1="tw_has_injecttwrp" var2="1"/>
3635 <actions>
3636 <action function="set">tw_back=advanced</action>
3637 <action function="set">tw_action=reinjecttwrp</action>
3638 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3639 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3640 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3641 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3642 <action function="page">confirm_action</action>
3643 </actions>
3644 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003645 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3646 <conditions>
3647 <condition var1="tw_has_boot_slots" var2="1"/>
3648 <condition var1="tw_has_repack_tools" var2="1"/>
3649 </conditions>
3650 <actions>
3651 <action function="set">tw_repack_kernel=0</action>
3652 <action function="page">repackselect</action>
3653 </actions>
3654 </listitem>
3655 <listitem name="{@install_kernel=Install Kernel}">
3656 <conditions>
3657 <condition var1="tw_has_boot_slots" var2="1"/>
3658 <condition var1="tw_has_repack_tools" var2="1"/>
3659 </conditions>
3660 <actions>
3661 <action function="set">tw_repack_kernel=1</action>
3662 <action function="page">repackselect</action>
3663 </actions>
3664 </listitem>
3665 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3666 <conditions>
3667 <condition var1="tw_has_boot_slots" var2="1"/>
3668 <condition var1="tw_has_repack_tools" var2="1"/>
3669 </conditions>
3670 <actions>
3671 <action function="set">tw_back=advanced</action>
3672 <action function="set">tw_action=fixabrecoverybootloop</action>
3673 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3674 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3675 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3676 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3677 <action function="page">confirm_action</action>
3678 </actions>
3679 </listitem>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003680 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3681 <condition var1="tw_app_install_status" var2="1"/>
3682 <actions>
3683 <action function="set">tw_back=advanced</action>
3684 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3685 <action function="page">installapp</action>
3686 </actions>
3687 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003688 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3689 <condition var1="tw_app_installed_in_system" var2="1"/>
3690 <actions>
3691 <action function="set">tw_back=advanced</action>
3692 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3693 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3694 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3695 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3696 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3697 <action function="page">confirm_action</action>
3698 </actions>
3699 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003700 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003701
3702 <action>
3703 <touch key="home"/>
3704 <action function="page">main</action>
3705 </action>
3706
3707 <action>
3708 <touch key="back"/>
3709 <action function="page">main</action>
3710 </action>
3711 </page>
3712
Ethan Yonker483e9f42016-01-11 22:21:18 -06003713 <page name="partsdcardsel">
3714 <template name="page"/>
3715
3716 <text style="text_l">
3717 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3718 <text>{@advanced_hdr=Advanced}</text>
3719 </text>
3720
3721 <text style="text_m">
3722 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3723 <text>{@part_sd_hdr=Partition SD Card}</text>
3724 </text>
3725
z31s1g782e1c92016-01-30 16:50:09 +01003726 <partitionlist>
3727 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003728 <text>{@sel_storage_list=Select Storage}</text>
3729 <data name="tw_storage_path"/>
3730 <listtype name="storage"/>
3731 </partitionlist>
3732
3733 <text style="text_m_fail">
3734 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003735 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003736 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3737 </text>
3738
z31s1g782e1c92016-01-30 16:50:09 +01003739 <button style="main_button_half_height">
3740 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003741 <text>{@ok_btn=OK}</text>
3742 <actions>
3743 <action function="getpartitiondetails">tw_storage_path</action>
3744 <action function="page">partsdcardcheck</action>
3745 </actions>
3746 </button>
3747
3748 <action>
3749 <touch key="home"/>
3750 <action function="page">main</action>
3751 </action>
3752
3753 <action>
3754 <touch key="back"/>
3755 <action function="page">advanced</action>
3756 </action>
3757 </page>
3758
3759 <page name="partsdcardcheck">
3760 <action>
3761 <condition var1="tw_partition_removable" op="=" var2="1"/>
3762 <actions>
3763 <action function="set">partitionlisterror=0</action>
3764 <action function="page">partsdcard</action>
3765 </actions>
3766 </action>
3767
3768 <action>
3769 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3770 <actions>
3771 <action function="set">partitionlisterror=1</action>
3772 <action function="page">partsdcardsel</action>
3773 </actions>
3774 </action>
3775 </page>
3776
z31s1g28f0a922015-11-07 18:50:22 +01003777 <page name="partsdcard">
3778 <template name="page"/>
3779
3780 <text style="text_l">
3781 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003782 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003783 </text>
3784
3785 <text style="text_m">
3786 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003787 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003788 </text>
3789
3790 <text style="text_m_fail">
3791 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003792 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003793 </text>
3794
3795 <text style="text_m_fail">
3796 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003797 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003798 </text>
3799
3800 <text style="text_m_accent">
3801 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003802 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003803 </text>
3804
3805 <text style="text_m">
3806 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3807 <text>%tw_sdext_size%</text>
3808 </text>
3809
3810 <button style="button_quarter_width">
3811 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003812 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003813 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003814 </button>
3815
3816 <button style="button_quarter_width">
3817 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003818 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003819 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003820 </button>
3821
3822 <text style="text_m_accent">
3823 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003824 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003825 </text>
3826
3827 <text style="text_m">
3828 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3829 <text>%tw_swap_size%</text>
3830 </text>
3831
3832 <button style="button_quarter_width">
3833 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003834 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003835 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003836 </button>
3837
3838 <button style="button_quarter_width">
3839 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003840 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003841 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003842 </button>
3843
3844 <text style="text_m_accent">
3845 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003846 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003847 </text>
3848
3849 <text style="text_m">
3850 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3851 <text>%tw_sdpart_file_system%</text>
3852 </text>
3853
3854 <button style="button_quarter_width">
3855 <placement x="%indent%" y="%row14_y%"/>
3856 <text>EXT3</text>
3857 <action function="set">tw_sdpart_file_system=ext3</action>
3858 </button>
3859
3860 <button style="button_quarter_width">
3861 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3862 <text>EXT4</text>
3863 <action function="set">tw_sdpart_file_system=ext4</action>
3864 </button>
3865
3866 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003867 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003868 <action function="page">partsdcardaction</action>
3869 <actions>
3870 <action function="set">tw_back=partsdcard</action>
3871 <action function="set">tw_action=partitionsd</action>
3872 <action function="set">tw_has_action2=1</action>
3873 <action function="set">tw_action2=set</action>
3874 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003875 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3876 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3877 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003878 <action function="page">action_page</action>
3879 </actions>
3880 </slider>
3881
3882 <action>
3883 <touch key="home"/>
3884 <action function="page">main</action>
3885 </action>
3886
3887 <action>
3888 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003889 <actions>
3890 <action function="set">partitionlisterror=0</action>
3891 <action function="page">partsdcardsel</action>
3892 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003893 </action>
3894 </page>
3895
3896 <page name="htcdumlock">
3897 <template name="page"/>
3898
3899 <text style="text_l">
3900 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003901 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003902 </text>
3903
3904 <text style="text_m">
3905 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003906 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003907 </text>
3908
3909 <button style="main_button_half_height_full_width">
3910 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003911 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003912 <actions>
3913 <action function="set">tw_back=htcdumlock</action>
3914 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003915 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3916 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3917 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3918 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003919 <action function="page">confirm_action</action>
3920 </actions>
3921 </button>
3922
3923 <button style="main_button_half_height_full_width">
3924 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003925 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003926 <actions>
3927 <action function="set">tw_back=htcdumlock</action>
3928 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003929 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3930 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3931 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3932 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003933 <action function="page">confirm_action</action>
3934 </actions>
3935 </button>
3936
3937 <button style="main_button_half_height_full_width">
3938 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003939 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003940 <actions>
3941 <action function="set">tw_back=htcdumlock</action>
3942 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003943 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3944 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3945 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3946 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003947 <action function="page">confirm_action</action>
3948 </actions>
3949 </button>
3950
3951 <action>
3952 <touch key="home"/>
3953 <action function="page">main</action>
3954 </action>
3955
3956 <action>
3957 <touch key="back"/>
3958 <action function="page">advanced</action>
3959 </action>
3960 </page>
3961
Ethan Yonker53796e72019-01-11 22:49:52 -06003962 <page name="repackselect">
3963 <template name="page"/>
3964
3965 <text style="text_l">
3966 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3967 <text>{@repack_image_hdr=Select Image}</text>
3968 </text>
3969
3970 <text style="text_m">
3971 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3972 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3973 </text>
3974
3975 <template name="sort_options"/>
3976
3977 <fileselector>
3978 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3979 <text>%tw_zip_location%</text>
3980 <filter extn=".img" folders="1" files="1"/>
3981 <path name="tw_zip_location" default="/sdcard"/>
3982 <data name="tw_filename"/>
3983 <selection name="tw_file"/>
3984 </fileselector>
3985
3986 <button style="main_button_half_height">
3987 <placement x="%indent%" y="%row21a_y%"/>
3988 <text>{@select_storage_btn=Select Storage}</text>
3989 <actions>
3990 <action function="set">tw_back=repackselect</action>
3991 <action function="overlay">select_storage</action>
3992 </actions>
3993 </button>
3994
3995 <action>
3996 <conditions>
3997 <condition var1="tw_filename" op="modified"/>
3998 </conditions>
3999 <action function="page">repackconfirm</action>
4000 </action>
4001
4002 <action>
4003 <touch key="back"/>
4004 <action function="page">advanced</action>
4005 </action>
4006
4007 <action>
4008 <touch key="home"/>
4009 <action function="page">main</action>
4010 </action>
4011 </page>
4012
4013 <page name="repackconfirm">
4014 <template name="page"/>
4015
4016 <text style="text_l">
4017 <condition var1="tw_repack_kernel" var2="1"/>
4018 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4019 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4020 </text>
4021
4022 <text style="text_l">
4023 <condition var1="tw_repack_kernel" var2="0"/>
4024 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4025 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4026 </text>
4027
4028 <text style="text_m">
4029 <condition var1="tw_repack_kernel" var2="1"/>
4030 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4031 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4032 </text>
4033
4034 <text style="text_m">
4035 <condition var1="tw_repack_kernel" var2="0"/>
4036 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4037 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4038 </text>
4039
4040 <text style="text_m_accent">
4041 <placement x="%indent%" y="%row2_y%"/>
4042 <text>{@folder=Folder:}</text>
4043 </text>
4044
4045 <text style="text_m">
4046 <placement x="%indent%" y="%row3_y%"/>
4047 <text>%tw_zip_location%</text>
4048 </text>
4049
4050 <text style="text_m_accent">
4051 <placement x="%indent%" y="%row4_y%"/>
4052 <text>{@file=File:}</text>
4053 </text>
4054
4055 <text style="text_m">
4056 <placement x="%indent%" y="%row5_y%"/>
4057 <text>%tw_file%</text>
4058 </text>
4059
4060 <checkbox>
4061 <placement x="%indent%" y="%row7_y%"/>
4062 <text>{@repack_backup_first=Back up existing image first}</text>
4063 <data variable="tw_repack_backup_first"/>
4064 </checkbox>
4065
4066 <button style="main_button_half_height">
4067 <placement x="%indent%" y="%row16_y%"/>
4068 <text>{@install_cancel=Do not Install}</text>
4069 <action function="page">repackselect</action>
4070 </button>
4071
4072 <slider>
4073 <text>{@swipe_to_install=Swipe to Install}</text>
4074 <actions>
4075 <action function="set">tw_back=advanced</action>
4076 <action function="set">tw_action=repackimage</action>
4077 <action function="set">tw_action_param=/boot</action>
4078 <action function="set">tw_action_text1={@installing=Installing...}</action>
4079 <action function="set">tw_action_text2=</action>
4080 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4081 <action function="page">action_page</action>
4082 </actions>
4083 </slider>
4084
4085 <action>
4086 <touch key="back"/>
4087 <action function="page">repackselect</action>
4088 </action>
4089
4090 <action>
4091 <touch key="home"/>
4092 <action function="page">main</action>
4093 </action>
4094 </page>
4095
z31s1g28f0a922015-11-07 18:50:22 +01004096 <page name="lock">
4097 <background color="%semi_transparent%"/>
4098
4099 <image>
4100 <image resource="unlock_icon"/>
4101 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4102 </image>
4103
4104 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004105 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004106 <action function="overlay"/>
4107 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004108
4109 <action>
4110 <touch key="power"/>
4111 <action function="togglebacklight"/>
4112 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004113 </page>
4114
4115 <page name="filemanagerlist">
4116 <template name="page"/>
4117
4118 <text style="text_l">
4119 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004120 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004121 </text>
4122
4123 <text style="text_m">
4124 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004125 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004126 </text>
4127
4128 <template name="sort_options"/>
4129
4130 <fileselector>
4131 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4132 <text>%tw_file_location1%</text>
4133 <filter folders="1" files="1"/>
4134 <path name="tw_file_location1" default="/"/>
4135 <data name="tw_filename1"/>
4136 <selection name="tw_selection1"/>
4137 </fileselector>
4138
4139 <button style="fab">
4140 <image resource="fab_selectfolder"/>
4141 <actions>
4142 <action function="set">tw_filename1=tw_file_location1</action>
4143 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004144 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004145 <action function="page">filemanageroptions</action>
4146 </actions>
4147 </button>
4148
4149 <action>
4150 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004151 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004152 <action function="set">tw_fm_isfolder=0</action>
4153 </actions>
4154 </action>
4155
4156 <action>
4157 <touch key="home"/>
4158 <action function="page">main</action>
4159 </action>
4160
4161 <action>
4162 <touch key="back"/>
4163 <action function="page">advanced</action>
4164 </action>
4165
4166 <action>
4167 <condition var1="tw_filename1" op="modified"/>
4168 <action function="page">filemanageroptions</action>
4169 </action>
4170 </page>
4171
4172 <page name="filemanageroptions">
4173 <template name="page"/>
4174
4175 <text style="text_l">
4176 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004177 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004178 </text>
4179
4180 <text style="text_m">
4181 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004182 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004183 </text>
4184
4185 <text style="text_m_accent">
4186 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004187 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004188 </text>
4189
4190 <text style="text_m">
4191 <placement x="%indent%" y="%row3_y%"/>
4192 <text>%tw_filename1%</text>
4193 </text>
4194
4195 <button style="main_button_half_height">
Captain Throwback3b556102021-02-12 19:32:36 -05004196 <conditions>
4197 <condition var1="tw_include_nano" var2="1"/>
4198 <condition var1="tw_fm_isfolder" var2="0"/>
4199 </conditions>
4200 <placement x="%indent%" y="%row12a_y%"/>
4201 <text>{@fm_edit_file=Edit File}</text>
4202 <actions>
4203 <action function="editfile">nano "%tw_filename1%"</action>
4204 <action function="page">terminalcommand</action>
4205 </actions>
4206 </button>
4207
4208 <button style="main_button_half_height">
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004209 <condition var1="tw_fm_isfolder" var2="1"/>
4210 <placement x="%center_x%" y="%row12a_y%"/>
4211 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4212 <action function="changeterminal">%tw_filename1%</action>
4213 </button>
4214
4215 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004216 <condition var1="tw_fm_isfolder" var2="0"/>
4217 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004218 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004219 <actions>
4220 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004221 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004222 <action function="page">choosedestinationfolder</action>
4223 </actions>
4224 </button>
4225
4226 <button style="main_button_half_height">
4227 <condition var1="tw_fm_isfolder" var2="1"/>
4228 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004229 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004230 <actions>
4231 <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 -05004232 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004233 <action function="page">choosedestinationfolder</action>
4234 </actions>
4235 </button>
4236
4237 <button style="main_button_half_height">
4238 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004239 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004240 <actions>
4241 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004242 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004243 <action function="page">choosedestinationfolder</action>
4244 </actions>
4245 </button>
4246
4247 <button style="main_button_half_height">
4248 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004249 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004250 <actions>
4251 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004252 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004253 <action function="set">tw_fm_text2=</action>
4254 <action function="set">tw_fm_text3=</action>
4255 <action function="set">tw_include_text3=0</action>
4256 <action function="set">tw_back=filemanageroptions</action>
4257 <action function="page">filemanagerconfirm</action>
4258 </actions>
4259 </button>
4260
4261 <button style="main_button_half_height">
4262 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004263 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004264 <actions>
4265 <action function="set">tw_filemanager_rename=0000</action>
4266 <action function="set">tw_fm_text2=</action>
4267 <action function="set">tw_fm_text3=</action>
4268 <action function="set">tw_include_text3=0</action>
4269 <action function="set">tw_back=filemanageroptions</action>
4270 <action function="page">filemanagerchmod</action>
4271 </actions>
4272 </button>
4273
4274 <button style="main_button_half_height">
4275 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004276 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004277 <actions>
4278 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004279 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004280 <action function="set">tw_fm_text2=</action>
4281 <action function="set">tw_fm_text3=</action>
4282 <action function="set">tw_include_text3=0</action>
4283 <action function="set">tw_back=filemanageroptions</action>
4284 <action function="page">filemanagerconfirm</action>
4285 </actions>
4286 </button>
4287
4288 <button style="main_button_half_height">
4289 <condition var1="tw_fm_isfolder" var2="0"/>
4290 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004291 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004292 <actions>
4293 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004294 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004295 <action function="set">tw_filemanager_command=mv</action>
4296 <action function="page">filemanagerrenamefile</action>
4297 </actions>
4298 </button>
4299
4300 <button style="main_button_half_height">
4301 <condition var1="tw_fm_isfolder" var2="1"/>
4302 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004304 <actions>
4305 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004306 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004307 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4308 <action function="page">filemanagerrenamefolder</action>
4309 </actions>
4310 </button>
4311
4312 <action>
4313 <touch key="home"/>
4314 <action function="page">main</action>
4315 </action>
4316
4317 <action>
4318 <touch key="back"/>
4319 <action function="page">filemanagerlist</action>
4320 </action>
4321 </page>
4322
4323 <page name="choosedestinationfolder">
4324 <template name="page"/>
4325
4326 <text style="text_l">
4327 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004328 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004329 </text>
4330
4331 <text style="text_m">
4332 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004333 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004334 </text>
4335
4336 <template name="sort_options"/>
4337
4338 <fileselector>
4339 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4340 <text>%tw_file_location2%</text>
4341 <filter folders="1" files="0"/>
4342 <path name="tw_file_location2" default="/"/>
4343 <data name="tw_filename2"/>
4344 <selection name="tw_selection2"/>
4345 </fileselector>
4346
4347 <button style="fab">
4348 <image resource="fab_selectfolder"/>
4349 <actions>
4350 <action function="set">tw_fm_text2=to</action>
4351 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4352 <action function="set">tw_include_text3=1</action>
4353 <action function="set">tw_back=filemanageroptions</action>
4354 <action function="page">filemanagerconfirm</action>
4355 </actions>
4356 </button>
4357
4358 <action>
4359 <touch key="home"/>
4360 <action function="page">main</action>
4361 </action>
4362
4363 <action>
4364 <touch key="back"/>
4365 <action function="page">filemanageroptions</action>
4366 </action>
4367 </page>
4368
4369 <page name="filemanagerrenamefile">
4370 <template name="page"/>
4371
4372 <text style="text_l">
4373 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004374 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004375 </text>
4376
4377 <text style="text_m">
4378 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004379 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004380 </text>
4381
4382 <text style="text_m_accent">
4383 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004384 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004385 </text>
4386
4387 <input>
4388 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4389 <text>%tw_filemanager_rename%</text>
4390 <data name="tw_filemanager_rename"/>
4391 <restrict minlen="1" maxlen="128"/>
4392 <actions>
4393 <action function="set">tw_fm_text2=to</action>
4394 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4395 <action function="set">tw_include_text3=1</action>
4396 <action function="set">tw_back=filemanageroptions</action>
4397 <action function="page">filemanagerconfirm</action>
4398 </actions>
4399 </input>
4400
4401 <fill color="%accent_color%">
4402 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4403 </fill>
4404
4405 <button style="main_button_half_height">
4406 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004407 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004408 <action function="page">filemanageroptions</action>
4409 </button>
4410
4411 <template name="keyboardtemplate"/>
4412
4413 <action>
4414 <touch key="home"/>
4415 <action function="page">main</action>
4416 </action>
4417
4418 <action>
4419 <touch key="back"/>
4420 <action function="page">filemanageroptions</action>
4421 </action>
4422 </page>
4423
4424 <page name="filemanagerrenamefolder">
4425 <template name="page"/>
4426
4427 <text style="text_l">
4428 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004429 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004430 </text>
4431
4432 <text style="text_m">
4433 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004434 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004435 </text>
4436
4437 <text style="text_m_accent">
4438 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004439 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004440 </text>
4441
4442 <input>
4443 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4444 <text>%tw_filemanager_rename%</text>
4445 <data name="tw_filemanager_rename"/>
4446 <restrict minlen="1" maxlen="128"/>
4447 <actions>
4448 <action function="set">tw_fm_text2=to</action>
4449 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4450 <action function="set">tw_include_text3=1</action>
4451 <action function="set">tw_back=filemanageroptions</action>
4452 <action function="page">filemanagerconfirm</action>
4453 </actions>
4454 </input>
4455
4456 <fill color="%accent_color%">
4457 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4458 </fill>
4459
4460 <button style="main_button_half_height">
4461 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004462 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004463 <action function="page">filemanageroptions</action>
4464 </button>
4465
4466 <template name="keyboardtemplate"/>
4467
4468 <action>
4469 <touch key="home"/>
4470 <action function="page">main</action>
4471 </action>
4472
4473 <action>
4474 <touch key="back"/>
4475 <action function="page">filemanageroptions</action>
4476 </action>
4477 </page>
4478
4479 <page name="filemanagerchmod">
4480 <template name="page"/>
4481
4482 <text style="text_l">
4483 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004484 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004485 </text>
4486
4487 <text style="text_m">
4488 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004489 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004490 </text>
4491
4492 <text style="text_m_accent">
4493 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004494 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004495 </text>
4496
4497 <input>
4498 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4499 <text>%tw_filemanager_rename%</text>
4500 <data name="tw_filemanager_rename"/>
4501 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4502 <actions>
4503 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4504 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4505 <action function="set">tw_back=filemanageroptions</action>
4506 <action function="page">filemanagerconfirm</action>
4507 </actions>
4508 </input>
4509
4510 <fill color="%accent_color%">
4511 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4512 </fill>
4513
4514 <button style="main_button_half_height">
4515 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004516 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004517 <action function="page">filemanageroptions</action>
4518 </button>
4519
4520 <template name="keyboardtemplate"/>
4521
4522 <action>
4523 <touch key="home"/>
4524 <action function="page">main</action>
4525 </action>
4526
4527 <action>
4528 <touch key="back"/>
4529 <action function="page">filemanageroptions</action>
4530 </action>
4531 </page>
4532
4533 <page name="filemanagerconfirm">
4534 <template name="page"/>
4535
4536 <text style="text_l">
4537 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004538 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004539 </text>
4540
4541 <text style="text_m">
4542 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004543 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004544 </text>
4545
4546 <text style="text_m_accent">
4547 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4548 <text>%tw_fm_text1%</text>
4549 </text>
4550
4551 <text style="text_m">
4552 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4553 <text>%tw_filename1%</text>
4554 </text>
4555
4556 <text style="text_m_accent">
4557 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4558 <text>%tw_fm_text2%</text>
4559 </text>
4560
4561 <text style="text_m">
4562 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4563 <text>%tw_fm_text3%</text>
4564 </text>
4565
4566 <text style="text_m">
4567 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004568 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004569 </text>
4570
4571 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004572 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004573 <action function="page">filemanageraction</action>
4574 </slider>
4575
4576 <action>
4577 <touch key="back"/>
4578 <action function="page">%tw_back%</action>
4579 </action>
4580
4581 <action>
4582 <touch key="home"/>
4583 <action function="page">main</action>
4584 </action>
4585 </page>
4586
4587 <page name="filemanageraction">
4588 <template name="page"/>
4589
4590 <text style="text_l">
4591 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004592 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004593 </text>
4594
4595 <text style="text_m">
4596 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4597 <text>%tw_fm_text1%</text>
4598 </text>
4599
4600 <template name="console"/>
4601
4602 <template name="progress_bar"/>
4603
4604 <action>
4605 <conditions>
4606 <condition var1="tw_operation_state" var2="1"/>
4607 <condition var1="tw_operation_status" var2="0"/>
4608 </conditions>
4609 <actions>
4610 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004611 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004612 <action function="page">action_complete</action>
4613 </actions>
4614 </action>
4615
4616 <action>
4617 <conditions>
4618 <condition var1="tw_operation_state" var2="1"/>
4619 <condition var1="tw_operation_status" op="!=" var2="0"/>
4620 </conditions>
4621 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004622 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004623 <action function="page">action_complete</action>
4624 </actions>
4625 </action>
4626
4627 <action>
4628 <condition var1="tw_include_text3" var2="0"/>
4629 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4630 </action>
4631
4632 <action>
4633 <condition var1="tw_include_text3" var2="1"/>
4634 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4635 </action>
4636 </page>
4637
4638 <page name="decrypt">
4639 <template name="page"/>
4640
4641 <action>
4642 <condition var1="tw_crypto_pwtype" var2="2"/>
4643 <action function="page">decrypt_pattern</action>
4644 </action>
4645
4646 <text style="text_l">
4647 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004648 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004649 </text>
4650
4651 <text style="text_m">
4652 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004653 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004654 </text>
4655
4656 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004657 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004658 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004659 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004660 </text>
4661
Noah Jacobson5a79f672019-04-28 00:10:07 -04004662 <text style="text_m_accent">
4663 <condition var1="tw_is_fbe" var2="1"/>
4664 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4665 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4666 </text>
4667
z31s1g28f0a922015-11-07 18:50:22 +01004668 <input>
4669 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4670 <text>%tw_crypto_display%</text>
4671 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4672 <restrict minlen="1" maxlen="254"/>
4673 <action function="page">trydecrypt</action>
4674 </input>
4675
4676 <fill color="%accent_color%">
4677 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4678 </fill>
4679
4680 <fill color="%text_fail_color%">
4681 <condition var1="tw_password_fail" var2="1"/>
4682 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4683 </fill>
4684
4685 <text style="text_m_fail">
4686 <condition var1="tw_password_fail" var2="1"/>
4687 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004688 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004689 </text>
4690
4691 <button style="main_button_half_height">
4692 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004693 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004694 <actions>
4695 <action function="set">tw_page_done=1</action>
4696 <action function="page">main</action>
4697 </actions>
4698 </button>
4699
z31s1g608d7ff2016-01-18 19:47:25 +01004700 <button style="main_button_half_height">
4701 <placement x="%center_x%" y="%row10_y%"/>
4702 <text>{@sel_lang_btn=Select Language}</text>
4703 <action function="overlay">select_language</action>
4704 </button>
4705
z31s1g28f0a922015-11-07 18:50:22 +01004706 <template name="keyboardtemplate"/>
4707 </page>
4708
4709 <page name="decrypt_pattern">
4710 <template name="page"/>
4711
4712 <text style="text_l">
4713 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004714 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004715 </text>
4716
4717 <text style="text_m">
4718 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004719 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004720 </text>
4721
4722 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004723 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004724 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004725 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004726 </text>
4727
Noah Jacobson5a79f672019-04-28 00:10:07 -04004728 <text style="text_m_accent">
4729 <condition var1="tw_is_fbe" var2="1"/>
4730 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4731 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4732 </text>
4733
Aleksa Saraib25a1832015-12-31 17:36:00 +01004734 <text style="text_m_fail">
4735 <condition var1="tw_password_fail" var2="1"/>
4736 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004737 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004738 </text>
4739
z31s1g28f0a922015-11-07 18:50:22 +01004740 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004741 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004742 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4743 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4744 <data name="tw_crypto_password"/>
4745 <action function="page">trydecrypt</action>
4746 </patternpassword>
4747
Aleksa Saraib25a1832015-12-31 17:36:00 +01004748 <button style="button_quarter_width">
4749 <placement x="%indent%" y="%row19a_y%"/>
4750 <text>3x3</text>
4751 <action function="set">tw_gui_pattern_grid_size=3</action>
4752 </button>
4753
4754 <button style="button_quarter_width">
4755 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4756 <text>4x4</text>
4757 <action function="set">tw_gui_pattern_grid_size=4</action>
4758 </button>
4759
4760 <button style="button_quarter_width">
4761 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4762 <text>5x5</text>
4763 <action function="set">tw_gui_pattern_grid_size=5</action>
4764 </button>
4765
4766 <button style="button_quarter_width">
4767 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4768 <text>6x6</text>
4769 <action function="set">tw_gui_pattern_grid_size=6</action>
4770 </button>
4771
z31s1g28f0a922015-11-07 18:50:22 +01004772 <button style="main_button_half_height">
4773 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004774 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004775 <actions>
4776 <action function="set">tw_page_done=1</action>
4777 <action function="page">main</action>
4778 </actions>
4779 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004780
4781 <button style="main_button_half_height">
4782 <placement x="%center_x%" y="%row21a_y%"/>
4783 <text>{@sel_lang_btn=Select Language}</text>
4784 <action function="overlay">select_language</action>
4785 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004786 </page>
4787
4788 <page name="trydecrypt">
4789 <template name="page"/>
4790
4791 <text style="text_l">
4792 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004793 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004794 </text>
4795
4796 <text style="text_m">
4797 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004798 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004799 </text>
4800
4801 <template name="console"/>
4802
4803 <template name="progress_bar"/>
4804
4805 <action>
4806 <action function="decrypt"/>
4807 </action>
4808
4809 <action>
4810 <conditions>
4811 <condition var1="tw_operation_state" var2="1"/>
4812 <condition var1="tw_operation_status" op="!=" var2="0"/>
4813 </conditions>
4814 <actions>
4815 <action function="set">tw_password_fail=1</action>
4816 <action function="page">decrypt</action>
4817 </actions>
4818 </action>
4819
4820 <action>
4821 <conditions>
4822 <condition var1="tw_operation_state" var2="1"/>
4823 <condition var1="tw_operation_status" op="=" var2="0"/>
4824 </conditions>
4825 <actions>
4826 <action function="set">tw_page_done=1</action>
4827 <action function="page">main</action>
4828 </actions>
4829 </action>
4830 </page>
4831
z31s1g28f0a922015-11-07 18:50:22 +01004832 <page name="terminalcommand">
4833 <template name="page"/>
4834
z31s1g56189522016-01-13 19:12:40 +01004835 <fill color="%background_color%">
4836 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004837 </fill>
4838
z31s1g56189522016-01-13 19:12:40 +01004839 <terminal>
4840 <condition var1="tw_hide_kb" var2="0"/>
4841 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4842 </terminal>
4843
4844 <terminal>
4845 <condition var1="tw_hide_kb" var2="1"/>
4846 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4847 </terminal>
4848
4849 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004850
4851 <template name="keyboardtemplate"/>
4852
z31s1g608d7ff2016-01-18 19:47:25 +01004853 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004854 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004855 </fill>
z31s1g56189522016-01-13 19:12:40 +01004856
z31s1g608d7ff2016-01-18 19:47:25 +01004857 <button>
z31s1g56189522016-01-13 19:12:40 +01004858 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4859 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4860 <image resource="back" />
4861 <condition var1="tw_busy" var2="0" />
4862 <actions>
4863 <action function="set">tw_hide_kb=0</action>
4864 <action function="key">back</action>
4865 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004866 </button>
z31s1g56189522016-01-13 19:12:40 +01004867
z31s1g608d7ff2016-01-18 19:47:25 +01004868 <button>
z31s1g56189522016-01-13 19:12:40 +01004869 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4870 <condition var1="tw_hide_kb" op="=" var2="0" />
4871 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4872 <image resource="kb_hide" />
4873 <condition var1="tw_busy" var2="0" />
4874 <actions>
4875 <action function="set">tw_hide_kb=1</action>
4876 <action function="page">terminalcommand</action>
4877 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004878 </button>
z31s1g56189522016-01-13 19:12:40 +01004879
z31s1g608d7ff2016-01-18 19:47:25 +01004880 <button>
z31s1g56189522016-01-13 19:12:40 +01004881 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4882 <condition var1="tw_hide_kb" op="=" var2="1" />
4883 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4884 <image resource="kb_show" />
4885 <condition var1="tw_busy" var2="0" />
4886 <actions>
4887 <action function="set">tw_hide_kb=0</action>
4888 <action function="page">terminalcommand</action>
4889 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004890 </button>
z31s1g56189522016-01-13 19:12:40 +01004891
z31s1g608d7ff2016-01-18 19:47:25 +01004892 <button>
z31s1g56189522016-01-13 19:12:40 +01004893 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4894 <image resource="home" />
4895 <condition var1="tw_busy" var2="0" />
4896 <actions>
4897 <action function="set">tw_hide_kb=0</action>
4898 <action function="key">home</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004899 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004900 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004901 </button>
z31s1g56189522016-01-13 19:12:40 +01004902
z31s1g608d7ff2016-01-18 19:47:25 +01004903 <button>
z31s1g56189522016-01-13 19:12:40 +01004904 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4905 <condition var1="tw_hide_kb" op="=" var2="0" />
4906 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4907 <image resource="kb_hide" />
4908 <condition var1="tw_busy" var2="0" />
4909 <actions>
4910 <action function="set">tw_hide_kb=1</action>
4911 <action function="page">terminalcommand</action>
4912 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004913 </button>
z31s1g56189522016-01-13 19:12:40 +01004914
z31s1g608d7ff2016-01-18 19:47:25 +01004915 <button>
z31s1g56189522016-01-13 19:12:40 +01004916 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4917 <condition var1="tw_hide_kb" op="=" var2="1" />
4918 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4919 <image resource="kb_show" />
4920 <condition var1="tw_busy" var2="0" />
4921 <actions>
4922 <action function="set">tw_hide_kb=0</action>
4923 <action function="page">terminalcommand</action>
4924 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004925 </button>
z31s1g56189522016-01-13 19:12:40 +01004926
z31s1g608d7ff2016-01-18 19:47:25 +01004927 <button>
z31s1g56189522016-01-13 19:12:40 +01004928 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4929 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4930 <image resource="back" />
4931 <condition var1="tw_busy" var2="0" />
4932 <actions>
4933 <action function="set">tw_hide_kb=0</action>
4934 <action function="key">back</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004935 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004936 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004937 </button>
z31s1g56189522016-01-13 19:12:40 +01004938
z31s1g28f0a922015-11-07 18:50:22 +01004939 <action>
4940 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004941 <actions>
4942 <action function="set">tw_hide_kb=0</action>
4943 <action function="page">main</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004944 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004945 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004946 </action>
4947
4948 <action>
4949 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004950 <actions>
4951 <action function="set">tw_hide_kb=0</action>
4952 <action function="page">advanced</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004953 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004954 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004955 </action>
z31s1g56189522016-01-13 19:12:40 +01004956
z31s1g608d7ff2016-01-18 19:47:25 +01004957 <action>
z31s1g56189522016-01-13 19:12:40 +01004958 <touch key="power+voldown" />
4959 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004960 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004961 </page>
4962
4963 <page name="sideload">
4964 <template name="page"/>
4965
4966 <text style="text_l">
4967 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004968 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004969 </text>
4970
4971 <text style="text_m">
4972 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004973 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004974 </text>
4975
4976 <checkbox>
4977 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004978 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004979 <data variable="tw_wipe_dalvik"/>
4980 </checkbox>
4981
4982 <checkbox>
4983 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004984 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004985 <data variable="tw_wipe_cache"/>
4986 </checkbox>
4987
4988 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004989 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004990 <actions>
4991 <action function="set">tw_back=advanced</action>
4992 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004993 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4994 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4995 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004996 <action function="set">tw_has_cancel=1</action>
4997 <action function="set">tw_show_reboot=1</action>
4998 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4999 <action function="page">action_page</action>
5000 </actions>
5001 </slider>
5002
5003 <action>
5004 <touch key="home"/>
5005 <action function="page">main</action>
5006 </action>
5007
5008 <action>
5009 <touch key="back"/>
5010 <action function="page">advanced</action>
5011 </action>
5012 </page>
5013
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005014 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005015 <template name="page"/>
5016
5017 <text style="text_l">
5018 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005019 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005020 </text>
5021
5022 <text style="text_m">
5023 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005024 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005025 </text>
5026
5027 <text style="text_m_accent">
5028 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005029 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005030 </text>
5031
z31s1g28f0a922015-11-07 18:50:22 +01005032 <text style="text_m_fail">
5033 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005034 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005035 </text>
5036
5037 <text style="text_m_fail">
5038 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005039 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005040 </text>
5041
5042 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005043 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005044 <actions>
5045 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005046 <action function="set">tw_action=fixcontexts</action>
5047 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5048 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005049 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005050 <action function="set">tw_show_reboot=1</action>
5051 <action function="page">action_page</action>
5052 </actions>
5053 </slider>
5054
5055 <action>
5056 <touch key="home"/>
5057 <action function="page">main</action>
5058 </action>
5059
5060 <action>
5061 <touch key="back"/>
5062 <action function="page">advanced</action>
5063 </action>
5064 </page>
5065
z31s1g28f0a922015-11-07 18:50:22 +01005066 <page name="slideout">
5067 <fill color="%background_color%">
5068 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5069 </fill>
5070
5071 <console>
5072 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5073 </console>
5074
5075 <button>
5076 <fill color="%transparent%"/>
5077 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5078 <action function="overlay"/>
5079 </button>
5080
5081 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005082 <touch key="power"/>
5083 <action function="togglebacklight"/>
5084 </action>
5085
5086 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005087 <touch key="power+voldown"/>
5088 <action function="screenshot"/>
5089 </action>
5090 </page>
5091
5092 <page name="select_storage">
5093 <fill color="%semi_transparent%">
5094 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5095 </fill>
5096
5097 <fill color="%background_color%">
5098 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5099 </fill>
5100
5101 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005102 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005103 <data name="tw_storage_path"/>
5104 <listtype name="storage"/>
5105 </partitionlist>
5106
5107 <button style="button_third_width">
5108 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005109 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005110 <actions>
5111 <action function="set">tw_clear_destination=%tw_back%</action>
5112 <action function="overlay"/>
5113 <action function="page">clear_vars</action>
5114 </actions>
5115 </button>
5116
5117 <fill color="#000000">
5118 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5119 </fill>
5120
5121 <button>
5122 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5123 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5124 <image resource="back"/>
5125 <condition var1="tw_busy" var2="0"/>
5126 <actions>
5127 <action function="overlay"/>
5128 <action function="key">%tw_back%</action>
5129 </actions>
5130 </button>
5131
5132 <button>
5133 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5134 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5135 <image resource="console"/>
5136 <condition var1="tw_busy" var2="0"/>
5137 <action function="overlay">slideout</action>
5138 </button>
5139
5140 <button>
5141 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5142 <image resource="home"/>
5143 <condition var1="tw_busy" var2="0"/>
5144 <actions>
5145 <action function="overlay"/>
5146 <action function="key">home</action>
5147 </actions>
5148 </button>
5149
5150 <button>
5151 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5152 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5153 <image resource="console"/>
5154 <condition var1="tw_busy" var2="0"/>
5155 <action function="overlay">slideout</action>
5156 </button>
5157
5158 <button>
5159 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5160 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5161 <image resource="back"/>
5162 <condition var1="tw_busy" var2="0"/>
5163 <actions>
5164 <action function="overlay"/>
5165 <action function="key">%tw_back%</action>
5166 </actions>
5167 </button>
5168
5169 <action>
5170 <touch key="power+voldown"/>
5171 <action function="screenshot"/>
5172 </action>
5173 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005174
5175 <page name="select_language">
5176 <fill color="%semi_transparent%">
5177 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5178 </fill>
5179
5180 <fill color="%background_color%">
5181 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5182 </fill>
5183
5184 <listbox>
5185 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5186 <text>{@select_language=Select Language:}</text>
5187 <icon selected="radio_true" unselected="radio_false" />
5188 <data name="tw_language" />
5189 </listbox>
5190
5191 <button style="button_third_width">
5192 <placement x="%dialog_button_x%" y="%row14_y%"/>
5193 <text>{@ok_btn=OK}</text>
5194 <actions>
5195 <action function="overlay"/>
5196 <action function="setlanguage"></action>
5197 </actions>
5198 </button>
5199
5200 <fill color="#000000">
5201 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5202 </fill>
5203
5204 <button>
5205 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5206 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5207 <image resource="back"/>
5208 <condition var1="tw_busy" var2="0"/>
5209 <actions>
5210 <action function="overlay"/>
5211 <action function="key">%tw_back%</action>
5212 </actions>
5213 </button>
5214
5215 <button>
5216 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5217 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5218 <image resource="console"/>
5219 <condition var1="tw_busy" var2="0"/>
5220 <action function="overlay">slideout</action>
5221 </button>
5222
5223 <button>
5224 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5225 <image resource="home"/>
5226 <condition var1="tw_busy" var2="0"/>
5227 <actions>
5228 <action function="overlay"/>
5229 <action function="key">home</action>
5230 </actions>
5231 </button>
5232
5233 <button>
5234 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5235 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5236 <image resource="console"/>
5237 <condition var1="tw_busy" var2="0"/>
5238 <action function="overlay">slideout</action>
5239 </button>
5240
5241 <button>
5242 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5243 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5244 <image resource="back"/>
5245 <condition var1="tw_busy" var2="0"/>
5246 <actions>
5247 <action function="overlay"/>
5248 <action function="key">%tw_back%</action>
5249 </actions>
5250 </button>
5251
5252 <action>
5253 <touch key="power+voldown"/>
5254 <action function="screenshot"/>
5255 </action>
5256 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005257
5258 <page name="decrypt_users">
5259 <template name="page"/>
5260
5261 <text style="text_l">
5262 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5263 <text>{@decrypt_users=Decrypt Users}</text>
5264 </text>
5265
5266 <text style="text_m_accent">
5267 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5268 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5269 </text>
5270
5271 <listbox>
5272 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5273 <text>{@select_user=Select User}</text>
5274 <icon selected="radio_true" unselected="radio_false" />
5275 <data name="tw_crypto_user_id" />
5276 </listbox>
5277
5278 <button style="main_button_half_height">
5279 <placement x="%center_x%" y="%row21a_y%"/>
5280 <text>{@decrypt_users=Decrypt Users}</text>
5281 <action function="set">tw_crypto_password=</action>
5282 <action function="set">tw_password_fail=0</action>
5283 <action function="page">decrypt</action>
5284 </button>
5285
5286 <action>
5287 <touch key="home"/>
5288 <action function="page">main</action>
5289 </action>
5290
5291 <action>
5292 <touch key="back"/>
5293 <action function="page">advanced</action>
5294 </action>
5295 </page>
epicX98053c32021-01-04 13:01:31 +05305296
5297 <page name="changeTwrpFolder">
5298 <template name="page"/>
5299
5300 <text style="text_l">
5301 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5302 <text>{@advanced_hdr=Advanced}</text>
5303 </text>
5304
5305 <text style="text_m">
5306 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5307 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5308 </text>
5309
5310 <text style="text_m_accent">
5311 <placement x="%indent%" y="%row2_y%"/>
5312 <text>{@name=Name:}</text>
5313 </text>
5314
5315 <input>
5316 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5317 <text>%tw_custom_folder%</text>
5318 <data name="tw_custom_folder"/>
5319 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5320 <actions>
5321 <action function="set">tw_back=changeTwrpFolder</action>
5322 <action function="set">tw_action=applycustomtwrpfolder</action>
5323 <action function="set">tw_action_param=%tw_custom_folder%</action>
5324 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5325 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5326 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5327 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5328 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5329 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5330 <action function="set">tw_existpage=changeTwrpFolder</action>
5331 <action function="set">tw_notexistpage=confirm_action</action>
5332 <action function="page">filecheck</action>
5333 </actions>
5334 </input>
5335
5336 <fill color="%accent_color%">
5337 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5338 </fill>
5339
5340 <fill color="%text_fail_color%">
5341 <condition var1="tw_fileexists" var2="1"/>
5342 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5343 </fill>
5344
5345 <text style="text_m_fail">
5346 <condition var1="tw_fileexists" var2="1"/>
5347 <placement x="%indent%" y="%row4a_y%"/>
5348 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5349 </text>
5350
5351 <button style="main_button_half_height">
5352 <placement x="%indent%" y="%row10_y%"/>
5353 <text>{@cancel_btn=Cancel}</text>
5354 <actions>
5355 <action function="page">advanced</action>
5356 </actions>
5357 </button>
5358
5359 <button style="main_button_half_height">
5360 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5361 <placement x="%center_x%" y="%row10_y%"/>
5362 <text>{@restore_defaults_btn=Restore Defaults}</text>
5363 <actions>
5364 <action function="set">tw_back=changeTwrpFolder</action>
5365 <action function="set">tw_action=applycustomtwrpfolder</action>
5366 <action function="set">tw_action_param=TWRP</action>
5367 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5368 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5369 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5370 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5371 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5372 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5373 <action function="set">tw_existpage=changeTwrpFolder</action>
5374 <action function="set">tw_notexistpage=confirm_action</action>
5375 <action function="page">filecheck</action>
5376 </actions>
5377 </button>
5378
5379 <template name="keyboardtemplate"/>
5380
5381 <action>
5382 <touch key="home"/>
5383 <actions>
5384 <action function="page">main</action>
5385 </actions>
5386 </action>
5387
5388 <action>
5389 <touch key="back"/>
5390 <actions>
5391 <action function="page">advanced</action>
5392 </actions>
5393 </action>
5394 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005395 </pages>
5396</recovery>