blob: 80ee07d13d9c5c47dea8a4a0738c8e4ec5c9e9ec [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>
epicXb7337372021-02-24 23:12:08 +0530332 <actions>
333 <action function="set">tw_is_slot_part=0</action>
334 <action function="page">flashimage_confirm</action>
335 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100336 </action>
337
338 <action>
339 <touch key="back"/>
340 <action function="page">main</action>
341 </action>
342
343 <action>
344 <touch key="home"/>
345 <action function="page">main</action>
346 </action>
347 </page>
348
349 <page name="flash_confirm">
350 <template name="page"/>
351
352 <text style="text_l">
353 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500354 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100355 </text>
356
357 <text style="text_m">
358 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500359 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100360 </text>
361
362 <text style="text_m_accent">
363 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500364 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100365 </text>
366
367 <text style="text_m_accent">
368 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500369 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100370 </text>
371
372 <text style="text_m">
373 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500374 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100375 </text>
376
377 <text style="text_m_accent">
378 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500379 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100380 </text>
381
382 <text style="text_m">
383 <placement x="%indent%" y="%row8_y%"/>
384 <text>%tw_zip_location%</text>
385 </text>
386
387 <text style="text_m_accent">
388 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500389 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100390 </text>
391
392 <text style="text_m">
393 <placement x="%indent%" y="%row10a_y%"/>
394 <text>%tw_file%</text>
395 </text>
396
397 <checkbox>
398 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500399 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100400 <data variable="tw_signed_zip_verify"/>
401 </checkbox>
402
403 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600404 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500405 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600406 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500407 </checkbox>
408
409 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500410 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300411 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500412 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100413 <data variable="tw_inject_after_zip"/>
414 </checkbox>
415
416 <button style="main_button_half_height">
417 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500418 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100419 <action function="page">install</action>
420 </button>
421
422 <button style="main_button_half_height">
423 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500424 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100425 <actions>
426 <action function="queueclear"/>
427 <action function="page">install</action>
428 </actions>
429 </button>
430
431 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500432 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100433 <action function="flash">flash_zip</action>
434 </slider>
435
436 <action>
437 <touch key="back"/>
438 <actions>
439 <action function="cancelzip"/>
440 <action function="page">install</action>
441 </actions>
442 </action>
443
444 <action>
445 <touch key="home"/>
446 <action function="page">main</action>
447 </action>
448 </page>
449
450 <page name="flash_zip">
451 <template name="page"/>
452
453 <text style="text_l">
454 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500455 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100456 </text>
457
458 <text style="text_m">
459 <placement x="%col1_x_header%" y="%row4_header_y%"/>
460 <text>%tw_file%</text>
461 </text>
462
463 <template name="console"/>
464
465 <template name="progress_bar"/>
466
467 <action>
468 <condition var1="tw_operation_state" var2="1"/>
469 <action function="page">flash_done</action>
470 </action>
471 </page>
472
473 <page name="flash_done">
474 <template name="page"/>
475
476 <text style="text_l">
477 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500478 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100479 </text>
480
481 <text style="text_m_fail">
482 <condition var1="tw_operation_status" op="!=" var2="0"/>
483 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500484 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100485 </text>
486
487 <text style="text_m">
488 <condition var1="tw_operation_status" var2="0"/>
489 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500490 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100491 </text>
492
493 <template name="console"/>
494
495 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500496 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100497 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500498 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100499 <actions>
500 <action function="set">tw_back=flash_done</action>
501 <action function="set">tw_action=wipe</action>
502 <action function="set">tw_action_param=/cache</action>
503 <action function="set">tw_has_action2=1</action>
504 <action function="set">tw_action2=wipe</action>
505 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500506 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
507 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
508 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
509 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100510 <action function="page">confirm_action</action>
511 </actions>
512 </button>
513
514 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500515 <condition var1="tw_ab_device" var2="1"/>
516 <placement x="%indent%" y="%row21a_y%"/>
517 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
518 <actions>
519 <action function="set">tw_back=flash_done</action>
520 <action function="set">tw_action=wipe</action>
521 <action function="set">tw_action_param=dalvik</action>
522 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
523 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
524 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
525 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
526 <action function="page">confirm_action</action>
527 </actions>
528 </button>
529
530 <button style="main_button_half_height">
Chaosmaster90df3de2020-02-07 20:33:43 +0100531 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100532 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500533 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100534 <actions>
535 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500536 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100537 </actions>
538 </button>
539
Chaosmaster90df3de2020-02-07 20:33:43 +0100540 <button style="main_button_half_height">
541 <condition var1="tw_ab_device" var2="1"/>
542 <placement x="%center_x%" y="%row21a_y%"/>
543 <text>{@reboot_btn=Reboot}</text>
544 <actions>
545 <action function="set">tw_back=main2</action>
546 <action function="page">reboot</action>
547 </actions>
548 </button>
549
z31s1g28f0a922015-11-07 18:50:22 +0100550 <action>
551 <touch key="back"/>
552 <actions>
553 <action function="set">tw_clear_destination=install</action>
554 <action function="page">clear_vars</action>
555 </actions>
556 </action>
557
558 <action>
559 <touch key="home"/>
560 <actions>
561 <action function="set">tw_clear_destination=main2</action>
562 <action function="page">clear_vars</action>
563 </actions>
564 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500565
566 <action>
567 <conditions>
568 <condition var1="tw_install_reboot" var2="1"/>
569 <condition var1="tw_operation_status" var2="0"/>
570 <condition var1="tw_reboot_system" var2="1"/>
571 </conditions>
572 <actions>
573 <action function="set">tw_sleep=%tw_sleep_total%</action>
574 <action function="page">flash_sleep_and_reboot</action>
575 </actions>
576 </action>
577 </page>
578
579 <page name="flash_sleep_and_reboot">
580 <template name="page"/>
581
582 <text style="text_l">
583 <placement x="%col1_x_header%" y="%row3_header_y%"/>
584 <text>{@install_zip_hdr=Install Zip}</text>
585 </text>
586
587 <text style="text_m">
588 <placement x="%col1_x_header%" y="%row4_header_y%"/>
589 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
590 </text>
591
592 <template name="console"/>
593
594 <template name="progress_bar"/>
595
596 <button style="main_button_half_height">
597 <condition var1="tw_sleep" op="&gt;" var2="0"/>
598 <placement x="%center_x%" y="%row21a_y%"/>
599 <text>{@cancel_btn=Cancel}</text>
600 <actions>
601 <action function="set">tw_install_reboot=0</action>
602 <action function="page">flash_done</action>
603 </actions>
604 </button>
605
606 <action>
607 <conditions>
608 <condition var1="tw_sleep" var2="tw_sleep_total"/>
609 <condition var1="tw_install_reboot" var2="1"/>
610 </conditions>
611 <action function="sleepcounter">%tw_sleep_total%</action>
612 </action>
613
614 <action>
615 <conditions>
616 <condition var1="tw_sleep" var2="0"/>
617 <condition var1="tw_install_reboot" var2="1"/>
618 </conditions>
619 <actions>
620 <action function="sleep">50000</action>
621 <action function="set">tw_back=main2</action>
622 <action function="page">reboot_system_routine</action>
623 </actions>
624 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100625 </page>
626
627 <page name="flashimage_confirm">
628 <template name="page"/>
629
630 <text style="text_l">
631 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500632 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100633 </text>
634
635 <text style="text_m">
636 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500637 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100638 </text>
639
640 <text style="text_m_accent">
641 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500642 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100643 </text>
644
645 <text style="text_m">
646 <placement x="%indent%" y="%row3_y%"/>
647 <text>%tw_zip_location%</text>
648 </text>
649
650 <text style="text_m_accent">
651 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500652 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100653 </text>
654
655 <text style="text_m">
656 <placement x="%indent%" y="%row5a_y%"/>
657 <text>%tw_file%</text>
658 </text>
659
660 <partitionlist>
661 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
662 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500663 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100664 <data name="tw_flash_partition"/>
665 <listtype name="flashimg"/>
666 </partitionlist>
667
epicXb7337372021-02-24 23:12:08 +0530668 <button style="checkbox">
669 <conditions>
670 <condition var1="tw_is_slot_part" op="=" var2="1"/>
671 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
672 <condition var1="tw_has_boot_slots" var2="1"/>
673 </conditions>
674 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
675 <text>{@flash_ab_both_slots=Flash to both slots}</text>
676 <image resource="checkbox_false"/>
677 <action function="set">tw_flash_both_slots=1</action>
678 </button>
679
680 <button style="checkbox">
681 <conditions>
682 <condition var1="tw_is_slot_part" op="=" var2="1"/>
683 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
684 <condition var1="tw_has_boot_slots" var2="1"/>
685 </conditions>
686 <placement x="%indent%" y="%row19a_y%" textplacement="6"/>
687 <text>{@flash_ab_both_slots=Flash to both slots}</text>
688 <image resource="checkbox_true"/>
689 <action function="set">tw_flash_both_slots=0</action>
690 </button>
691
z31s1g28f0a922015-11-07 18:50:22 +0100692 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500693 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100694 <actions>
695 <action function="set">tw_back=flashimage_confirm</action>
696 <action function="set">tw_action=flashimage</action>
697 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500698 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100699 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500700 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100701 <action function="page">action_page</action>
702 </actions>
703 <action function="flashimage"/>
704 </slider>
705
706 <action>
707 <touch key="back"/>
708 <actions>
709 <action function="set">tw_clear_destination=install</action>
710 <action function="page">clear_vars</action>
711 </actions>
712 </action>
713
714 <action>
715 <touch key="home"/>
716 <actions>
717 <action function="set">tw_clear_destination=main2</action>
718 <action function="page">clear_vars</action>
719 </actions>
720 </action>
721 </page>
722
723 <page name="clear_vars">
724 <action>
725 <action function="set">tw_operation_state=0</action>
726 <action function="set">tw_text1=</action>
727 <action function="set">tw_text2=</action>
728 <action function="set">tw_text3=</action>
729 <action function="set">tw_text4=</action>
730 <action function="set">tw_action_text1=</action>
731 <action function="set">tw_action_text2=</action>
732 <action function="set">tw_action_param=</action>
733 <action function="set">tw_has_action2=0</action>
734 <action function="set">tw_action2=</action>
735 <action function="set">tw_action2_param=</action>
736 <action function="set">tw_has_cancel=0</action>
737 <action function="set">tw_cancel_action=</action>
738 <action function="set">tw_cancel_param=</action>
739 <action function="set">tw_show_exclamation=0</action>
740 <action function="set">tw_show_reboot=0</action>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400741 <action function="set">tw_crypto_user_id=</action>
Noah Jacobson3ad80f42020-07-21 01:28:22 -0400742 <action function="set">tw_multiuser_warning_accepted=</action>
743 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100744 <action function="page">%tw_clear_destination%</action>
745 </action>
746 </page>
747
Matt Mower908dd252016-05-25 02:26:50 -0500748 <page name="reboot_system_routine">
749 <action>
750 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500751 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500752 <action function="set">tw_has_action2=0</action>
753 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
754 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
755 <action function="set">tw_text3=</action>
756 <action function="set">tw_text4=</action>
757 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
758 <action function="set">tw_action_text2=</action>
759 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
760 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
761 <action function="page">rebootcheck</action>
762 </action>
763 </page>
764
z31s1g28f0a922015-11-07 18:50:22 +0100765 <page name="confirm_action">
766 <template name="page"/>
767
768 <text style="text_l">
769 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500770 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100771 </text>
772
773 <text style="text_m">
774 <placement x="%col1_x_header%" y="%row4_header_y%"/>
775 <text/>
776 </text>
777
778 <text style="text_m_accent">
779 <placement x="%center_x%" y="%row2_y%" placement="5"/>
780 <text>%tw_text1%</text>
781 </text>
782
783 <text style="text_m_accent">
784 <placement x="%center_x%" y="%row3_y%" placement="5"/>
785 <text>%tw_text2%</text>
786 </text>
787
788 <text style="text_m">
789 <placement x="%center_x%" y="%row4_y%" placement="5"/>
790 <text>%tw_text3%</text>
791 </text>
792
793 <text style="text_m">
794 <placement x="%center_x%" y="%row5_y%" placement="5"/>
795 <text>%tw_text4%</text>
796 </text>
797
798 <text style="text_m">
799 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500800 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100801 </text>
802
803 <slider>
804 <text>%tw_slider_text%</text>
805 <action function="page">action_page</action>
806 </slider>
807
808 <action>
809 <touch key="back"/>
810 <actions>
811 <action function="set">tw_clear_destination=%tw_back%</action>
812 <action function="page">clear_vars</action>
813 </actions>
814 </action>
815
816 <action>
817 <touch key="home"/>
818 <action function="page">main</action>
819 </action>
820 </page>
821
822 <page name="action_page">
823 <template name="page"/>
824
825 <text style="text_l">
826 <placement x="%col1_x_header%" y="%row3_header_y%"/>
827 <text>%tw_action_text1%</text>
828 </text>
829
830 <text style="text_m">
831 <placement x="%col1_x_header%" y="%row4_header_y%"/>
832 <text>%tw_action_text2%</text>
833 </text>
834
835 <template name="console"/>
836
837 <template name="progress_bar"/>
838
839 <button style="main_button_half_height">
840 <condition var1="tw_has_cancel" var2="1"/>
841 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500842 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100843 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
844 </button>
845
846 <action>
847 <condition var1="tw_operation_state" var2="1"/>
848 <actions>
849 <action function="page">action_complete</action>
850 </actions>
851 </action>
852
853 <action>
854 <condition var1="tw_has_action2" var2="0"/>
855 <actions>
856 <action function="%tw_action%">%tw_action_param%</action>
857 </actions>
858 </action>
859
860 <action>
861 <condition var1="tw_has_action2" var2="1"/>
862 <actions>
863 <action function="%tw_action%">%tw_action_param%</action>
864 <action function="%tw_action2%">%tw_action2_param%</action>
865 </actions>
866 </action>
867 </page>
868
869 <page name="singleaction_page">
870 <template name="page"/>
871
872 <text style="text_l">
873 <placement x="%col1_x_header%" y="%row3_header_y%"/>
874 <text>%tw_action_text1%</text>
875 </text>
876
877 <text style="text_m">
878 <placement x="%col1_x_header%" y="%row4_header_y%"/>
879 <text>%tw_action_text2%</text>
880 </text>
881
882 <template name="console"/>
883
884 <template name="progress_bar"/>
885
886 <action>
887 <condition var1="tw_operation_state" var2="1"/>
888 <actions>
889 <action function="set">tw_page_done=1</action>
890 </actions>
891 </action>
892
893 <action>
894 <condition var1="tw_has_action2" var2="0"/>
895 <actions>
896 <action function="%tw_action%">%tw_action_param%</action>
897 </actions>
898 </action>
899
900 <action>
901 <condition var1="tw_has_action2" var2="1"/>
902 <actions>
903 <action function="%tw_action%">%tw_action_param%</action>
904 <action function="%tw_action2%">%tw_action2_param%</action>
905 </actions>
906 </action>
907 </page>
908
909 <page name="action_complete">
910 <template name="page"/>
911
912 <text style="text_l">
913 <placement x="%col1_x_header%" y="%row3_header_y%"/>
914 <text>%tw_complete_text1%</text>
915 </text>
916
917 <text style="text_m_fail">
918 <condition var1="tw_operation_status" op="!=" var2="0"/>
919 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500920 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100921 </text>
922
923 <text style="text_m">
924 <condition var1="tw_operation_status" var2="0"/>
925 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500926 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100927 </text>
928
929 <template name="console"/>
930
931 <button style="main_button_half_height">
932 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500933 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100934 <actions>
935 <action function="set">tw_clear_destination=%tw_back%</action>
936 <action function="page">clear_vars</action>
937 </actions>
938 </button>
939
940 <button style="main_button_half_height">
941 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500942 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100943 <actions>
944 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500945 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100946 </actions>
947 </button>
948
949 <action>
950 <touch key="home"/>
951 <actions>
952 <action function="set">tw_clear_destination=main2</action>
953 <action function="page">clear_vars</action>
954 </actions>
955 </action>
956
957 <action>
958 <touch key="back"/>
959 <actions>
960 <action function="set">tw_clear_destination=%tw_back%</action>
961 <action function="page">clear_vars</action>
962 </actions>
963 </action>
964 </page>
965
966 <page name="filecheck">
967 <action>
968 <action function="fileexists">%tw_filecheck%</action>
969 </action>
970
971 <action>
972 <conditions>
973 <condition var1="tw_operation_state" var2="1"/>
974 <condition var1="tw_operation_status" var2="0"/>
975 </conditions>
976 <actions>
977 <action function="set">tw_fileexists=1</action>
978 <action function="page">%tw_existpage%</action>
979 </actions>
980 </action>
981
982 <action>
983 <conditions>
984 <condition var1="tw_operation_state" var2="1"/>
985 <condition var1="tw_operation_status" var2="1"/>
986 </conditions>
987 <actions>
988 <action function="set">tw_fileexists=0</action>
989 <action function="page">%tw_notexistpage%</action>
990 </actions>
991 </action>
992 </page>
993
994 <page name="rebootcheck">
995 <action>
996 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -0600997 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +0100998 </action>
999
1000 <action>
1001 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1002 <action function="page">confirm_action</action>
1003 </action>
1004 </page>
1005
1006 <page name="wipe">
1007 <template name="page"/>
1008
1009 <text style="text_l">
1010 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001011 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001012 </text>
1013
1014 <text style="text_m">
1015 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001016 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001017 </text>
1018
1019 <text style="text_m_accent">
1020 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001021 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001022 </text>
1023
1024 <text style="text_m_accent">
z31s1g28f0a922015-11-07 18:50:22 +01001025 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04001026 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1027 </text>
1028
1029 <text style="text_m_accent">
1030 <condition var1="tw_has_data_media" var2="1"/>
1031 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001032 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001033 </text>
1034
1035 <text style="text_m_accent">
1036 <conditions>
1037 <condition var1="tw_has_android_secure" var2="1"/>
1038 <condition var1="fileexists" var2="/and-sec"/>
1039 </conditions>
1040 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001041 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001042 </text>
1043
1044 <text style="text_m_accent">
1045 <condition var1="tw_has_sdext_partition" var2="1"/>
1046 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001047 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001048 </text>
1049
1050 <text style="text_m">
1051 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001052 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001053 </text>
1054
1055 <text style="text_m">
1056 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001057 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001058 </text>
1059
1060 <text style="text_m">
1061 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001062 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001063 </text>
1064
1065 <button style="main_button_half_height">
1066 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001067 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001068 <actions>
1069 <action function="set">partitionlisterror=0</action>
1070 <action function="page">advancedwipe</action>
1071 </actions>
1072 </button>
1073
1074 <button style="main_button_half_height">
1075 <condition var1="tw_has_data_media" var2="1"/>
1076 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001077 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001078 <action function="page">formatdata</action>
1079 </button>
1080
1081 <button style="main_button_half_height">
1082 <conditions>
1083 <condition var1="tw_is_encrypted" var2="1"/>
1084 <condition var1="tw_has_data_media" var2="0"/>
1085 </conditions>
1086 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001087 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001088 <actions>
1089 <action function="set">tw_back=wipe</action>
1090 <action function="set">tw_action=wipe</action>
1091 <action function="set">tw_action_param=DATAMEDIA</action>
1092 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001093 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001094 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001095 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1096 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1097 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001098 <action function="page">confirm_action</action>
1099 </actions>
1100 </button>
1101
1102 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001103 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001104 <actions>
1105 <action function="set">tw_back=wipe</action>
1106 <action function="set">tw_action=wipe</action>
1107 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001108 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1109 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001110 <action function="page">action_page</action>
1111 </actions>
1112 </slider>
1113
1114 <action>
1115 <touch key="back"/>
1116 <action function="page">main</action>
1117 </action>
1118
1119 <action>
1120 <touch key="home"/>
1121 <action function="page">main</action>
1122 </action>
1123 </page>
1124
1125 <page name="advancedwipe">
1126 <template name="page"/>
1127
1128 <action>
1129 <action function="set">tw_wipe_list=</action>
1130 </action>
1131
1132 <text style="text_l">
1133 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001134 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001135 </text>
1136
1137 <text style="text_m">
1138 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001139 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001140 </text>
1141
1142 <partitionlist>
1143 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001144 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001145 <data name="tw_wipe_list"/>
1146 <listtype name="wipe"/>
1147 </partitionlist>
1148
1149 <text style="text_m_fail">
1150 <condition var1="partitionlisterror" var2="1"/>
1151 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001152 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001153 </text>
1154
1155 <button style="main_button_half_height_full_width">
1156 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001157 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001158 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001159 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001160 <action function="page">checkpartitionlist</action>
1161 </actions>
1162 </button>
1163
1164 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001165 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001166 <actions>
1167 <action function="set">tw_back=advancedwipe</action>
1168 <action function="set">tw_action=wipe</action>
1169 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001170 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1171 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1172 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001173 <action function="page">action_page</action>
1174 </actions>
1175 </slider>
1176
1177 <action>
1178 <touch key="home"/>
1179 <action function="page">main</action>
1180 </action>
1181
1182 <action>
1183 <touch key="back"/>
1184 <action function="page">wipe</action>
1185 </action>
1186 </page>
1187
1188 <page name="formatdata">
1189 <template name="page"/>
1190
1191 <text style="text_l">
1192 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001193 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001194 </text>
1195
1196 <text style="text_m">
1197 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001198 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001199 </text>
1200
1201 <text style="text_m_fail">
1202 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001203 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001204 </text>
1205
1206 <text style="text_m_fail">
1207 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001208 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001209 </text>
1210
1211 <text style="text_m_fail">
1212 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001213 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001214 </text>
1215
Ethan Yonker66a19492015-12-10 10:19:45 -06001216 <text style="text_m_fail">
1217 <condition var1="tw_has_adopted_storage" var2="1"/>
1218 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1219 <text>{@format_data_adopted=Including Adopted Storage}</text>
1220 </text>
1221
z31s1g28f0a922015-11-07 18:50:22 +01001222 <text style="text_m">
1223 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001224 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001225 </text>
1226
1227 <text style="text_m">
1228 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001229 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001230 </text>
1231
1232 <input>
1233 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1234 <text>%tw_confirm_formatdata%</text>
1235 <data name="tw_confirm_formatdata"/>
1236 <restrict minlen="3" maxlen="3" allow="yes"/>
1237 <action function="page">formatdata_confirm</action>
1238 </input>
1239
1240 <fill color="%accent_color%">
1241 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1242 </fill>
1243
1244 <template name="keyboardtemplate"/>
1245
1246 <action>
1247 <touch key="home"/>
1248 <action function="page">main</action>
1249 </action>
1250
1251 <action>
1252 <touch key="back"/>
1253 <action function="page">wipe</action>
1254 </action>
1255 </page>
1256
1257 <page name="formatdata_confirm">
1258 <action>
1259 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1260 <actions>
1261 <action function="set">tw_back=formatdata</action>
1262 <action function="set">tw_action=wipe</action>
1263 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001264 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1265 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001266 <action function="page">action_page</action>
1267 </actions>
1268 </action>
1269
1270 <action>
1271 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1272 <action function="page">formatdata</action>
1273 </action>
1274 </page>
1275
1276 <page name="checkpartitionlist">
1277 <action>
1278 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1279 <actions>
1280 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001281 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001282 <action function="page">partitionoptions</action>
1283 </actions>
1284 </action>
1285
1286 <action>
1287 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1288 <actions>
1289 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001290 <action function="page">advancedwipe</action>
1291 </actions>
1292 </action>
1293 </page>
1294
1295 <page name="partitionoptions">
1296 <template name="page"/>
1297
1298 <text style="text_l">
1299 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001300 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001301 </text>
1302
1303 <text style="text_m">
1304 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001305 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001306 </text>
1307
1308 <text style="text_m_accent">
1309 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001310 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001311 </text>
1312
1313 <text style="text_m_accent">
1314 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001315 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001316 </text>
1317
1318 <text style="text_m">
1319 <condition var1="tw_partition_is_present" var2="1"/>
1320 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001322 </text>
1323
1324 <text style="text_m">
1325 <condition var1="tw_partition_is_present" var2="0"/>
1326 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <text style="text_m">
1331 <condition var1="tw_partition_removable" var2="1"/>
1332 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001333 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001334 </text>
1335
1336 <text style="text_m">
1337 <condition var1="tw_partition_removable" var2="0"/>
1338 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001339 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001340 </text>
1341
1342 <text style="text_m">
1343 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001344 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001345 </text>
1346
1347 <text style="text_m">
1348 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001349 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001350 </text>
1351
1352 <text style="text_m">
1353 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001354 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001355 </text>
1356
1357 <text style="text_m">
1358 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001359 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001360 </text>
1361
1362 <button style="main_button_half_height">
1363 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1364 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001365 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001366 <actions>
1367 <action function="set">tw_back=partitionoptions</action>
1368 <action function="set">tw_action=resize</action>
1369 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1370 <action function="set">tw_has_action2=1</action>
1371 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001372 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001373 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001374 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1376 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1377 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001378 <action function="page">confirm_action</action>
1379 </actions>
1380 </button>
1381
1382 <button style="main_button_half_height">
1383 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1384 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001385 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001386 <actions>
1387 <action function="set">tw_back=partitionoptions</action>
1388 <action function="set">tw_action=repair</action>
1389 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1390 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001391 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001392 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001393 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1394 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1395 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001396 <action function="page">confirm_action</action>
1397 </actions>
1398 </button>
1399
1400 <button style="main_button_half_height">
1401 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001402 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001403 <action function="page">selectfilesystem</action>
1404 </button>
1405
1406 <action>
1407 <touch key="home"/>
1408 <action function="page">main</action>
1409 </action>
1410
1411 <action>
1412 <touch key="back"/>
1413 <action function="page">advancedwipe</action>
1414 </action>
1415 </page>
1416
1417 <page name="refreshfilesystem">
1418 <action>
1419 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1420 <actions>
1421 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001422 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001423 <action function="page">selectfilesystem</action>
1424 </actions>
1425 </action>
1426
1427 <action>
1428 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1429 <actions>
1430 <action function="set">partitionlisterror=1</action>
1431 <action function="set">tw_wipe_list=</action>
1432 <action function="page">advancedwipe</action>
1433 </actions>
1434 </action>
1435 </page>
1436
1437 <page name="selectfilesystem">
1438 <template name="page"/>
1439
1440 <text style="text_l">
1441 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001442 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001443 </text>
1444
1445 <text style="text_m">
1446 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001447 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001448 </text>
1449
1450 <text style="text_m_accent">
1451 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001452 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001453 </text>
1454
1455 <text style="text_m_accent">
1456 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001457 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001458 </text>
1459
1460 <text style="text_m_fail">
1461 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001462 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001463 </text>
1464
1465 <text style="text_m_fail">
1466 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001467 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001468 </text>
1469
1470 <button style="main_button_half_height">
1471 <condition var1="tw_partition_ext" op="=" var2="1"/>
1472 <placement x="%indent%" y="%row15a_y%"/>
1473 <text>EXT2</text>
1474 <actions>
1475 <action function="set">tw_back=refreshfilesystem</action>
1476 <action function="set">tw_action=changefilesystem</action>
1477 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1478 <action function="set">tw_action_new_file_system=ext2</action>
1479 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001480 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1481 <action function="set">tw_text2=EXT2</action>
1482 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1483 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1484 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001485 <action function="page">confirm_action</action>
1486 </actions>
1487 </button>
1488
1489 <button style="main_button_half_height">
1490 <condition var1="tw_partition_ext" op="=" var2="1"/>
1491 <placement x="%indent%" y="%row18a_y%"/>
1492 <text>EXT3</text>
1493 <actions>
1494 <action function="set">tw_back=refreshfilesystem</action>
1495 <action function="set">tw_action=changefilesystem</action>
1496 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1497 <action function="set">tw_action_new_file_system=ext3</action>
1498 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001499 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1500 <action function="set">tw_text2=EXT3</action>
1501 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1502 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1503 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001504 <action function="page">confirm_action</action>
1505 </actions>
1506 </button>
1507
1508 <button style="main_button_half_height">
1509 <condition var1="tw_partition_ext" op="=" var2="1"/>
1510 <placement x="%indent%" y="%row21a_y%"/>
1511 <text>EXT4</text>
1512 <actions>
1513 <action function="set">tw_back=refreshfilesystem</action>
1514 <action function="set">tw_action=changefilesystem</action>
1515 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1516 <action function="set">tw_action_new_file_system=ext4</action>
1517 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001518 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1519 <action function="set">tw_text2=EXT4</action>
1520 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1521 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1522 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001523 <action function="page">confirm_action</action>
1524 </actions>
1525 </button>
1526
1527 <button style="main_button_half_height">
1528 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1529 <placement x="%center_x%" y="%row15a_y%"/>
1530 <text>FAT</text>
1531 <actions>
1532 <action function="set">tw_back=refreshfilesystem</action>
1533 <action function="set">tw_action=changefilesystem</action>
1534 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1535 <action function="set">tw_action_new_file_system=vfat</action>
1536 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001537 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1538 <action function="set">tw_text2=FAT</action>
1539 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1540 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1541 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001542 <action function="page">confirm_action</action>
1543 </actions>
1544 </button>
1545
1546 <button style="main_button_half_height">
1547 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1548 <placement x="%center_x%" y="%row18a_y%"/>
1549 <text>exFAT</text>
1550 <actions>
1551 <action function="set">tw_back=refreshfilesystem</action>
1552 <action function="set">tw_action=changefilesystem</action>
1553 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1554 <action function="set">tw_action_new_file_system=exfat</action>
1555 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001556 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1557 <action function="set">tw_text2=exFAT</action>
1558 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1559 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1560 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001561 <action function="page">confirm_action</action>
1562 </actions>
1563 </button>
1564
1565 <button style="main_button_half_height">
1566 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1567 <placement x="%center_x%" y="%row21a_y%"/>
1568 <text>F2FS</text>
1569 <actions>
1570 <action function="set">tw_back=refreshfilesystem</action>
1571 <action function="set">tw_action=changefilesystem</action>
1572 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1573 <action function="set">tw_action_new_file_system=f2fs</action>
1574 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001575 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1576 <action function="set">tw_text2=F2FS</action>
1577 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1578 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1579 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001580 <action function="page">confirm_action</action>
1581 </actions>
1582 </button>
1583
1584 <action>
1585 <touch key="home"/>
1586 <action function="page">main</action>
1587 </action>
1588
1589 <action>
1590 <touch key="back"/>
1591 <action function="page">partitionoptions</action>
1592 </action>
1593 </page>
1594
1595 <page name="backup">
1596 <template name="page"/>
1597
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001598 <action>
1599 <conditions>
1600 <condition var1="tw_is_fbe" var2="1"/>
1601 <condition var1="tw_all_users_decrypted" var2="0"/>
1602 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1603 </conditions>
1604 <actions>
1605 <action function="set">tw_multiuser_warning_destination=backup</action>
1606 <action function="page">multiuser_warning</action>
1607 </actions>
1608 </action>
1609
z31s1g28f0a922015-11-07 18:50:22 +01001610 <text style="text_l">
1611 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001612 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001613 </text>
1614
1615 <text style="text_m">
1616 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001617 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001618 </text>
1619
1620 <template name="tabs_backup"/>
1621
1622 <fill color="%text_color%">
1623 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1624 </fill>
1625
1626 <button style="tab">
1627 <conditions>
1628 <condition var1="tw_include_encrypted_backup" var2="1"/>
1629 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001630 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001631 </conditions>
1632 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001633 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001634 <font resource="font_s" color="%text_color%"/>
1635 <actions>
1636 <action function="set">tw_password_not_match=0</action>
1637 <action function="page">backupencryption</action>
1638 </actions>
1639 </button>
1640
1641 <button style="tab">
1642 <conditions>
1643 <condition var1="tw_include_encrypted_backup" var2="1"/>
1644 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001645 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001646 </conditions>
1647 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001648 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001649 <font resource="font_s" color="%text_success_color%"/>
1650 <actions>
1651 <action function="set">tw_password_not_match=0</action>
1652 <action function="page">backupencryption</action>
1653 </actions>
1654 </button>
1655
1656 <text style="text_m_accent">
1657 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001658 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001659 </text>
1660
1661 <text style="text_m">
1662 <placement x="%indent%" y="%row4a_y%"/>
1663 <text>%tw_backup_name%</text>
1664 </text>
1665
1666 <fill color="%fileselector_linecolor%">
1667 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1668 </fill>
1669
1670 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001671 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001672 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1673 <fill color="%transparent%"/>
1674 <actions>
1675 <action function="set">tw_fileexists=0</action>
1676 <action function="page">backupname1</action>
1677 </actions>
1678 </button>
1679
1680 <partitionlist>
1681 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001682 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001683 <data name="tw_backup_list"/>
1684 <listtype name="backup"/>
1685 </partitionlist>
1686
1687 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001688 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001689 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001690 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001691 <actions>
1692 <action function="set">tw_back=backup</action>
1693 <action function="overlay">select_storage</action>
1694 </actions>
1695 </button>
1696
1697 <button style="main_button_half_height">
1698 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001699 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001700 <actions>
1701 <action function="refreshsizes"/>
1702 <action function="page">backup</action>
1703 </actions>
1704 </button>
1705
1706 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001707 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001708 <action function="page">backup_run</action>
1709 </slider>
1710
1711 <action>
1712 <touch key="home"/>
1713 <action function="page">main</action>
1714 </action>
1715
1716 <action>
1717 <touch key="back"/>
1718 <action function="page">main</action>
1719 </action>
1720 </page>
1721
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001722 <page name="multiuser_warning">
1723 <template name="page"/>
1724
1725 <text style="text_l">
1726 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1727 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1728 </text>
1729
1730 <text style="text_m_fail">
1731 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1732 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1733 </text>
1734
1735 <text style="text_m_fail">
1736 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1737 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1738 </text>
1739
1740 <button style="main_button_half_height_full_width">
1741 <placement x="%indent%" y="%row18a_y%"/>
1742 <text>{@decrypt_users=Decrypt Users}</text>
1743 <action function="page">decrypt_users</action>
1744 </button>
1745
1746 <slider>>
1747 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1748 <actions>
1749 <action function="set">tw_multiuser_warning_accepted=1</action>
1750 <action function="page">%tw_multiuser_warning_destination%</action>
1751 </actions>
1752 </slider>
1753
1754 <action>
1755 <touch key="home"/>
1756 <action function="page">main</action>
1757 </action>
1758
1759 <action>
1760 <touch key="back"/>
1761 <action function="page">main</action>
1762 </action>
1763 </page>
1764
z31s1g28f0a922015-11-07 18:50:22 +01001765 <page name="backup_options">
1766 <template name="page"/>
1767
1768 <text style="text_l">
1769 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001770 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001771 </text>
1772
1773 <text style="text_m">
1774 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001775 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001776 </text>
1777
1778 <template name="tabs_backup"/>
1779
1780 <fill color="%text_color%">
1781 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1782 </fill>
1783
1784 <button style="tab">
1785 <conditions>
1786 <condition var1="tw_include_encrypted_backup" var2="1"/>
1787 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001788 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001789 </conditions>
1790 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001791 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001792 <font resource="font_s" color="%text_color%"/>
1793 <actions>
1794 <action function="set">tw_password_not_match=0</action>
1795 <action function="page">backupencryption</action>
1796 </actions>
1797 </button>
1798
1799 <button style="tab">
1800 <conditions>
1801 <condition var1="tw_include_encrypted_backup" var2="1"/>
1802 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001803 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001804 </conditions>
1805 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001806 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001807 <font resource="font_s" color="%text_success_color%"/>
1808 <actions>
1809 <action function="set">tw_password_not_match=0</action>
1810 <action function="page">backupencryption</action>
1811 </actions>
1812 </button>
1813
1814 <checkbox>
1815 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001816 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001817 <data variable="tw_use_compression"/>
1818 </checkbox>
1819
1820 <checkbox>
1821 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001822 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1823 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001824 </checkbox>
1825
1826 <checkbox>
1827 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001828 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001829 <data variable="tw_disable_free_space"/>
1830 </checkbox>
1831
Ethan Yonker1b190162016-12-05 15:25:19 -06001832 <text style="text_m">
1833 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001834 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001835 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1836 </text>
1837
1838 <button style="main_button">
1839 <condition var1="tw_has_boot_slots" var2="1"/>
1840 <placement x="%indent%" y="%row19_y%"/>
1841 <text>{@boot_slot_a=Slot A}</text>
1842 <actions>
1843 <action function="set">tw_back=backup_options</action>
1844 <action function="set">tw_action=setbootslot</action>
1845 <action function="set">tw_action_param=A</action>
1846 <action function="set">tw_has_action2=0</action>
1847 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1848 <action function="set">tw_action_text2=</action>
1849 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1850 <action function="page">action_page</action>
1851 </actions>
1852 </button>
1853
1854 <button style="main_button">
1855 <condition var1="tw_has_boot_slots" var2="1"/>
1856 <placement x="%center_x%" y="%row19_y%"/>
1857 <text>{@boot_slot_b=Slot B}</text>
1858 <actions>
1859 <action function="set">tw_back=backup_options</action>
1860 <action function="set">tw_action=setbootslot</action>
1861 <action function="set">tw_action_param=B</action>
1862 <action function="set">tw_has_action2=0</action>
1863 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1864 <action function="set">tw_action_text2=</action>
1865 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1866 <action function="page">action_page</action>
1867 </actions>
1868 </button>
1869
z31s1g28f0a922015-11-07 18:50:22 +01001870 <action>
1871 <touch key="home"/>
1872 <action function="page">main</action>
1873 </action>
1874
1875 <action>
1876 <touch key="back"/>
1877 <action function="page">backup</action>
1878 </action>
1879 </page>
1880
1881 <page name="backupname1">
1882 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001883 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001884 <action function="generatebackupname"/>
1885 </action>
1886
1887 <action>
1888 <action function="page">backupname2</action>
1889 </action>
1890 </page>
1891
1892 <page name="backupname2">
1893 <template name="page"/>
1894
1895 <text style="text_l">
1896 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001897 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001898 </text>
1899
1900 <text style="text_m">
1901 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001902 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </text>
1904
1905 <template name="tabs_backup"/>
1906
1907 <fill color="%text_color%">
1908 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1909 </fill>
1910
1911 <button style="tab">
1912 <conditions>
1913 <condition var1="tw_include_encrypted_backup" var2="1"/>
1914 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001915 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001916 </conditions>
1917 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001918 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001919 <font resource="font_s" color="%text_color%"/>
1920 <actions>
1921 <action function="set">tw_password_not_match=0</action>
1922 <action function="page">backupencryption</action>
1923 </actions>
1924 </button>
1925
1926 <button style="tab">
1927 <conditions>
1928 <condition var1="tw_include_encrypted_backup" var2="1"/>
1929 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001930 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001931 </conditions>
1932 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001934 <font resource="font_s" color="%text_success_color%"/>
1935 <actions>
1936 <action function="set">tw_password_not_match=0</action>
1937 <action function="page">backupencryption</action>
1938 </actions>
1939 </button>
1940
1941 <text style="text_m_accent">
1942 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001943 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001944 </text>
1945
1946 <input>
1947 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1948 <text>%tw_backup_name%</text>
1949 <data name="tw_backup_name"/>
1950 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1951 <actions>
1952 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1953 <action function="set">tw_existpage=backupname2</action>
1954 <action function="set">tw_notexistpage=backup</action>
1955 <action function="page">filecheck</action>
1956 </actions>
1957 </input>
1958
1959 <fill color="%accent_color%">
1960 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1961 </fill>
1962
1963 <fill color="%text_fail_color%">
1964 <condition var1="tw_fileexists" var2="1"/>
1965 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1966 </fill>
1967
1968 <text style="text_m_fail">
1969 <condition var1="tw_fileexists" var2="1"/>
1970 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001971 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001972 </text>
1973
1974 <button style="main_button_half_height">
1975 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001976 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001977 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001978 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001979 <action function="page">backup</action>
1980 </actions>
1981 </button>
1982
1983 <button style="main_button_half_height">
1984 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001985 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001986 <action function="appenddatetobackupname"/>
1987 </button>
1988
1989 <template name="keyboardtemplate"/>
1990
1991 <action>
1992 <touch key="home"/>
1993 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001994 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001995 <action function="page">main</action>
1996 </actions>
1997 </action>
1998
1999 <action>
2000 <touch key="back"/>
2001 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002002 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002003 <action function="page">backup</action>
2004 </actions>
2005 </action>
2006 </page>
2007
2008 <page name="backupencryption">
2009 <template name="page"/>
2010
2011 <text style="text_l">
2012 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002013 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002014 </text>
2015
2016 <text style="text_m">
2017 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002019 </text>
2020
2021 <template name="tabs_backup"/>
2022
2023 <button style="tab">
2024 <conditions>
2025 <condition var1="tw_include_encrypted_backup" var2="1"/>
2026 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002027 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002028 </conditions>
2029 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002030 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002031 <font resource="font_s" color="%text_color%"/>
2032 <actions>
2033 <action function="set">tw_password_not_match=0</action>
2034 <action function="page">backupencryption</action>
2035 </actions>
2036 </button>
2037
2038 <button style="tab">
2039 <conditions>
2040 <condition var1="tw_include_encrypted_backup" var2="1"/>
2041 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002042 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002043 </conditions>
2044 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002045 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002046 <font resource="font_s" color="%text_success_color%"/>
2047 <actions>
2048 <action function="set">tw_password_not_match=0</action>
2049 <action function="page">backupencryption</action>
2050 </actions>
2051 </button>
2052
2053 <fill color="%text_color%">
2054 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2055 </fill>
2056
2057 <text style="text_m_accent">
2058 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002059 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002060 </text>
2061
2062 <text style="text_m">
2063 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002064 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002065 </text>
2066
2067 <input>
2068 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2069 <text>%tw_backup_encrypt_display%</text>
2070 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2071 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2072 <action function="page">backupencryption2</action>
2073 </input>
2074
2075 <fill color="%accent_color%">
2076 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2077 </fill>
2078
2079 <fill color="%text_fail_color%">
2080 <condition var1="tw_password_not_match" var2="1"/>
2081 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2082 </fill>
2083
2084 <text style="text_m_fail">
2085 <condition var1="tw_password_not_match" var2="1"/>
2086 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002087 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002088 </text>
2089
2090 <button style="main_button_half_height">
2091 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002092 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002093 <actions>
2094 <action function="set">tw_encrypt_backup=0</action>
2095 <action function="set">tw_backup_password=</action>
2096 <action function="set">tw_backup_password2=</action>
2097 <action function="set">tw_backup_encrypt_display=</action>
2098 <action function="set">tw_backup_encrypt_display2=</action>
2099 <action function="page">backup</action>
2100 </actions>
2101 </button>
2102
2103 <template name="keyboardtemplate"/>
2104
2105 <action>
2106 <touch key="home"/>
2107 <action function="page">main</action>
2108 </action>
2109
2110 <action>
2111 <touch key="back"/>
2112 <action function="page">backup</action>
2113 </action>
2114 </page>
2115
2116 <page name="backupencryption2">
2117 <template name="page"/>
2118
2119 <text style="text_l">
2120 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002121 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002122 </text>
2123
2124 <text style="text_m">
2125 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002126 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002127 </text>
2128
2129 <template name="tabs_backup"/>
2130
2131 <button style="tab">
2132 <conditions>
2133 <condition var1="tw_include_encrypted_backup" var2="1"/>
2134 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002135 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002136 </conditions>
2137 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002138 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002139 <font resource="font_s" color="%text_color%"/>
2140 <actions>
2141 <action function="set">tw_password_not_match=0</action>
2142 <action function="page">backupencryption</action>
2143 </actions>
2144 </button>
2145
2146 <button style="tab">
2147 <conditions>
2148 <condition var1="tw_include_encrypted_backup" var2="1"/>
2149 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002150 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002151 </conditions>
2152 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002153 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002154 <font resource="font_s" color="%text_success_color%"/>
2155 <actions>
2156 <action function="set">tw_password_not_match=0</action>
2157 <action function="page">backupencryption</action>
2158 </actions>
2159 </button>
2160
2161 <fill color="%text_color%">
2162 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2163 </fill>
2164
2165 <text style="text_m_accent">
2166 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002167 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002168 </text>
2169
2170 <text style="text_m">
2171 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002172 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002173 </text>
2174
2175 <input>
2176 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2177 <text>%tw_backup_encrypt_display2%</text>
2178 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2179 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2180 <action function="page">checkbackuppassword</action>
2181 </input>
2182
2183 <fill color="%accent_color%">
2184 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2185 </fill>
2186
2187 <button style="main_button_half_height">
2188 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002189 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002190 <actions>
2191 <action function="set">tw_encrypt_backup=0</action>
2192 <action function="set">tw_backup_password=</action>
2193 <action function="set">tw_backup_password2=</action>
2194 <action function="set">tw_backup_encrypt_display=</action>
2195 <action function="set">tw_backup_encrypt_display2=</action>
2196 <action function="page">backup</action>
2197 </actions>
2198 </button>
2199
2200 <template name="keyboardtemplate"/>
2201
2202 <action>
2203 <touch key="home"/>
2204 <action function="page">main</action>
2205 </action>
2206
2207 <action>
2208 <touch key="back"/>
2209 <action function="page">backup</action>
2210 </action>
2211 </page>
2212
2213 <page name="checkbackuppassword">
2214 <action>
2215 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2216 <actions>
2217 <action function="set">tw_encrypt_backup=1</action>
2218 <action function="page">backup</action>
2219 </actions>
2220 </action>
2221
2222 <action>
2223 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2224 <actions>
2225 <action function="set">tw_encrypt_backup=0</action>
2226 <action function="set">tw_password_not_match=1</action>
2227 <action function="set">tw_backup_password=</action>
2228 <action function="set">tw_backup_password2=</action>
2229 <action function="set">tw_backup_encrypt_display=</action>
2230 <action function="set">tw_backup_encrypt_display2=</action>
2231 <action function="page">backupencryption</action>
2232 </actions>
2233 </action>
2234 </page>
2235
2236 <page name="backup_run">
2237 <template name="page"/>
2238
2239 <text style="text_l">
2240 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2241 <text>%tw_operation%</text>
2242 </text>
2243
2244 <text style="text_m">
2245 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2246 <text>%tw_partition% Partition</text>
2247 </text>
2248
2249 <template name="console"/>
2250
2251 <template name="progress_bar"/>
2252
2253 <text style="text_m_accent">
2254 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002255 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002256 </text>
2257
2258 <text style="text_m">
2259 <placement x="%indent%" y="%row20_y%"/>
2260 <text>%tw_file_progress%</text>
2261 </text>
2262
2263 <text style="text_m">
2264 <placement x="%indent%" y="%row21_y%"/>
2265 <text>%tw_size_progress%</text>
2266 </text>
2267
2268 <button style="main_button_half_height">
2269 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002270 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002271 <action function="cancelbackup"/>
2272 </button>
2273
2274 <action>
2275 <action function="nandroid">backup</action>
2276 </action>
2277
2278 <action>
2279 <condition var1="tw_operation_state" var2="1"/>
2280 <condition var1="tw_cancel_backup" var2="0"/>
2281 <actions>
2282 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002283 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002284 <action function="set">tw_show_reboot=1</action>
2285 <action function="page">action_complete</action>
2286 </actions>
2287 </action>
2288
2289 <action>
2290 <condition var1="tw_operation_state" var2="1"/>
2291 <condition var1="tw_cancel_backup" var2="1"/>
2292 <actions>
2293 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002294 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002295 <action function="set">tw_show_reboot=1</action>
2296 <action function="page">action_complete</action>
2297 </actions>
2298 </action>
2299 </page>
2300
2301 <page name="restore">
2302 <template name="page"/>
2303
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002304 <action>
2305 <conditions>
2306 <condition var1="tw_is_fbe" var2="1"/>
2307 <condition var1="tw_all_users_decrypted" var2="0"/>
2308 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2309 </conditions>
2310 <actions>
2311 <action function="set">tw_multiuser_warning_destination=restore</action>
2312 <action function="page">multiuser_warning</action>
2313 </actions>
2314 </action>
2315
z31s1g28f0a922015-11-07 18:50:22 +01002316 <text style="text_l">
2317 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002318 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002319 </text>
2320
2321 <text style="text_m">
2322 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002323 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002324 </text>
2325
2326 <template name="sort_options"/>
2327
2328 <fileselector>
2329 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002330 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002331 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002332 <path name="tw_backups_folder"/>
2333 <data name="tw_restore" default=""/>
2334 <selection name="tw_restore_name"/>
2335 </fileselector>
2336
2337 <button style="main_button_half_height">
2338 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002339 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002340 <actions>
2341 <action function="set">tw_back=restore</action>
2342 <action function="overlay">select_storage</action>
2343 </actions>
2344 </button>
2345
2346 <action>
2347 <condition var1="tw_restore" op="modified"/>
2348 <actions>
2349 <action function="readBackup"/>
2350 <action function="page">restore_read</action>
2351 </actions>
2352 </action>
2353
2354 <action>
2355 <touch key="home"/>
2356 <action function="page">main</action>
2357 </action>
2358
2359 <action>
2360 <touch key="back"/>
2361 <action function="page">main</action>
2362 </action>
2363 </page>
2364
2365 <page name="restore_read">
2366 <action>
2367 <condition var1="tw_restore_encrypted" var2="1"/>
2368 <actions>
2369 <action function="set">tw_password_fail=0</action>
2370 <action function="page">restore_decrypt</action>
2371 </actions>
2372 </action>
2373
2374 <action>
2375 <condition var1="tw_restore_encrypted" var2="0"/>
2376 <actions>
2377 <action function="page">restore_select</action>
2378 </actions>
2379 </action>
2380 </page>
2381
2382 <page name="restore_decrypt">
2383 <template name="page"/>
2384
2385 <text style="text_l">
2386 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002387 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002388 </text>
2389
2390 <text style="text_m">
2391 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002392 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002393 </text>
2394
2395 <text style="text_m_accent">
2396 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002397 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002398 </text>
2399
2400 <input>
2401 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2402 <text>%tw_restore_display%</text>
2403 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2404 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2405 <action function="page">try_restore_decrypt</action>
2406 </input>
2407
2408 <fill color="%accent_color%">
2409 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2410 </fill>
2411
2412 <fill color="%text_fail_color%">
2413 <condition var1="tw_password_fail" var2="1"/>
2414 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2415 </fill>
2416
2417 <text style="text_m_fail">
2418 <condition var1="tw_password_fail" var2="1"/>
2419 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002420 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002421 </text>
2422
2423 <button style="main_button_half_height">
2424 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002425 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002426 <actions>
2427 <action function="set">tw_page_done=1</action>
2428 <action function="page">restore</action>
2429 </actions>
2430 </button>
2431
2432 <button style="main_button_half_height">
2433 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002434 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002435 <actions>
2436 <action function="set">tw_back=restore</action>
2437 <action function="set">tw_action=cmd</action>
2438 <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 -05002439 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2440 <action function="set">tw_text2=%tw_restore_name%</action>
2441 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2442 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2443 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2444 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002445 <action function="page">confirm_action</action>
2446 </actions>
2447 </button>
2448
2449 <template name="keyboardtemplate"/>
2450
2451 <action>
2452 <touch key="home"/>
2453 <action function="page">main</action>
2454 </action>
2455
2456 <action>
2457 <touch key="back"/>
2458 <action function="page">restore</action>
2459 </action>
2460 </page>
2461
2462 <page name="try_restore_decrypt">
2463 <template name="page"/>
2464
2465 <text style="text_l">
2466 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002467 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002468 </text>
2469
2470 <text style="text_m">
2471 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002472 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002473 </text>
2474
2475 <template name="console"/>
2476
2477 <template name="progress_bar"/>
2478
2479 <action>
2480 <action function="decrypt_backup"/>
2481 </action>
2482
2483 <action>
2484 <conditions>
2485 <condition var1="tw_operation_state" var2="1"/>
2486 <condition var1="tw_operation_status" op="!=" var2="0"/>
2487 </conditions>
2488 <actions>
2489 <action function="set">tw_password_fail=1</action>
2490 <action function="page">restore_decrypt</action>
2491 </actions>
2492 </action>
2493
2494 <action>
2495 <conditions>
2496 <condition var1="tw_operation_state" var2="1"/>
2497 <condition var1="tw_operation_status" op="=" var2="0"/>
2498 </conditions>
2499 <actions>
2500 <action function="set">tw_page_done=1</action>
2501 <action function="page">restore_select</action>
2502 </actions>
2503 </action>
2504 </page>
2505
2506 <page name="restore_select">
2507 <template name="page"/>
2508
2509 <text style="text_l">
2510 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002511 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002512 </text>
2513
2514 <text style="text_m">
2515 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002516 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002517 </text>
2518
2519 <text style="text_m_accent">
2520 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002521 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002522 </text>
2523
2524 <text style="text_m">
2525 <placement x="%indent%" y="%row3_y%"/>
2526 <text>%tw_restore_name%</text>
2527 </text>
2528
2529 <fill color="%fileselector_linecolor%">
2530 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2531 </fill>
2532
2533 <button>
2534 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2535 <fill color="%transparent%"/>
2536 <actions>
2537 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2538 <action function="set">tw_fileexists=0</action>
2539 <action function="page">renamebackup</action>
2540 </actions>
2541 </button>
2542
2543 <partitionlist>
2544 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002545 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002546 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2547 <listtype name="restore"/>
2548 </partitionlist>
2549
2550 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002551 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002552 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002553 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2554 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002555 </checkbox>
2556
2557 <button style="main_button_half_height">
2558 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002559 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002560 <actions>
2561 <action function="set">tw_back=restore</action>
2562 <action function="set">tw_action=cmd</action>
2563 <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 -05002564 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002565 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002566 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2567 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2568 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2569 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002570 <action function="page">confirm_action</action>
2571 </actions>
2572 </button>
2573
2574 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002575 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002576 <action function="page">restore_run</action>
2577 </slider>
2578
2579 <action>
2580 <touch key="home"/>
2581 <action function="page">main</action>
2582 </action>
2583
2584 <action>
2585 <touch key="back"/>
2586 <action function="page">restore</action>
2587 </action>
2588 </page>
2589
2590 <page name="renamebackup">
2591 <template name="page"/>
2592
2593 <text style="text_l">
2594 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002595 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002596 </text>
2597
2598 <text style="text_m">
2599 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002600 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002601 </text>
2602
2603 <text style="text_m_accent">
2604 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002605 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002606 </text>
2607
2608 <input>
2609 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2610 <text>%tw_backup_rename%</text>
2611 <data name="tw_backup_rename"/>
2612 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2613 <actions>
2614 <action function="set">tw_back=restore</action>
2615 <action function="set">tw_action=cmd</action>
2616 <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 -05002617 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2618 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2619 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2620 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2621 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002622 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2623 <action function="set">tw_existpage=renamebackup</action>
2624 <action function="set">tw_notexistpage=confirm_action</action>
2625 <action function="page">filecheck</action>
2626 </actions>
2627 </input>
2628
2629 <fill color="%accent_color%">
2630 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2631 </fill>
2632
2633 <fill color="%text_fail_color%">
2634 <condition var1="tw_fileexists" var2="1"/>
2635 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2636 </fill>
2637
2638 <text style="text_m_fail">
2639 <condition var1="tw_fileexists" var2="1"/>
2640 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002641 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </text>
2643
2644 <button style="main_button_half_height">
2645 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 <action function="page">restore_select</action>
2648 </button>
2649
2650 <template name="keyboardtemplate"/>
2651
2652 <action>
2653 <touch key="home"/>
2654 <action function="page">main</action>
2655 </action>
2656
2657 <action>
2658 <touch key="back"/>
2659 <action function="page">restore_select</action>
2660 </action>
2661 </page>
2662
2663 <page name="restore_run">
2664 <template name="page"/>
2665
2666 <text style="text_l">
2667 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002668 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002669 </text>
2670
2671 <text style="text_m">
2672 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2673 <text>%tw_operation% %tw_partition%</text>
2674 </text>
2675
2676 <template name="console"/>
2677
2678 <template name="progress_bar"/>
2679
2680 <text style="text_m_accent">
2681 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002682 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002683 </text>
2684
2685 <text style="text_m">
2686 <placement x="%indent%" y="%row20_y%"/>
2687 <text>%tw_size_progress%</text>
2688 </text>
2689
2690 <action>
2691 <condition var1="tw_operation_state" var2="1"/>
2692 <actions>
2693 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002694 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002695 <action function="set">tw_show_reboot=1</action>
2696 <action function="page">action_complete</action>
2697 </actions>
2698 </action>
2699
2700 <action>
2701 <action function="nandroid">restore</action>
2702 </action>
2703 </page>
2704
2705 <page name="mount">
2706 <template name="page"/>
2707
2708 <text style="text_l">
2709 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002710 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002711 </text>
2712
2713 <text style="text_m">
2714 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002715 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002716 </text>
2717
2718 <partitionlist>
2719 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002720 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002721 <listtype name="mount"/>
2722 </partitionlist>
2723
2724 <button style="checkbox">
2725 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2726 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002727 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002728 <image resource="checkbox_false"/>
2729 <action function="mountsystemtoggle">1</action>
2730 </button>
2731
2732 <button style="checkbox">
2733 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2734 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002735 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002736 <image resource="checkbox_true"/>
2737 <actions>
2738 <action function="set">tw_lifetime_writes=2</action>
2739 <action function="page">system_readonly_check</action>
2740 </actions>
2741 </button>
2742
2743 <button style="main_button_half_height">
2744 <condition var1="tw_has_usb_storage" var2="1"/>
2745 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002746 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002747 <action function="page">usb_mount</action>
2748 </button>
2749
2750 <button style="main_button_half_height">
2751 <conditions>
2752 <condition var1="tw_is_encrypted" var2="1"/>
2753 <condition var1="tw_is_decrypted" var2="0"/>
2754 </conditions>
2755 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002756 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson5a79f672019-04-28 00:10:07 -04002757 <action function="set">tw_crypto_user_id=0</action>
2758 <action function="set">tw_crypto_password=</action>
2759 <action function="set">tw_password_fail=0</action>
2760 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002761 <action function="page">decrypt</action>
2762 </button>
2763
2764 <button style="main_button_half_height">
2765 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002766 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002767 <actions>
2768 <action function="set">tw_back=mount</action>
2769 <action function="overlay">select_storage</action>
2770 </actions>
2771 </button>
2772
2773 <button style="main_button_half_height">
2774 <conditions>
2775 <condition var1="tw_has_mtp" var2="1"/>
2776 <condition var1="tw_mtp_enabled" var2="0"/>
2777 </conditions>
2778 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002779 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002780 <action function="startmtp"/>
2781 </button>
2782
2783 <button style="main_button_half_height">
2784 <conditions>
2785 <condition var1="tw_has_mtp" var2="1"/>
2786 <condition var1="tw_mtp_enabled" var2="1"/>
2787 </conditions>
2788 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002789 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002790 <action function="stopmtp"/>
2791 </button>
2792
2793 <action>
2794 <touch key="home"/>
2795 <action function="page">main</action>
2796 </action>
2797
2798 <action>
2799 <touch key="back"/>
2800 <action function="page">main</action>
2801 </action>
2802 </page>
2803
2804 <page name="usb_mount">
2805 <template name="page"/>
2806
2807 <text style="text_l">
2808 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002809 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002810 </text>
2811
2812 <text style="text_m">
2813 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002814 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002815 </text>
2816
2817 <text style="text_m_accent">
2818 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002819 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002820 </text>
2821
2822 <text style="text_m">
2823 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002824 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002825 </text>
2826
2827 <text style="text_m">
2828 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002829 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002830 </text>
2831
2832 <button style="main_button_half_height">
2833 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002834 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002835 <action function="page">usb_umount</action>
2836 </button>
2837
2838 <action>
2839 <action function="mount">usb</action>
2840 <action function="set">tw_busy=1</action>
2841 </action>
2842 </page>
2843
2844 <page name="usb_umount">
2845 <action>
2846 <action function="unmount">usb</action>
2847 </action>
2848
2849 <action>
2850 <action function="page">mount</action>
2851 <action function="set">tw_busy=0</action>
2852 </action>
2853 </page>
2854
2855 <page name="system_readonly_check">
2856 <action>
2857 <action function="checkpartitionlifetimewrites">/system</action>
2858 </action>
2859
2860 <action>
2861 <condition var1="tw_lifetime_writes" var2="1"/>
2862 <actions>
2863 <action function="mountsystemtoggle">0</action>
2864 <action function="page">mount</action>
2865 </actions>
2866 </action>
2867
2868 <action>
2869 <condition var1="tw_lifetime_writes" var2="0"/>
2870 <actions>
2871 <action function="set">tw_back=mount</action>
2872 <action function="page">system_readonly</action>
2873 </actions>
2874 </action>
2875 </page>
2876
2877 <page name="reboot">
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06002878 <action>
2879 <action function="checkforapp"></action>
2880 <action function="page">reboot2</action>
2881 </action>
2882 </page>
2883
2884 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002885 <template name="page"/>
2886
2887 <text style="text_l">
2888 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002889 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002890 </text>
2891
bigbiff97829df2020-12-20 12:26:15 -05002892 <listbox style="advanced_listbox">
2893 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01002894
bigbiff97829df2020-12-20 12:26:15 -05002895 <listitem name="{@rb_system_btn=System}">
2896 <condition var1="tw_reboot_system" var2="1"/>
2897 <actions>
2898 <action function="set">tw_back=reboot</action>
2899 <action function="page">reboot_system_routine</action>
2900 </actions>
2901 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002902
bigbiff97829df2020-12-20 12:26:15 -05002903 <listitem name="{@rb_poweroff_btn=Power Off}">
2904 <condition var1="tw_reboot_poweroff" var2="1"/>
2905 <actions>
2906 <action function="set">tw_back=reboot</action>
2907 <action function="set">tw_action=reboot</action>
2908 <action function="set">tw_action_param=poweroff</action>
2909 <action function="set">tw_reboot_param=poweroff</action>
2910 <action function="set">tw_has_action2=0</action>
2911 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2912 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2913 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2914 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2915 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2916 <action function="page">rebootcheck</action>
2917 </actions>
2918 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002919
bigbiff97829df2020-12-20 12:26:15 -05002920 <listitem name="{@rb_recovery_btn=Recovery}">
2921 <condition var1="tw_reboot_recovery" var2="1"/>
2922 <actions>
2923 <action function="set">tw_back=reboot</action>
2924 <action function="set">tw_action=reboot</action>
2925 <action function="set">tw_action_param=recovery</action>
2926 <action function="set">tw_reboot_param=recovery</action>
2927 <action function="set">tw_has_action2=0</action>
2928 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2929 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2930 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2931 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2932 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2933 <action function="page">rebootcheck</action>
2934 </actions>
2935 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002936
bigbiff97829df2020-12-20 12:26:15 -05002937 <listitem name="{@rb_bootloader_btn=Bootloader}">
2938 <condition var1="tw_reboot_bootloader" var2="1"/>
2939 <actions>
2940 <action function="set">tw_back=reboot</action>
2941 <action function="set">tw_action=reboot</action>
2942 <action function="set">tw_action_param=bootloader</action>
2943 <action function="set">tw_reboot_param=bootloader</action>
2944 <action function="set">tw_has_action2=0</action>
2945 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2946 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2947 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2948 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2949 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2950 <action function="page">rebootcheck</action>
2951 </actions>
2952 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002953
bigbiff97829df2020-12-20 12:26:15 -05002954 <listitem name="{@rb_download_btn=Download}">
2955 <condition var1="tw_download_mode" var2="1"/>
2956 <actions>
2957 <action function="set">tw_back=reboot</action>
2958 <action function="set">tw_action=reboot</action>
2959 <action function="set">tw_action_param=download</action>
2960 <action function="set">tw_reboot_param=download</action>
2961 <action function="set">tw_has_action2=0</action>
2962 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2963 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2964 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2965 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2966 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2967 <action function="page">rebootcheck</action>
2968 </actions>
2969 </listitem>
2970
2971 <listitem name="{@rb_edl_btn=Edl}">
2972 <condition var1="tw_edl_mode" var2="1"/>
2973 <actions>
2974 <action function="set">tw_back=reboot</action>
2975 <action function="set">tw_action=reboot</action>
2976 <action function="set">tw_action_param=edl</action>
2977 <action function="set">tw_reboot_param=edl</action>
2978 <action function="set">tw_has_action2=0</action>
2979 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2980 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2981 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2982 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2983 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2984 <action function="page">rebootcheck</action>
2985 </actions>
2986 </button>
2987 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02002988
Ethan Yonker1b190162016-12-05 15:25:19 -06002989 <text style="text_m">
2990 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiff97829df2020-12-20 12:26:15 -05002991 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002992 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2993 </text>
2994
bigbiff97829df2020-12-20 12:26:15 -05002995 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002996 <condition var1="tw_has_boot_slots" var2="1"/>
2997 <placement x="%indent%" y="%row19_y%"/>
2998 <text>{@boot_slot_a=Slot A}</text>
2999 <actions>
3000 <action function="set">tw_back=reboot</action>
3001 <action function="set">tw_action=setbootslot</action>
3002 <action function="set">tw_action_param=A</action>
3003 <action function="set">tw_has_action2=0</action>
3004 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3005 <action function="set">tw_action_text2=</action>
3006 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3007 <action function="page">action_page</action>
3008 </actions>
3009 </button>
3010
bigbiff97829df2020-12-20 12:26:15 -05003011 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003012 <condition var1="tw_has_boot_slots" var2="1"/>
3013 <placement x="%center_x%" y="%row19_y%"/>
3014 <text>{@boot_slot_b=Slot B}</text>
3015 <actions>
3016 <action function="set">tw_back=reboot</action>
3017 <action function="set">tw_action=setbootslot</action>
3018 <action function="set">tw_action_param=B</action>
3019 <action function="set">tw_has_action2=0</action>
3020 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3021 <action function="set">tw_action_text2=</action>
3022 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3023 <action function="page">action_page</action>
3024 </actions>
3025 </button>
3026
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003027 <button style="main_button_half_height">
3028 <condition var1="tw_app_install_status" var2="1"/>
3029 <placement x="%indent%" y="%row22_y%"/>
3030 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3031 <actions>
3032 <action function="set">tw_back=reboot</action>
3033 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3034 <action function="page">installapp</action>
3035 </actions>
3036 </button>
3037
z31s1g28f0a922015-11-07 18:50:22 +01003038 <action>
3039 <touch key="home"/>
3040 <action function="page">main</action>
3041 </action>
3042
3043 <action>
3044 <touch key="back"/>
3045 <action function="page">main</action>
3046 </action>
3047 </page>
3048
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003049 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003050 <template name="page"/>
3051
3052 <text style="text_l">
3053 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003054 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003055 </text>
3056
3057 <text style="text_m">
3058 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003059 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003060 </text>
3061
3062 <text style="text_m_accent">
3063 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3064 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3065 </text>
3066
3067 <text style="text_m_accent">
3068 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3069 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3070 </text>
3071
3072 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003073 <condition var1="tw_mount_system_ro" var2="0"/>
3074 <placement x="%indent%" y="%row7_y%"/>
3075 <text>{@reboot_install_app_system=Install as a System App}</text>
3076 <data variable="tw_app_install_system"/>
3077 </checkbox>
3078
3079 <button style="main_button_half_height">
3080 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003081 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003082 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003083 </button>
3084
3085 <slider>
3086 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3087 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003088 <action function="set">tw_action=installapp</action>
3089 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3090 <action function="set">tw_action_text2=</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003091 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003092 <action function="page">action_page</action>
3093 </actions>
3094 </slider>
3095
3096 <action>
3097 <touch key="home"/>
3098 <actions>
3099 <action function="set">tw_app_install_status=0</action>
3100 <action function="page">main</action>
3101 </actions>
3102 </action>
3103
3104 <action>
3105 <touch key="back"/>
3106 <actions>
3107 <action function="set">tw_app_install_status=0</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003108 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003109 </actions>
3110 </action>
3111 </page>
3112
z31s1g28f0a922015-11-07 18:50:22 +01003113 <page name="system_readonly">
3114 <template name="page"/>
3115
3116 <text style="text_l">
3117 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003118 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003119 </text>
3120
3121 <text style="text_m_accent">
3122 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003123 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003124 </text>
3125
3126 <text style="text_m">
3127 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003128 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003129 </text>
3130
3131 <text style="text_m">
3132 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003133 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003134 </text>
3135
3136 <text style="text_m">
3137 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003138 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003139 </text>
3140
3141 <text style="text_m">
3142 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003143 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003144 </text>
3145
3146 <text style="text_m_fail">
3147 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003148 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003149 </text>
3150
3151 <text style="text_m_fail">
3152 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003153 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003154 </text>
3155
3156 <checkbox>
3157 <condition var1="tw_is_encrypted" var2="0"/>
3158 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003159 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003160 <data variable="tw_never_show_system_ro_page"/>
3161 </checkbox>
3162
3163 <button style="main_button_half_height">
3164 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003165 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003166 <actions>
3167 <action function="mountsystemtoggle">1</action>
3168 <action function="set">tw_page_done=1</action>
3169 <action function="page">%tw_back%</action>
3170 </actions>
3171 </button>
3172
z31s1g608d7ff2016-01-18 19:47:25 +01003173 <button style="main_button_half_height">
3174 <placement x="%center_x%" y="%row18a_y%"/>
3175 <text>{@sel_lang_btn=Select Language}</text>
3176 <action function="overlay">select_language</action>
3177 </button>
3178
z31s1g28f0a922015-11-07 18:50:22 +01003179 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003180 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003181 <actions>
3182 <action function="mountsystemtoggle">0</action>
3183 <action function="set">tw_page_done=1</action>
3184 <action function="page">%tw_back%</action>
3185 </actions>
3186 </slider>
3187 </page>
3188
3189 <page name="settings">
3190 <template name="page"/>
3191
3192 <text style="text_l">
3193 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003194 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003195 </text>
3196
3197 <text style="text_m">
3198 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003199 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003200 </text>
3201
3202 <template name="tabs_settings"/>
3203
3204 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003206 </fill>
3207
3208 <listbox style="scrolllist">
3209 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3210 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003211 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003212 <data variable="tw_signed_zip_verify"/>
3213 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003214 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3215 <data variable="tw_install_reboot"/>
3216 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003217 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003218 <data variable="tw_rm_rf"/>
3219 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003220 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3221 <data variable="tw_disable_free_space"/>
3222 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003223 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3224 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003225 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003226 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3227 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003228 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003229 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003230 <data variable="tw_military_time"/>
3231 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003232 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003233 <data variable="tw_samsung_navbar"/>
3234 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003235 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003236 <data variable="tw_simulate_actions"/>
3237 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003238 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003239 <condition var1="tw_simulate_actions" var2="1"/>
3240 <data variable="tw_simulate_fail"/>
3241 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003242 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3243 <condition var1="tw_no_sha2" var2="0"/>
3244 <data variable="tw_use_sha2"/>
3245 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003246 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3247 <data variable="tw_unmount_system"/>
3248 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003249 </listbox>
3250
3251 <button style="main_button_half_height">
3252 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003253 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003254 <actions>
3255 <action function="set">tw_samsung_navbar=0</action>
3256 <action function="set">tw_tab_icons=0</action>
3257 <action function="restoredefaultsettings"/>
3258 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003259 </button>
3260
3261 <action>
3262 <touch key="home"/>
3263 <action function="page">main</action>
3264 </action>
3265
3266 <action>
3267 <touch key="back"/>
3268 <action function="page">main</action>
3269 </action>
3270 </page>
3271
3272 <page name="settings_timezone">
3273 <template name="page"/>
3274
3275 <text style="text_l">
3276 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </text>
3279
3280 <text style="text_m">
3281 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 </text>
3284
3285 <template name="tabs_settings"/>
3286
3287 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003288 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003289 </fill>
3290
3291 <listbox>
3292 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003293 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003294 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003295 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3296 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3297 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3298 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3299 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3300 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3301 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3302 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3303 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3304 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3305 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3306 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3307 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3308 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3309 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3310 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3311 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3312 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3313 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3314 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3315 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3316 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3317 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3318 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003319 </listbox>
3320
3321 <text style="text_m_accent">
3322 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003323 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003324 </text>
3325
3326 <button style="button_quarter_width">
3327 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003328 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003329 <action function="set">tw_time_zone_guioffset=0</action>
3330 </button>
3331
3332 <button style="button_quarter_width">
3333 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003334 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003335 <action function="set">tw_time_zone_guioffset=15</action>
3336 </button>
3337
3338 <button style="button_quarter_width">
3339 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003340 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003341 <action function="set">tw_time_zone_guioffset=30</action>
3342 </button>
3343
3344 <button style="button_quarter_width">
3345 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003346 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003347 <action function="set">tw_time_zone_guioffset=45</action>
3348 </button>
3349
3350 <checkbox>
3351 <placement x="%indent%" y="%row18a_y%"/>
3352 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003353 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003354 <data variable="tw_time_zone_guidst"/>
3355 <image checked="checkbox_true" unchecked="checkbox_false"/>
3356 </checkbox>
3357
3358 <text color="%text_color%">
3359 <font resource="font_m"/>
3360 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003361 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003362 </text>
3363
3364 <button>
3365 <highlight color="%highlight_color%"/>
3366 <placement x="%center_x%" y="%row21a_y%"/>
3367 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003368 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003369 <image resource="main_button_half_height"/>
3370 <action function="setguitimezone"/>
3371 </button>
3372
3373 <action>
3374 <touch key="home"/>
3375 <action function="page">main</action>
3376 </action>
3377
3378 <action>
3379 <touch key="back"/>
3380 <action function="page">main</action>
3381 </action>
3382 </page>
3383
3384 <page name="settings_screen">
3385 <template name="page"/>
3386
3387 <text style="text_l">
3388 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </text>
3391
3392 <text style="text_m">
3393 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003394 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003395 </text>
3396
3397 <template name="tabs_settings"/>
3398
3399 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003400 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003401 </fill>
3402
3403 <button>
3404 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3405 <font resource="font_m" color="%text_color%"/>
3406 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3407 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003408 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 <image resource="checkbox_false"/>
3410 <action function="set">tw_screen_timeout_secs=60</action>
3411 </button>
3412
3413 <button>
3414 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3415 <font resource="font_m" color="%text_color%"/>
3416 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3417 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003418 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003419 <image resource="checkbox_true"/>
3420 <action function="set">tw_screen_timeout_secs=0</action>
3421 </button>
3422
3423 <slidervalue>
3424 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3425 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3426 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003427 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003428 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3429 </slidervalue>
3430
3431 <slidervalue>
3432 <condition var1="tw_has_brightnesss_file" var2="1"/>
3433 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003434 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003435 <data variable="tw_brightness_pct" min="10" max="100"/>
3436 <actions>
3437 <action function="set">tw_brightness=%tw_brightness_max%</action>
3438 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3439 <action function="compute">tw_brightness/100</action>
3440 <action function="setbrightness">%tw_brightness%</action>
3441 </actions>
3442 </slidervalue>
3443
3444 <action>
3445 <touch key="home"/>
3446 <action function="page">main</action>
3447 </action>
3448
3449 <action>
3450 <touch key="back"/>
3451 <action function="page">main</action>
3452 </action>
3453 </page>
3454
3455 <page name="settings_vibration">
3456 <template name="page"/>
3457
3458 <text style="text_l">
3459 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003460 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003461 </text>
3462
3463 <text style="text_m">
3464 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003465 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003466 </text>
3467
3468 <template name="tabs_settings"/>
3469
3470 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003471 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003472 </fill>
3473
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003474 <text style="text_m">
3475 <condition var1="tw_disable_haptics" var2="1"/>
3476 <placement x="%indent%" y="%row4_y%"/>
3477 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3478 </text>
3479
z31s1g28f0a922015-11-07 18:50:22 +01003480 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003481 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003482 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003483 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003484 <data variable="tw_button_vibrate" min="0" max="300"/>
3485 </slidervalue>
3486
3487 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003488 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003489 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003490 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003491 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3492 </slidervalue>
3493
3494 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003495 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003496 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003497 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003498 <data variable="tw_action_vibrate" min="0" max="500"/>
3499 </slidervalue>
3500
3501 <action>
3502 <touch key="home"/>
3503 <action function="page">main</action>
3504 </action>
3505
3506 <action>
3507 <touch key="back"/>
3508 <action function="page">main</action>
3509 </action>
3510 </page>
3511
Ethan Yonker74db1572015-10-28 12:44:49 -05003512 <page name="settings_language">
3513 <template name="page"/>
3514
3515 <text style="text_l">
3516 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3517 <text>{@settings_hdr=Settings}</text>
3518 </text>
3519
3520 <text style="text_m">
3521 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3522 <text>{@language_hdr=Language - %tw_language_display%}</text>
3523 </text>
3524
3525 <template name="tabs_settings"/>
3526
3527 <fill color="%text_color%">
3528 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3529 </fill>
3530
3531 <listbox>
3532 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3533 <text>{@select_language=Select Language:}</text>
3534 <icon selected="radio_true" unselected="radio_false" />
3535 <data name="tw_language" />
3536 </listbox>
3537
3538 <button style="main_button_half_height">
3539 <placement x="%center_x%" y="%row21a_y%"/>
3540 <text>{@set_language_btn=Set Language}</text>
3541 <action function="setlanguage"></action>
3542 </button>
3543
3544 <action>
3545 <touch key="home" />
3546 <action function="page">main</action>
3547 </action>
3548
3549 <action>
3550 <touch key="back" />
3551 <action function="page">settings</action>
3552 </action>
3553 </page>
3554
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003555 <page name="copylog">
3556 <template name="page"/>
3557
3558 <text style="text_l">
3559 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3560 <text>{@copying_log=Copy Logs to SD Card}</text>
3561 </text>
3562
3563 <checkbox>
3564 <placement x="%indent%" y="%row4_y%"/>
3565 <text>{@include_kernel_log=Include Kernel Log}</text>
3566 <data variable="tw_include_kernel_log" value="1"/>
3567 </checkbox>
3568
3569 <slider>
3570 <text>{@copying_log=Copy Logs to SD Card}</text>
3571 <actions>
3572 <action function="set">tw_back=advanced</action>
3573 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003574 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3575 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003576 <action function="page">action_page</action>
3577 </actions>
3578 </slider>
3579
3580 <action>
3581 <touch key="home"/>
3582 <action function="page">main</action>
3583 </action>
3584
3585 <action>
3586 <touch key="back"/>
3587 <actions>
3588 <action function="page">advanced</action>
3589 </actions>
3590 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003591 </page>
3592
z31s1g28f0a922015-11-07 18:50:22 +01003593 <page name="advanced">
3594 <template name="page"/>
3595
3596 <text style="text_l">
3597 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003598 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003599 </text>
3600
3601 <button style="main_button">
3602 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003603 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003604 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003605 </button>
3606
3607 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003608 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003609 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003610 <text>{@adb_sideload_btn=ADB Sideload}</text>
3611 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003612 </button>
3613
3614 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003615 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003616 <text>{@terminal_btn=Terminal}</text>
3617 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003618 </button>
3619
3620 <button style="main_button">
3621 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003622 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003623 <action function="page">filemanagerlist</action>
3624 </button>
3625
Ethan Yonker64e0a652018-07-25 09:52:17 -05003626 <listbox style="advanced_listbox">
3627 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldd259b372021-03-01 21:31:07 +01003628 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicX98053c32021-01-04 13:01:31 +05303629 <condition var1="tw_is_encrypted" var2="0"/>
3630 <action function="page">changeTwrpFolder</action>
3631 </listitem>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003632 <listitem name="{@decrypt_users=Decrypt Users}">
3633 <conditions>
3634 <condition var1="tw_is_fbe" var2="1"/>
3635 <condition var1="tw_all_users_decrypted" var2="0"/>
3636 </conditions>
3637 <actions>
3638 <action function="set">tw_crypto_user_id=</action>
3639 <action function="page">decrypt_users</action>
3640 </actions>
3641 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003642 <listitem name="{@reload_theme_btn=Reload Theme}">
3643 <action function="reload"/>
3644 </listitem>
3645 <listitem name="{@part_sd_btn=Partition SD Card}">
3646 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3647 <actions>
3648 <action function="set">partitionlisterror=0</action>
3649 <action function="page">partsdcardsel</action>
3650 </actions>
3651 </listitem>
3652 <listitem name="{@fix_context_btn=Fix Contexts}">
3653 <condition var1="tw_has_data_media" var2="1"/>
3654 <action function="page">fixcontexts</action>
3655 </listitem>
3656 <listitem name="{@dumlock_btn=HTC Dumlock}">
3657 <condition var1="tw_show_dumlock" var2="1"/>
3658 <action function="page">htcdumlock</action>
3659 </listitem>
3660 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3661 <condition var1="tw_has_injecttwrp" var2="1"/>
3662 <actions>
3663 <action function="set">tw_back=advanced</action>
3664 <action function="set">tw_action=reinjecttwrp</action>
3665 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3666 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3667 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3668 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3669 <action function="page">confirm_action</action>
3670 </actions>
3671 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003672 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3673 <conditions>
3674 <condition var1="tw_has_boot_slots" var2="1"/>
3675 <condition var1="tw_has_repack_tools" var2="1"/>
3676 </conditions>
3677 <actions>
3678 <action function="set">tw_repack_kernel=0</action>
3679 <action function="page">repackselect</action>
3680 </actions>
3681 </listitem>
3682 <listitem name="{@install_kernel=Install Kernel}">
3683 <conditions>
3684 <condition var1="tw_has_boot_slots" var2="1"/>
3685 <condition var1="tw_has_repack_tools" var2="1"/>
3686 </conditions>
3687 <actions>
3688 <action function="set">tw_repack_kernel=1</action>
3689 <action function="page">repackselect</action>
3690 </actions>
3691 </listitem>
3692 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3693 <conditions>
3694 <condition var1="tw_has_boot_slots" var2="1"/>
3695 <condition var1="tw_has_repack_tools" var2="1"/>
3696 </conditions>
3697 <actions>
3698 <action function="set">tw_back=advanced</action>
3699 <action function="set">tw_action=fixabrecoverybootloop</action>
3700 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3701 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3702 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3703 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3704 <action function="page">confirm_action</action>
3705 </actions>
3706 </listitem>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003707 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3708 <condition var1="tw_app_install_status" var2="1"/>
3709 <actions>
3710 <action function="set">tw_back=advanced</action>
3711 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3712 <action function="page">installapp</action>
3713 </actions>
3714 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003715 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3716 <condition var1="tw_app_installed_in_system" var2="1"/>
3717 <actions>
3718 <action function="set">tw_back=advanced</action>
3719 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3720 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3721 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3722 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3723 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3724 <action function="page">confirm_action</action>
3725 </actions>
3726 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003727 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003728
3729 <action>
3730 <touch key="home"/>
3731 <action function="page">main</action>
3732 </action>
3733
3734 <action>
3735 <touch key="back"/>
3736 <action function="page">main</action>
3737 </action>
3738 </page>
3739
Ethan Yonker483e9f42016-01-11 22:21:18 -06003740 <page name="partsdcardsel">
3741 <template name="page"/>
3742
3743 <text style="text_l">
3744 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3745 <text>{@advanced_hdr=Advanced}</text>
3746 </text>
3747
3748 <text style="text_m">
3749 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3750 <text>{@part_sd_hdr=Partition SD Card}</text>
3751 </text>
3752
z31s1g782e1c92016-01-30 16:50:09 +01003753 <partitionlist>
3754 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003755 <text>{@sel_storage_list=Select Storage}</text>
3756 <data name="tw_storage_path"/>
3757 <listtype name="storage"/>
3758 </partitionlist>
3759
3760 <text style="text_m_fail">
3761 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003762 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003763 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3764 </text>
3765
z31s1g782e1c92016-01-30 16:50:09 +01003766 <button style="main_button_half_height">
3767 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003768 <text>{@ok_btn=OK}</text>
3769 <actions>
3770 <action function="getpartitiondetails">tw_storage_path</action>
3771 <action function="page">partsdcardcheck</action>
3772 </actions>
3773 </button>
3774
3775 <action>
3776 <touch key="home"/>
3777 <action function="page">main</action>
3778 </action>
3779
3780 <action>
3781 <touch key="back"/>
3782 <action function="page">advanced</action>
3783 </action>
3784 </page>
3785
3786 <page name="partsdcardcheck">
3787 <action>
3788 <condition var1="tw_partition_removable" op="=" var2="1"/>
3789 <actions>
3790 <action function="set">partitionlisterror=0</action>
3791 <action function="page">partsdcard</action>
3792 </actions>
3793 </action>
3794
3795 <action>
3796 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3797 <actions>
3798 <action function="set">partitionlisterror=1</action>
3799 <action function="page">partsdcardsel</action>
3800 </actions>
3801 </action>
3802 </page>
3803
z31s1g28f0a922015-11-07 18:50:22 +01003804 <page name="partsdcard">
3805 <template name="page"/>
3806
3807 <text style="text_l">
3808 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003809 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003810 </text>
3811
3812 <text style="text_m">
3813 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003814 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003815 </text>
3816
3817 <text style="text_m_fail">
3818 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003819 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003820 </text>
3821
3822 <text style="text_m_fail">
3823 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003824 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003825 </text>
3826
3827 <text style="text_m_accent">
3828 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003829 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003830 </text>
3831
3832 <text style="text_m">
3833 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3834 <text>%tw_sdext_size%</text>
3835 </text>
3836
3837 <button style="button_quarter_width">
3838 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003839 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003840 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003841 </button>
3842
3843 <button style="button_quarter_width">
3844 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003845 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003846 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003847 </button>
3848
3849 <text style="text_m_accent">
3850 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003851 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003852 </text>
3853
3854 <text style="text_m">
3855 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3856 <text>%tw_swap_size%</text>
3857 </text>
3858
3859 <button style="button_quarter_width">
3860 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003861 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003862 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003863 </button>
3864
3865 <button style="button_quarter_width">
3866 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003867 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003868 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003869 </button>
3870
3871 <text style="text_m_accent">
3872 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003873 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003874 </text>
3875
3876 <text style="text_m">
3877 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3878 <text>%tw_sdpart_file_system%</text>
3879 </text>
3880
3881 <button style="button_quarter_width">
3882 <placement x="%indent%" y="%row14_y%"/>
3883 <text>EXT3</text>
3884 <action function="set">tw_sdpart_file_system=ext3</action>
3885 </button>
3886
3887 <button style="button_quarter_width">
3888 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3889 <text>EXT4</text>
3890 <action function="set">tw_sdpart_file_system=ext4</action>
3891 </button>
3892
3893 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003894 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003895 <action function="page">partsdcardaction</action>
3896 <actions>
3897 <action function="set">tw_back=partsdcard</action>
3898 <action function="set">tw_action=partitionsd</action>
3899 <action function="set">tw_has_action2=1</action>
3900 <action function="set">tw_action2=set</action>
3901 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003902 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3903 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3904 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003905 <action function="page">action_page</action>
3906 </actions>
3907 </slider>
3908
3909 <action>
3910 <touch key="home"/>
3911 <action function="page">main</action>
3912 </action>
3913
3914 <action>
3915 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003916 <actions>
3917 <action function="set">partitionlisterror=0</action>
3918 <action function="page">partsdcardsel</action>
3919 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003920 </action>
3921 </page>
3922
3923 <page name="htcdumlock">
3924 <template name="page"/>
3925
3926 <text style="text_l">
3927 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003928 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003929 </text>
3930
3931 <text style="text_m">
3932 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003933 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003934 </text>
3935
3936 <button style="main_button_half_height_full_width">
3937 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003938 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003939 <actions>
3940 <action function="set">tw_back=htcdumlock</action>
3941 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003942 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3943 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3944 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3945 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003946 <action function="page">confirm_action</action>
3947 </actions>
3948 </button>
3949
3950 <button style="main_button_half_height_full_width">
3951 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003952 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003953 <actions>
3954 <action function="set">tw_back=htcdumlock</action>
3955 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003956 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3957 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3958 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3959 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003960 <action function="page">confirm_action</action>
3961 </actions>
3962 </button>
3963
3964 <button style="main_button_half_height_full_width">
3965 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003966 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003967 <actions>
3968 <action function="set">tw_back=htcdumlock</action>
3969 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003970 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3971 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3972 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3973 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003974 <action function="page">confirm_action</action>
3975 </actions>
3976 </button>
3977
3978 <action>
3979 <touch key="home"/>
3980 <action function="page">main</action>
3981 </action>
3982
3983 <action>
3984 <touch key="back"/>
3985 <action function="page">advanced</action>
3986 </action>
3987 </page>
3988
Ethan Yonker53796e72019-01-11 22:49:52 -06003989 <page name="repackselect">
3990 <template name="page"/>
3991
3992 <text style="text_l">
3993 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3994 <text>{@repack_image_hdr=Select Image}</text>
3995 </text>
3996
3997 <text style="text_m">
3998 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3999 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4000 </text>
4001
4002 <template name="sort_options"/>
4003
4004 <fileselector>
4005 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4006 <text>%tw_zip_location%</text>
4007 <filter extn=".img" folders="1" files="1"/>
4008 <path name="tw_zip_location" default="/sdcard"/>
4009 <data name="tw_filename"/>
4010 <selection name="tw_file"/>
4011 </fileselector>
4012
4013 <button style="main_button_half_height">
4014 <placement x="%indent%" y="%row21a_y%"/>
4015 <text>{@select_storage_btn=Select Storage}</text>
4016 <actions>
4017 <action function="set">tw_back=repackselect</action>
4018 <action function="overlay">select_storage</action>
4019 </actions>
4020 </button>
4021
4022 <action>
4023 <conditions>
4024 <condition var1="tw_filename" op="modified"/>
4025 </conditions>
4026 <action function="page">repackconfirm</action>
4027 </action>
4028
4029 <action>
4030 <touch key="back"/>
4031 <action function="page">advanced</action>
4032 </action>
4033
4034 <action>
4035 <touch key="home"/>
4036 <action function="page">main</action>
4037 </action>
4038 </page>
4039
4040 <page name="repackconfirm">
4041 <template name="page"/>
4042
4043 <text style="text_l">
4044 <condition var1="tw_repack_kernel" var2="1"/>
4045 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4046 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4047 </text>
4048
4049 <text style="text_l">
4050 <condition var1="tw_repack_kernel" var2="0"/>
4051 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4052 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4053 </text>
4054
4055 <text style="text_m">
4056 <condition var1="tw_repack_kernel" var2="1"/>
4057 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4058 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4059 </text>
4060
4061 <text style="text_m">
4062 <condition var1="tw_repack_kernel" var2="0"/>
4063 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4064 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4065 </text>
4066
4067 <text style="text_m_accent">
4068 <placement x="%indent%" y="%row2_y%"/>
4069 <text>{@folder=Folder:}</text>
4070 </text>
4071
4072 <text style="text_m">
4073 <placement x="%indent%" y="%row3_y%"/>
4074 <text>%tw_zip_location%</text>
4075 </text>
4076
4077 <text style="text_m_accent">
4078 <placement x="%indent%" y="%row4_y%"/>
4079 <text>{@file=File:}</text>
4080 </text>
4081
4082 <text style="text_m">
4083 <placement x="%indent%" y="%row5_y%"/>
4084 <text>%tw_file%</text>
4085 </text>
4086
4087 <checkbox>
4088 <placement x="%indent%" y="%row7_y%"/>
4089 <text>{@repack_backup_first=Back up existing image first}</text>
4090 <data variable="tw_repack_backup_first"/>
4091 </checkbox>
4092
4093 <button style="main_button_half_height">
4094 <placement x="%indent%" y="%row16_y%"/>
4095 <text>{@install_cancel=Do not Install}</text>
4096 <action function="page">repackselect</action>
4097 </button>
4098
4099 <slider>
4100 <text>{@swipe_to_install=Swipe to Install}</text>
4101 <actions>
4102 <action function="set">tw_back=advanced</action>
4103 <action function="set">tw_action=repackimage</action>
4104 <action function="set">tw_action_param=/boot</action>
4105 <action function="set">tw_action_text1={@installing=Installing...}</action>
4106 <action function="set">tw_action_text2=</action>
4107 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4108 <action function="page">action_page</action>
4109 </actions>
4110 </slider>
4111
4112 <action>
4113 <touch key="back"/>
4114 <action function="page">repackselect</action>
4115 </action>
4116
4117 <action>
4118 <touch key="home"/>
4119 <action function="page">main</action>
4120 </action>
4121 </page>
4122
z31s1g28f0a922015-11-07 18:50:22 +01004123 <page name="lock">
4124 <background color="%semi_transparent%"/>
4125
4126 <image>
4127 <image resource="unlock_icon"/>
4128 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4129 </image>
4130
4131 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004133 <action function="overlay"/>
4134 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004135
4136 <action>
4137 <touch key="power"/>
4138 <action function="togglebacklight"/>
4139 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004140 </page>
4141
4142 <page name="filemanagerlist">
4143 <template name="page"/>
4144
4145 <text style="text_l">
4146 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004147 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004148 </text>
4149
4150 <text style="text_m">
4151 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004152 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004153 </text>
4154
4155 <template name="sort_options"/>
4156
4157 <fileselector>
4158 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4159 <text>%tw_file_location1%</text>
4160 <filter folders="1" files="1"/>
4161 <path name="tw_file_location1" default="/"/>
4162 <data name="tw_filename1"/>
4163 <selection name="tw_selection1"/>
4164 </fileselector>
4165
4166 <button style="fab">
4167 <image resource="fab_selectfolder"/>
4168 <actions>
4169 <action function="set">tw_filename1=tw_file_location1</action>
4170 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004171 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004172 <action function="page">filemanageroptions</action>
4173 </actions>
4174 </button>
4175
4176 <action>
4177 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004178 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004179 <action function="set">tw_fm_isfolder=0</action>
4180 </actions>
4181 </action>
4182
4183 <action>
4184 <touch key="home"/>
4185 <action function="page">main</action>
4186 </action>
4187
4188 <action>
4189 <touch key="back"/>
4190 <action function="page">advanced</action>
4191 </action>
4192
4193 <action>
4194 <condition var1="tw_filename1" op="modified"/>
4195 <action function="page">filemanageroptions</action>
4196 </action>
4197 </page>
4198
4199 <page name="filemanageroptions">
4200 <template name="page"/>
4201
4202 <text style="text_l">
4203 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004204 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004205 </text>
4206
4207 <text style="text_m">
4208 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004209 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004210 </text>
4211
4212 <text style="text_m_accent">
4213 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004214 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004215 </text>
4216
4217 <text style="text_m">
4218 <placement x="%indent%" y="%row3_y%"/>
4219 <text>%tw_filename1%</text>
4220 </text>
4221
4222 <button style="main_button_half_height">
Captain Throwback3b556102021-02-12 19:32:36 -05004223 <conditions>
4224 <condition var1="tw_include_nano" var2="1"/>
4225 <condition var1="tw_fm_isfolder" var2="0"/>
4226 </conditions>
4227 <placement x="%indent%" y="%row12a_y%"/>
4228 <text>{@fm_edit_file=Edit File}</text>
4229 <actions>
4230 <action function="editfile">nano "%tw_filename1%"</action>
4231 <action function="page">terminalcommand</action>
4232 </actions>
4233 </button>
4234
4235 <button style="main_button_half_height">
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004236 <condition var1="tw_fm_isfolder" var2="1"/>
4237 <placement x="%center_x%" y="%row12a_y%"/>
4238 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4239 <action function="changeterminal">%tw_filename1%</action>
4240 </button>
4241
4242 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004243 <condition var1="tw_fm_isfolder" var2="0"/>
4244 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004245 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004246 <actions>
4247 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004248 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004249 <action function="page">choosedestinationfolder</action>
4250 </actions>
4251 </button>
4252
4253 <button style="main_button_half_height">
4254 <condition var1="tw_fm_isfolder" var2="1"/>
4255 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004256 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004257 <actions>
4258 <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 -05004259 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004260 <action function="page">choosedestinationfolder</action>
4261 </actions>
4262 </button>
4263
4264 <button style="main_button_half_height">
4265 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004266 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004267 <actions>
4268 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004269 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004270 <action function="page">choosedestinationfolder</action>
4271 </actions>
4272 </button>
4273
4274 <button style="main_button_half_height">
4275 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004276 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004277 <actions>
4278 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004279 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</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 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004290 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004291 <actions>
4292 <action function="set">tw_filemanager_rename=0000</action>
4293 <action function="set">tw_fm_text2=</action>
4294 <action function="set">tw_fm_text3=</action>
4295 <action function="set">tw_include_text3=0</action>
4296 <action function="set">tw_back=filemanageroptions</action>
4297 <action function="page">filemanagerchmod</action>
4298 </actions>
4299 </button>
4300
4301 <button style="main_button_half_height">
4302 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004304 <actions>
4305 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004306 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004307 <action function="set">tw_fm_text2=</action>
4308 <action function="set">tw_fm_text3=</action>
4309 <action function="set">tw_include_text3=0</action>
4310 <action function="set">tw_back=filemanageroptions</action>
4311 <action function="page">filemanagerconfirm</action>
4312 </actions>
4313 </button>
4314
4315 <button style="main_button_half_height">
4316 <condition var1="tw_fm_isfolder" var2="0"/>
4317 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004318 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004319 <actions>
4320 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004321 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004322 <action function="set">tw_filemanager_command=mv</action>
4323 <action function="page">filemanagerrenamefile</action>
4324 </actions>
4325 </button>
4326
4327 <button style="main_button_half_height">
4328 <condition var1="tw_fm_isfolder" var2="1"/>
4329 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004330 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004331 <actions>
4332 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004333 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004334 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4335 <action function="page">filemanagerrenamefolder</action>
4336 </actions>
4337 </button>
4338
4339 <action>
4340 <touch key="home"/>
4341 <action function="page">main</action>
4342 </action>
4343
4344 <action>
4345 <touch key="back"/>
4346 <action function="page">filemanagerlist</action>
4347 </action>
4348 </page>
4349
4350 <page name="choosedestinationfolder">
4351 <template name="page"/>
4352
4353 <text style="text_l">
4354 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004355 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004356 </text>
4357
4358 <text style="text_m">
4359 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004360 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004361 </text>
4362
4363 <template name="sort_options"/>
4364
4365 <fileselector>
4366 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4367 <text>%tw_file_location2%</text>
4368 <filter folders="1" files="0"/>
4369 <path name="tw_file_location2" default="/"/>
4370 <data name="tw_filename2"/>
4371 <selection name="tw_selection2"/>
4372 </fileselector>
4373
4374 <button style="fab">
4375 <image resource="fab_selectfolder"/>
4376 <actions>
4377 <action function="set">tw_fm_text2=to</action>
4378 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4379 <action function="set">tw_include_text3=1</action>
4380 <action function="set">tw_back=filemanageroptions</action>
4381 <action function="page">filemanagerconfirm</action>
4382 </actions>
4383 </button>
4384
4385 <action>
4386 <touch key="home"/>
4387 <action function="page">main</action>
4388 </action>
4389
4390 <action>
4391 <touch key="back"/>
4392 <action function="page">filemanageroptions</action>
4393 </action>
4394 </page>
4395
4396 <page name="filemanagerrenamefile">
4397 <template name="page"/>
4398
4399 <text style="text_l">
4400 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004401 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004402 </text>
4403
4404 <text style="text_m">
4405 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004406 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004407 </text>
4408
4409 <text style="text_m_accent">
4410 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004411 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004412 </text>
4413
4414 <input>
4415 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4416 <text>%tw_filemanager_rename%</text>
4417 <data name="tw_filemanager_rename"/>
4418 <restrict minlen="1" maxlen="128"/>
4419 <actions>
4420 <action function="set">tw_fm_text2=to</action>
4421 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4422 <action function="set">tw_include_text3=1</action>
4423 <action function="set">tw_back=filemanageroptions</action>
4424 <action function="page">filemanagerconfirm</action>
4425 </actions>
4426 </input>
4427
4428 <fill color="%accent_color%">
4429 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4430 </fill>
4431
4432 <button style="main_button_half_height">
4433 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004434 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004435 <action function="page">filemanageroptions</action>
4436 </button>
4437
4438 <template name="keyboardtemplate"/>
4439
4440 <action>
4441 <touch key="home"/>
4442 <action function="page">main</action>
4443 </action>
4444
4445 <action>
4446 <touch key="back"/>
4447 <action function="page">filemanageroptions</action>
4448 </action>
4449 </page>
4450
4451 <page name="filemanagerrenamefolder">
4452 <template name="page"/>
4453
4454 <text style="text_l">
4455 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004456 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004457 </text>
4458
4459 <text style="text_m">
4460 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004461 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004462 </text>
4463
4464 <text style="text_m_accent">
4465 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004466 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004467 </text>
4468
4469 <input>
4470 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4471 <text>%tw_filemanager_rename%</text>
4472 <data name="tw_filemanager_rename"/>
4473 <restrict minlen="1" maxlen="128"/>
4474 <actions>
4475 <action function="set">tw_fm_text2=to</action>
4476 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4477 <action function="set">tw_include_text3=1</action>
4478 <action function="set">tw_back=filemanageroptions</action>
4479 <action function="page">filemanagerconfirm</action>
4480 </actions>
4481 </input>
4482
4483 <fill color="%accent_color%">
4484 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4485 </fill>
4486
4487 <button style="main_button_half_height">
4488 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004489 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004490 <action function="page">filemanageroptions</action>
4491 </button>
4492
4493 <template name="keyboardtemplate"/>
4494
4495 <action>
4496 <touch key="home"/>
4497 <action function="page">main</action>
4498 </action>
4499
4500 <action>
4501 <touch key="back"/>
4502 <action function="page">filemanageroptions</action>
4503 </action>
4504 </page>
4505
4506 <page name="filemanagerchmod">
4507 <template name="page"/>
4508
4509 <text style="text_l">
4510 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004511 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004512 </text>
4513
4514 <text style="text_m">
4515 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004516 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004517 </text>
4518
4519 <text style="text_m_accent">
4520 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004521 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004522 </text>
4523
4524 <input>
4525 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4526 <text>%tw_filemanager_rename%</text>
4527 <data name="tw_filemanager_rename"/>
4528 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4529 <actions>
4530 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4531 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4532 <action function="set">tw_back=filemanageroptions</action>
4533 <action function="page">filemanagerconfirm</action>
4534 </actions>
4535 </input>
4536
4537 <fill color="%accent_color%">
4538 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4539 </fill>
4540
4541 <button style="main_button_half_height">
4542 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004543 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004544 <action function="page">filemanageroptions</action>
4545 </button>
4546
4547 <template name="keyboardtemplate"/>
4548
4549 <action>
4550 <touch key="home"/>
4551 <action function="page">main</action>
4552 </action>
4553
4554 <action>
4555 <touch key="back"/>
4556 <action function="page">filemanageroptions</action>
4557 </action>
4558 </page>
4559
4560 <page name="filemanagerconfirm">
4561 <template name="page"/>
4562
4563 <text style="text_l">
4564 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004565 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004566 </text>
4567
4568 <text style="text_m">
4569 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004570 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004571 </text>
4572
4573 <text style="text_m_accent">
4574 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4575 <text>%tw_fm_text1%</text>
4576 </text>
4577
4578 <text style="text_m">
4579 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4580 <text>%tw_filename1%</text>
4581 </text>
4582
4583 <text style="text_m_accent">
4584 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4585 <text>%tw_fm_text2%</text>
4586 </text>
4587
4588 <text style="text_m">
4589 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4590 <text>%tw_fm_text3%</text>
4591 </text>
4592
4593 <text style="text_m">
4594 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004595 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004596 </text>
4597
4598 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004599 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004600 <action function="page">filemanageraction</action>
4601 </slider>
4602
4603 <action>
4604 <touch key="back"/>
4605 <action function="page">%tw_back%</action>
4606 </action>
4607
4608 <action>
4609 <touch key="home"/>
4610 <action function="page">main</action>
4611 </action>
4612 </page>
4613
4614 <page name="filemanageraction">
4615 <template name="page"/>
4616
4617 <text style="text_l">
4618 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004619 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004620 </text>
4621
4622 <text style="text_m">
4623 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4624 <text>%tw_fm_text1%</text>
4625 </text>
4626
4627 <template name="console"/>
4628
4629 <template name="progress_bar"/>
4630
4631 <action>
4632 <conditions>
4633 <condition var1="tw_operation_state" var2="1"/>
4634 <condition var1="tw_operation_status" var2="0"/>
4635 </conditions>
4636 <actions>
4637 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004638 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004639 <action function="page">action_complete</action>
4640 </actions>
4641 </action>
4642
4643 <action>
4644 <conditions>
4645 <condition var1="tw_operation_state" var2="1"/>
4646 <condition var1="tw_operation_status" op="!=" var2="0"/>
4647 </conditions>
4648 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004649 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004650 <action function="page">action_complete</action>
4651 </actions>
4652 </action>
4653
4654 <action>
4655 <condition var1="tw_include_text3" var2="0"/>
4656 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4657 </action>
4658
4659 <action>
4660 <condition var1="tw_include_text3" var2="1"/>
4661 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4662 </action>
4663 </page>
4664
4665 <page name="decrypt">
4666 <template name="page"/>
4667
4668 <action>
4669 <condition var1="tw_crypto_pwtype" var2="2"/>
4670 <action function="page">decrypt_pattern</action>
4671 </action>
4672
4673 <text style="text_l">
4674 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004675 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004676 </text>
4677
4678 <text style="text_m">
4679 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004680 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004681 </text>
4682
4683 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004684 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004685 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004686 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004687 </text>
4688
Noah Jacobson5a79f672019-04-28 00:10:07 -04004689 <text style="text_m_accent">
4690 <condition var1="tw_is_fbe" var2="1"/>
4691 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4692 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4693 </text>
4694
z31s1g28f0a922015-11-07 18:50:22 +01004695 <input>
4696 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4697 <text>%tw_crypto_display%</text>
4698 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4699 <restrict minlen="1" maxlen="254"/>
4700 <action function="page">trydecrypt</action>
4701 </input>
4702
4703 <fill color="%accent_color%">
4704 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4705 </fill>
4706
4707 <fill color="%text_fail_color%">
4708 <condition var1="tw_password_fail" var2="1"/>
4709 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4710 </fill>
4711
4712 <text style="text_m_fail">
4713 <condition var1="tw_password_fail" var2="1"/>
4714 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004715 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004716 </text>
4717
4718 <button style="main_button_half_height">
4719 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004720 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004721 <actions>
4722 <action function="set">tw_page_done=1</action>
4723 <action function="page">main</action>
4724 </actions>
4725 </button>
4726
z31s1g608d7ff2016-01-18 19:47:25 +01004727 <button style="main_button_half_height">
4728 <placement x="%center_x%" y="%row10_y%"/>
4729 <text>{@sel_lang_btn=Select Language}</text>
4730 <action function="overlay">select_language</action>
4731 </button>
4732
z31s1g28f0a922015-11-07 18:50:22 +01004733 <template name="keyboardtemplate"/>
4734 </page>
4735
4736 <page name="decrypt_pattern">
4737 <template name="page"/>
4738
4739 <text style="text_l">
4740 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004741 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004742 </text>
4743
4744 <text style="text_m">
4745 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004746 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004747 </text>
4748
4749 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004750 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004751 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004752 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004753 </text>
4754
Noah Jacobson5a79f672019-04-28 00:10:07 -04004755 <text style="text_m_accent">
4756 <condition var1="tw_is_fbe" var2="1"/>
4757 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4758 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4759 </text>
4760
Aleksa Saraib25a1832015-12-31 17:36:00 +01004761 <text style="text_m_fail">
4762 <condition var1="tw_password_fail" var2="1"/>
4763 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004764 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004765 </text>
4766
z31s1g28f0a922015-11-07 18:50:22 +01004767 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004768 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004769 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4770 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4771 <data name="tw_crypto_password"/>
4772 <action function="page">trydecrypt</action>
4773 </patternpassword>
4774
Aleksa Saraib25a1832015-12-31 17:36:00 +01004775 <button style="button_quarter_width">
4776 <placement x="%indent%" y="%row19a_y%"/>
4777 <text>3x3</text>
4778 <action function="set">tw_gui_pattern_grid_size=3</action>
4779 </button>
4780
4781 <button style="button_quarter_width">
4782 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4783 <text>4x4</text>
4784 <action function="set">tw_gui_pattern_grid_size=4</action>
4785 </button>
4786
4787 <button style="button_quarter_width">
4788 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4789 <text>5x5</text>
4790 <action function="set">tw_gui_pattern_grid_size=5</action>
4791 </button>
4792
4793 <button style="button_quarter_width">
4794 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4795 <text>6x6</text>
4796 <action function="set">tw_gui_pattern_grid_size=6</action>
4797 </button>
4798
z31s1g28f0a922015-11-07 18:50:22 +01004799 <button style="main_button_half_height">
4800 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004801 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004802 <actions>
4803 <action function="set">tw_page_done=1</action>
4804 <action function="page">main</action>
4805 </actions>
4806 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004807
4808 <button style="main_button_half_height">
4809 <placement x="%center_x%" y="%row21a_y%"/>
4810 <text>{@sel_lang_btn=Select Language}</text>
4811 <action function="overlay">select_language</action>
4812 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004813 </page>
4814
4815 <page name="trydecrypt">
4816 <template name="page"/>
4817
4818 <text style="text_l">
4819 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004820 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004821 </text>
4822
4823 <text style="text_m">
4824 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004825 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004826 </text>
4827
4828 <template name="console"/>
4829
4830 <template name="progress_bar"/>
4831
4832 <action>
4833 <action function="decrypt"/>
4834 </action>
4835
4836 <action>
4837 <conditions>
4838 <condition var1="tw_operation_state" var2="1"/>
4839 <condition var1="tw_operation_status" op="!=" var2="0"/>
4840 </conditions>
4841 <actions>
4842 <action function="set">tw_password_fail=1</action>
4843 <action function="page">decrypt</action>
4844 </actions>
4845 </action>
4846
4847 <action>
4848 <conditions>
4849 <condition var1="tw_operation_state" var2="1"/>
4850 <condition var1="tw_operation_status" op="=" var2="0"/>
4851 </conditions>
4852 <actions>
4853 <action function="set">tw_page_done=1</action>
4854 <action function="page">main</action>
4855 </actions>
4856 </action>
4857 </page>
4858
z31s1g28f0a922015-11-07 18:50:22 +01004859 <page name="terminalcommand">
4860 <template name="page"/>
4861
z31s1g56189522016-01-13 19:12:40 +01004862 <fill color="%background_color%">
4863 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004864 </fill>
4865
z31s1g56189522016-01-13 19:12:40 +01004866 <terminal>
4867 <condition var1="tw_hide_kb" var2="0"/>
4868 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4869 </terminal>
4870
4871 <terminal>
4872 <condition var1="tw_hide_kb" var2="1"/>
4873 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4874 </terminal>
4875
4876 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004877
4878 <template name="keyboardtemplate"/>
4879
z31s1g608d7ff2016-01-18 19:47:25 +01004880 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004881 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004882 </fill>
z31s1g56189522016-01-13 19:12:40 +01004883
z31s1g608d7ff2016-01-18 19:47:25 +01004884 <button>
z31s1g56189522016-01-13 19:12:40 +01004885 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4886 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4887 <image resource="back" />
4888 <condition var1="tw_busy" var2="0" />
4889 <actions>
4890 <action function="set">tw_hide_kb=0</action>
4891 <action function="key">back</action>
4892 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004893 </button>
z31s1g56189522016-01-13 19:12:40 +01004894
z31s1g608d7ff2016-01-18 19:47:25 +01004895 <button>
z31s1g56189522016-01-13 19:12:40 +01004896 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4897 <condition var1="tw_hide_kb" op="=" var2="0" />
4898 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4899 <image resource="kb_hide" />
4900 <condition var1="tw_busy" var2="0" />
4901 <actions>
4902 <action function="set">tw_hide_kb=1</action>
4903 <action function="page">terminalcommand</action>
4904 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004905 </button>
z31s1g56189522016-01-13 19:12:40 +01004906
z31s1g608d7ff2016-01-18 19:47:25 +01004907 <button>
z31s1g56189522016-01-13 19:12:40 +01004908 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4909 <condition var1="tw_hide_kb" op="=" var2="1" />
4910 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4911 <image resource="kb_show" />
4912 <condition var1="tw_busy" var2="0" />
4913 <actions>
4914 <action function="set">tw_hide_kb=0</action>
4915 <action function="page">terminalcommand</action>
4916 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004917 </button>
z31s1g56189522016-01-13 19:12:40 +01004918
z31s1g608d7ff2016-01-18 19:47:25 +01004919 <button>
z31s1g56189522016-01-13 19:12:40 +01004920 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4921 <image resource="home" />
4922 <condition var1="tw_busy" var2="0" />
4923 <actions>
4924 <action function="set">tw_hide_kb=0</action>
4925 <action function="key">home</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004926 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004927 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004928 </button>
z31s1g56189522016-01-13 19:12:40 +01004929
z31s1g608d7ff2016-01-18 19:47:25 +01004930 <button>
z31s1g56189522016-01-13 19:12:40 +01004931 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4932 <condition var1="tw_hide_kb" op="=" var2="0" />
4933 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4934 <image resource="kb_hide" />
4935 <condition var1="tw_busy" var2="0" />
4936 <actions>
4937 <action function="set">tw_hide_kb=1</action>
4938 <action function="page">terminalcommand</action>
4939 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004940 </button>
z31s1g56189522016-01-13 19:12:40 +01004941
z31s1g608d7ff2016-01-18 19:47:25 +01004942 <button>
z31s1g56189522016-01-13 19:12:40 +01004943 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4944 <condition var1="tw_hide_kb" op="=" var2="1" />
4945 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4946 <image resource="kb_show" />
4947 <condition var1="tw_busy" var2="0" />
4948 <actions>
4949 <action function="set">tw_hide_kb=0</action>
4950 <action function="page">terminalcommand</action>
4951 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004952 </button>
z31s1g56189522016-01-13 19:12:40 +01004953
z31s1g608d7ff2016-01-18 19:47:25 +01004954 <button>
z31s1g56189522016-01-13 19:12:40 +01004955 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4956 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4957 <image resource="back" />
4958 <condition var1="tw_busy" var2="0" />
4959 <actions>
4960 <action function="set">tw_hide_kb=0</action>
4961 <action function="key">back</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004962 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004963 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004964 </button>
z31s1g56189522016-01-13 19:12:40 +01004965
z31s1g28f0a922015-11-07 18:50:22 +01004966 <action>
4967 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004968 <actions>
4969 <action function="set">tw_hide_kb=0</action>
4970 <action function="page">main</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004971 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004972 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004973 </action>
4974
4975 <action>
4976 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004977 <actions>
4978 <action function="set">tw_hide_kb=0</action>
4979 <action function="page">advanced</action>
Mohd Faraz3c25ab32020-08-12 12:29:42 +00004980 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004981 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004982 </action>
z31s1g56189522016-01-13 19:12:40 +01004983
z31s1g608d7ff2016-01-18 19:47:25 +01004984 <action>
z31s1g56189522016-01-13 19:12:40 +01004985 <touch key="power+voldown" />
4986 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004987 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004988 </page>
4989
4990 <page name="sideload">
4991 <template name="page"/>
4992
4993 <text style="text_l">
4994 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004995 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004996 </text>
4997
4998 <text style="text_m">
4999 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005000 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005001 </text>
5002
5003 <checkbox>
5004 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005005 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005006 <data variable="tw_wipe_dalvik"/>
5007 </checkbox>
5008
5009 <checkbox>
5010 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005011 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005012 <data variable="tw_wipe_cache"/>
5013 </checkbox>
5014
5015 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005016 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005017 <actions>
5018 <action function="set">tw_back=advanced</action>
5019 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005020 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5021 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5022 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005023 <action function="set">tw_has_cancel=1</action>
5024 <action function="set">tw_show_reboot=1</action>
5025 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5026 <action function="page">action_page</action>
5027 </actions>
5028 </slider>
5029
5030 <action>
5031 <touch key="home"/>
5032 <action function="page">main</action>
5033 </action>
5034
5035 <action>
5036 <touch key="back"/>
5037 <action function="page">advanced</action>
5038 </action>
5039 </page>
5040
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005041 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005042 <template name="page"/>
5043
5044 <text style="text_l">
5045 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005046 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005047 </text>
5048
5049 <text style="text_m">
5050 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005051 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005052 </text>
5053
5054 <text style="text_m_accent">
5055 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005056 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005057 </text>
5058
z31s1g28f0a922015-11-07 18:50:22 +01005059 <text style="text_m_fail">
5060 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005061 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005062 </text>
5063
5064 <text style="text_m_fail">
5065 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005066 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005067 </text>
5068
5069 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005070 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005071 <actions>
5072 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005073 <action function="set">tw_action=fixcontexts</action>
5074 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5075 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005076 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005077 <action function="set">tw_show_reboot=1</action>
5078 <action function="page">action_page</action>
5079 </actions>
5080 </slider>
5081
5082 <action>
5083 <touch key="home"/>
5084 <action function="page">main</action>
5085 </action>
5086
5087 <action>
5088 <touch key="back"/>
5089 <action function="page">advanced</action>
5090 </action>
5091 </page>
5092
z31s1g28f0a922015-11-07 18:50:22 +01005093 <page name="slideout">
5094 <fill color="%background_color%">
5095 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5096 </fill>
5097
5098 <console>
5099 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5100 </console>
5101
5102 <button>
5103 <fill color="%transparent%"/>
5104 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5105 <action function="overlay"/>
5106 </button>
5107
5108 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005109 <touch key="power"/>
5110 <action function="togglebacklight"/>
5111 </action>
5112
5113 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005114 <touch key="power+voldown"/>
5115 <action function="screenshot"/>
5116 </action>
5117 </page>
5118
5119 <page name="select_storage">
5120 <fill color="%semi_transparent%">
5121 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5122 </fill>
5123
5124 <fill color="%background_color%">
5125 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5126 </fill>
5127
5128 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005129 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005130 <data name="tw_storage_path"/>
5131 <listtype name="storage"/>
5132 </partitionlist>
5133
5134 <button style="button_third_width">
5135 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005136 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005137 <actions>
5138 <action function="set">tw_clear_destination=%tw_back%</action>
5139 <action function="overlay"/>
5140 <action function="page">clear_vars</action>
5141 </actions>
5142 </button>
5143
5144 <fill color="#000000">
5145 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5146 </fill>
5147
5148 <button>
5149 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5150 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5151 <image resource="back"/>
5152 <condition var1="tw_busy" var2="0"/>
5153 <actions>
5154 <action function="overlay"/>
5155 <action function="key">%tw_back%</action>
5156 </actions>
5157 </button>
5158
5159 <button>
5160 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5161 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5162 <image resource="console"/>
5163 <condition var1="tw_busy" var2="0"/>
5164 <action function="overlay">slideout</action>
5165 </button>
5166
5167 <button>
5168 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5169 <image resource="home"/>
5170 <condition var1="tw_busy" var2="0"/>
5171 <actions>
5172 <action function="overlay"/>
5173 <action function="key">home</action>
5174 </actions>
5175 </button>
5176
5177 <button>
5178 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5179 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5180 <image resource="console"/>
5181 <condition var1="tw_busy" var2="0"/>
5182 <action function="overlay">slideout</action>
5183 </button>
5184
5185 <button>
5186 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5187 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5188 <image resource="back"/>
5189 <condition var1="tw_busy" var2="0"/>
5190 <actions>
5191 <action function="overlay"/>
5192 <action function="key">%tw_back%</action>
5193 </actions>
5194 </button>
5195
5196 <action>
5197 <touch key="power+voldown"/>
5198 <action function="screenshot"/>
5199 </action>
5200 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005201
5202 <page name="select_language">
5203 <fill color="%semi_transparent%">
5204 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5205 </fill>
5206
5207 <fill color="%background_color%">
5208 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5209 </fill>
5210
5211 <listbox>
5212 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5213 <text>{@select_language=Select Language:}</text>
5214 <icon selected="radio_true" unselected="radio_false" />
5215 <data name="tw_language" />
5216 </listbox>
5217
5218 <button style="button_third_width">
5219 <placement x="%dialog_button_x%" y="%row14_y%"/>
5220 <text>{@ok_btn=OK}</text>
5221 <actions>
5222 <action function="overlay"/>
5223 <action function="setlanguage"></action>
5224 </actions>
5225 </button>
5226
5227 <fill color="#000000">
5228 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5229 </fill>
5230
5231 <button>
5232 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5233 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5234 <image resource="back"/>
5235 <condition var1="tw_busy" var2="0"/>
5236 <actions>
5237 <action function="overlay"/>
5238 <action function="key">%tw_back%</action>
5239 </actions>
5240 </button>
5241
5242 <button>
5243 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5244 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5245 <image resource="console"/>
5246 <condition var1="tw_busy" var2="0"/>
5247 <action function="overlay">slideout</action>
5248 </button>
5249
5250 <button>
5251 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5252 <image resource="home"/>
5253 <condition var1="tw_busy" var2="0"/>
5254 <actions>
5255 <action function="overlay"/>
5256 <action function="key">home</action>
5257 </actions>
5258 </button>
5259
5260 <button>
5261 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5262 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5263 <image resource="console"/>
5264 <condition var1="tw_busy" var2="0"/>
5265 <action function="overlay">slideout</action>
5266 </button>
5267
5268 <button>
5269 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5270 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5271 <image resource="back"/>
5272 <condition var1="tw_busy" var2="0"/>
5273 <actions>
5274 <action function="overlay"/>
5275 <action function="key">%tw_back%</action>
5276 </actions>
5277 </button>
5278
5279 <action>
5280 <touch key="power+voldown"/>
5281 <action function="screenshot"/>
5282 </action>
5283 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005284
5285 <page name="decrypt_users">
5286 <template name="page"/>
5287
5288 <text style="text_l">
5289 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5290 <text>{@decrypt_users=Decrypt Users}</text>
5291 </text>
5292
5293 <text style="text_m_accent">
5294 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5295 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5296 </text>
5297
5298 <listbox>
5299 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5300 <text>{@select_user=Select User}</text>
5301 <icon selected="radio_true" unselected="radio_false" />
5302 <data name="tw_crypto_user_id" />
5303 </listbox>
5304
5305 <button style="main_button_half_height">
5306 <placement x="%center_x%" y="%row21a_y%"/>
5307 <text>{@decrypt_users=Decrypt Users}</text>
5308 <action function="set">tw_crypto_password=</action>
5309 <action function="set">tw_password_fail=0</action>
5310 <action function="page">decrypt</action>
5311 </button>
5312
5313 <action>
5314 <touch key="home"/>
5315 <action function="page">main</action>
5316 </action>
5317
5318 <action>
5319 <touch key="back"/>
5320 <action function="page">advanced</action>
5321 </action>
5322 </page>
epicX98053c32021-01-04 13:01:31 +05305323
5324 <page name="changeTwrpFolder">
5325 <template name="page"/>
5326
5327 <text style="text_l">
5328 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5329 <text>{@advanced_hdr=Advanced}</text>
5330 </text>
5331
5332 <text style="text_m">
5333 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5334 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5335 </text>
5336
5337 <text style="text_m_accent">
5338 <placement x="%indent%" y="%row2_y%"/>
5339 <text>{@name=Name:}</text>
5340 </text>
5341
5342 <input>
5343 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5344 <text>%tw_custom_folder%</text>
5345 <data name="tw_custom_folder"/>
5346 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5347 <actions>
5348 <action function="set">tw_back=changeTwrpFolder</action>
5349 <action function="set">tw_action=applycustomtwrpfolder</action>
5350 <action function="set">tw_action_param=%tw_custom_folder%</action>
5351 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5352 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5353 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5354 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5355 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5356 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5357 <action function="set">tw_existpage=changeTwrpFolder</action>
5358 <action function="set">tw_notexistpage=confirm_action</action>
5359 <action function="page">filecheck</action>
5360 </actions>
5361 </input>
5362
5363 <fill color="%accent_color%">
5364 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5365 </fill>
5366
5367 <fill color="%text_fail_color%">
5368 <condition var1="tw_fileexists" var2="1"/>
5369 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5370 </fill>
5371
5372 <text style="text_m_fail">
5373 <condition var1="tw_fileexists" var2="1"/>
5374 <placement x="%indent%" y="%row4a_y%"/>
5375 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5376 </text>
5377
5378 <button style="main_button_half_height">
5379 <placement x="%indent%" y="%row10_y%"/>
5380 <text>{@cancel_btn=Cancel}</text>
5381 <actions>
5382 <action function="page">advanced</action>
5383 </actions>
5384 </button>
5385
5386 <button style="main_button_half_height">
5387 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5388 <placement x="%center_x%" y="%row10_y%"/>
5389 <text>{@restore_defaults_btn=Restore Defaults}</text>
5390 <actions>
5391 <action function="set">tw_back=changeTwrpFolder</action>
5392 <action function="set">tw_action=applycustomtwrpfolder</action>
5393 <action function="set">tw_action_param=TWRP</action>
5394 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5395 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5396 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5397 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5398 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5399 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5400 <action function="set">tw_existpage=changeTwrpFolder</action>
5401 <action function="set">tw_notexistpage=confirm_action</action>
5402 <action function="page">filecheck</action>
5403 </actions>
5404 </button>
5405
5406 <template name="keyboardtemplate"/>
5407
5408 <action>
5409 <touch key="home"/>
5410 <actions>
5411 <action function="page">main</action>
5412 </actions>
5413 </action>
5414
5415 <action>
5416 <touch key="back"/>
5417 <actions>
5418 <action function="page">advanced</action>
5419 </actions>
5420 </action>
5421 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005422 </pages>
5423</recovery>