blob: 9d47855066ae709a9320ac67f0fa5b1944ee3522 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
z31s1g28f0a922015-11-07 18:50:22 +0100149 <style name="slider">
150 <placement x="%center_x%" y="%row23_y%"/>
151 <font resource="font_s" color="%text_color%"/>
152 <resource base="slider" used="slider_used" touch="slider_touch"/>
153 </style>
154
155 <style name="slidervalue">
156 <resource handle="handle"/>
157 <font resource="font_m" color="%text_color%"/>
158 <colors line="%fileselector_linecolor%"/>
159 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
160 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100161
162 <style name="patternpassword">
163 <size name="tw_gui_pattern_grid_size" default="3"/>
164 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100165 </styles>
166
167 <pages>
168 <page name="main">
169 <action>
170 <actions>
171 <action function="set">tw_clear_destination=main2</action>
172 <action function="page">clear_vars</action>
173 </actions>
174 </action>
175 </page>
176
177 <page name="main2">
178 <template name="page"/>
179
180 <text style="text_l">
181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500182 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100183 </text>
184
185 <text style="text_m">
186 <condition var1="tw_no_cpu_temp" var2="0"/>
187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
188 <text>%tw_version%</text>
189 </text>
190
191 <button style="main_button">
192 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500193 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100194 <actions>
195 <action function="queueclear"/>
196 <action function="set">tw_selectimage=0</action>
197 <action function="page">install</action>
198 </actions>
199 </button>
200
201 <button style="main_button">
202 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500203 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100204 <action function="page">wipe</action>
205 </button>
206
207 <button style="main_button">
208 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500209 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100210 <action function="page">backup</action>
211 </button>
212
213 <button style="main_button">
214 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500215 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100216 <action function="page">restore</action>
217 </button>
218
219 <button style="main_button">
220 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">mount</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">settings</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">advanced</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">reboot</action>
241 </button>
242 </page>
243
244 <page name="install">
245 <template name="page"/>
246
247 <text style="text_l">
248 <condition var1="tw_selectimage" var2="0"/>
249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 </text>
252
253 <text style="text_l">
254 <condition var1="tw_selectimage" var2="1"/>
255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 </text>
258
259 <text style="text_m">
260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500261 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100262 </text>
263
264 <template name="sort_options"/>
265
266 <fileselector>
267 <condition var1="tw_selectimage" var2="0"/>
268 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
269 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200270 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-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>
epicX8f52c0a2021-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">
Chaosmaster7b66bf52020-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
Chaosmaster7b66bf52020-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
epicX8f52c0a2021-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 Jacobson81d638d2019-04-28 00:10:07 -0400741 <action function="set">tw_crypto_user_id=</action>
742 <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 Yonker8581ab32020-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">
bigbiffadc599e2020-05-28 19:36:30 +00001025 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-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 Jacobson81d638d2019-04-28 00:10:07 -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 Jacobson81d638d2019-04-28 00:10:07 -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 Jacobson81d638d2019-04-28 00:10:07 -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">
bigbiffee7b7ff2020-03-23 15:08:27 -04002725 <conditions>
2726 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2727 <condition var1="tw_is_super" op="=" var2="0"/>
2728 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002729 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002730 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002731 <image resource="checkbox_false"/>
2732 <action function="mountsystemtoggle">1</action>
2733 </button>
2734
2735 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002736 <conditions>
2737 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2738 <condition var1="tw_is_super" op="=" var2="0"/>
2739 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002740 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002741 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002742 <image resource="checkbox_true"/>
2743 <actions>
2744 <action function="set">tw_lifetime_writes=2</action>
2745 <action function="page">system_readonly_check</action>
2746 </actions>
2747 </button>
2748
2749 <button style="main_button_half_height">
2750 <condition var1="tw_has_usb_storage" var2="1"/>
2751 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002752 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002753 <action function="page">usb_mount</action>
2754 </button>
2755
2756 <button style="main_button_half_height">
2757 <conditions>
2758 <condition var1="tw_is_encrypted" var2="1"/>
2759 <condition var1="tw_is_decrypted" var2="0"/>
2760 </conditions>
2761 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002762 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002763 <action function="set">tw_crypto_user_id=0</action>
2764 <action function="set">tw_crypto_password=</action>
2765 <action function="set">tw_password_fail=0</action>
2766 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002767 <action function="page">decrypt</action>
2768 </button>
2769
2770 <button style="main_button_half_height">
2771 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002772 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002773 <actions>
2774 <action function="set">tw_back=mount</action>
2775 <action function="overlay">select_storage</action>
2776 </actions>
2777 </button>
2778
2779 <button style="main_button_half_height">
2780 <conditions>
2781 <condition var1="tw_has_mtp" var2="1"/>
2782 <condition var1="tw_mtp_enabled" var2="0"/>
2783 </conditions>
2784 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002785 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002786 <action function="startmtp"/>
2787 </button>
2788
2789 <button style="main_button_half_height">
2790 <conditions>
2791 <condition var1="tw_has_mtp" var2="1"/>
2792 <condition var1="tw_mtp_enabled" var2="1"/>
2793 </conditions>
2794 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002795 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002796 <action function="stopmtp"/>
2797 </button>
2798
2799 <action>
2800 <touch key="home"/>
2801 <action function="page">main</action>
2802 </action>
2803
2804 <action>
2805 <touch key="back"/>
2806 <action function="page">main</action>
2807 </action>
2808 </page>
2809
2810 <page name="usb_mount">
2811 <template name="page"/>
2812
2813 <text style="text_l">
2814 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002815 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002816 </text>
2817
2818 <text style="text_m">
2819 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002820 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002821 </text>
2822
2823 <text style="text_m_accent">
2824 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002825 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002826 </text>
2827
2828 <text style="text_m">
2829 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002830 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002831 </text>
2832
2833 <text style="text_m">
2834 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002835 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002836 </text>
2837
2838 <button style="main_button_half_height">
2839 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002840 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002841 <action function="page">usb_umount</action>
2842 </button>
2843
2844 <action>
2845 <action function="mount">usb</action>
2846 <action function="set">tw_busy=1</action>
2847 </action>
2848 </page>
2849
2850 <page name="usb_umount">
2851 <action>
2852 <action function="unmount">usb</action>
2853 </action>
2854
2855 <action>
2856 <action function="page">mount</action>
2857 <action function="set">tw_busy=0</action>
2858 </action>
2859 </page>
2860
2861 <page name="system_readonly_check">
2862 <action>
2863 <action function="checkpartitionlifetimewrites">/system</action>
2864 </action>
2865
2866 <action>
2867 <condition var1="tw_lifetime_writes" var2="1"/>
2868 <actions>
2869 <action function="mountsystemtoggle">0</action>
2870 <action function="page">mount</action>
2871 </actions>
2872 </action>
2873
2874 <action>
2875 <condition var1="tw_lifetime_writes" var2="0"/>
2876 <actions>
2877 <action function="set">tw_back=mount</action>
2878 <action function="page">system_readonly</action>
2879 </actions>
2880 </action>
2881 </page>
2882
bigbiffdf8436b2020-08-30 16:22:34 -04002883 <page name="fastbootreboot">
2884 <template name="page"/>
2885
2886 <text style="text_l">
2887 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2888 <text>{@reboot_hdr=Reboot}</text>
2889 </text>
2890
2891 <listbox style="advanced_listbox">
2892 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2893
2894 <listitem name="{@rb_system_btn=System}">
2895 <condition var1="tw_reboot_system" var2="1"/>
2896 <actions>
2897 <action function="set">tw_back=fastbootreboot</action>
2898 <action function="set">tw_action=reboot</action>
2899 <action function="set">tw_action_param=system</action>
2900 <action function="set">tw_reboot_param=system</action>
2901 <action function="set">tw_has_action2=0</action>
2902 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2903 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2904 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2905 <action function="page">confirm_action</action>
2906 </actions>
2907 </listitem>
2908
2909 <listitem name="{@rb_poweroff_btn=Power Off}">
2910 <condition var1="tw_reboot_poweroff" var2="1"/>
2911 <actions>
2912 <action function="set">tw_back=fastbootreboot</action>
2913 <action function="set">tw_action=reboot</action>
2914 <action function="set">tw_action_param=poweroff</action>
2915 <action function="set">tw_reboot_param=poweroff</action>
2916 <action function="set">tw_has_action2=0</action>
2917 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2918 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2919 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2920 <action function="page">confirm_action</action>
2921 </actions>
2922 </listitem>
2923
2924 <listitem name="{@rb_recovery_btn=Recovery}">
2925 <condition var1="tw_reboot_recovery" var2="1"/>
2926 <actions>
2927 <action function="set">tw_back=fastbootreboot</action>
2928 <action function="set">tw_action=reboot</action>
2929 <action function="set">tw_action_param=recovery</action>
2930 <action function="set">tw_reboot_param=recovery</action>
2931 <action function="set">tw_has_action2=0</action>
2932 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2933 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2934 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2935 <action function="page">confirm_action</action>
2936 </actions>
2937 </listitem>
2938
2939 <listitem name="{@rb_bootloader_btn=Bootloader}">
2940 <condition var1="tw_reboot_bootloader" var2="1"/>
2941 <actions>
2942 <action function="set">tw_back=fastbootreboot</action>
2943 <action function="set">tw_action=reboot</action>
2944 <action function="set">tw_action_param=bootloader</action>
2945 <action function="set">tw_reboot_param=bootloader</action>
2946 <action function="set">tw_has_action2=0</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">confirm_action</action>
2951 </actions>
2952 </listitem>
2953
2954 <listitem name="{@rb_download_btn=Download}">
2955 <condition var1="tw_download_mode" var2="1"/>
2956 <actions>
2957 <action function="set">tw_back=fastbootreboot</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_action_text1={@rebooting=Rebooting...}</action>
2963 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2964 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2965 <action function="page">confirm_action</action>
2966 </actions>
2967 </listitem>
2968
2969 <listitem name="{@fastboot_button=Fastboot}">
2970 <condition var1="tw_fastboot_mode" var2="1"/>
2971 <actions>
2972 <action function="set">tw_back=fastbootreboot</action>
2973 <action function="set">tw_action=reboot</action>
2974 <action function="set">tw_action_param=fastboot</action>
2975 <action function="set">tw_reboot_param=fastboot</action>
2976 <action function="set">tw_has_action2=0</action>
2977 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2978 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2979 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2980 <action function="page">confirm_action</action>
2981 </actions>
2982 </listitem>
2983
2984 <listitem name="{@rb_edl_btn=Edl}">
2985 <condition var1="tw_edl_mode" var2="1"/>
2986 <actions>
2987 <action function="set">tw_back=fastbootreboot</action>
2988 <action function="set">tw_action=reboot</action>
2989 <action function="set">tw_action_param=edl</action>
2990 <action function="set">tw_reboot_param=edl</action>
2991 <action function="set">tw_has_action2=0</action>
2992 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2993 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2994 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2995 <action function="page">confirm_action</action>
2996 </actions>
2997 </listitem>
2998 </listbox>
2999
3000 <action>
3001 <touch key="home"/>
3002 <action function="page">fastboot</action>
3003 </action>
3004
3005 <action>
3006 <touch key="back"/>
3007 <action function="page">fastboot</action>
3008 </action>
3009 </page>
3010
z31s1g28f0a922015-11-07 18:50:22 +01003011 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003012 <action>
3013 <action function="checkforapp"></action>
3014 <action function="page">reboot2</action>
3015 </action>
3016 </page>
3017
3018 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003019 <template name="page"/>
3020
3021 <text style="text_l">
3022 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003023 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003024 </text>
3025
bigbiffdf8436b2020-08-30 16:22:34 -04003026 <listbox style="advanced_listbox">
3027 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003028
bigbiffdf8436b2020-08-30 16:22:34 -04003029 <listitem name="{@rb_system_btn=System}">
3030 <condition var1="tw_reboot_system" var2="1"/>
3031 <actions>
3032 <action function="set">tw_back=reboot</action>
3033 <action function="page">reboot_system_routine</action>
3034 </actions>
3035 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003036
bigbiffdf8436b2020-08-30 16:22:34 -04003037 <listitem name="{@rb_poweroff_btn=Power Off}">
3038 <condition var1="tw_reboot_poweroff" var2="1"/>
3039 <actions>
3040 <action function="set">tw_back=reboot</action>
3041 <action function="set">tw_action=reboot</action>
3042 <action function="set">tw_action_param=poweroff</action>
3043 <action function="set">tw_reboot_param=poweroff</action>
3044 <action function="set">tw_has_action2=0</action>
3045 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3046 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3047 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3048 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3049 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3050 <action function="page">rebootcheck</action>
3051 </actions>
3052 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003053
bigbiffdf8436b2020-08-30 16:22:34 -04003054 <listitem name="{@rb_recovery_btn=Recovery}">
3055 <condition var1="tw_reboot_recovery" var2="1"/>
3056 <actions>
3057 <action function="set">tw_back=reboot</action>
3058 <action function="set">tw_action=reboot</action>
3059 <action function="set">tw_action_param=recovery</action>
3060 <action function="set">tw_reboot_param=recovery</action>
3061 <action function="set">tw_has_action2=0</action>
3062 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3063 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3064 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3065 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3066 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3067 <action function="page">rebootcheck</action>
3068 </actions>
3069 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003070
bigbiffdf8436b2020-08-30 16:22:34 -04003071 <listitem name="{@rb_bootloader_btn=Bootloader}">
3072 <condition var1="tw_reboot_bootloader" var2="1"/>
3073 <actions>
3074 <action function="set">tw_back=reboot</action>
3075 <action function="set">tw_action=reboot</action>
3076 <action function="set">tw_action_param=bootloader</action>
3077 <action function="set">tw_reboot_param=bootloader</action>
3078 <action function="set">tw_has_action2=0</action>
3079 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3080 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3081 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3082 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3083 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3084 <action function="page">rebootcheck</action>
3085 </actions>
3086 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003087
bigbiffdf8436b2020-08-30 16:22:34 -04003088 <listitem name="{@rb_download_btn=Download}">
3089 <condition var1="tw_download_mode" var2="1"/>
3090 <actions>
3091 <action function="set">tw_back=reboot</action>
3092 <action function="set">tw_action=reboot</action>
3093 <action function="set">tw_action_param=download</action>
3094 <action function="set">tw_reboot_param=download</action>
3095 <action function="set">tw_has_action2=0</action>
3096 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3097 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3098 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3099 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3100 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3101 <action function="page">rebootcheck</action>
3102 </actions>
3103 </listitem>
3104
3105 <listitem name="{@fastboot_button=Fastboot}">
3106 <condition var1="tw_fastboot_mode" var2="1"/>
3107 <actions>
3108 <action function="set">tw_back=reboot</action>
3109 <action function="set">tw_action=reboot</action>
3110 <action function="set">tw_action_param=fastboot</action>
3111 <action function="set">tw_reboot_param=fastboot</action>
3112 <action function="set">tw_has_action2=0</action>
3113 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3114 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3115 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3116 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3117 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3118 <action function="page">rebootcheck</action>
3119 </actions>
3120 </listitem>
3121
3122 <listitem name="{@rb_edl_btn=Edl}">
3123 <condition var1="tw_edl_mode" var2="1"/>
3124 <actions>
3125 <action function="set">tw_back=reboot</action>
3126 <action function="set">tw_action=reboot</action>
3127 <action function="set">tw_action_param=edl</action>
3128 <action function="set">tw_reboot_param=edl</action>
3129 <action function="set">tw_has_action2=0</action>
3130 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3131 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3132 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3133 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3134 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3135 <action function="page">rebootcheck</action>
3136 </actions>
3137 </button>
3138 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003139
Ethan Yonker1b190162016-12-05 15:25:19 -06003140 <text style="text_m">
3141 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003142 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003143 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3144 </text>
3145
bigbiffdf8436b2020-08-30 16:22:34 -04003146 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003147 <condition var1="tw_has_boot_slots" var2="1"/>
3148 <placement x="%indent%" y="%row19_y%"/>
3149 <text>{@boot_slot_a=Slot A}</text>
3150 <actions>
3151 <action function="set">tw_back=reboot</action>
3152 <action function="set">tw_action=setbootslot</action>
3153 <action function="set">tw_action_param=A</action>
3154 <action function="set">tw_has_action2=0</action>
3155 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3156 <action function="set">tw_action_text2=</action>
3157 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3158 <action function="page">action_page</action>
3159 </actions>
3160 </button>
3161
bigbiffdf8436b2020-08-30 16:22:34 -04003162 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003163 <condition var1="tw_has_boot_slots" var2="1"/>
3164 <placement x="%center_x%" y="%row19_y%"/>
3165 <text>{@boot_slot_b=Slot B}</text>
3166 <actions>
3167 <action function="set">tw_back=reboot</action>
3168 <action function="set">tw_action=setbootslot</action>
3169 <action function="set">tw_action_param=B</action>
3170 <action function="set">tw_has_action2=0</action>
3171 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3172 <action function="set">tw_action_text2=</action>
3173 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3174 <action function="page">action_page</action>
3175 </actions>
3176 </button>
3177
Ethan Yonker8581ab32020-12-17 14:51:50 -06003178 <button style="main_button_half_height">
3179 <condition var1="tw_app_install_status" var2="1"/>
3180 <placement x="%indent%" y="%row22_y%"/>
3181 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3182 <actions>
3183 <action function="set">tw_back=reboot</action>
3184 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3185 <action function="page">installapp</action>
3186 </actions>
3187 </button>
3188
z31s1g28f0a922015-11-07 18:50:22 +01003189 <action>
3190 <touch key="home"/>
3191 <action function="page">main</action>
3192 </action>
3193
3194 <action>
3195 <touch key="back"/>
3196 <action function="page">main</action>
3197 </action>
3198 </page>
3199
Ethan Yonker8581ab32020-12-17 14:51:50 -06003200 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003201 <template name="page"/>
3202
3203 <text style="text_l">
3204 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003205 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003206 </text>
3207
3208 <text style="text_m">
3209 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003210 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003211 </text>
3212
3213 <text style="text_m_accent">
3214 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3215 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3216 </text>
3217
3218 <text style="text_m_accent">
3219 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3220 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3221 </text>
3222
3223 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003224 <condition var1="tw_mount_system_ro" var2="0"/>
3225 <placement x="%indent%" y="%row7_y%"/>
3226 <text>{@reboot_install_app_system=Install as a System App}</text>
3227 <data variable="tw_app_install_system"/>
3228 </checkbox>
3229
3230 <button style="main_button_half_height">
3231 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003232 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003233 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003234 </button>
3235
3236 <slider>
3237 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3238 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003239 <action function="set">tw_action=installapp</action>
3240 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3241 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003242 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003243 <action function="page">action_page</action>
3244 </actions>
3245 </slider>
3246
3247 <action>
3248 <touch key="home"/>
3249 <actions>
3250 <action function="set">tw_app_install_status=0</action>
3251 <action function="page">main</action>
3252 </actions>
3253 </action>
3254
3255 <action>
3256 <touch key="back"/>
3257 <actions>
3258 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003259 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003260 </actions>
3261 </action>
3262 </page>
3263
z31s1g28f0a922015-11-07 18:50:22 +01003264 <page name="system_readonly">
3265 <template name="page"/>
3266
3267 <text style="text_l">
3268 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003269 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003270 </text>
3271
3272 <text style="text_m_accent">
3273 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003274 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003275 </text>
3276
3277 <text style="text_m">
3278 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003279 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003280 </text>
3281
3282 <text style="text_m">
3283 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003284 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003285 </text>
3286
3287 <text style="text_m">
3288 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 </text>
3291
3292 <text style="text_m">
3293 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003294 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003295 </text>
3296
3297 <text style="text_m_fail">
3298 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003299 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003300 </text>
3301
3302 <text style="text_m_fail">
3303 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003304 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003305 </text>
3306
3307 <checkbox>
3308 <condition var1="tw_is_encrypted" var2="0"/>
3309 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003310 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003311 <data variable="tw_never_show_system_ro_page"/>
3312 </checkbox>
3313
3314 <button style="main_button_half_height">
3315 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003316 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003317 <actions>
3318 <action function="mountsystemtoggle">1</action>
3319 <action function="set">tw_page_done=1</action>
3320 <action function="page">%tw_back%</action>
3321 </actions>
3322 </button>
3323
z31s1g608d7ff2016-01-18 19:47:25 +01003324 <button style="main_button_half_height">
3325 <placement x="%center_x%" y="%row18a_y%"/>
3326 <text>{@sel_lang_btn=Select Language}</text>
3327 <action function="overlay">select_language</action>
3328 </button>
3329
z31s1g28f0a922015-11-07 18:50:22 +01003330 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003331 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003332 <actions>
3333 <action function="mountsystemtoggle">0</action>
3334 <action function="set">tw_page_done=1</action>
3335 <action function="page">%tw_back%</action>
3336 </actions>
3337 </slider>
3338 </page>
3339
3340 <page name="settings">
3341 <template name="page"/>
3342
3343 <text style="text_l">
3344 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003345 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003346 </text>
3347
3348 <text style="text_m">
3349 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003350 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003351 </text>
3352
3353 <template name="tabs_settings"/>
3354
3355 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003356 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003357 </fill>
3358
3359 <listbox style="scrolllist">
3360 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3361 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003362 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003363 <data variable="tw_signed_zip_verify"/>
3364 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003365 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3366 <data variable="tw_install_reboot"/>
3367 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003368 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003369 <data variable="tw_rm_rf"/>
3370 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003371 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3372 <data variable="tw_disable_free_space"/>
3373 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003374 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3375 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003376 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003377 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3378 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003379 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003380 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003381 <data variable="tw_military_time"/>
3382 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003383 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003384 <data variable="tw_samsung_navbar"/>
3385 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003386 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003387 <data variable="tw_simulate_actions"/>
3388 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003390 <condition var1="tw_simulate_actions" var2="1"/>
3391 <data variable="tw_simulate_fail"/>
3392 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003393 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3394 <condition var1="tw_no_sha2" var2="0"/>
3395 <data variable="tw_use_sha2"/>
3396 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003397 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3398 <data variable="tw_unmount_system"/>
3399 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003400 </listbox>
3401
3402 <button style="main_button_half_height">
3403 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003404 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003405 <actions>
3406 <action function="set">tw_samsung_navbar=0</action>
3407 <action function="set">tw_tab_icons=0</action>
3408 <action function="restoredefaultsettings"/>
3409 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003410 </button>
3411
3412 <action>
3413 <touch key="home"/>
3414 <action function="page">main</action>
3415 </action>
3416
3417 <action>
3418 <touch key="back"/>
3419 <action function="page">main</action>
3420 </action>
3421 </page>
3422
3423 <page name="settings_timezone">
3424 <template name="page"/>
3425
3426 <text style="text_l">
3427 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003428 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003429 </text>
3430
3431 <text style="text_m">
3432 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003433 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003434 </text>
3435
3436 <template name="tabs_settings"/>
3437
3438 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003439 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003440 </fill>
3441
3442 <listbox>
3443 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003444 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003445 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003446 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3447 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3448 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3449 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3450 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3451 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3452 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3453 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3454 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3455 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3456 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3457 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3458 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3459 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3460 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3461 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3462 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3463 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3464 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3465 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3466 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3467 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3468 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3469 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003470 </listbox>
3471
3472 <text style="text_m_accent">
3473 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003474 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003475 </text>
3476
3477 <button style="button_quarter_width">
3478 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003479 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003480 <action function="set">tw_time_zone_guioffset=0</action>
3481 </button>
3482
3483 <button style="button_quarter_width">
3484 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003485 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003486 <action function="set">tw_time_zone_guioffset=15</action>
3487 </button>
3488
3489 <button style="button_quarter_width">
3490 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003491 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003492 <action function="set">tw_time_zone_guioffset=30</action>
3493 </button>
3494
3495 <button style="button_quarter_width">
3496 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003497 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003498 <action function="set">tw_time_zone_guioffset=45</action>
3499 </button>
3500
3501 <checkbox>
3502 <placement x="%indent%" y="%row18a_y%"/>
3503 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003504 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003505 <data variable="tw_time_zone_guidst"/>
3506 <image checked="checkbox_true" unchecked="checkbox_false"/>
3507 </checkbox>
3508
3509 <text color="%text_color%">
3510 <font resource="font_m"/>
3511 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003512 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003513 </text>
3514
3515 <button>
3516 <highlight color="%highlight_color%"/>
3517 <placement x="%center_x%" y="%row21a_y%"/>
3518 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003519 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003520 <image resource="main_button_half_height"/>
3521 <action function="setguitimezone"/>
3522 </button>
3523
3524 <action>
3525 <touch key="home"/>
3526 <action function="page">main</action>
3527 </action>
3528
3529 <action>
3530 <touch key="back"/>
3531 <action function="page">main</action>
3532 </action>
3533 </page>
3534
3535 <page name="settings_screen">
3536 <template name="page"/>
3537
3538 <text style="text_l">
3539 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003540 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003541 </text>
3542
3543 <text style="text_m">
3544 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003545 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003546 </text>
3547
3548 <template name="tabs_settings"/>
3549
3550 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003551 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003552 </fill>
3553
3554 <button>
3555 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3556 <font resource="font_m" color="%text_color%"/>
3557 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3558 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003559 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003560 <image resource="checkbox_false"/>
3561 <action function="set">tw_screen_timeout_secs=60</action>
3562 </button>
3563
3564 <button>
3565 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3566 <font resource="font_m" color="%text_color%"/>
3567 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3568 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003569 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003570 <image resource="checkbox_true"/>
3571 <action function="set">tw_screen_timeout_secs=0</action>
3572 </button>
3573
3574 <slidervalue>
3575 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3576 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3577 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003578 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003579 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3580 </slidervalue>
3581
3582 <slidervalue>
3583 <condition var1="tw_has_brightnesss_file" var2="1"/>
3584 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003585 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003586 <data variable="tw_brightness_pct" min="10" max="100"/>
3587 <actions>
3588 <action function="set">tw_brightness=%tw_brightness_max%</action>
3589 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3590 <action function="compute">tw_brightness/100</action>
3591 <action function="setbrightness">%tw_brightness%</action>
3592 </actions>
3593 </slidervalue>
3594
3595 <action>
3596 <touch key="home"/>
3597 <action function="page">main</action>
3598 </action>
3599
3600 <action>
3601 <touch key="back"/>
3602 <action function="page">main</action>
3603 </action>
3604 </page>
3605
3606 <page name="settings_vibration">
3607 <template name="page"/>
3608
3609 <text style="text_l">
3610 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003611 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003612 </text>
3613
3614 <text style="text_m">
3615 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003616 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003617 </text>
3618
3619 <template name="tabs_settings"/>
3620
3621 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003622 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003623 </fill>
3624
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003625 <text style="text_m">
3626 <condition var1="tw_disable_haptics" var2="1"/>
3627 <placement x="%indent%" y="%row4_y%"/>
3628 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3629 </text>
3630
z31s1g28f0a922015-11-07 18:50:22 +01003631 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003632 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003633 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003634 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003635 <data variable="tw_button_vibrate" min="0" max="300"/>
3636 </slidervalue>
3637
3638 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003639 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003640 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003641 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003642 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3643 </slidervalue>
3644
3645 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003646 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003647 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003648 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003649 <data variable="tw_action_vibrate" min="0" max="500"/>
3650 </slidervalue>
3651
3652 <action>
3653 <touch key="home"/>
3654 <action function="page">main</action>
3655 </action>
3656
3657 <action>
3658 <touch key="back"/>
3659 <action function="page">main</action>
3660 </action>
3661 </page>
3662
Ethan Yonker74db1572015-10-28 12:44:49 -05003663 <page name="settings_language">
3664 <template name="page"/>
3665
3666 <text style="text_l">
3667 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3668 <text>{@settings_hdr=Settings}</text>
3669 </text>
3670
3671 <text style="text_m">
3672 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3673 <text>{@language_hdr=Language - %tw_language_display%}</text>
3674 </text>
3675
3676 <template name="tabs_settings"/>
3677
3678 <fill color="%text_color%">
3679 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3680 </fill>
3681
3682 <listbox>
3683 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3684 <text>{@select_language=Select Language:}</text>
3685 <icon selected="radio_true" unselected="radio_false" />
3686 <data name="tw_language" />
3687 </listbox>
3688
3689 <button style="main_button_half_height">
3690 <placement x="%center_x%" y="%row21a_y%"/>
3691 <text>{@set_language_btn=Set Language}</text>
3692 <action function="setlanguage"></action>
3693 </button>
3694
3695 <action>
3696 <touch key="home" />
3697 <action function="page">main</action>
3698 </action>
3699
3700 <action>
3701 <touch key="back" />
3702 <action function="page">settings</action>
3703 </action>
3704 </page>
3705
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003706 <page name="copylog">
3707 <template name="page"/>
3708
3709 <text style="text_l">
3710 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3711 <text>{@copying_log=Copy Logs to SD Card}</text>
3712 </text>
3713
3714 <checkbox>
3715 <placement x="%indent%" y="%row4_y%"/>
3716 <text>{@include_kernel_log=Include Kernel Log}</text>
3717 <data variable="tw_include_kernel_log" value="1"/>
3718 </checkbox>
3719
3720 <slider>
3721 <text>{@copying_log=Copy Logs to SD Card}</text>
3722 <actions>
3723 <action function="set">tw_back=advanced</action>
3724 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003725 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3726 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003727 <action function="page">action_page</action>
3728 </actions>
3729 </slider>
3730
3731 <action>
3732 <touch key="home"/>
3733 <action function="page">main</action>
3734 </action>
3735
3736 <action>
3737 <touch key="back"/>
3738 <actions>
3739 <action function="page">advanced</action>
3740 </actions>
3741 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003742 </page>
3743
z31s1g28f0a922015-11-07 18:50:22 +01003744 <page name="advanced">
3745 <template name="page"/>
3746
3747 <text style="text_l">
3748 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003749 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003750 </text>
3751
3752 <button style="main_button">
3753 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003754 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003755 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003756 </button>
3757
3758 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003759 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003760 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003761 <text>{@adb_sideload_btn=ADB Sideload}</text>
3762 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003763 </button>
3764
3765 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003766 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003767 <text>{@terminal_btn=Terminal}</text>
3768 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003769 </button>
3770
3771 <button style="main_button">
3772 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003773 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003774 <action function="page">filemanagerlist</action>
3775 </button>
3776
Ethan Yonker64e0a652018-07-25 09:52:17 -05003777 <listbox style="advanced_listbox">
3778 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Ian Macdonaldef7768e2021-03-01 21:31:07 +01003779 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
epicXa721f952021-01-04 13:01:31 +05303780 <condition var1="tw_is_encrypted" var2="0"/>
3781 <action function="page">changeTwrpFolder</action>
3782 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003783 <listitem name="{@decrypt_users=Decrypt Users}">
3784 <conditions>
3785 <condition var1="tw_is_fbe" var2="1"/>
3786 <condition var1="tw_all_users_decrypted" var2="0"/>
3787 </conditions>
3788 <actions>
3789 <action function="set">tw_crypto_user_id=</action>
3790 <action function="page">decrypt_users</action>
3791 </actions>
3792 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003793 <listitem name="{@reload_theme_btn=Reload Theme}">
3794 <action function="reload"/>
3795 </listitem>
3796 <listitem name="{@part_sd_btn=Partition SD Card}">
3797 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3798 <actions>
3799 <action function="set">partitionlisterror=0</action>
3800 <action function="page">partsdcardsel</action>
3801 </actions>
3802 </listitem>
3803 <listitem name="{@fix_context_btn=Fix Contexts}">
3804 <condition var1="tw_has_data_media" var2="1"/>
3805 <action function="page">fixcontexts</action>
3806 </listitem>
3807 <listitem name="{@dumlock_btn=HTC Dumlock}">
3808 <condition var1="tw_show_dumlock" var2="1"/>
3809 <action function="page">htcdumlock</action>
3810 </listitem>
3811 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3812 <condition var1="tw_has_injecttwrp" var2="1"/>
3813 <actions>
3814 <action function="set">tw_back=advanced</action>
3815 <action function="set">tw_action=reinjecttwrp</action>
3816 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3817 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3818 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3819 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3820 <action function="page">confirm_action</action>
3821 </actions>
3822 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003823 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3824 <conditions>
3825 <condition var1="tw_has_boot_slots" var2="1"/>
3826 <condition var1="tw_has_repack_tools" var2="1"/>
3827 </conditions>
3828 <actions>
3829 <action function="set">tw_repack_kernel=0</action>
3830 <action function="page">repackselect</action>
3831 </actions>
3832 </listitem>
3833 <listitem name="{@install_kernel=Install Kernel}">
3834 <conditions>
3835 <condition var1="tw_has_boot_slots" var2="1"/>
3836 <condition var1="tw_has_repack_tools" var2="1"/>
3837 </conditions>
3838 <actions>
3839 <action function="set">tw_repack_kernel=1</action>
3840 <action function="page">repackselect</action>
3841 </actions>
3842 </listitem>
3843 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3844 <conditions>
3845 <condition var1="tw_has_boot_slots" var2="1"/>
3846 <condition var1="tw_has_repack_tools" var2="1"/>
3847 </conditions>
3848 <actions>
3849 <action function="set">tw_back=advanced</action>
3850 <action function="set">tw_action=fixabrecoverybootloop</action>
3851 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3852 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3853 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3854 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3855 <action function="page">confirm_action</action>
3856 </actions>
3857 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003858 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3859 <condition var1="tw_app_install_status" var2="1"/>
3860 <actions>
3861 <action function="set">tw_back=advanced</action>
3862 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3863 <action function="page">installapp</action>
3864 </actions>
3865 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003866 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3867 <condition var1="tw_app_installed_in_system" var2="1"/>
3868 <actions>
3869 <action function="set">tw_back=advanced</action>
3870 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3871 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3872 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3873 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3874 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3875 <action function="page">confirm_action</action>
3876 </actions>
3877 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003878 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003879
3880 <action>
3881 <touch key="home"/>
3882 <action function="page">main</action>
3883 </action>
3884
3885 <action>
3886 <touch key="back"/>
3887 <action function="page">main</action>
3888 </action>
3889 </page>
3890
Ethan Yonker483e9f42016-01-11 22:21:18 -06003891 <page name="partsdcardsel">
3892 <template name="page"/>
3893
3894 <text style="text_l">
3895 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3896 <text>{@advanced_hdr=Advanced}</text>
3897 </text>
3898
3899 <text style="text_m">
3900 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3901 <text>{@part_sd_hdr=Partition SD Card}</text>
3902 </text>
3903
z31s1g782e1c92016-01-30 16:50:09 +01003904 <partitionlist>
3905 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003906 <text>{@sel_storage_list=Select Storage}</text>
3907 <data name="tw_storage_path"/>
3908 <listtype name="storage"/>
3909 </partitionlist>
3910
3911 <text style="text_m_fail">
3912 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003913 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003914 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3915 </text>
3916
z31s1g782e1c92016-01-30 16:50:09 +01003917 <button style="main_button_half_height">
3918 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003919 <text>{@ok_btn=OK}</text>
3920 <actions>
3921 <action function="getpartitiondetails">tw_storage_path</action>
3922 <action function="page">partsdcardcheck</action>
3923 </actions>
3924 </button>
3925
3926 <action>
3927 <touch key="home"/>
3928 <action function="page">main</action>
3929 </action>
3930
3931 <action>
3932 <touch key="back"/>
3933 <action function="page">advanced</action>
3934 </action>
3935 </page>
3936
3937 <page name="partsdcardcheck">
3938 <action>
3939 <condition var1="tw_partition_removable" op="=" var2="1"/>
3940 <actions>
3941 <action function="set">partitionlisterror=0</action>
3942 <action function="page">partsdcard</action>
3943 </actions>
3944 </action>
3945
3946 <action>
3947 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3948 <actions>
3949 <action function="set">partitionlisterror=1</action>
3950 <action function="page">partsdcardsel</action>
3951 </actions>
3952 </action>
3953 </page>
3954
z31s1g28f0a922015-11-07 18:50:22 +01003955 <page name="partsdcard">
3956 <template name="page"/>
3957
3958 <text style="text_l">
3959 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003960 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003961 </text>
3962
3963 <text style="text_m">
3964 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003965 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003966 </text>
3967
3968 <text style="text_m_fail">
3969 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003970 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003971 </text>
3972
3973 <text style="text_m_fail">
3974 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003975 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003976 </text>
3977
3978 <text style="text_m_accent">
3979 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003980 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003981 </text>
3982
3983 <text style="text_m">
3984 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3985 <text>%tw_sdext_size%</text>
3986 </text>
3987
3988 <button style="button_quarter_width">
3989 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003990 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003991 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003992 </button>
3993
3994 <button style="button_quarter_width">
3995 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003996 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003997 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003998 </button>
3999
4000 <text style="text_m_accent">
4001 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004002 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004003 </text>
4004
4005 <text style="text_m">
4006 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
4007 <text>%tw_swap_size%</text>
4008 </text>
4009
4010 <button style="button_quarter_width">
4011 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004012 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004013 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004014 </button>
4015
4016 <button style="button_quarter_width">
4017 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004018 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004019 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004020 </button>
4021
4022 <text style="text_m_accent">
4023 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004024 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004025 </text>
4026
4027 <text style="text_m">
4028 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4029 <text>%tw_sdpart_file_system%</text>
4030 </text>
4031
4032 <button style="button_quarter_width">
4033 <placement x="%indent%" y="%row14_y%"/>
4034 <text>EXT3</text>
4035 <action function="set">tw_sdpart_file_system=ext3</action>
4036 </button>
4037
4038 <button style="button_quarter_width">
4039 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4040 <text>EXT4</text>
4041 <action function="set">tw_sdpart_file_system=ext4</action>
4042 </button>
4043
4044 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004045 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004046 <action function="page">partsdcardaction</action>
4047 <actions>
4048 <action function="set">tw_back=partsdcard</action>
4049 <action function="set">tw_action=partitionsd</action>
4050 <action function="set">tw_has_action2=1</action>
4051 <action function="set">tw_action2=set</action>
4052 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004053 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4054 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4055 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004056 <action function="page">action_page</action>
4057 </actions>
4058 </slider>
4059
4060 <action>
4061 <touch key="home"/>
4062 <action function="page">main</action>
4063 </action>
4064
4065 <action>
4066 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004067 <actions>
4068 <action function="set">partitionlisterror=0</action>
4069 <action function="page">partsdcardsel</action>
4070 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004071 </action>
4072 </page>
4073
4074 <page name="htcdumlock">
4075 <template name="page"/>
4076
4077 <text style="text_l">
4078 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004079 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004080 </text>
4081
4082 <text style="text_m">
4083 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004084 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004085 </text>
4086
4087 <button style="main_button_half_height_full_width">
4088 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004089 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004090 <actions>
4091 <action function="set">tw_back=htcdumlock</action>
4092 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004093 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4094 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4095 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4096 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004097 <action function="page">confirm_action</action>
4098 </actions>
4099 </button>
4100
4101 <button style="main_button_half_height_full_width">
4102 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004103 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004104 <actions>
4105 <action function="set">tw_back=htcdumlock</action>
4106 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004107 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4108 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4109 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4110 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004111 <action function="page">confirm_action</action>
4112 </actions>
4113 </button>
4114
4115 <button style="main_button_half_height_full_width">
4116 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004117 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004118 <actions>
4119 <action function="set">tw_back=htcdumlock</action>
4120 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004121 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4122 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4123 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4124 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004125 <action function="page">confirm_action</action>
4126 </actions>
4127 </button>
4128
4129 <action>
4130 <touch key="home"/>
4131 <action function="page">main</action>
4132 </action>
4133
4134 <action>
4135 <touch key="back"/>
4136 <action function="page">advanced</action>
4137 </action>
4138 </page>
4139
Ethan Yonker53796e72019-01-11 22:49:52 -06004140 <page name="repackselect">
4141 <template name="page"/>
4142
4143 <text style="text_l">
4144 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4145 <text>{@repack_image_hdr=Select Image}</text>
4146 </text>
4147
4148 <text style="text_m">
4149 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4150 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4151 </text>
4152
4153 <template name="sort_options"/>
4154
4155 <fileselector>
4156 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4157 <text>%tw_zip_location%</text>
4158 <filter extn=".img" folders="1" files="1"/>
4159 <path name="tw_zip_location" default="/sdcard"/>
4160 <data name="tw_filename"/>
4161 <selection name="tw_file"/>
4162 </fileselector>
4163
4164 <button style="main_button_half_height">
4165 <placement x="%indent%" y="%row21a_y%"/>
4166 <text>{@select_storage_btn=Select Storage}</text>
4167 <actions>
4168 <action function="set">tw_back=repackselect</action>
4169 <action function="overlay">select_storage</action>
4170 </actions>
4171 </button>
4172
4173 <action>
4174 <conditions>
4175 <condition var1="tw_filename" op="modified"/>
4176 </conditions>
4177 <action function="page">repackconfirm</action>
4178 </action>
4179
4180 <action>
4181 <touch key="back"/>
4182 <action function="page">advanced</action>
4183 </action>
4184
4185 <action>
4186 <touch key="home"/>
4187 <action function="page">main</action>
4188 </action>
4189 </page>
4190
4191 <page name="repackconfirm">
4192 <template name="page"/>
4193
4194 <text style="text_l">
4195 <condition var1="tw_repack_kernel" var2="1"/>
4196 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4197 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4198 </text>
4199
4200 <text style="text_l">
4201 <condition var1="tw_repack_kernel" var2="0"/>
4202 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4203 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4204 </text>
4205
4206 <text style="text_m">
4207 <condition var1="tw_repack_kernel" var2="1"/>
4208 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4209 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4210 </text>
4211
4212 <text style="text_m">
4213 <condition var1="tw_repack_kernel" var2="0"/>
4214 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4215 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4216 </text>
4217
4218 <text style="text_m_accent">
4219 <placement x="%indent%" y="%row2_y%"/>
4220 <text>{@folder=Folder:}</text>
4221 </text>
4222
4223 <text style="text_m">
4224 <placement x="%indent%" y="%row3_y%"/>
4225 <text>%tw_zip_location%</text>
4226 </text>
4227
4228 <text style="text_m_accent">
4229 <placement x="%indent%" y="%row4_y%"/>
4230 <text>{@file=File:}</text>
4231 </text>
4232
4233 <text style="text_m">
4234 <placement x="%indent%" y="%row5_y%"/>
4235 <text>%tw_file%</text>
4236 </text>
4237
4238 <checkbox>
4239 <placement x="%indent%" y="%row7_y%"/>
4240 <text>{@repack_backup_first=Back up existing image first}</text>
4241 <data variable="tw_repack_backup_first"/>
4242 </checkbox>
4243
4244 <button style="main_button_half_height">
4245 <placement x="%indent%" y="%row16_y%"/>
4246 <text>{@install_cancel=Do not Install}</text>
4247 <action function="page">repackselect</action>
4248 </button>
4249
4250 <slider>
4251 <text>{@swipe_to_install=Swipe to Install}</text>
4252 <actions>
4253 <action function="set">tw_back=advanced</action>
4254 <action function="set">tw_action=repackimage</action>
4255 <action function="set">tw_action_param=/boot</action>
4256 <action function="set">tw_action_text1={@installing=Installing...}</action>
4257 <action function="set">tw_action_text2=</action>
4258 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4259 <action function="page">action_page</action>
4260 </actions>
4261 </slider>
4262
4263 <action>
4264 <touch key="back"/>
4265 <action function="page">repackselect</action>
4266 </action>
4267
4268 <action>
4269 <touch key="home"/>
4270 <action function="page">main</action>
4271 </action>
4272 </page>
4273
z31s1g28f0a922015-11-07 18:50:22 +01004274 <page name="lock">
4275 <background color="%semi_transparent%"/>
4276
4277 <image>
4278 <image resource="unlock_icon"/>
4279 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4280 </image>
4281
4282 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004283 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004284 <action function="overlay"/>
4285 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004286
4287 <action>
4288 <touch key="power"/>
4289 <action function="togglebacklight"/>
4290 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004291 </page>
4292
4293 <page name="filemanagerlist">
4294 <template name="page"/>
4295
4296 <text style="text_l">
4297 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004298 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004299 </text>
4300
4301 <text style="text_m">
4302 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004304 </text>
4305
4306 <template name="sort_options"/>
4307
4308 <fileselector>
4309 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4310 <text>%tw_file_location1%</text>
4311 <filter folders="1" files="1"/>
4312 <path name="tw_file_location1" default="/"/>
4313 <data name="tw_filename1"/>
4314 <selection name="tw_selection1"/>
4315 </fileselector>
4316
4317 <button style="fab">
4318 <image resource="fab_selectfolder"/>
4319 <actions>
4320 <action function="set">tw_filename1=tw_file_location1</action>
4321 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004322 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004323 <action function="page">filemanageroptions</action>
4324 </actions>
4325 </button>
4326
4327 <action>
4328 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004329 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004330 <action function="set">tw_fm_isfolder=0</action>
4331 </actions>
4332 </action>
4333
4334 <action>
4335 <touch key="home"/>
4336 <action function="page">main</action>
4337 </action>
4338
4339 <action>
4340 <touch key="back"/>
4341 <action function="page">advanced</action>
4342 </action>
4343
4344 <action>
4345 <condition var1="tw_filename1" op="modified"/>
4346 <action function="page">filemanageroptions</action>
4347 </action>
4348 </page>
4349
4350 <page name="filemanageroptions">
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_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004361 </text>
4362
4363 <text style="text_m_accent">
4364 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004365 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004366 </text>
4367
4368 <text style="text_m">
4369 <placement x="%indent%" y="%row3_y%"/>
4370 <text>%tw_filename1%</text>
4371 </text>
4372
4373 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004374 <conditions>
4375 <condition var1="tw_include_nano" var2="1"/>
4376 <condition var1="tw_fm_isfolder" var2="0"/>
4377 </conditions>
4378 <placement x="%indent%" y="%row12a_y%"/>
4379 <text>{@fm_edit_file=Edit File}</text>
4380 <actions>
4381 <action function="editfile">nano "%tw_filename1%"</action>
4382 <action function="page">terminalcommand</action>
4383 </actions>
4384 </button>
4385
4386 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004387 <condition var1="tw_fm_isfolder" var2="1"/>
4388 <placement x="%center_x%" y="%row12a_y%"/>
4389 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4390 <action function="changeterminal">%tw_filename1%</action>
4391 </button>
4392
4393 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004394 <condition var1="tw_fm_isfolder" var2="0"/>
4395 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004396 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004397 <actions>
4398 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004399 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004400 <action function="page">choosedestinationfolder</action>
4401 </actions>
4402 </button>
4403
4404 <button style="main_button_half_height">
4405 <condition var1="tw_fm_isfolder" var2="1"/>
4406 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004407 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004408 <actions>
4409 <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 -05004410 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004411 <action function="page">choosedestinationfolder</action>
4412 </actions>
4413 </button>
4414
4415 <button style="main_button_half_height">
4416 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004417 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004418 <actions>
4419 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004420 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004421 <action function="page">choosedestinationfolder</action>
4422 </actions>
4423 </button>
4424
4425 <button style="main_button_half_height">
4426 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004427 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004428 <actions>
4429 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004430 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004431 <action function="set">tw_fm_text2=</action>
4432 <action function="set">tw_fm_text3=</action>
4433 <action function="set">tw_include_text3=0</action>
4434 <action function="set">tw_back=filemanageroptions</action>
4435 <action function="page">filemanagerconfirm</action>
4436 </actions>
4437 </button>
4438
4439 <button style="main_button_half_height">
4440 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004441 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004442 <actions>
4443 <action function="set">tw_filemanager_rename=0000</action>
4444 <action function="set">tw_fm_text2=</action>
4445 <action function="set">tw_fm_text3=</action>
4446 <action function="set">tw_include_text3=0</action>
4447 <action function="set">tw_back=filemanageroptions</action>
4448 <action function="page">filemanagerchmod</action>
4449 </actions>
4450 </button>
4451
4452 <button style="main_button_half_height">
4453 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004454 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004455 <actions>
4456 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004457 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004458 <action function="set">tw_fm_text2=</action>
4459 <action function="set">tw_fm_text3=</action>
4460 <action function="set">tw_include_text3=0</action>
4461 <action function="set">tw_back=filemanageroptions</action>
4462 <action function="page">filemanagerconfirm</action>
4463 </actions>
4464 </button>
4465
4466 <button style="main_button_half_height">
4467 <condition var1="tw_fm_isfolder" var2="0"/>
4468 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004469 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004470 <actions>
4471 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004472 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004473 <action function="set">tw_filemanager_command=mv</action>
4474 <action function="page">filemanagerrenamefile</action>
4475 </actions>
4476 </button>
4477
4478 <button style="main_button_half_height">
4479 <condition var1="tw_fm_isfolder" var2="1"/>
4480 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004481 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004482 <actions>
4483 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004484 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004485 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4486 <action function="page">filemanagerrenamefolder</action>
4487 </actions>
4488 </button>
4489
4490 <action>
4491 <touch key="home"/>
4492 <action function="page">main</action>
4493 </action>
4494
4495 <action>
4496 <touch key="back"/>
4497 <action function="page">filemanagerlist</action>
4498 </action>
4499 </page>
4500
4501 <page name="choosedestinationfolder">
4502 <template name="page"/>
4503
4504 <text style="text_l">
4505 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004506 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004507 </text>
4508
4509 <text style="text_m">
4510 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004511 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004512 </text>
4513
4514 <template name="sort_options"/>
4515
4516 <fileselector>
4517 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4518 <text>%tw_file_location2%</text>
4519 <filter folders="1" files="0"/>
4520 <path name="tw_file_location2" default="/"/>
4521 <data name="tw_filename2"/>
4522 <selection name="tw_selection2"/>
4523 </fileselector>
4524
4525 <button style="fab">
4526 <image resource="fab_selectfolder"/>
4527 <actions>
4528 <action function="set">tw_fm_text2=to</action>
4529 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4530 <action function="set">tw_include_text3=1</action>
4531 <action function="set">tw_back=filemanageroptions</action>
4532 <action function="page">filemanagerconfirm</action>
4533 </actions>
4534 </button>
4535
4536 <action>
4537 <touch key="home"/>
4538 <action function="page">main</action>
4539 </action>
4540
4541 <action>
4542 <touch key="back"/>
4543 <action function="page">filemanageroptions</action>
4544 </action>
4545 </page>
4546
4547 <page name="filemanagerrenamefile">
4548 <template name="page"/>
4549
4550 <text style="text_l">
4551 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004552 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004553 </text>
4554
4555 <text style="text_m">
4556 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004557 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004558 </text>
4559
4560 <text style="text_m_accent">
4561 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 </text>
4564
4565 <input>
4566 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4567 <text>%tw_filemanager_rename%</text>
4568 <data name="tw_filemanager_rename"/>
4569 <restrict minlen="1" maxlen="128"/>
4570 <actions>
4571 <action function="set">tw_fm_text2=to</action>
4572 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4573 <action function="set">tw_include_text3=1</action>
4574 <action function="set">tw_back=filemanageroptions</action>
4575 <action function="page">filemanagerconfirm</action>
4576 </actions>
4577 </input>
4578
4579 <fill color="%accent_color%">
4580 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4581 </fill>
4582
4583 <button style="main_button_half_height">
4584 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004585 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004586 <action function="page">filemanageroptions</action>
4587 </button>
4588
4589 <template name="keyboardtemplate"/>
4590
4591 <action>
4592 <touch key="home"/>
4593 <action function="page">main</action>
4594 </action>
4595
4596 <action>
4597 <touch key="back"/>
4598 <action function="page">filemanageroptions</action>
4599 </action>
4600 </page>
4601
4602 <page name="filemanagerrenamefolder">
4603 <template name="page"/>
4604
4605 <text style="text_l">
4606 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004607 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004608 </text>
4609
4610 <text style="text_m">
4611 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004612 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004613 </text>
4614
4615 <text style="text_m_accent">
4616 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004617 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004618 </text>
4619
4620 <input>
4621 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4622 <text>%tw_filemanager_rename%</text>
4623 <data name="tw_filemanager_rename"/>
4624 <restrict minlen="1" maxlen="128"/>
4625 <actions>
4626 <action function="set">tw_fm_text2=to</action>
4627 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4628 <action function="set">tw_include_text3=1</action>
4629 <action function="set">tw_back=filemanageroptions</action>
4630 <action function="page">filemanagerconfirm</action>
4631 </actions>
4632 </input>
4633
4634 <fill color="%accent_color%">
4635 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4636 </fill>
4637
4638 <button style="main_button_half_height">
4639 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004640 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004641 <action function="page">filemanageroptions</action>
4642 </button>
4643
4644 <template name="keyboardtemplate"/>
4645
4646 <action>
4647 <touch key="home"/>
4648 <action function="page">main</action>
4649 </action>
4650
4651 <action>
4652 <touch key="back"/>
4653 <action function="page">filemanageroptions</action>
4654 </action>
4655 </page>
4656
4657 <page name="filemanagerchmod">
4658 <template name="page"/>
4659
4660 <text style="text_l">
4661 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004662 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004663 </text>
4664
4665 <text style="text_m">
4666 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004667 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004668 </text>
4669
4670 <text style="text_m_accent">
4671 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004672 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004673 </text>
4674
4675 <input>
4676 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4677 <text>%tw_filemanager_rename%</text>
4678 <data name="tw_filemanager_rename"/>
4679 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4680 <actions>
4681 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4682 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4683 <action function="set">tw_back=filemanageroptions</action>
4684 <action function="page">filemanagerconfirm</action>
4685 </actions>
4686 </input>
4687
4688 <fill color="%accent_color%">
4689 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4690 </fill>
4691
4692 <button style="main_button_half_height">
4693 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004694 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004695 <action function="page">filemanageroptions</action>
4696 </button>
4697
4698 <template name="keyboardtemplate"/>
4699
4700 <action>
4701 <touch key="home"/>
4702 <action function="page">main</action>
4703 </action>
4704
4705 <action>
4706 <touch key="back"/>
4707 <action function="page">filemanageroptions</action>
4708 </action>
4709 </page>
4710
4711 <page name="filemanagerconfirm">
4712 <template name="page"/>
4713
4714 <text style="text_l">
4715 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004716 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004717 </text>
4718
4719 <text style="text_m">
4720 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004721 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004722 </text>
4723
4724 <text style="text_m_accent">
4725 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4726 <text>%tw_fm_text1%</text>
4727 </text>
4728
4729 <text style="text_m">
4730 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4731 <text>%tw_filename1%</text>
4732 </text>
4733
4734 <text style="text_m_accent">
4735 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4736 <text>%tw_fm_text2%</text>
4737 </text>
4738
4739 <text style="text_m">
4740 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4741 <text>%tw_fm_text3%</text>
4742 </text>
4743
4744 <text style="text_m">
4745 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004746 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004747 </text>
4748
4749 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004750 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004751 <action function="page">filemanageraction</action>
4752 </slider>
4753
4754 <action>
4755 <touch key="back"/>
4756 <action function="page">%tw_back%</action>
4757 </action>
4758
4759 <action>
4760 <touch key="home"/>
4761 <action function="page">main</action>
4762 </action>
4763 </page>
4764
4765 <page name="filemanageraction">
4766 <template name="page"/>
4767
4768 <text style="text_l">
4769 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004770 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004771 </text>
4772
4773 <text style="text_m">
4774 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4775 <text>%tw_fm_text1%</text>
4776 </text>
4777
4778 <template name="console"/>
4779
4780 <template name="progress_bar"/>
4781
4782 <action>
4783 <conditions>
4784 <condition var1="tw_operation_state" var2="1"/>
4785 <condition var1="tw_operation_status" var2="0"/>
4786 </conditions>
4787 <actions>
4788 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004789 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004790 <action function="page">action_complete</action>
4791 </actions>
4792 </action>
4793
4794 <action>
4795 <conditions>
4796 <condition var1="tw_operation_state" var2="1"/>
4797 <condition var1="tw_operation_status" op="!=" var2="0"/>
4798 </conditions>
4799 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004800 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004801 <action function="page">action_complete</action>
4802 </actions>
4803 </action>
4804
4805 <action>
4806 <condition var1="tw_include_text3" var2="0"/>
4807 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4808 </action>
4809
4810 <action>
4811 <condition var1="tw_include_text3" var2="1"/>
4812 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4813 </action>
4814 </page>
4815
4816 <page name="decrypt">
4817 <template name="page"/>
4818
4819 <action>
4820 <condition var1="tw_crypto_pwtype" var2="2"/>
4821 <action function="page">decrypt_pattern</action>
4822 </action>
4823
4824 <text style="text_l">
4825 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004826 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004827 </text>
4828
4829 <text style="text_m">
4830 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004831 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004832 </text>
4833
4834 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004835 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004836 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004837 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004838 </text>
4839
Noah Jacobson81d638d2019-04-28 00:10:07 -04004840 <text style="text_m_accent">
4841 <condition var1="tw_is_fbe" var2="1"/>
4842 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4843 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4844 </text>
4845
z31s1g28f0a922015-11-07 18:50:22 +01004846 <input>
4847 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4848 <text>%tw_crypto_display%</text>
4849 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4850 <restrict minlen="1" maxlen="254"/>
4851 <action function="page">trydecrypt</action>
4852 </input>
4853
4854 <fill color="%accent_color%">
4855 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4856 </fill>
4857
4858 <fill color="%text_fail_color%">
4859 <condition var1="tw_password_fail" var2="1"/>
4860 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4861 </fill>
4862
4863 <text style="text_m_fail">
4864 <condition var1="tw_password_fail" var2="1"/>
4865 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004866 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004867 </text>
4868
4869 <button style="main_button_half_height">
4870 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004871 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004872 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004873 </button>
4874
z31s1g608d7ff2016-01-18 19:47:25 +01004875 <button style="main_button_half_height">
4876 <placement x="%center_x%" y="%row10_y%"/>
4877 <text>{@sel_lang_btn=Select Language}</text>
4878 <action function="overlay">select_language</action>
4879 </button>
4880
z31s1g28f0a922015-11-07 18:50:22 +01004881 <template name="keyboardtemplate"/>
4882 </page>
4883
4884 <page name="decrypt_pattern">
4885 <template name="page"/>
4886
4887 <text style="text_l">
4888 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004889 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004890 </text>
4891
4892 <text style="text_m">
4893 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004894 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004895 </text>
4896
4897 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004898 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004899 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004900 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004901 </text>
4902
Noah Jacobson81d638d2019-04-28 00:10:07 -04004903 <text style="text_m_accent">
4904 <condition var1="tw_is_fbe" var2="1"/>
4905 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4906 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4907 </text>
4908
Aleksa Saraib25a1832015-12-31 17:36:00 +01004909 <text style="text_m_fail">
4910 <condition var1="tw_password_fail" var2="1"/>
4911 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004912 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004913 </text>
4914
z31s1g28f0a922015-11-07 18:50:22 +01004915 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004916 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004917 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4918 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4919 <data name="tw_crypto_password"/>
4920 <action function="page">trydecrypt</action>
4921 </patternpassword>
4922
Aleksa Saraib25a1832015-12-31 17:36:00 +01004923 <button style="button_quarter_width">
4924 <placement x="%indent%" y="%row19a_y%"/>
4925 <text>3x3</text>
4926 <action function="set">tw_gui_pattern_grid_size=3</action>
4927 </button>
4928
4929 <button style="button_quarter_width">
4930 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4931 <text>4x4</text>
4932 <action function="set">tw_gui_pattern_grid_size=4</action>
4933 </button>
4934
4935 <button style="button_quarter_width">
4936 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4937 <text>5x5</text>
4938 <action function="set">tw_gui_pattern_grid_size=5</action>
4939 </button>
4940
4941 <button style="button_quarter_width">
4942 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4943 <text>6x6</text>
4944 <action function="set">tw_gui_pattern_grid_size=6</action>
4945 </button>
4946
z31s1g28f0a922015-11-07 18:50:22 +01004947 <button style="main_button_half_height">
4948 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004949 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004950 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004951 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004952
4953 <button style="main_button_half_height">
4954 <placement x="%center_x%" y="%row21a_y%"/>
4955 <text>{@sel_lang_btn=Select Language}</text>
4956 <action function="overlay">select_language</action>
4957 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004958 </page>
4959
4960 <page name="trydecrypt">
4961 <template name="page"/>
4962
4963 <text style="text_l">
4964 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004965 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004966 </text>
4967
4968 <text style="text_m">
4969 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004970 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004971 </text>
4972
4973 <template name="console"/>
4974
4975 <template name="progress_bar"/>
4976
4977 <action>
4978 <action function="decrypt"/>
4979 </action>
4980
4981 <action>
4982 <conditions>
4983 <condition var1="tw_operation_state" var2="1"/>
4984 <condition var1="tw_operation_status" op="!=" var2="0"/>
4985 </conditions>
4986 <actions>
4987 <action function="set">tw_password_fail=1</action>
4988 <action function="page">decrypt</action>
4989 </actions>
4990 </action>
4991
4992 <action>
4993 <conditions>
4994 <condition var1="tw_operation_state" var2="1"/>
4995 <condition var1="tw_operation_status" op="=" var2="0"/>
4996 </conditions>
4997 <actions>
4998 <action function="set">tw_page_done=1</action>
4999 <action function="page">main</action>
5000 </actions>
5001 </action>
5002 </page>
5003
Captain Throwback89b56a12021-02-10 18:25:07 -05005004 <page name="canceldecrypt">
5005 <template name="page"/>
5006
5007 <text style="text_l">
5008 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5009 <text>{@cancel_btn=Cancel}</text>
5010 </text>
5011
5012 <text style="text_m">
5013 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5014 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
5015 </text>
5016
5017 <template name="console"/>
5018
5019 <template name="progress_bar"/>
5020
5021 <action>
5022 <action function="refreshsizes"/>
5023 </action>
5024
5025 <action>
5026 <conditions>
5027 <condition var1="tw_operation_state" var2="1"/>
5028 </conditions>
5029 <actions>
5030 <action function="set">tw_page_done=1</action>
5031 <action function="page">main</action>
5032 </actions>
5033 </action>
5034 </page>
5035
z31s1g28f0a922015-11-07 18:50:22 +01005036 <page name="terminalcommand">
5037 <template name="page"/>
5038
z31s1g56189522016-01-13 19:12:40 +01005039 <fill color="%background_color%">
5040 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005041 </fill>
5042
z31s1g56189522016-01-13 19:12:40 +01005043 <terminal>
5044 <condition var1="tw_hide_kb" var2="0"/>
5045 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5046 </terminal>
5047
5048 <terminal>
5049 <condition var1="tw_hide_kb" var2="1"/>
5050 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5051 </terminal>
5052
5053 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005054
5055 <template name="keyboardtemplate"/>
5056
z31s1g608d7ff2016-01-18 19:47:25 +01005057 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005058 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005059 </fill>
z31s1g56189522016-01-13 19:12:40 +01005060
z31s1g608d7ff2016-01-18 19:47:25 +01005061 <button>
z31s1g56189522016-01-13 19:12:40 +01005062 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5063 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5064 <image resource="back" />
5065 <condition var1="tw_busy" var2="0" />
5066 <actions>
5067 <action function="set">tw_hide_kb=0</action>
5068 <action function="key">back</action>
5069 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005070 </button>
z31s1g56189522016-01-13 19:12:40 +01005071
z31s1g608d7ff2016-01-18 19:47:25 +01005072 <button>
z31s1g56189522016-01-13 19:12:40 +01005073 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5074 <condition var1="tw_hide_kb" op="=" var2="0" />
5075 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5076 <image resource="kb_hide" />
5077 <condition var1="tw_busy" var2="0" />
5078 <actions>
5079 <action function="set">tw_hide_kb=1</action>
5080 <action function="page">terminalcommand</action>
5081 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005082 </button>
z31s1g56189522016-01-13 19:12:40 +01005083
z31s1g608d7ff2016-01-18 19:47:25 +01005084 <button>
z31s1g56189522016-01-13 19:12:40 +01005085 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5086 <condition var1="tw_hide_kb" op="=" var2="1" />
5087 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5088 <image resource="kb_show" />
5089 <condition var1="tw_busy" var2="0" />
5090 <actions>
5091 <action function="set">tw_hide_kb=0</action>
5092 <action function="page">terminalcommand</action>
5093 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005094 </button>
z31s1g56189522016-01-13 19:12:40 +01005095
z31s1g608d7ff2016-01-18 19:47:25 +01005096 <button>
z31s1g56189522016-01-13 19:12:40 +01005097 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5098 <image resource="home" />
5099 <condition var1="tw_busy" var2="0" />
5100 <actions>
5101 <action function="set">tw_hide_kb=0</action>
5102 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005103 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005104 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005105 </button>
z31s1g56189522016-01-13 19:12:40 +01005106
z31s1g608d7ff2016-01-18 19:47:25 +01005107 <button>
z31s1g56189522016-01-13 19:12:40 +01005108 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5109 <condition var1="tw_hide_kb" op="=" var2="0" />
5110 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5111 <image resource="kb_hide" />
5112 <condition var1="tw_busy" var2="0" />
5113 <actions>
5114 <action function="set">tw_hide_kb=1</action>
5115 <action function="page">terminalcommand</action>
5116 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005117 </button>
z31s1g56189522016-01-13 19:12:40 +01005118
z31s1g608d7ff2016-01-18 19:47:25 +01005119 <button>
z31s1g56189522016-01-13 19:12:40 +01005120 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5121 <condition var1="tw_hide_kb" op="=" var2="1" />
5122 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5123 <image resource="kb_show" />
5124 <condition var1="tw_busy" var2="0" />
5125 <actions>
5126 <action function="set">tw_hide_kb=0</action>
5127 <action function="page">terminalcommand</action>
5128 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005129 </button>
z31s1g56189522016-01-13 19:12:40 +01005130
z31s1g608d7ff2016-01-18 19:47:25 +01005131 <button>
z31s1g56189522016-01-13 19:12:40 +01005132 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5133 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5134 <image resource="back" />
5135 <condition var1="tw_busy" var2="0" />
5136 <actions>
5137 <action function="set">tw_hide_kb=0</action>
5138 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005139 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005140 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005141 </button>
z31s1g56189522016-01-13 19:12:40 +01005142
z31s1g28f0a922015-11-07 18:50:22 +01005143 <action>
5144 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005145 <actions>
5146 <action function="set">tw_hide_kb=0</action>
5147 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005148 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005149 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005150 </action>
5151
5152 <action>
5153 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005154 <actions>
5155 <action function="set">tw_hide_kb=0</action>
5156 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005157 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005158 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005159 </action>
z31s1g56189522016-01-13 19:12:40 +01005160
z31s1g608d7ff2016-01-18 19:47:25 +01005161 <action>
z31s1g56189522016-01-13 19:12:40 +01005162 <touch key="power+voldown" />
5163 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005164 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005165 </page>
5166
bigbiffdf8436b2020-08-30 16:22:34 -04005167 <page name="fastboot">
5168 <template name="page"/>
5169
5170 <text style="text_l">
5171 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5172 <text>{@fastboot_button=Fastboot}</text>
5173 </text>
5174
5175 <template name="console"/>
5176
5177 <template name="progress_bar"/>
5178
5179 <button style="main_button_half_height">
5180 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5181 <placement x="%indent%" y="%row21a_y%"/>
5182 <text>{@enable_adb=Enable ADB}</text>
5183 <actions>
5184 <action function="enableadb"/>
5185 <action function="set">tw_enable_adb=1</action>
5186 <action function="set">tw_enable_fastboot=0</action>
5187 </actions>
5188 </button>
5189
5190 <button style="main_button_half_height">
5191 <condition var1="tw_enable_adb" op="=" var2="1" />
5192 <placement x="%indent%" y="%row21a_y%"/>
5193 <text>{@enable_fastboot=Enable Fastboot}</text>
5194 <actions>
5195 <action function="enablefastboot"/>
5196 <action function="set">tw_enable_fastboot=1</action>
5197 <action function="set">tw_enable_adb=0</action>
5198 </actions>
5199 </button>
5200
5201 <button style="main_button_half_height">
5202 <placement x="%center_x%" y="%row21a_y%"/>
5203 <text>{@reboot_btn=Reboot}</text>
5204 <action function="page">fastbootreboot</action>
5205 </button>
5206 </page>
5207
z31s1g28f0a922015-11-07 18:50:22 +01005208 <page name="sideload">
5209 <template name="page"/>
5210
5211 <text style="text_l">
5212 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005213 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005214 </text>
5215
5216 <text style="text_m">
5217 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005218 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005219 </text>
5220
5221 <checkbox>
5222 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005223 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005224 <data variable="tw_wipe_dalvik"/>
5225 </checkbox>
5226
5227 <checkbox>
5228 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005229 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005230 <data variable="tw_wipe_cache"/>
5231 </checkbox>
5232
5233 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005234 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005235 <actions>
5236 <action function="set">tw_back=advanced</action>
5237 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005238 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5239 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5240 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005241 <action function="set">tw_has_cancel=1</action>
5242 <action function="set">tw_show_reboot=1</action>
5243 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5244 <action function="page">action_page</action>
5245 </actions>
5246 </slider>
5247
5248 <action>
5249 <touch key="home"/>
5250 <action function="page">main</action>
5251 </action>
5252
5253 <action>
5254 <touch key="back"/>
5255 <action function="page">advanced</action>
5256 </action>
5257 </page>
5258
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005259 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005260 <template name="page"/>
5261
5262 <text style="text_l">
5263 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005264 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005265 </text>
5266
5267 <text style="text_m">
5268 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005269 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005270 </text>
5271
5272 <text style="text_m_accent">
5273 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005274 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005275 </text>
5276
z31s1g28f0a922015-11-07 18:50:22 +01005277 <text style="text_m_fail">
5278 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005279 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005280 </text>
5281
5282 <text style="text_m_fail">
5283 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005284 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005285 </text>
5286
5287 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005288 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005289 <actions>
5290 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005291 <action function="set">tw_action=fixcontexts</action>
5292 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5293 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005294 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005295 <action function="set">tw_show_reboot=1</action>
5296 <action function="page">action_page</action>
5297 </actions>
5298 </slider>
5299
5300 <action>
5301 <touch key="home"/>
5302 <action function="page">main</action>
5303 </action>
5304
5305 <action>
5306 <touch key="back"/>
5307 <action function="page">advanced</action>
5308 </action>
5309 </page>
5310
z31s1g28f0a922015-11-07 18:50:22 +01005311 <page name="slideout">
5312 <fill color="%background_color%">
5313 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5314 </fill>
5315
5316 <console>
5317 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5318 </console>
5319
5320 <button>
5321 <fill color="%transparent%"/>
5322 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5323 <action function="overlay"/>
5324 </button>
5325
5326 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005327 <touch key="power"/>
5328 <action function="togglebacklight"/>
5329 </action>
5330
5331 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005332 <touch key="power+voldown"/>
5333 <action function="screenshot"/>
5334 </action>
5335 </page>
5336
5337 <page name="select_storage">
5338 <fill color="%semi_transparent%">
5339 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5340 </fill>
5341
5342 <fill color="%background_color%">
5343 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5344 </fill>
5345
5346 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005347 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005348 <data name="tw_storage_path"/>
5349 <listtype name="storage"/>
5350 </partitionlist>
5351
5352 <button style="button_third_width">
5353 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005354 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005355 <actions>
5356 <action function="set">tw_clear_destination=%tw_back%</action>
5357 <action function="overlay"/>
5358 <action function="page">clear_vars</action>
5359 </actions>
5360 </button>
5361
5362 <fill color="#000000">
5363 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5364 </fill>
5365
5366 <button>
5367 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5368 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5369 <image resource="back"/>
5370 <condition var1="tw_busy" var2="0"/>
5371 <actions>
5372 <action function="overlay"/>
5373 <action function="key">%tw_back%</action>
5374 </actions>
5375 </button>
5376
5377 <button>
5378 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5379 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5380 <image resource="console"/>
5381 <condition var1="tw_busy" var2="0"/>
5382 <action function="overlay">slideout</action>
5383 </button>
5384
5385 <button>
5386 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5387 <image resource="home"/>
5388 <condition var1="tw_busy" var2="0"/>
5389 <actions>
5390 <action function="overlay"/>
5391 <action function="key">home</action>
5392 </actions>
5393 </button>
5394
5395 <button>
5396 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5397 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5398 <image resource="console"/>
5399 <condition var1="tw_busy" var2="0"/>
5400 <action function="overlay">slideout</action>
5401 </button>
5402
5403 <button>
5404 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5405 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5406 <image resource="back"/>
5407 <condition var1="tw_busy" var2="0"/>
5408 <actions>
5409 <action function="overlay"/>
5410 <action function="key">%tw_back%</action>
5411 </actions>
5412 </button>
5413
5414 <action>
5415 <touch key="power+voldown"/>
5416 <action function="screenshot"/>
5417 </action>
5418 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005419
5420 <page name="select_language">
5421 <fill color="%semi_transparent%">
5422 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5423 </fill>
5424
5425 <fill color="%background_color%">
5426 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5427 </fill>
5428
5429 <listbox>
5430 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5431 <text>{@select_language=Select Language:}</text>
5432 <icon selected="radio_true" unselected="radio_false" />
5433 <data name="tw_language" />
5434 </listbox>
5435
5436 <button style="button_third_width">
5437 <placement x="%dialog_button_x%" y="%row14_y%"/>
5438 <text>{@ok_btn=OK}</text>
5439 <actions>
5440 <action function="overlay"/>
5441 <action function="setlanguage"></action>
5442 </actions>
5443 </button>
5444
5445 <fill color="#000000">
5446 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5447 </fill>
5448
5449 <button>
5450 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5451 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5452 <image resource="back"/>
5453 <condition var1="tw_busy" var2="0"/>
5454 <actions>
5455 <action function="overlay"/>
5456 <action function="key">%tw_back%</action>
5457 </actions>
5458 </button>
5459
5460 <button>
5461 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5462 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5463 <image resource="console"/>
5464 <condition var1="tw_busy" var2="0"/>
5465 <action function="overlay">slideout</action>
5466 </button>
5467
5468 <button>
5469 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5470 <image resource="home"/>
5471 <condition var1="tw_busy" var2="0"/>
5472 <actions>
5473 <action function="overlay"/>
5474 <action function="key">home</action>
5475 </actions>
5476 </button>
5477
5478 <button>
5479 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5480 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5481 <image resource="console"/>
5482 <condition var1="tw_busy" var2="0"/>
5483 <action function="overlay">slideout</action>
5484 </button>
5485
5486 <button>
5487 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5488 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5489 <image resource="back"/>
5490 <condition var1="tw_busy" var2="0"/>
5491 <actions>
5492 <action function="overlay"/>
5493 <action function="key">%tw_back%</action>
5494 </actions>
5495 </button>
5496
5497 <action>
5498 <touch key="power+voldown"/>
5499 <action function="screenshot"/>
5500 </action>
5501 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005502
5503 <page name="decrypt_users">
5504 <template name="page"/>
5505
5506 <text style="text_l">
5507 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5508 <text>{@decrypt_users=Decrypt Users}</text>
5509 </text>
5510
5511 <text style="text_m_accent">
5512 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5513 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5514 </text>
5515
5516 <listbox>
5517 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5518 <text>{@select_user=Select User}</text>
5519 <icon selected="radio_true" unselected="radio_false" />
5520 <data name="tw_crypto_user_id" />
5521 </listbox>
5522
5523 <button style="main_button_half_height">
5524 <placement x="%center_x%" y="%row21a_y%"/>
5525 <text>{@decrypt_users=Decrypt Users}</text>
5526 <action function="set">tw_crypto_password=</action>
5527 <action function="set">tw_password_fail=0</action>
5528 <action function="page">decrypt</action>
5529 </button>
5530
5531 <action>
5532 <touch key="home"/>
5533 <action function="page">main</action>
5534 </action>
5535
5536 <action>
5537 <touch key="back"/>
5538 <action function="page">advanced</action>
5539 </action>
5540 </page>
epicXa721f952021-01-04 13:01:31 +05305541
5542 <page name="changeTwrpFolder">
5543 <template name="page"/>
5544
5545 <text style="text_l">
5546 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5547 <text>{@advanced_hdr=Advanced}</text>
5548 </text>
5549
5550 <text style="text_m">
5551 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5552 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5553 </text>
5554
5555 <text style="text_m_accent">
5556 <placement x="%indent%" y="%row2_y%"/>
5557 <text>{@name=Name:}</text>
5558 </text>
5559
5560 <input>
5561 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5562 <text>%tw_custom_folder%</text>
5563 <data name="tw_custom_folder"/>
5564 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5565 <actions>
5566 <action function="set">tw_back=changeTwrpFolder</action>
5567 <action function="set">tw_action=applycustomtwrpfolder</action>
5568 <action function="set">tw_action_param=%tw_custom_folder%</action>
5569 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5570 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5571 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5572 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5573 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5574 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5575 <action function="set">tw_existpage=changeTwrpFolder</action>
5576 <action function="set">tw_notexistpage=confirm_action</action>
5577 <action function="page">filecheck</action>
5578 </actions>
5579 </input>
5580
5581 <fill color="%accent_color%">
5582 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5583 </fill>
5584
5585 <fill color="%text_fail_color%">
5586 <condition var1="tw_fileexists" var2="1"/>
5587 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5588 </fill>
5589
5590 <text style="text_m_fail">
5591 <condition var1="tw_fileexists" var2="1"/>
5592 <placement x="%indent%" y="%row4a_y%"/>
5593 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5594 </text>
5595
5596 <button style="main_button_half_height">
5597 <placement x="%indent%" y="%row10_y%"/>
5598 <text>{@cancel_btn=Cancel}</text>
5599 <actions>
5600 <action function="page">advanced</action>
5601 </actions>
5602 </button>
5603
5604 <button style="main_button_half_height">
5605 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5606 <placement x="%center_x%" y="%row10_y%"/>
5607 <text>{@restore_defaults_btn=Restore Defaults}</text>
5608 <actions>
5609 <action function="set">tw_back=changeTwrpFolder</action>
5610 <action function="set">tw_action=applycustomtwrpfolder</action>
5611 <action function="set">tw_action_param=TWRP</action>
5612 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5613 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5614 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5615 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5616 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5617 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5618 <action function="set">tw_existpage=changeTwrpFolder</action>
5619 <action function="set">tw_notexistpage=confirm_action</action>
5620 <action function="page">filecheck</action>
5621 </actions>
5622 </button>
5623
5624 <template name="keyboardtemplate"/>
5625
5626 <action>
5627 <touch key="home"/>
5628 <actions>
5629 <action function="page">main</action>
5630 </actions>
5631 </action>
5632
5633 <action>
5634 <touch key="back"/>
5635 <actions>
5636 <action function="page">advanced</action>
5637 </actions>
5638 </action>
5639 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005640 </pages>
5641</recovery>