blob: aa078b99bf1eae6085c93226791a04abae427b76 [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>
332 <action function="page">flashimage_confirm</action>
333 </action>
334
335 <action>
336 <touch key="back"/>
337 <action function="page">main</action>
338 </action>
339
340 <action>
341 <touch key="home"/>
342 <action function="page">main</action>
343 </action>
344 </page>
345
346 <page name="flash_confirm">
347 <template name="page"/>
348
349 <text style="text_l">
350 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500351 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100352 </text>
353
354 <text style="text_m">
355 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500356 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100357 </text>
358
359 <text style="text_m_accent">
360 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500361 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100362 </text>
363
364 <text style="text_m_accent">
365 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500366 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100367 </text>
368
369 <text style="text_m">
370 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500371 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100372 </text>
373
374 <text style="text_m_accent">
375 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500376 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100377 </text>
378
379 <text style="text_m">
380 <placement x="%indent%" y="%row8_y%"/>
381 <text>%tw_zip_location%</text>
382 </text>
383
384 <text style="text_m_accent">
385 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500386 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100387 </text>
388
389 <text style="text_m">
390 <placement x="%indent%" y="%row10a_y%"/>
391 <text>%tw_file%</text>
392 </text>
393
394 <checkbox>
395 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500396 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100397 <data variable="tw_signed_zip_verify"/>
398 </checkbox>
399
400 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600401 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500402 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600403 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500404 </checkbox>
405
406 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500407 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300408 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500409 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100410 <data variable="tw_inject_after_zip"/>
411 </checkbox>
412
413 <button style="main_button_half_height">
414 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500415 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100416 <action function="page">install</action>
417 </button>
418
419 <button style="main_button_half_height">
420 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500421 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100422 <actions>
423 <action function="queueclear"/>
424 <action function="page">install</action>
425 </actions>
426 </button>
427
428 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500429 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100430 <action function="flash">flash_zip</action>
431 </slider>
432
433 <action>
434 <touch key="back"/>
435 <actions>
436 <action function="cancelzip"/>
437 <action function="page">install</action>
438 </actions>
439 </action>
440
441 <action>
442 <touch key="home"/>
443 <action function="page">main</action>
444 </action>
445 </page>
446
447 <page name="flash_zip">
448 <template name="page"/>
449
450 <text style="text_l">
451 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500452 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100453 </text>
454
455 <text style="text_m">
456 <placement x="%col1_x_header%" y="%row4_header_y%"/>
457 <text>%tw_file%</text>
458 </text>
459
460 <template name="console"/>
461
462 <template name="progress_bar"/>
463
464 <action>
465 <condition var1="tw_operation_state" var2="1"/>
466 <action function="page">flash_done</action>
467 </action>
468 </page>
469
470 <page name="flash_done">
471 <template name="page"/>
472
473 <text style="text_l">
474 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500475 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100476 </text>
477
478 <text style="text_m_fail">
479 <condition var1="tw_operation_status" op="!=" var2="0"/>
480 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500481 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100482 </text>
483
484 <text style="text_m">
485 <condition var1="tw_operation_status" var2="0"/>
486 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500487 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100488 </text>
489
490 <template name="console"/>
491
492 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500493 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100494 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500495 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100496 <actions>
497 <action function="set">tw_back=flash_done</action>
498 <action function="set">tw_action=wipe</action>
499 <action function="set">tw_action_param=/cache</action>
500 <action function="set">tw_has_action2=1</action>
501 <action function="set">tw_action2=wipe</action>
502 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500503 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
504 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
505 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
506 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100507 <action function="page">confirm_action</action>
508 </actions>
509 </button>
510
511 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500512 <condition var1="tw_ab_device" var2="1"/>
513 <placement x="%indent%" y="%row21a_y%"/>
514 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
515 <actions>
516 <action function="set">tw_back=flash_done</action>
517 <action function="set">tw_action=wipe</action>
518 <action function="set">tw_action_param=dalvik</action>
519 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
520 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
521 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
522 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
523 <action function="page">confirm_action</action>
524 </actions>
525 </button>
526
527 <button style="main_button_half_height">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100528 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100529 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500530 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100531 <actions>
532 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500533 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100534 </actions>
535 </button>
536
Chaosmaster7b66bf52020-02-07 20:33:43 +0100537 <button style="main_button_half_height">
538 <condition var1="tw_ab_device" var2="1"/>
539 <placement x="%center_x%" y="%row21a_y%"/>
540 <text>{@reboot_btn=Reboot}</text>
541 <actions>
542 <action function="set">tw_back=main2</action>
543 <action function="page">reboot</action>
544 </actions>
545 </button>
546
z31s1g28f0a922015-11-07 18:50:22 +0100547 <action>
548 <touch key="back"/>
549 <actions>
550 <action function="set">tw_clear_destination=install</action>
551 <action function="page">clear_vars</action>
552 </actions>
553 </action>
554
555 <action>
556 <touch key="home"/>
557 <actions>
558 <action function="set">tw_clear_destination=main2</action>
559 <action function="page">clear_vars</action>
560 </actions>
561 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500562
563 <action>
564 <conditions>
565 <condition var1="tw_install_reboot" var2="1"/>
566 <condition var1="tw_operation_status" var2="0"/>
567 <condition var1="tw_reboot_system" var2="1"/>
568 </conditions>
569 <actions>
570 <action function="set">tw_sleep=%tw_sleep_total%</action>
571 <action function="page">flash_sleep_and_reboot</action>
572 </actions>
573 </action>
574 </page>
575
576 <page name="flash_sleep_and_reboot">
577 <template name="page"/>
578
579 <text style="text_l">
580 <placement x="%col1_x_header%" y="%row3_header_y%"/>
581 <text>{@install_zip_hdr=Install Zip}</text>
582 </text>
583
584 <text style="text_m">
585 <placement x="%col1_x_header%" y="%row4_header_y%"/>
586 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
587 </text>
588
589 <template name="console"/>
590
591 <template name="progress_bar"/>
592
593 <button style="main_button_half_height">
594 <condition var1="tw_sleep" op="&gt;" var2="0"/>
595 <placement x="%center_x%" y="%row21a_y%"/>
596 <text>{@cancel_btn=Cancel}</text>
597 <actions>
598 <action function="set">tw_install_reboot=0</action>
599 <action function="page">flash_done</action>
600 </actions>
601 </button>
602
603 <action>
604 <conditions>
605 <condition var1="tw_sleep" var2="tw_sleep_total"/>
606 <condition var1="tw_install_reboot" var2="1"/>
607 </conditions>
608 <action function="sleepcounter">%tw_sleep_total%</action>
609 </action>
610
611 <action>
612 <conditions>
613 <condition var1="tw_sleep" var2="0"/>
614 <condition var1="tw_install_reboot" var2="1"/>
615 </conditions>
616 <actions>
617 <action function="sleep">50000</action>
618 <action function="set">tw_back=main2</action>
619 <action function="page">reboot_system_routine</action>
620 </actions>
621 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100622 </page>
623
624 <page name="flashimage_confirm">
625 <template name="page"/>
626
627 <text style="text_l">
628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500629 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100630 </text>
631
632 <text style="text_m">
633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500634 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100635 </text>
636
637 <text style="text_m_accent">
638 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500639 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100640 </text>
641
642 <text style="text_m">
643 <placement x="%indent%" y="%row3_y%"/>
644 <text>%tw_zip_location%</text>
645 </text>
646
647 <text style="text_m_accent">
648 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500649 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100650 </text>
651
652 <text style="text_m">
653 <placement x="%indent%" y="%row5a_y%"/>
654 <text>%tw_file%</text>
655 </text>
656
657 <partitionlist>
658 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
659 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500660 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100661 <data name="tw_flash_partition"/>
662 <listtype name="flashimg"/>
663 </partitionlist>
664
665 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500666 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100667 <actions>
668 <action function="set">tw_back=flashimage_confirm</action>
669 <action function="set">tw_action=flashimage</action>
670 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500671 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100672 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500673 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100674 <action function="page">action_page</action>
675 </actions>
676 <action function="flashimage"/>
677 </slider>
678
679 <action>
680 <touch key="back"/>
681 <actions>
682 <action function="set">tw_clear_destination=install</action>
683 <action function="page">clear_vars</action>
684 </actions>
685 </action>
686
687 <action>
688 <touch key="home"/>
689 <actions>
690 <action function="set">tw_clear_destination=main2</action>
691 <action function="page">clear_vars</action>
692 </actions>
693 </action>
694 </page>
695
696 <page name="clear_vars">
697 <action>
698 <action function="set">tw_operation_state=0</action>
699 <action function="set">tw_text1=</action>
700 <action function="set">tw_text2=</action>
701 <action function="set">tw_text3=</action>
702 <action function="set">tw_text4=</action>
703 <action function="set">tw_action_text1=</action>
704 <action function="set">tw_action_text2=</action>
705 <action function="set">tw_action_param=</action>
706 <action function="set">tw_has_action2=0</action>
707 <action function="set">tw_action2=</action>
708 <action function="set">tw_action2_param=</action>
709 <action function="set">tw_has_cancel=0</action>
710 <action function="set">tw_cancel_action=</action>
711 <action function="set">tw_cancel_param=</action>
712 <action function="set">tw_show_exclamation=0</action>
713 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400714 <action function="set">tw_crypto_user_id=</action>
715 <action function="set">tw_multiuser_warning_accepted=</action>
716 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100717 <action function="page">%tw_clear_destination%</action>
718 </action>
719 </page>
720
Matt Mower908dd252016-05-25 02:26:50 -0500721 <page name="reboot_system_routine">
722 <action>
723 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500724 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500725 <action function="set">tw_has_action2=0</action>
726 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
727 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
728 <action function="set">tw_text3=</action>
729 <action function="set">tw_text4=</action>
730 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
731 <action function="set">tw_action_text2=</action>
732 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
733 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
734 <action function="page">rebootcheck</action>
735 </action>
736 </page>
737
z31s1g28f0a922015-11-07 18:50:22 +0100738 <page name="confirm_action">
739 <template name="page"/>
740
741 <text style="text_l">
742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500743 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100744 </text>
745
746 <text style="text_m">
747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
748 <text/>
749 </text>
750
751 <text style="text_m_accent">
752 <placement x="%center_x%" y="%row2_y%" placement="5"/>
753 <text>%tw_text1%</text>
754 </text>
755
756 <text style="text_m_accent">
757 <placement x="%center_x%" y="%row3_y%" placement="5"/>
758 <text>%tw_text2%</text>
759 </text>
760
761 <text style="text_m">
762 <placement x="%center_x%" y="%row4_y%" placement="5"/>
763 <text>%tw_text3%</text>
764 </text>
765
766 <text style="text_m">
767 <placement x="%center_x%" y="%row5_y%" placement="5"/>
768 <text>%tw_text4%</text>
769 </text>
770
771 <text style="text_m">
772 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500773 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100774 </text>
775
776 <slider>
777 <text>%tw_slider_text%</text>
778 <action function="page">action_page</action>
779 </slider>
780
781 <action>
782 <touch key="back"/>
783 <actions>
784 <action function="set">tw_clear_destination=%tw_back%</action>
785 <action function="page">clear_vars</action>
786 </actions>
787 </action>
788
789 <action>
790 <touch key="home"/>
791 <action function="page">main</action>
792 </action>
793 </page>
794
795 <page name="action_page">
796 <template name="page"/>
797
798 <text style="text_l">
799 <placement x="%col1_x_header%" y="%row3_header_y%"/>
800 <text>%tw_action_text1%</text>
801 </text>
802
803 <text style="text_m">
804 <placement x="%col1_x_header%" y="%row4_header_y%"/>
805 <text>%tw_action_text2%</text>
806 </text>
807
808 <template name="console"/>
809
810 <template name="progress_bar"/>
811
812 <button style="main_button_half_height">
813 <condition var1="tw_has_cancel" var2="1"/>
814 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500815 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100816 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
817 </button>
818
819 <action>
820 <condition var1="tw_operation_state" var2="1"/>
821 <actions>
822 <action function="page">action_complete</action>
823 </actions>
824 </action>
825
826 <action>
827 <condition var1="tw_has_action2" var2="0"/>
828 <actions>
829 <action function="%tw_action%">%tw_action_param%</action>
830 </actions>
831 </action>
832
833 <action>
834 <condition var1="tw_has_action2" var2="1"/>
835 <actions>
836 <action function="%tw_action%">%tw_action_param%</action>
837 <action function="%tw_action2%">%tw_action2_param%</action>
838 </actions>
839 </action>
840 </page>
841
842 <page name="singleaction_page">
843 <template name="page"/>
844
845 <text style="text_l">
846 <placement x="%col1_x_header%" y="%row3_header_y%"/>
847 <text>%tw_action_text1%</text>
848 </text>
849
850 <text style="text_m">
851 <placement x="%col1_x_header%" y="%row4_header_y%"/>
852 <text>%tw_action_text2%</text>
853 </text>
854
855 <template name="console"/>
856
857 <template name="progress_bar"/>
858
859 <action>
860 <condition var1="tw_operation_state" var2="1"/>
861 <actions>
862 <action function="set">tw_page_done=1</action>
863 </actions>
864 </action>
865
866 <action>
867 <condition var1="tw_has_action2" var2="0"/>
868 <actions>
869 <action function="%tw_action%">%tw_action_param%</action>
870 </actions>
871 </action>
872
873 <action>
874 <condition var1="tw_has_action2" var2="1"/>
875 <actions>
876 <action function="%tw_action%">%tw_action_param%</action>
877 <action function="%tw_action2%">%tw_action2_param%</action>
878 </actions>
879 </action>
880 </page>
881
882 <page name="action_complete">
883 <template name="page"/>
884
885 <text style="text_l">
886 <placement x="%col1_x_header%" y="%row3_header_y%"/>
887 <text>%tw_complete_text1%</text>
888 </text>
889
890 <text style="text_m_fail">
891 <condition var1="tw_operation_status" op="!=" var2="0"/>
892 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500893 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100894 </text>
895
896 <text style="text_m">
897 <condition var1="tw_operation_status" var2="0"/>
898 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500899 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100900 </text>
901
902 <template name="console"/>
903
904 <button style="main_button_half_height">
905 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500906 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100907 <actions>
908 <action function="set">tw_clear_destination=%tw_back%</action>
909 <action function="page">clear_vars</action>
910 </actions>
911 </button>
912
913 <button style="main_button_half_height">
914 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500915 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100916 <actions>
917 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500918 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100919 </actions>
920 </button>
921
922 <action>
923 <touch key="home"/>
924 <actions>
925 <action function="set">tw_clear_destination=main2</action>
926 <action function="page">clear_vars</action>
927 </actions>
928 </action>
929
930 <action>
931 <touch key="back"/>
932 <actions>
933 <action function="set">tw_clear_destination=%tw_back%</action>
934 <action function="page">clear_vars</action>
935 </actions>
936 </action>
937 </page>
938
939 <page name="filecheck">
940 <action>
941 <action function="fileexists">%tw_filecheck%</action>
942 </action>
943
944 <action>
945 <conditions>
946 <condition var1="tw_operation_state" var2="1"/>
947 <condition var1="tw_operation_status" var2="0"/>
948 </conditions>
949 <actions>
950 <action function="set">tw_fileexists=1</action>
951 <action function="page">%tw_existpage%</action>
952 </actions>
953 </action>
954
955 <action>
956 <conditions>
957 <condition var1="tw_operation_state" var2="1"/>
958 <condition var1="tw_operation_status" var2="1"/>
959 </conditions>
960 <actions>
961 <action function="set">tw_fileexists=0</action>
962 <action function="page">%tw_notexistpage%</action>
963 </actions>
964 </action>
965 </page>
966
967 <page name="rebootcheck">
968 <action>
969 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -0600970 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +0100971 </action>
972
973 <action>
974 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
975 <action function="page">confirm_action</action>
976 </action>
977 </page>
978
979 <page name="wipe">
980 <template name="page"/>
981
982 <text style="text_l">
983 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500984 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100985 </text>
986
987 <text style="text_m">
988 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500989 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100990 </text>
991
992 <text style="text_m_accent">
993 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500994 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100995 </text>
996
997 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +0000998 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400999 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1000 </text>
1001
1002 <text style="text_m_accent">
1003 <condition var1="tw_has_data_media" var2="1"/>
1004 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001005 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001006 </text>
1007
1008 <text style="text_m_accent">
1009 <conditions>
1010 <condition var1="tw_has_android_secure" var2="1"/>
1011 <condition var1="fileexists" var2="/and-sec"/>
1012 </conditions>
1013 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001014 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001015 </text>
1016
1017 <text style="text_m_accent">
1018 <condition var1="tw_has_sdext_partition" var2="1"/>
1019 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001020 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001021 </text>
1022
1023 <text style="text_m">
1024 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001025 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001026 </text>
1027
1028 <text style="text_m">
1029 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001030 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001031 </text>
1032
1033 <text style="text_m">
1034 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001035 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001036 </text>
1037
1038 <button style="main_button_half_height">
1039 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001040 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001041 <actions>
1042 <action function="set">partitionlisterror=0</action>
1043 <action function="page">advancedwipe</action>
1044 </actions>
1045 </button>
1046
1047 <button style="main_button_half_height">
1048 <condition var1="tw_has_data_media" var2="1"/>
1049 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001050 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001051 <action function="page">formatdata</action>
1052 </button>
1053
1054 <button style="main_button_half_height">
1055 <conditions>
1056 <condition var1="tw_is_encrypted" var2="1"/>
1057 <condition var1="tw_has_data_media" var2="0"/>
1058 </conditions>
1059 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001060 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001061 <actions>
1062 <action function="set">tw_back=wipe</action>
1063 <action function="set">tw_action=wipe</action>
1064 <action function="set">tw_action_param=DATAMEDIA</action>
1065 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001066 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001067 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001068 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1069 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1070 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001071 <action function="page">confirm_action</action>
1072 </actions>
1073 </button>
1074
1075 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001076 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001077 <actions>
1078 <action function="set">tw_back=wipe</action>
1079 <action function="set">tw_action=wipe</action>
1080 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001081 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1082 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001083 <action function="page">action_page</action>
1084 </actions>
1085 </slider>
1086
1087 <action>
1088 <touch key="back"/>
1089 <action function="page">main</action>
1090 </action>
1091
1092 <action>
1093 <touch key="home"/>
1094 <action function="page">main</action>
1095 </action>
1096 </page>
1097
1098 <page name="advancedwipe">
1099 <template name="page"/>
1100
1101 <action>
1102 <action function="set">tw_wipe_list=</action>
1103 </action>
1104
1105 <text style="text_l">
1106 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001107 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001108 </text>
1109
1110 <text style="text_m">
1111 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001112 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001113 </text>
1114
1115 <partitionlist>
1116 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001117 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001118 <data name="tw_wipe_list"/>
1119 <listtype name="wipe"/>
1120 </partitionlist>
1121
1122 <text style="text_m_fail">
1123 <condition var1="partitionlisterror" var2="1"/>
1124 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 </text>
1127
1128 <button style="main_button_half_height_full_width">
1129 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001132 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001133 <action function="page">checkpartitionlist</action>
1134 </actions>
1135 </button>
1136
1137 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001138 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001139 <actions>
1140 <action function="set">tw_back=advancedwipe</action>
1141 <action function="set">tw_action=wipe</action>
1142 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001143 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1144 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1145 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001146 <action function="page">action_page</action>
1147 </actions>
1148 </slider>
1149
1150 <action>
1151 <touch key="home"/>
1152 <action function="page">main</action>
1153 </action>
1154
1155 <action>
1156 <touch key="back"/>
1157 <action function="page">wipe</action>
1158 </action>
1159 </page>
1160
1161 <page name="formatdata">
1162 <template name="page"/>
1163
1164 <text style="text_l">
1165 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001166 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001167 </text>
1168
1169 <text style="text_m">
1170 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001171 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001172 </text>
1173
1174 <text style="text_m_fail">
1175 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001176 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001177 </text>
1178
1179 <text style="text_m_fail">
1180 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001181 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001182 </text>
1183
1184 <text style="text_m_fail">
1185 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001186 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001187 </text>
1188
Ethan Yonker66a19492015-12-10 10:19:45 -06001189 <text style="text_m_fail">
1190 <condition var1="tw_has_adopted_storage" var2="1"/>
1191 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1192 <text>{@format_data_adopted=Including Adopted Storage}</text>
1193 </text>
1194
z31s1g28f0a922015-11-07 18:50:22 +01001195 <text style="text_m">
1196 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001197 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001198 </text>
1199
1200 <text style="text_m">
1201 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001202 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001203 </text>
1204
1205 <input>
1206 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1207 <text>%tw_confirm_formatdata%</text>
1208 <data name="tw_confirm_formatdata"/>
1209 <restrict minlen="3" maxlen="3" allow="yes"/>
1210 <action function="page">formatdata_confirm</action>
1211 </input>
1212
1213 <fill color="%accent_color%">
1214 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1215 </fill>
1216
1217 <template name="keyboardtemplate"/>
1218
1219 <action>
1220 <touch key="home"/>
1221 <action function="page">main</action>
1222 </action>
1223
1224 <action>
1225 <touch key="back"/>
1226 <action function="page">wipe</action>
1227 </action>
1228 </page>
1229
1230 <page name="formatdata_confirm">
1231 <action>
1232 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1233 <actions>
1234 <action function="set">tw_back=formatdata</action>
1235 <action function="set">tw_action=wipe</action>
1236 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001237 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1238 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001239 <action function="page">action_page</action>
1240 </actions>
1241 </action>
1242
1243 <action>
1244 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1245 <action function="page">formatdata</action>
1246 </action>
1247 </page>
1248
1249 <page name="checkpartitionlist">
1250 <action>
1251 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1252 <actions>
1253 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001254 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001255 <action function="page">partitionoptions</action>
1256 </actions>
1257 </action>
1258
1259 <action>
1260 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1261 <actions>
1262 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001263 <action function="page">advancedwipe</action>
1264 </actions>
1265 </action>
1266 </page>
1267
1268 <page name="partitionoptions">
1269 <template name="page"/>
1270
1271 <text style="text_l">
1272 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001273 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001274 </text>
1275
1276 <text style="text_m">
1277 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001278 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001279 </text>
1280
1281 <text style="text_m_accent">
1282 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001283 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001284 </text>
1285
1286 <text style="text_m_accent">
1287 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001288 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001289 </text>
1290
1291 <text style="text_m">
1292 <condition var1="tw_partition_is_present" var2="1"/>
1293 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001294 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001295 </text>
1296
1297 <text style="text_m">
1298 <condition var1="tw_partition_is_present" var2="0"/>
1299 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001300 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001301 </text>
1302
1303 <text style="text_m">
1304 <condition var1="tw_partition_removable" var2="1"/>
1305 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001306 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001307 </text>
1308
1309 <text style="text_m">
1310 <condition var1="tw_partition_removable" var2="0"/>
1311 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001312 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001313 </text>
1314
1315 <text style="text_m">
1316 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001317 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001318 </text>
1319
1320 <text style="text_m">
1321 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001322 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001323 </text>
1324
1325 <text style="text_m">
1326 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <text style="text_m">
1331 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001332 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001333 </text>
1334
1335 <button style="main_button_half_height">
1336 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1337 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001338 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001339 <actions>
1340 <action function="set">tw_back=partitionoptions</action>
1341 <action function="set">tw_action=resize</action>
1342 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1343 <action function="set">tw_has_action2=1</action>
1344 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001345 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001346 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001347 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001348 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1349 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1350 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001351 <action function="page">confirm_action</action>
1352 </actions>
1353 </button>
1354
1355 <button style="main_button_half_height">
1356 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1357 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001358 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001359 <actions>
1360 <action function="set">tw_back=partitionoptions</action>
1361 <action function="set">tw_action=repair</action>
1362 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1363 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001364 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001365 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1367 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1368 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001369 <action function="page">confirm_action</action>
1370 </actions>
1371 </button>
1372
1373 <button style="main_button_half_height">
1374 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001376 <action function="page">selectfilesystem</action>
1377 </button>
1378
1379 <action>
1380 <touch key="home"/>
1381 <action function="page">main</action>
1382 </action>
1383
1384 <action>
1385 <touch key="back"/>
1386 <action function="page">advancedwipe</action>
1387 </action>
1388 </page>
1389
1390 <page name="refreshfilesystem">
1391 <action>
1392 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1393 <actions>
1394 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001395 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001396 <action function="page">selectfilesystem</action>
1397 </actions>
1398 </action>
1399
1400 <action>
1401 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1402 <actions>
1403 <action function="set">partitionlisterror=1</action>
1404 <action function="set">tw_wipe_list=</action>
1405 <action function="page">advancedwipe</action>
1406 </actions>
1407 </action>
1408 </page>
1409
1410 <page name="selectfilesystem">
1411 <template name="page"/>
1412
1413 <text style="text_l">
1414 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001415 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001416 </text>
1417
1418 <text style="text_m">
1419 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001420 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001421 </text>
1422
1423 <text style="text_m_accent">
1424 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001425 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001426 </text>
1427
1428 <text style="text_m_accent">
1429 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001430 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001431 </text>
1432
1433 <text style="text_m_fail">
1434 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001435 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001436 </text>
1437
1438 <text style="text_m_fail">
1439 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001440 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001441 </text>
1442
1443 <button style="main_button_half_height">
1444 <condition var1="tw_partition_ext" op="=" var2="1"/>
1445 <placement x="%indent%" y="%row15a_y%"/>
1446 <text>EXT2</text>
1447 <actions>
1448 <action function="set">tw_back=refreshfilesystem</action>
1449 <action function="set">tw_action=changefilesystem</action>
1450 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1451 <action function="set">tw_action_new_file_system=ext2</action>
1452 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1454 <action function="set">tw_text2=EXT2</action>
1455 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1456 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1457 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001458 <action function="page">confirm_action</action>
1459 </actions>
1460 </button>
1461
1462 <button style="main_button_half_height">
1463 <condition var1="tw_partition_ext" op="=" var2="1"/>
1464 <placement x="%indent%" y="%row18a_y%"/>
1465 <text>EXT3</text>
1466 <actions>
1467 <action function="set">tw_back=refreshfilesystem</action>
1468 <action function="set">tw_action=changefilesystem</action>
1469 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1470 <action function="set">tw_action_new_file_system=ext3</action>
1471 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001472 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1473 <action function="set">tw_text2=EXT3</action>
1474 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1475 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1476 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001477 <action function="page">confirm_action</action>
1478 </actions>
1479 </button>
1480
1481 <button style="main_button_half_height">
1482 <condition var1="tw_partition_ext" op="=" var2="1"/>
1483 <placement x="%indent%" y="%row21a_y%"/>
1484 <text>EXT4</text>
1485 <actions>
1486 <action function="set">tw_back=refreshfilesystem</action>
1487 <action function="set">tw_action=changefilesystem</action>
1488 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1489 <action function="set">tw_action_new_file_system=ext4</action>
1490 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001491 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1492 <action function="set">tw_text2=EXT4</action>
1493 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1494 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1495 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001496 <action function="page">confirm_action</action>
1497 </actions>
1498 </button>
1499
1500 <button style="main_button_half_height">
1501 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1502 <placement x="%center_x%" y="%row15a_y%"/>
1503 <text>FAT</text>
1504 <actions>
1505 <action function="set">tw_back=refreshfilesystem</action>
1506 <action function="set">tw_action=changefilesystem</action>
1507 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1508 <action function="set">tw_action_new_file_system=vfat</action>
1509 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001510 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1511 <action function="set">tw_text2=FAT</action>
1512 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1513 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1514 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001515 <action function="page">confirm_action</action>
1516 </actions>
1517 </button>
1518
1519 <button style="main_button_half_height">
1520 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1521 <placement x="%center_x%" y="%row18a_y%"/>
1522 <text>exFAT</text>
1523 <actions>
1524 <action function="set">tw_back=refreshfilesystem</action>
1525 <action function="set">tw_action=changefilesystem</action>
1526 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1527 <action function="set">tw_action_new_file_system=exfat</action>
1528 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001529 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1530 <action function="set">tw_text2=exFAT</action>
1531 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1532 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1533 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001534 <action function="page">confirm_action</action>
1535 </actions>
1536 </button>
1537
1538 <button style="main_button_half_height">
1539 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1540 <placement x="%center_x%" y="%row21a_y%"/>
1541 <text>F2FS</text>
1542 <actions>
1543 <action function="set">tw_back=refreshfilesystem</action>
1544 <action function="set">tw_action=changefilesystem</action>
1545 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1546 <action function="set">tw_action_new_file_system=f2fs</action>
1547 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001548 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1549 <action function="set">tw_text2=F2FS</action>
1550 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1551 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1552 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001553 <action function="page">confirm_action</action>
1554 </actions>
1555 </button>
1556
1557 <action>
1558 <touch key="home"/>
1559 <action function="page">main</action>
1560 </action>
1561
1562 <action>
1563 <touch key="back"/>
1564 <action function="page">partitionoptions</action>
1565 </action>
1566 </page>
1567
1568 <page name="backup">
1569 <template name="page"/>
1570
Noah Jacobson81d638d2019-04-28 00:10:07 -04001571 <action>
1572 <conditions>
1573 <condition var1="tw_is_fbe" var2="1"/>
1574 <condition var1="tw_all_users_decrypted" var2="0"/>
1575 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1576 </conditions>
1577 <actions>
1578 <action function="set">tw_multiuser_warning_destination=backup</action>
1579 <action function="page">multiuser_warning</action>
1580 </actions>
1581 </action>
1582
z31s1g28f0a922015-11-07 18:50:22 +01001583 <text style="text_l">
1584 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001585 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001586 </text>
1587
1588 <text style="text_m">
1589 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001590 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001591 </text>
1592
1593 <template name="tabs_backup"/>
1594
1595 <fill color="%text_color%">
1596 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1597 </fill>
1598
1599 <button style="tab">
1600 <conditions>
1601 <condition var1="tw_include_encrypted_backup" var2="1"/>
1602 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001603 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001604 </conditions>
1605 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001606 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001607 <font resource="font_s" color="%text_color%"/>
1608 <actions>
1609 <action function="set">tw_password_not_match=0</action>
1610 <action function="page">backupencryption</action>
1611 </actions>
1612 </button>
1613
1614 <button style="tab">
1615 <conditions>
1616 <condition var1="tw_include_encrypted_backup" var2="1"/>
1617 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001618 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001619 </conditions>
1620 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001621 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001622 <font resource="font_s" color="%text_success_color%"/>
1623 <actions>
1624 <action function="set">tw_password_not_match=0</action>
1625 <action function="page">backupencryption</action>
1626 </actions>
1627 </button>
1628
1629 <text style="text_m_accent">
1630 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001631 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001632 </text>
1633
1634 <text style="text_m">
1635 <placement x="%indent%" y="%row4a_y%"/>
1636 <text>%tw_backup_name%</text>
1637 </text>
1638
1639 <fill color="%fileselector_linecolor%">
1640 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1641 </fill>
1642
1643 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001644 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001645 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1646 <fill color="%transparent%"/>
1647 <actions>
1648 <action function="set">tw_fileexists=0</action>
1649 <action function="page">backupname1</action>
1650 </actions>
1651 </button>
1652
1653 <partitionlist>
1654 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001655 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001656 <data name="tw_backup_list"/>
1657 <listtype name="backup"/>
1658 </partitionlist>
1659
1660 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001661 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001662 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001663 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001664 <actions>
1665 <action function="set">tw_back=backup</action>
1666 <action function="overlay">select_storage</action>
1667 </actions>
1668 </button>
1669
1670 <button style="main_button_half_height">
1671 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001672 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001673 <actions>
1674 <action function="refreshsizes"/>
1675 <action function="page">backup</action>
1676 </actions>
1677 </button>
1678
1679 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001680 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001681 <action function="page">backup_run</action>
1682 </slider>
1683
1684 <action>
1685 <touch key="home"/>
1686 <action function="page">main</action>
1687 </action>
1688
1689 <action>
1690 <touch key="back"/>
1691 <action function="page">main</action>
1692 </action>
1693 </page>
1694
Noah Jacobson81d638d2019-04-28 00:10:07 -04001695 <page name="multiuser_warning">
1696 <template name="page"/>
1697
1698 <text style="text_l">
1699 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1700 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1701 </text>
1702
1703 <text style="text_m_fail">
1704 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1705 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1706 </text>
1707
1708 <text style="text_m_fail">
1709 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1710 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1711 </text>
1712
1713 <button style="main_button_half_height_full_width">
1714 <placement x="%indent%" y="%row18a_y%"/>
1715 <text>{@decrypt_users=Decrypt Users}</text>
1716 <action function="page">decrypt_users</action>
1717 </button>
1718
1719 <slider>>
1720 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1721 <actions>
1722 <action function="set">tw_multiuser_warning_accepted=1</action>
1723 <action function="page">%tw_multiuser_warning_destination%</action>
1724 </actions>
1725 </slider>
1726
1727 <action>
1728 <touch key="home"/>
1729 <action function="page">main</action>
1730 </action>
1731
1732 <action>
1733 <touch key="back"/>
1734 <action function="page">main</action>
1735 </action>
1736 </page>
1737
z31s1g28f0a922015-11-07 18:50:22 +01001738 <page name="backup_options">
1739 <template name="page"/>
1740
1741 <text style="text_l">
1742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001743 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001744 </text>
1745
1746 <text style="text_m">
1747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001748 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001749 </text>
1750
1751 <template name="tabs_backup"/>
1752
1753 <fill color="%text_color%">
1754 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1755 </fill>
1756
1757 <button style="tab">
1758 <conditions>
1759 <condition var1="tw_include_encrypted_backup" var2="1"/>
1760 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001761 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001762 </conditions>
1763 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001764 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001765 <font resource="font_s" color="%text_color%"/>
1766 <actions>
1767 <action function="set">tw_password_not_match=0</action>
1768 <action function="page">backupencryption</action>
1769 </actions>
1770 </button>
1771
1772 <button style="tab">
1773 <conditions>
1774 <condition var1="tw_include_encrypted_backup" var2="1"/>
1775 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001776 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001777 </conditions>
1778 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001779 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001780 <font resource="font_s" color="%text_success_color%"/>
1781 <actions>
1782 <action function="set">tw_password_not_match=0</action>
1783 <action function="page">backupencryption</action>
1784 </actions>
1785 </button>
1786
1787 <checkbox>
1788 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001789 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001790 <data variable="tw_use_compression"/>
1791 </checkbox>
1792
1793 <checkbox>
1794 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001795 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1796 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001797 </checkbox>
1798
1799 <checkbox>
1800 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001801 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001802 <data variable="tw_disable_free_space"/>
1803 </checkbox>
1804
Ethan Yonker1b190162016-12-05 15:25:19 -06001805 <text style="text_m">
1806 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001807 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001808 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1809 </text>
1810
1811 <button style="main_button">
1812 <condition var1="tw_has_boot_slots" var2="1"/>
1813 <placement x="%indent%" y="%row19_y%"/>
1814 <text>{@boot_slot_a=Slot A}</text>
1815 <actions>
1816 <action function="set">tw_back=backup_options</action>
1817 <action function="set">tw_action=setbootslot</action>
1818 <action function="set">tw_action_param=A</action>
1819 <action function="set">tw_has_action2=0</action>
1820 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1821 <action function="set">tw_action_text2=</action>
1822 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1823 <action function="page">action_page</action>
1824 </actions>
1825 </button>
1826
1827 <button style="main_button">
1828 <condition var1="tw_has_boot_slots" var2="1"/>
1829 <placement x="%center_x%" y="%row19_y%"/>
1830 <text>{@boot_slot_b=Slot B}</text>
1831 <actions>
1832 <action function="set">tw_back=backup_options</action>
1833 <action function="set">tw_action=setbootslot</action>
1834 <action function="set">tw_action_param=B</action>
1835 <action function="set">tw_has_action2=0</action>
1836 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1837 <action function="set">tw_action_text2=</action>
1838 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1839 <action function="page">action_page</action>
1840 </actions>
1841 </button>
1842
z31s1g28f0a922015-11-07 18:50:22 +01001843 <action>
1844 <touch key="home"/>
1845 <action function="page">main</action>
1846 </action>
1847
1848 <action>
1849 <touch key="back"/>
1850 <action function="page">backup</action>
1851 </action>
1852 </page>
1853
1854 <page name="backupname1">
1855 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001856 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001857 <action function="generatebackupname"/>
1858 </action>
1859
1860 <action>
1861 <action function="page">backupname2</action>
1862 </action>
1863 </page>
1864
1865 <page name="backupname2">
1866 <template name="page"/>
1867
1868 <text style="text_l">
1869 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001871 </text>
1872
1873 <text style="text_m">
1874 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001875 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001876 </text>
1877
1878 <template name="tabs_backup"/>
1879
1880 <fill color="%text_color%">
1881 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1882 </fill>
1883
1884 <button style="tab">
1885 <conditions>
1886 <condition var1="tw_include_encrypted_backup" var2="1"/>
1887 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001888 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001889 </conditions>
1890 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001892 <font resource="font_s" color="%text_color%"/>
1893 <actions>
1894 <action function="set">tw_password_not_match=0</action>
1895 <action function="page">backupencryption</action>
1896 </actions>
1897 </button>
1898
1899 <button style="tab">
1900 <conditions>
1901 <condition var1="tw_include_encrypted_backup" var2="1"/>
1902 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001903 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001904 </conditions>
1905 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001906 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001907 <font resource="font_s" color="%text_success_color%"/>
1908 <actions>
1909 <action function="set">tw_password_not_match=0</action>
1910 <action function="page">backupencryption</action>
1911 </actions>
1912 </button>
1913
1914 <text style="text_m_accent">
1915 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001916 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001917 </text>
1918
1919 <input>
1920 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1921 <text>%tw_backup_name%</text>
1922 <data name="tw_backup_name"/>
1923 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1924 <actions>
1925 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1926 <action function="set">tw_existpage=backupname2</action>
1927 <action function="set">tw_notexistpage=backup</action>
1928 <action function="page">filecheck</action>
1929 </actions>
1930 </input>
1931
1932 <fill color="%accent_color%">
1933 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1934 </fill>
1935
1936 <fill color="%text_fail_color%">
1937 <condition var1="tw_fileexists" var2="1"/>
1938 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1939 </fill>
1940
1941 <text style="text_m_fail">
1942 <condition var1="tw_fileexists" var2="1"/>
1943 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001944 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001945 </text>
1946
1947 <button style="main_button_half_height">
1948 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001949 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001950 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001951 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001952 <action function="page">backup</action>
1953 </actions>
1954 </button>
1955
1956 <button style="main_button_half_height">
1957 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001958 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001959 <action function="appenddatetobackupname"/>
1960 </button>
1961
1962 <template name="keyboardtemplate"/>
1963
1964 <action>
1965 <touch key="home"/>
1966 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001967 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001968 <action function="page">main</action>
1969 </actions>
1970 </action>
1971
1972 <action>
1973 <touch key="back"/>
1974 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001975 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001976 <action function="page">backup</action>
1977 </actions>
1978 </action>
1979 </page>
1980
1981 <page name="backupencryption">
1982 <template name="page"/>
1983
1984 <text style="text_l">
1985 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001986 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001987 </text>
1988
1989 <text style="text_m">
1990 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001991 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001992 </text>
1993
1994 <template name="tabs_backup"/>
1995
1996 <button style="tab">
1997 <conditions>
1998 <condition var1="tw_include_encrypted_backup" var2="1"/>
1999 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002000 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002001 </conditions>
2002 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002003 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002004 <font resource="font_s" color="%text_color%"/>
2005 <actions>
2006 <action function="set">tw_password_not_match=0</action>
2007 <action function="page">backupencryption</action>
2008 </actions>
2009 </button>
2010
2011 <button style="tab">
2012 <conditions>
2013 <condition var1="tw_include_encrypted_backup" var2="1"/>
2014 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002015 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002016 </conditions>
2017 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002018 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002019 <font resource="font_s" color="%text_success_color%"/>
2020 <actions>
2021 <action function="set">tw_password_not_match=0</action>
2022 <action function="page">backupencryption</action>
2023 </actions>
2024 </button>
2025
2026 <fill color="%text_color%">
2027 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2028 </fill>
2029
2030 <text style="text_m_accent">
2031 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002032 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002033 </text>
2034
2035 <text style="text_m">
2036 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002037 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002038 </text>
2039
2040 <input>
2041 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2042 <text>%tw_backup_encrypt_display%</text>
2043 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2044 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2045 <action function="page">backupencryption2</action>
2046 </input>
2047
2048 <fill color="%accent_color%">
2049 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2050 </fill>
2051
2052 <fill color="%text_fail_color%">
2053 <condition var1="tw_password_not_match" var2="1"/>
2054 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2055 </fill>
2056
2057 <text style="text_m_fail">
2058 <condition var1="tw_password_not_match" var2="1"/>
2059 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002060 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002061 </text>
2062
2063 <button style="main_button_half_height">
2064 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002065 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002066 <actions>
2067 <action function="set">tw_encrypt_backup=0</action>
2068 <action function="set">tw_backup_password=</action>
2069 <action function="set">tw_backup_password2=</action>
2070 <action function="set">tw_backup_encrypt_display=</action>
2071 <action function="set">tw_backup_encrypt_display2=</action>
2072 <action function="page">backup</action>
2073 </actions>
2074 </button>
2075
2076 <template name="keyboardtemplate"/>
2077
2078 <action>
2079 <touch key="home"/>
2080 <action function="page">main</action>
2081 </action>
2082
2083 <action>
2084 <touch key="back"/>
2085 <action function="page">backup</action>
2086 </action>
2087 </page>
2088
2089 <page name="backupencryption2">
2090 <template name="page"/>
2091
2092 <text style="text_l">
2093 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002094 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002095 </text>
2096
2097 <text style="text_m">
2098 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002099 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002100 </text>
2101
2102 <template name="tabs_backup"/>
2103
2104 <button style="tab">
2105 <conditions>
2106 <condition var1="tw_include_encrypted_backup" var2="1"/>
2107 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002108 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002109 </conditions>
2110 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002111 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002112 <font resource="font_s" color="%text_color%"/>
2113 <actions>
2114 <action function="set">tw_password_not_match=0</action>
2115 <action function="page">backupencryption</action>
2116 </actions>
2117 </button>
2118
2119 <button style="tab">
2120 <conditions>
2121 <condition var1="tw_include_encrypted_backup" var2="1"/>
2122 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002123 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002124 </conditions>
2125 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002126 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002127 <font resource="font_s" color="%text_success_color%"/>
2128 <actions>
2129 <action function="set">tw_password_not_match=0</action>
2130 <action function="page">backupencryption</action>
2131 </actions>
2132 </button>
2133
2134 <fill color="%text_color%">
2135 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2136 </fill>
2137
2138 <text style="text_m_accent">
2139 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002140 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002141 </text>
2142
2143 <text style="text_m">
2144 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002145 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002146 </text>
2147
2148 <input>
2149 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2150 <text>%tw_backup_encrypt_display2%</text>
2151 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2152 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2153 <action function="page">checkbackuppassword</action>
2154 </input>
2155
2156 <fill color="%accent_color%">
2157 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2158 </fill>
2159
2160 <button style="main_button_half_height">
2161 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002162 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002163 <actions>
2164 <action function="set">tw_encrypt_backup=0</action>
2165 <action function="set">tw_backup_password=</action>
2166 <action function="set">tw_backup_password2=</action>
2167 <action function="set">tw_backup_encrypt_display=</action>
2168 <action function="set">tw_backup_encrypt_display2=</action>
2169 <action function="page">backup</action>
2170 </actions>
2171 </button>
2172
2173 <template name="keyboardtemplate"/>
2174
2175 <action>
2176 <touch key="home"/>
2177 <action function="page">main</action>
2178 </action>
2179
2180 <action>
2181 <touch key="back"/>
2182 <action function="page">backup</action>
2183 </action>
2184 </page>
2185
2186 <page name="checkbackuppassword">
2187 <action>
2188 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2189 <actions>
2190 <action function="set">tw_encrypt_backup=1</action>
2191 <action function="page">backup</action>
2192 </actions>
2193 </action>
2194
2195 <action>
2196 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2197 <actions>
2198 <action function="set">tw_encrypt_backup=0</action>
2199 <action function="set">tw_password_not_match=1</action>
2200 <action function="set">tw_backup_password=</action>
2201 <action function="set">tw_backup_password2=</action>
2202 <action function="set">tw_backup_encrypt_display=</action>
2203 <action function="set">tw_backup_encrypt_display2=</action>
2204 <action function="page">backupencryption</action>
2205 </actions>
2206 </action>
2207 </page>
2208
2209 <page name="backup_run">
2210 <template name="page"/>
2211
2212 <text style="text_l">
2213 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2214 <text>%tw_operation%</text>
2215 </text>
2216
2217 <text style="text_m">
2218 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2219 <text>%tw_partition% Partition</text>
2220 </text>
2221
2222 <template name="console"/>
2223
2224 <template name="progress_bar"/>
2225
2226 <text style="text_m_accent">
2227 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002228 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002229 </text>
2230
2231 <text style="text_m">
2232 <placement x="%indent%" y="%row20_y%"/>
2233 <text>%tw_file_progress%</text>
2234 </text>
2235
2236 <text style="text_m">
2237 <placement x="%indent%" y="%row21_y%"/>
2238 <text>%tw_size_progress%</text>
2239 </text>
2240
2241 <button style="main_button_half_height">
2242 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002243 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002244 <action function="cancelbackup"/>
2245 </button>
2246
2247 <action>
2248 <action function="nandroid">backup</action>
2249 </action>
2250
2251 <action>
2252 <condition var1="tw_operation_state" var2="1"/>
2253 <condition var1="tw_cancel_backup" var2="0"/>
2254 <actions>
2255 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002256 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002257 <action function="set">tw_show_reboot=1</action>
2258 <action function="page">action_complete</action>
2259 </actions>
2260 </action>
2261
2262 <action>
2263 <condition var1="tw_operation_state" var2="1"/>
2264 <condition var1="tw_cancel_backup" var2="1"/>
2265 <actions>
2266 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002267 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002268 <action function="set">tw_show_reboot=1</action>
2269 <action function="page">action_complete</action>
2270 </actions>
2271 </action>
2272 </page>
2273
2274 <page name="restore">
2275 <template name="page"/>
2276
Noah Jacobson81d638d2019-04-28 00:10:07 -04002277 <action>
2278 <conditions>
2279 <condition var1="tw_is_fbe" var2="1"/>
2280 <condition var1="tw_all_users_decrypted" var2="0"/>
2281 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2282 </conditions>
2283 <actions>
2284 <action function="set">tw_multiuser_warning_destination=restore</action>
2285 <action function="page">multiuser_warning</action>
2286 </actions>
2287 </action>
2288
z31s1g28f0a922015-11-07 18:50:22 +01002289 <text style="text_l">
2290 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002291 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002292 </text>
2293
2294 <text style="text_m">
2295 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002296 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002297 </text>
2298
2299 <template name="sort_options"/>
2300
2301 <fileselector>
2302 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002303 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002304 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002305 <path name="tw_backups_folder"/>
2306 <data name="tw_restore" default=""/>
2307 <selection name="tw_restore_name"/>
2308 </fileselector>
2309
2310 <button style="main_button_half_height">
2311 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002312 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002313 <actions>
2314 <action function="set">tw_back=restore</action>
2315 <action function="overlay">select_storage</action>
2316 </actions>
2317 </button>
2318
2319 <action>
2320 <condition var1="tw_restore" op="modified"/>
2321 <actions>
2322 <action function="readBackup"/>
2323 <action function="page">restore_read</action>
2324 </actions>
2325 </action>
2326
2327 <action>
2328 <touch key="home"/>
2329 <action function="page">main</action>
2330 </action>
2331
2332 <action>
2333 <touch key="back"/>
2334 <action function="page">main</action>
2335 </action>
2336 </page>
2337
2338 <page name="restore_read">
2339 <action>
2340 <condition var1="tw_restore_encrypted" var2="1"/>
2341 <actions>
2342 <action function="set">tw_password_fail=0</action>
2343 <action function="page">restore_decrypt</action>
2344 </actions>
2345 </action>
2346
2347 <action>
2348 <condition var1="tw_restore_encrypted" var2="0"/>
2349 <actions>
2350 <action function="page">restore_select</action>
2351 </actions>
2352 </action>
2353 </page>
2354
2355 <page name="restore_decrypt">
2356 <template name="page"/>
2357
2358 <text style="text_l">
2359 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002360 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002361 </text>
2362
2363 <text style="text_m">
2364 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002365 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002366 </text>
2367
2368 <text style="text_m_accent">
2369 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002370 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002371 </text>
2372
2373 <input>
2374 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2375 <text>%tw_restore_display%</text>
2376 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2377 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2378 <action function="page">try_restore_decrypt</action>
2379 </input>
2380
2381 <fill color="%accent_color%">
2382 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2383 </fill>
2384
2385 <fill color="%text_fail_color%">
2386 <condition var1="tw_password_fail" var2="1"/>
2387 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2388 </fill>
2389
2390 <text style="text_m_fail">
2391 <condition var1="tw_password_fail" var2="1"/>
2392 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002393 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002394 </text>
2395
2396 <button style="main_button_half_height">
2397 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002398 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002399 <actions>
2400 <action function="set">tw_page_done=1</action>
2401 <action function="page">restore</action>
2402 </actions>
2403 </button>
2404
2405 <button style="main_button_half_height">
2406 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002407 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002408 <actions>
2409 <action function="set">tw_back=restore</action>
2410 <action function="set">tw_action=cmd</action>
2411 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002412 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2413 <action function="set">tw_text2=%tw_restore_name%</action>
2414 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2415 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2416 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2417 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002418 <action function="page">confirm_action</action>
2419 </actions>
2420 </button>
2421
2422 <template name="keyboardtemplate"/>
2423
2424 <action>
2425 <touch key="home"/>
2426 <action function="page">main</action>
2427 </action>
2428
2429 <action>
2430 <touch key="back"/>
2431 <action function="page">restore</action>
2432 </action>
2433 </page>
2434
2435 <page name="try_restore_decrypt">
2436 <template name="page"/>
2437
2438 <text style="text_l">
2439 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002440 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002441 </text>
2442
2443 <text style="text_m">
2444 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002445 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002446 </text>
2447
2448 <template name="console"/>
2449
2450 <template name="progress_bar"/>
2451
2452 <action>
2453 <action function="decrypt_backup"/>
2454 </action>
2455
2456 <action>
2457 <conditions>
2458 <condition var1="tw_operation_state" var2="1"/>
2459 <condition var1="tw_operation_status" op="!=" var2="0"/>
2460 </conditions>
2461 <actions>
2462 <action function="set">tw_password_fail=1</action>
2463 <action function="page">restore_decrypt</action>
2464 </actions>
2465 </action>
2466
2467 <action>
2468 <conditions>
2469 <condition var1="tw_operation_state" var2="1"/>
2470 <condition var1="tw_operation_status" op="=" var2="0"/>
2471 </conditions>
2472 <actions>
2473 <action function="set">tw_page_done=1</action>
2474 <action function="page">restore_select</action>
2475 </actions>
2476 </action>
2477 </page>
2478
2479 <page name="restore_select">
2480 <template name="page"/>
2481
2482 <text style="text_l">
2483 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002484 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002485 </text>
2486
2487 <text style="text_m">
2488 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002489 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002490 </text>
2491
2492 <text style="text_m_accent">
2493 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002494 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002495 </text>
2496
2497 <text style="text_m">
2498 <placement x="%indent%" y="%row3_y%"/>
2499 <text>%tw_restore_name%</text>
2500 </text>
2501
2502 <fill color="%fileselector_linecolor%">
2503 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2504 </fill>
2505
2506 <button>
2507 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2508 <fill color="%transparent%"/>
2509 <actions>
2510 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2511 <action function="set">tw_fileexists=0</action>
2512 <action function="page">renamebackup</action>
2513 </actions>
2514 </button>
2515
2516 <partitionlist>
2517 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002518 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002519 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2520 <listtype name="restore"/>
2521 </partitionlist>
2522
2523 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002524 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002525 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002526 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2527 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002528 </checkbox>
2529
2530 <button style="main_button_half_height">
2531 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002532 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002533 <actions>
2534 <action function="set">tw_back=restore</action>
2535 <action function="set">tw_action=cmd</action>
2536 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002537 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002538 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002539 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2540 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2541 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2542 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002543 <action function="page">confirm_action</action>
2544 </actions>
2545 </button>
2546
2547 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002548 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002549 <action function="page">restore_run</action>
2550 </slider>
2551
2552 <action>
2553 <touch key="home"/>
2554 <action function="page">main</action>
2555 </action>
2556
2557 <action>
2558 <touch key="back"/>
2559 <action function="page">restore</action>
2560 </action>
2561 </page>
2562
2563 <page name="renamebackup">
2564 <template name="page"/>
2565
2566 <text style="text_l">
2567 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002568 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002569 </text>
2570
2571 <text style="text_m">
2572 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002573 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002574 </text>
2575
2576 <text style="text_m_accent">
2577 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002578 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002579 </text>
2580
2581 <input>
2582 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2583 <text>%tw_backup_rename%</text>
2584 <data name="tw_backup_rename"/>
2585 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2586 <actions>
2587 <action function="set">tw_back=restore</action>
2588 <action function="set">tw_action=cmd</action>
2589 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; mv "%tw_restore_name%" "%tw_backup_rename%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002590 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2591 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2592 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2593 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2594 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002595 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2596 <action function="set">tw_existpage=renamebackup</action>
2597 <action function="set">tw_notexistpage=confirm_action</action>
2598 <action function="page">filecheck</action>
2599 </actions>
2600 </input>
2601
2602 <fill color="%accent_color%">
2603 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2604 </fill>
2605
2606 <fill color="%text_fail_color%">
2607 <condition var1="tw_fileexists" var2="1"/>
2608 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2609 </fill>
2610
2611 <text style="text_m_fail">
2612 <condition var1="tw_fileexists" var2="1"/>
2613 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002614 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002615 </text>
2616
2617 <button style="main_button_half_height">
2618 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002619 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002620 <action function="page">restore_select</action>
2621 </button>
2622
2623 <template name="keyboardtemplate"/>
2624
2625 <action>
2626 <touch key="home"/>
2627 <action function="page">main</action>
2628 </action>
2629
2630 <action>
2631 <touch key="back"/>
2632 <action function="page">restore_select</action>
2633 </action>
2634 </page>
2635
2636 <page name="restore_run">
2637 <template name="page"/>
2638
2639 <text style="text_l">
2640 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002641 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </text>
2643
2644 <text style="text_m">
2645 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2646 <text>%tw_operation% %tw_partition%</text>
2647 </text>
2648
2649 <template name="console"/>
2650
2651 <template name="progress_bar"/>
2652
2653 <text style="text_m_accent">
2654 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002655 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002656 </text>
2657
2658 <text style="text_m">
2659 <placement x="%indent%" y="%row20_y%"/>
2660 <text>%tw_size_progress%</text>
2661 </text>
2662
2663 <action>
2664 <condition var1="tw_operation_state" var2="1"/>
2665 <actions>
2666 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002667 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002668 <action function="set">tw_show_reboot=1</action>
2669 <action function="page">action_complete</action>
2670 </actions>
2671 </action>
2672
2673 <action>
2674 <action function="nandroid">restore</action>
2675 </action>
2676 </page>
2677
2678 <page name="mount">
2679 <template name="page"/>
2680
2681 <text style="text_l">
2682 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002683 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002684 </text>
2685
2686 <text style="text_m">
2687 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002688 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002689 </text>
2690
2691 <partitionlist>
2692 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002693 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002694 <listtype name="mount"/>
2695 </partitionlist>
2696
2697 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002698 <conditions>
2699 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2700 <condition var1="tw_is_super" op="=" var2="0"/>
2701 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002702 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002703 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002704 <image resource="checkbox_false"/>
2705 <action function="mountsystemtoggle">1</action>
2706 </button>
2707
2708 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002709 <conditions>
2710 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2711 <condition var1="tw_is_super" op="=" var2="0"/>
2712 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002713 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002714 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002715 <image resource="checkbox_true"/>
2716 <actions>
2717 <action function="set">tw_lifetime_writes=2</action>
2718 <action function="page">system_readonly_check</action>
2719 </actions>
2720 </button>
2721
2722 <button style="main_button_half_height">
2723 <condition var1="tw_has_usb_storage" var2="1"/>
2724 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002725 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002726 <action function="page">usb_mount</action>
2727 </button>
2728
2729 <button style="main_button_half_height">
2730 <conditions>
2731 <condition var1="tw_is_encrypted" var2="1"/>
2732 <condition var1="tw_is_decrypted" var2="0"/>
2733 </conditions>
2734 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002735 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002736 <action function="set">tw_crypto_user_id=0</action>
2737 <action function="set">tw_crypto_password=</action>
2738 <action function="set">tw_password_fail=0</action>
2739 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002740 <action function="page">decrypt</action>
2741 </button>
2742
2743 <button style="main_button_half_height">
2744 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002745 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002746 <actions>
2747 <action function="set">tw_back=mount</action>
2748 <action function="overlay">select_storage</action>
2749 </actions>
2750 </button>
2751
2752 <button style="main_button_half_height">
2753 <conditions>
2754 <condition var1="tw_has_mtp" var2="1"/>
2755 <condition var1="tw_mtp_enabled" var2="0"/>
2756 </conditions>
2757 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002758 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002759 <action function="startmtp"/>
2760 </button>
2761
2762 <button style="main_button_half_height">
2763 <conditions>
2764 <condition var1="tw_has_mtp" var2="1"/>
2765 <condition var1="tw_mtp_enabled" var2="1"/>
2766 </conditions>
2767 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002768 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002769 <action function="stopmtp"/>
2770 </button>
2771
2772 <action>
2773 <touch key="home"/>
2774 <action function="page">main</action>
2775 </action>
2776
2777 <action>
2778 <touch key="back"/>
2779 <action function="page">main</action>
2780 </action>
2781 </page>
2782
2783 <page name="usb_mount">
2784 <template name="page"/>
2785
2786 <text style="text_l">
2787 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002788 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002789 </text>
2790
2791 <text style="text_m">
2792 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002793 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002794 </text>
2795
2796 <text style="text_m_accent">
2797 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002798 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002799 </text>
2800
2801 <text style="text_m">
2802 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002803 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002804 </text>
2805
2806 <text style="text_m">
2807 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002808 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002809 </text>
2810
2811 <button style="main_button_half_height">
2812 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002813 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002814 <action function="page">usb_umount</action>
2815 </button>
2816
2817 <action>
2818 <action function="mount">usb</action>
2819 <action function="set">tw_busy=1</action>
2820 </action>
2821 </page>
2822
2823 <page name="usb_umount">
2824 <action>
2825 <action function="unmount">usb</action>
2826 </action>
2827
2828 <action>
2829 <action function="page">mount</action>
2830 <action function="set">tw_busy=0</action>
2831 </action>
2832 </page>
2833
2834 <page name="system_readonly_check">
2835 <action>
2836 <action function="checkpartitionlifetimewrites">/system</action>
2837 </action>
2838
2839 <action>
2840 <condition var1="tw_lifetime_writes" var2="1"/>
2841 <actions>
2842 <action function="mountsystemtoggle">0</action>
2843 <action function="page">mount</action>
2844 </actions>
2845 </action>
2846
2847 <action>
2848 <condition var1="tw_lifetime_writes" var2="0"/>
2849 <actions>
2850 <action function="set">tw_back=mount</action>
2851 <action function="page">system_readonly</action>
2852 </actions>
2853 </action>
2854 </page>
2855
bigbiffdf8436b2020-08-30 16:22:34 -04002856 <page name="fastbootreboot">
2857 <template name="page"/>
2858
2859 <text style="text_l">
2860 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2861 <text>{@reboot_hdr=Reboot}</text>
2862 </text>
2863
2864 <listbox style="advanced_listbox">
2865 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
2866
2867 <listitem name="{@rb_system_btn=System}">
2868 <condition var1="tw_reboot_system" var2="1"/>
2869 <actions>
2870 <action function="set">tw_back=fastbootreboot</action>
2871 <action function="set">tw_action=reboot</action>
2872 <action function="set">tw_action_param=system</action>
2873 <action function="set">tw_reboot_param=system</action>
2874 <action function="set">tw_has_action2=0</action>
2875 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2876 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2877 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2878 <action function="page">confirm_action</action>
2879 </actions>
2880 </listitem>
2881
2882 <listitem name="{@rb_poweroff_btn=Power Off}">
2883 <condition var1="tw_reboot_poweroff" var2="1"/>
2884 <actions>
2885 <action function="set">tw_back=fastbootreboot</action>
2886 <action function="set">tw_action=reboot</action>
2887 <action function="set">tw_action_param=poweroff</action>
2888 <action function="set">tw_reboot_param=poweroff</action>
2889 <action function="set">tw_has_action2=0</action>
2890 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2891 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2892 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2893 <action function="page">confirm_action</action>
2894 </actions>
2895 </listitem>
2896
2897 <listitem name="{@rb_recovery_btn=Recovery}">
2898 <condition var1="tw_reboot_recovery" var2="1"/>
2899 <actions>
2900 <action function="set">tw_back=fastbootreboot</action>
2901 <action function="set">tw_action=reboot</action>
2902 <action function="set">tw_action_param=recovery</action>
2903 <action function="set">tw_reboot_param=recovery</action>
2904 <action function="set">tw_has_action2=0</action>
2905 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2906 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2907 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2908 <action function="page">confirm_action</action>
2909 </actions>
2910 </listitem>
2911
2912 <listitem name="{@rb_bootloader_btn=Bootloader}">
2913 <condition var1="tw_reboot_bootloader" var2="1"/>
2914 <actions>
2915 <action function="set">tw_back=fastbootreboot</action>
2916 <action function="set">tw_action=reboot</action>
2917 <action function="set">tw_action_param=bootloader</action>
2918 <action function="set">tw_reboot_param=bootloader</action>
2919 <action function="set">tw_has_action2=0</action>
2920 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2921 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2922 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2923 <action function="page">confirm_action</action>
2924 </actions>
2925 </listitem>
2926
2927 <listitem name="{@rb_download_btn=Download}">
2928 <condition var1="tw_download_mode" var2="1"/>
2929 <actions>
2930 <action function="set">tw_back=fastbootreboot</action>
2931 <action function="set">tw_action=reboot</action>
2932 <action function="set">tw_action_param=download</action>
2933 <action function="set">tw_reboot_param=download</action>
2934 <action function="set">tw_has_action2=0</action>
2935 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2936 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2937 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2938 <action function="page">confirm_action</action>
2939 </actions>
2940 </listitem>
2941
2942 <listitem name="{@fastboot_button=Fastboot}">
2943 <condition var1="tw_fastboot_mode" var2="1"/>
2944 <actions>
2945 <action function="set">tw_back=fastbootreboot</action>
2946 <action function="set">tw_action=reboot</action>
2947 <action function="set">tw_action_param=fastboot</action>
2948 <action function="set">tw_reboot_param=fastboot</action>
2949 <action function="set">tw_has_action2=0</action>
2950 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2951 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2952 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2953 <action function="page">confirm_action</action>
2954 </actions>
2955 </listitem>
2956
2957 <listitem name="{@rb_edl_btn=Edl}">
2958 <condition var1="tw_edl_mode" var2="1"/>
2959 <actions>
2960 <action function="set">tw_back=fastbootreboot</action>
2961 <action function="set">tw_action=reboot</action>
2962 <action function="set">tw_action_param=edl</action>
2963 <action function="set">tw_reboot_param=edl</action>
2964 <action function="set">tw_has_action2=0</action>
2965 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2966 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2967 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2968 <action function="page">confirm_action</action>
2969 </actions>
2970 </listitem>
2971 </listbox>
2972
2973 <action>
2974 <touch key="home"/>
2975 <action function="page">fastboot</action>
2976 </action>
2977
2978 <action>
2979 <touch key="back"/>
2980 <action function="page">fastboot</action>
2981 </action>
2982 </page>
2983
z31s1g28f0a922015-11-07 18:50:22 +01002984 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06002985 <action>
2986 <action function="checkforapp"></action>
2987 <action function="page">reboot2</action>
2988 </action>
2989 </page>
2990
2991 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002992 <template name="page"/>
2993
2994 <text style="text_l">
2995 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002996 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002997 </text>
2998
bigbiffdf8436b2020-08-30 16:22:34 -04002999 <listbox style="advanced_listbox">
3000 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003001
bigbiffdf8436b2020-08-30 16:22:34 -04003002 <listitem name="{@rb_system_btn=System}">
3003 <condition var1="tw_reboot_system" var2="1"/>
3004 <actions>
3005 <action function="set">tw_back=reboot</action>
3006 <action function="page">reboot_system_routine</action>
3007 </actions>
3008 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003009
bigbiffdf8436b2020-08-30 16:22:34 -04003010 <listitem name="{@rb_poweroff_btn=Power Off}">
3011 <condition var1="tw_reboot_poweroff" var2="1"/>
3012 <actions>
3013 <action function="set">tw_back=reboot</action>
3014 <action function="set">tw_action=reboot</action>
3015 <action function="set">tw_action_param=poweroff</action>
3016 <action function="set">tw_reboot_param=poweroff</action>
3017 <action function="set">tw_has_action2=0</action>
3018 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3019 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3020 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3021 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3022 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
3023 <action function="page">rebootcheck</action>
3024 </actions>
3025 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003026
bigbiffdf8436b2020-08-30 16:22:34 -04003027 <listitem name="{@rb_recovery_btn=Recovery}">
3028 <condition var1="tw_reboot_recovery" var2="1"/>
3029 <actions>
3030 <action function="set">tw_back=reboot</action>
3031 <action function="set">tw_action=reboot</action>
3032 <action function="set">tw_action_param=recovery</action>
3033 <action function="set">tw_reboot_param=recovery</action>
3034 <action function="set">tw_has_action2=0</action>
3035 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3036 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3037 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3038 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3039 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3040 <action function="page">rebootcheck</action>
3041 </actions>
3042 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003043
bigbiffdf8436b2020-08-30 16:22:34 -04003044 <listitem name="{@rb_bootloader_btn=Bootloader}">
3045 <condition var1="tw_reboot_bootloader" var2="1"/>
3046 <actions>
3047 <action function="set">tw_back=reboot</action>
3048 <action function="set">tw_action=reboot</action>
3049 <action function="set">tw_action_param=bootloader</action>
3050 <action function="set">tw_reboot_param=bootloader</action>
3051 <action function="set">tw_has_action2=0</action>
3052 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3053 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3054 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3055 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3056 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3057 <action function="page">rebootcheck</action>
3058 </actions>
3059 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003060
bigbiffdf8436b2020-08-30 16:22:34 -04003061 <listitem name="{@rb_download_btn=Download}">
3062 <condition var1="tw_download_mode" var2="1"/>
3063 <actions>
3064 <action function="set">tw_back=reboot</action>
3065 <action function="set">tw_action=reboot</action>
3066 <action function="set">tw_action_param=download</action>
3067 <action function="set">tw_reboot_param=download</action>
3068 <action function="set">tw_has_action2=0</action>
3069 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3070 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3071 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3072 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3073 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3074 <action function="page">rebootcheck</action>
3075 </actions>
3076 </listitem>
3077
3078 <listitem name="{@fastboot_button=Fastboot}">
3079 <condition var1="tw_fastboot_mode" var2="1"/>
3080 <actions>
3081 <action function="set">tw_back=reboot</action>
3082 <action function="set">tw_action=reboot</action>
3083 <action function="set">tw_action_param=fastboot</action>
3084 <action function="set">tw_reboot_param=fastboot</action>
3085 <action function="set">tw_has_action2=0</action>
3086 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3087 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3088 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3089 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3090 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3091 <action function="page">rebootcheck</action>
3092 </actions>
3093 </listitem>
3094
3095 <listitem name="{@rb_edl_btn=Edl}">
3096 <condition var1="tw_edl_mode" var2="1"/>
3097 <actions>
3098 <action function="set">tw_back=reboot</action>
3099 <action function="set">tw_action=reboot</action>
3100 <action function="set">tw_action_param=edl</action>
3101 <action function="set">tw_reboot_param=edl</action>
3102 <action function="set">tw_has_action2=0</action>
3103 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3104 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3105 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3106 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3107 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
3108 <action function="page">rebootcheck</action>
3109 </actions>
3110 </button>
3111 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003112
Ethan Yonker1b190162016-12-05 15:25:19 -06003113 <text style="text_m">
3114 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiffdf8436b2020-08-30 16:22:34 -04003115 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06003116 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
3117 </text>
3118
bigbiffdf8436b2020-08-30 16:22:34 -04003119 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003120 <condition var1="tw_has_boot_slots" var2="1"/>
3121 <placement x="%indent%" y="%row19_y%"/>
3122 <text>{@boot_slot_a=Slot A}</text>
3123 <actions>
3124 <action function="set">tw_back=reboot</action>
3125 <action function="set">tw_action=setbootslot</action>
3126 <action function="set">tw_action_param=A</action>
3127 <action function="set">tw_has_action2=0</action>
3128 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3129 <action function="set">tw_action_text2=</action>
3130 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3131 <action function="page">action_page</action>
3132 </actions>
3133 </button>
3134
bigbiffdf8436b2020-08-30 16:22:34 -04003135 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06003136 <condition var1="tw_has_boot_slots" var2="1"/>
3137 <placement x="%center_x%" y="%row19_y%"/>
3138 <text>{@boot_slot_b=Slot B}</text>
3139 <actions>
3140 <action function="set">tw_back=reboot</action>
3141 <action function="set">tw_action=setbootslot</action>
3142 <action function="set">tw_action_param=B</action>
3143 <action function="set">tw_has_action2=0</action>
3144 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3145 <action function="set">tw_action_text2=</action>
3146 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3147 <action function="page">action_page</action>
3148 </actions>
3149 </button>
3150
Ethan Yonker8581ab32020-12-17 14:51:50 -06003151 <button style="main_button_half_height">
3152 <condition var1="tw_app_install_status" var2="1"/>
3153 <placement x="%indent%" y="%row22_y%"/>
3154 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3155 <actions>
3156 <action function="set">tw_back=reboot</action>
3157 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3158 <action function="page">installapp</action>
3159 </actions>
3160 </button>
3161
z31s1g28f0a922015-11-07 18:50:22 +01003162 <action>
3163 <touch key="home"/>
3164 <action function="page">main</action>
3165 </action>
3166
3167 <action>
3168 <touch key="back"/>
3169 <action function="page">main</action>
3170 </action>
3171 </page>
3172
Ethan Yonker8581ab32020-12-17 14:51:50 -06003173 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003174 <template name="page"/>
3175
3176 <text style="text_l">
3177 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003178 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003179 </text>
3180
3181 <text style="text_m">
3182 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003183 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003184 </text>
3185
3186 <text style="text_m_accent">
3187 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3188 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3189 </text>
3190
3191 <text style="text_m_accent">
3192 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3193 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3194 </text>
3195
3196 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003197 <condition var1="tw_mount_system_ro" var2="0"/>
3198 <placement x="%indent%" y="%row7_y%"/>
3199 <text>{@reboot_install_app_system=Install as a System App}</text>
3200 <data variable="tw_app_install_system"/>
3201 </checkbox>
3202
3203 <button style="main_button_half_height">
3204 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003205 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003206 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003207 </button>
3208
3209 <slider>
3210 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3211 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003212 <action function="set">tw_action=installapp</action>
3213 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3214 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003215 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003216 <action function="page">action_page</action>
3217 </actions>
3218 </slider>
3219
3220 <action>
3221 <touch key="home"/>
3222 <actions>
3223 <action function="set">tw_app_install_status=0</action>
3224 <action function="page">main</action>
3225 </actions>
3226 </action>
3227
3228 <action>
3229 <touch key="back"/>
3230 <actions>
3231 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003232 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003233 </actions>
3234 </action>
3235 </page>
3236
z31s1g28f0a922015-11-07 18:50:22 +01003237 <page name="system_readonly">
3238 <template name="page"/>
3239
3240 <text style="text_l">
3241 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003242 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003243 </text>
3244
3245 <text style="text_m_accent">
3246 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003247 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003248 </text>
3249
3250 <text style="text_m">
3251 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003252 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003253 </text>
3254
3255 <text style="text_m">
3256 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003257 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003258 </text>
3259
3260 <text style="text_m">
3261 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003262 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003263 </text>
3264
3265 <text style="text_m">
3266 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003267 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003268 </text>
3269
3270 <text style="text_m_fail">
3271 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003272 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003273 </text>
3274
3275 <text style="text_m_fail">
3276 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </text>
3279
3280 <checkbox>
3281 <condition var1="tw_is_encrypted" var2="0"/>
3282 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003283 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003284 <data variable="tw_never_show_system_ro_page"/>
3285 </checkbox>
3286
3287 <button style="main_button_half_height">
3288 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003289 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003290 <actions>
3291 <action function="mountsystemtoggle">1</action>
3292 <action function="set">tw_page_done=1</action>
3293 <action function="page">%tw_back%</action>
3294 </actions>
3295 </button>
3296
z31s1g608d7ff2016-01-18 19:47:25 +01003297 <button style="main_button_half_height">
3298 <placement x="%center_x%" y="%row18a_y%"/>
3299 <text>{@sel_lang_btn=Select Language}</text>
3300 <action function="overlay">select_language</action>
3301 </button>
3302
z31s1g28f0a922015-11-07 18:50:22 +01003303 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003304 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003305 <actions>
3306 <action function="mountsystemtoggle">0</action>
3307 <action function="set">tw_page_done=1</action>
3308 <action function="page">%tw_back%</action>
3309 </actions>
3310 </slider>
3311 </page>
3312
3313 <page name="settings">
3314 <template name="page"/>
3315
3316 <text style="text_l">
3317 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003318 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003319 </text>
3320
3321 <text style="text_m">
3322 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003323 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003324 </text>
3325
3326 <template name="tabs_settings"/>
3327
3328 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003329 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003330 </fill>
3331
3332 <listbox style="scrolllist">
3333 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3334 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003335 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003336 <data variable="tw_signed_zip_verify"/>
3337 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003338 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3339 <data variable="tw_install_reboot"/>
3340 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003341 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003342 <data variable="tw_rm_rf"/>
3343 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003344 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3345 <data variable="tw_disable_free_space"/>
3346 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003347 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3348 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003349 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003350 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3351 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003352 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003353 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003354 <data variable="tw_military_time"/>
3355 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003356 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003357 <data variable="tw_samsung_navbar"/>
3358 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003359 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003360 <data variable="tw_simulate_actions"/>
3361 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003362 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003363 <condition var1="tw_simulate_actions" var2="1"/>
3364 <data variable="tw_simulate_fail"/>
3365 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003366 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3367 <condition var1="tw_no_sha2" var2="0"/>
3368 <data variable="tw_use_sha2"/>
3369 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003370 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3371 <data variable="tw_unmount_system"/>
3372 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003373 </listbox>
3374
3375 <button style="main_button_half_height">
3376 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003377 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003378 <actions>
3379 <action function="set">tw_samsung_navbar=0</action>
3380 <action function="set">tw_tab_icons=0</action>
3381 <action function="restoredefaultsettings"/>
3382 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003383 </button>
3384
3385 <action>
3386 <touch key="home"/>
3387 <action function="page">main</action>
3388 </action>
3389
3390 <action>
3391 <touch key="back"/>
3392 <action function="page">main</action>
3393 </action>
3394 </page>
3395
3396 <page name="settings_timezone">
3397 <template name="page"/>
3398
3399 <text style="text_l">
3400 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003401 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003402 </text>
3403
3404 <text style="text_m">
3405 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003406 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003407 </text>
3408
3409 <template name="tabs_settings"/>
3410
3411 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003412 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003413 </fill>
3414
3415 <listbox>
3416 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003417 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003418 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003419 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3420 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3421 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3422 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3423 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3424 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3425 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3426 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3427 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3428 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3429 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3430 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3431 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3432 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3433 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3434 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3435 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3436 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3437 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3438 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3439 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3440 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3441 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3442 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003443 </listbox>
3444
3445 <text style="text_m_accent">
3446 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003447 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003448 </text>
3449
3450 <button style="button_quarter_width">
3451 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003452 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003453 <action function="set">tw_time_zone_guioffset=0</action>
3454 </button>
3455
3456 <button style="button_quarter_width">
3457 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003458 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003459 <action function="set">tw_time_zone_guioffset=15</action>
3460 </button>
3461
3462 <button style="button_quarter_width">
3463 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003464 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003465 <action function="set">tw_time_zone_guioffset=30</action>
3466 </button>
3467
3468 <button style="button_quarter_width">
3469 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003470 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003471 <action function="set">tw_time_zone_guioffset=45</action>
3472 </button>
3473
3474 <checkbox>
3475 <placement x="%indent%" y="%row18a_y%"/>
3476 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003477 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003478 <data variable="tw_time_zone_guidst"/>
3479 <image checked="checkbox_true" unchecked="checkbox_false"/>
3480 </checkbox>
3481
3482 <text color="%text_color%">
3483 <font resource="font_m"/>
3484 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003485 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003486 </text>
3487
3488 <button>
3489 <highlight color="%highlight_color%"/>
3490 <placement x="%center_x%" y="%row21a_y%"/>
3491 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003492 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003493 <image resource="main_button_half_height"/>
3494 <action function="setguitimezone"/>
3495 </button>
3496
3497 <action>
3498 <touch key="home"/>
3499 <action function="page">main</action>
3500 </action>
3501
3502 <action>
3503 <touch key="back"/>
3504 <action function="page">main</action>
3505 </action>
3506 </page>
3507
3508 <page name="settings_screen">
3509 <template name="page"/>
3510
3511 <text style="text_l">
3512 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003513 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003514 </text>
3515
3516 <text style="text_m">
3517 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003518 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003519 </text>
3520
3521 <template name="tabs_settings"/>
3522
3523 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003524 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003525 </fill>
3526
3527 <button>
3528 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3529 <font resource="font_m" color="%text_color%"/>
3530 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3531 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003532 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003533 <image resource="checkbox_false"/>
3534 <action function="set">tw_screen_timeout_secs=60</action>
3535 </button>
3536
3537 <button>
3538 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3539 <font resource="font_m" color="%text_color%"/>
3540 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3541 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003542 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003543 <image resource="checkbox_true"/>
3544 <action function="set">tw_screen_timeout_secs=0</action>
3545 </button>
3546
3547 <slidervalue>
3548 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3549 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3550 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003551 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003552 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3553 </slidervalue>
3554
3555 <slidervalue>
3556 <condition var1="tw_has_brightnesss_file" var2="1"/>
3557 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003558 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003559 <data variable="tw_brightness_pct" min="10" max="100"/>
3560 <actions>
3561 <action function="set">tw_brightness=%tw_brightness_max%</action>
3562 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3563 <action function="compute">tw_brightness/100</action>
3564 <action function="setbrightness">%tw_brightness%</action>
3565 </actions>
3566 </slidervalue>
3567
3568 <action>
3569 <touch key="home"/>
3570 <action function="page">main</action>
3571 </action>
3572
3573 <action>
3574 <touch key="back"/>
3575 <action function="page">main</action>
3576 </action>
3577 </page>
3578
3579 <page name="settings_vibration">
3580 <template name="page"/>
3581
3582 <text style="text_l">
3583 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003584 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003585 </text>
3586
3587 <text style="text_m">
3588 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003589 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003590 </text>
3591
3592 <template name="tabs_settings"/>
3593
3594 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003595 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003596 </fill>
3597
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003598 <text style="text_m">
3599 <condition var1="tw_disable_haptics" var2="1"/>
3600 <placement x="%indent%" y="%row4_y%"/>
3601 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3602 </text>
3603
z31s1g28f0a922015-11-07 18:50:22 +01003604 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003605 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003606 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003607 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003608 <data variable="tw_button_vibrate" min="0" max="300"/>
3609 </slidervalue>
3610
3611 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003612 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003613 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003614 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003615 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3616 </slidervalue>
3617
3618 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003619 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003620 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003621 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003622 <data variable="tw_action_vibrate" min="0" max="500"/>
3623 </slidervalue>
3624
3625 <action>
3626 <touch key="home"/>
3627 <action function="page">main</action>
3628 </action>
3629
3630 <action>
3631 <touch key="back"/>
3632 <action function="page">main</action>
3633 </action>
3634 </page>
3635
Ethan Yonker74db1572015-10-28 12:44:49 -05003636 <page name="settings_language">
3637 <template name="page"/>
3638
3639 <text style="text_l">
3640 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3641 <text>{@settings_hdr=Settings}</text>
3642 </text>
3643
3644 <text style="text_m">
3645 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3646 <text>{@language_hdr=Language - %tw_language_display%}</text>
3647 </text>
3648
3649 <template name="tabs_settings"/>
3650
3651 <fill color="%text_color%">
3652 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3653 </fill>
3654
3655 <listbox>
3656 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3657 <text>{@select_language=Select Language:}</text>
3658 <icon selected="radio_true" unselected="radio_false" />
3659 <data name="tw_language" />
3660 </listbox>
3661
3662 <button style="main_button_half_height">
3663 <placement x="%center_x%" y="%row21a_y%"/>
3664 <text>{@set_language_btn=Set Language}</text>
3665 <action function="setlanguage"></action>
3666 </button>
3667
3668 <action>
3669 <touch key="home" />
3670 <action function="page">main</action>
3671 </action>
3672
3673 <action>
3674 <touch key="back" />
3675 <action function="page">settings</action>
3676 </action>
3677 </page>
3678
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003679 <page name="copylog">
3680 <template name="page"/>
3681
3682 <text style="text_l">
3683 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3684 <text>{@copying_log=Copy Logs to SD Card}</text>
3685 </text>
3686
3687 <checkbox>
3688 <placement x="%indent%" y="%row4_y%"/>
3689 <text>{@include_kernel_log=Include Kernel Log}</text>
3690 <data variable="tw_include_kernel_log" value="1"/>
3691 </checkbox>
3692
3693 <slider>
3694 <text>{@copying_log=Copy Logs to SD Card}</text>
3695 <actions>
3696 <action function="set">tw_back=advanced</action>
3697 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003698 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3699 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003700 <action function="page">action_page</action>
3701 </actions>
3702 </slider>
3703
3704 <action>
3705 <touch key="home"/>
3706 <action function="page">main</action>
3707 </action>
3708
3709 <action>
3710 <touch key="back"/>
3711 <actions>
3712 <action function="page">advanced</action>
3713 </actions>
3714 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003715 </page>
3716
z31s1g28f0a922015-11-07 18:50:22 +01003717 <page name="advanced">
3718 <template name="page"/>
3719
3720 <text style="text_l">
3721 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003722 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003723 </text>
3724
3725 <button style="main_button">
3726 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003727 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003728 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003729 </button>
3730
3731 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003732 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003733 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003734 <text>{@adb_sideload_btn=ADB Sideload}</text>
3735 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003736 </button>
3737
3738 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003739 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003740 <text>{@terminal_btn=Terminal}</text>
3741 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003742 </button>
3743
3744 <button style="main_button">
3745 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003746 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003747 <action function="page">filemanagerlist</action>
3748 </button>
3749
Ethan Yonker64e0a652018-07-25 09:52:17 -05003750 <listbox style="advanced_listbox">
3751 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
epicXa721f952021-01-04 13:01:31 +05303752 <listitem name="Change TWRP Folder">
3753 <condition var1="tw_is_encrypted" var2="0"/>
3754 <action function="page">changeTwrpFolder</action>
3755 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003756 <listitem name="{@decrypt_users=Decrypt Users}">
3757 <conditions>
3758 <condition var1="tw_is_fbe" var2="1"/>
3759 <condition var1="tw_all_users_decrypted" var2="0"/>
3760 </conditions>
3761 <actions>
3762 <action function="set">tw_crypto_user_id=</action>
3763 <action function="page">decrypt_users</action>
3764 </actions>
3765 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003766 <listitem name="{@reload_theme_btn=Reload Theme}">
3767 <action function="reload"/>
3768 </listitem>
3769 <listitem name="{@part_sd_btn=Partition SD Card}">
3770 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3771 <actions>
3772 <action function="set">partitionlisterror=0</action>
3773 <action function="page">partsdcardsel</action>
3774 </actions>
3775 </listitem>
3776 <listitem name="{@fix_context_btn=Fix Contexts}">
3777 <condition var1="tw_has_data_media" var2="1"/>
3778 <action function="page">fixcontexts</action>
3779 </listitem>
3780 <listitem name="{@dumlock_btn=HTC Dumlock}">
3781 <condition var1="tw_show_dumlock" var2="1"/>
3782 <action function="page">htcdumlock</action>
3783 </listitem>
3784 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3785 <condition var1="tw_has_injecttwrp" var2="1"/>
3786 <actions>
3787 <action function="set">tw_back=advanced</action>
3788 <action function="set">tw_action=reinjecttwrp</action>
3789 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3790 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3791 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3792 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3793 <action function="page">confirm_action</action>
3794 </actions>
3795 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003796 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3797 <conditions>
3798 <condition var1="tw_has_boot_slots" var2="1"/>
3799 <condition var1="tw_has_repack_tools" var2="1"/>
3800 </conditions>
3801 <actions>
3802 <action function="set">tw_repack_kernel=0</action>
3803 <action function="page">repackselect</action>
3804 </actions>
3805 </listitem>
3806 <listitem name="{@install_kernel=Install Kernel}">
3807 <conditions>
3808 <condition var1="tw_has_boot_slots" var2="1"/>
3809 <condition var1="tw_has_repack_tools" var2="1"/>
3810 </conditions>
3811 <actions>
3812 <action function="set">tw_repack_kernel=1</action>
3813 <action function="page">repackselect</action>
3814 </actions>
3815 </listitem>
3816 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3817 <conditions>
3818 <condition var1="tw_has_boot_slots" var2="1"/>
3819 <condition var1="tw_has_repack_tools" var2="1"/>
3820 </conditions>
3821 <actions>
3822 <action function="set">tw_back=advanced</action>
3823 <action function="set">tw_action=fixabrecoverybootloop</action>
3824 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3825 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3826 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3827 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3828 <action function="page">confirm_action</action>
3829 </actions>
3830 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003831 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3832 <condition var1="tw_app_install_status" var2="1"/>
3833 <actions>
3834 <action function="set">tw_back=advanced</action>
3835 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3836 <action function="page">installapp</action>
3837 </actions>
3838 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003839 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3840 <condition var1="tw_app_installed_in_system" var2="1"/>
3841 <actions>
3842 <action function="set">tw_back=advanced</action>
3843 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3844 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3845 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3846 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3847 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3848 <action function="page">confirm_action</action>
3849 </actions>
3850 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003851 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003852
3853 <action>
3854 <touch key="home"/>
3855 <action function="page">main</action>
3856 </action>
3857
3858 <action>
3859 <touch key="back"/>
3860 <action function="page">main</action>
3861 </action>
3862 </page>
3863
Ethan Yonker483e9f42016-01-11 22:21:18 -06003864 <page name="partsdcardsel">
3865 <template name="page"/>
3866
3867 <text style="text_l">
3868 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3869 <text>{@advanced_hdr=Advanced}</text>
3870 </text>
3871
3872 <text style="text_m">
3873 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3874 <text>{@part_sd_hdr=Partition SD Card}</text>
3875 </text>
3876
z31s1g782e1c92016-01-30 16:50:09 +01003877 <partitionlist>
3878 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003879 <text>{@sel_storage_list=Select Storage}</text>
3880 <data name="tw_storage_path"/>
3881 <listtype name="storage"/>
3882 </partitionlist>
3883
3884 <text style="text_m_fail">
3885 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003886 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003887 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3888 </text>
3889
z31s1g782e1c92016-01-30 16:50:09 +01003890 <button style="main_button_half_height">
3891 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003892 <text>{@ok_btn=OK}</text>
3893 <actions>
3894 <action function="getpartitiondetails">tw_storage_path</action>
3895 <action function="page">partsdcardcheck</action>
3896 </actions>
3897 </button>
3898
3899 <action>
3900 <touch key="home"/>
3901 <action function="page">main</action>
3902 </action>
3903
3904 <action>
3905 <touch key="back"/>
3906 <action function="page">advanced</action>
3907 </action>
3908 </page>
3909
3910 <page name="partsdcardcheck">
3911 <action>
3912 <condition var1="tw_partition_removable" op="=" var2="1"/>
3913 <actions>
3914 <action function="set">partitionlisterror=0</action>
3915 <action function="page">partsdcard</action>
3916 </actions>
3917 </action>
3918
3919 <action>
3920 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3921 <actions>
3922 <action function="set">partitionlisterror=1</action>
3923 <action function="page">partsdcardsel</action>
3924 </actions>
3925 </action>
3926 </page>
3927
z31s1g28f0a922015-11-07 18:50:22 +01003928 <page name="partsdcard">
3929 <template name="page"/>
3930
3931 <text style="text_l">
3932 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003933 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003934 </text>
3935
3936 <text style="text_m">
3937 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003938 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003939 </text>
3940
3941 <text style="text_m_fail">
3942 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003943 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003944 </text>
3945
3946 <text style="text_m_fail">
3947 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003948 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003949 </text>
3950
3951 <text style="text_m_accent">
3952 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003953 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003954 </text>
3955
3956 <text style="text_m">
3957 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3958 <text>%tw_sdext_size%</text>
3959 </text>
3960
3961 <button style="button_quarter_width">
3962 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003963 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003964 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003965 </button>
3966
3967 <button style="button_quarter_width">
3968 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003969 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003970 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003971 </button>
3972
3973 <text style="text_m_accent">
3974 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003975 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003976 </text>
3977
3978 <text style="text_m">
3979 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3980 <text>%tw_swap_size%</text>
3981 </text>
3982
3983 <button style="button_quarter_width">
3984 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003985 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003986 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003987 </button>
3988
3989 <button style="button_quarter_width">
3990 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003991 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003992 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003993 </button>
3994
3995 <text style="text_m_accent">
3996 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003997 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003998 </text>
3999
4000 <text style="text_m">
4001 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
4002 <text>%tw_sdpart_file_system%</text>
4003 </text>
4004
4005 <button style="button_quarter_width">
4006 <placement x="%indent%" y="%row14_y%"/>
4007 <text>EXT3</text>
4008 <action function="set">tw_sdpart_file_system=ext3</action>
4009 </button>
4010
4011 <button style="button_quarter_width">
4012 <placement x="%btn4_col4_x%" y="%row14_y%"/>
4013 <text>EXT4</text>
4014 <action function="set">tw_sdpart_file_system=ext4</action>
4015 </button>
4016
4017 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004018 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004019 <action function="page">partsdcardaction</action>
4020 <actions>
4021 <action function="set">tw_back=partsdcard</action>
4022 <action function="set">tw_action=partitionsd</action>
4023 <action function="set">tw_has_action2=1</action>
4024 <action function="set">tw_action2=set</action>
4025 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004026 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4027 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4028 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004029 <action function="page">action_page</action>
4030 </actions>
4031 </slider>
4032
4033 <action>
4034 <touch key="home"/>
4035 <action function="page">main</action>
4036 </action>
4037
4038 <action>
4039 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004040 <actions>
4041 <action function="set">partitionlisterror=0</action>
4042 <action function="page">partsdcardsel</action>
4043 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004044 </action>
4045 </page>
4046
4047 <page name="htcdumlock">
4048 <template name="page"/>
4049
4050 <text style="text_l">
4051 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004052 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004053 </text>
4054
4055 <text style="text_m">
4056 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004057 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004058 </text>
4059
4060 <button style="main_button_half_height_full_width">
4061 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004062 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004063 <actions>
4064 <action function="set">tw_back=htcdumlock</action>
4065 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004066 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4067 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4068 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4069 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004070 <action function="page">confirm_action</action>
4071 </actions>
4072 </button>
4073
4074 <button style="main_button_half_height_full_width">
4075 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004076 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004077 <actions>
4078 <action function="set">tw_back=htcdumlock</action>
4079 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004080 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4081 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4082 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4083 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004084 <action function="page">confirm_action</action>
4085 </actions>
4086 </button>
4087
4088 <button style="main_button_half_height_full_width">
4089 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004090 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004091 <actions>
4092 <action function="set">tw_back=htcdumlock</action>
4093 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004094 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
4095 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4096 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4097 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004098 <action function="page">confirm_action</action>
4099 </actions>
4100 </button>
4101
4102 <action>
4103 <touch key="home"/>
4104 <action function="page">main</action>
4105 </action>
4106
4107 <action>
4108 <touch key="back"/>
4109 <action function="page">advanced</action>
4110 </action>
4111 </page>
4112
Ethan Yonker53796e72019-01-11 22:49:52 -06004113 <page name="repackselect">
4114 <template name="page"/>
4115
4116 <text style="text_l">
4117 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4118 <text>{@repack_image_hdr=Select Image}</text>
4119 </text>
4120
4121 <text style="text_m">
4122 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4123 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4124 </text>
4125
4126 <template name="sort_options"/>
4127
4128 <fileselector>
4129 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
4130 <text>%tw_zip_location%</text>
4131 <filter extn=".img" folders="1" files="1"/>
4132 <path name="tw_zip_location" default="/sdcard"/>
4133 <data name="tw_filename"/>
4134 <selection name="tw_file"/>
4135 </fileselector>
4136
4137 <button style="main_button_half_height">
4138 <placement x="%indent%" y="%row21a_y%"/>
4139 <text>{@select_storage_btn=Select Storage}</text>
4140 <actions>
4141 <action function="set">tw_back=repackselect</action>
4142 <action function="overlay">select_storage</action>
4143 </actions>
4144 </button>
4145
4146 <action>
4147 <conditions>
4148 <condition var1="tw_filename" op="modified"/>
4149 </conditions>
4150 <action function="page">repackconfirm</action>
4151 </action>
4152
4153 <action>
4154 <touch key="back"/>
4155 <action function="page">advanced</action>
4156 </action>
4157
4158 <action>
4159 <touch key="home"/>
4160 <action function="page">main</action>
4161 </action>
4162 </page>
4163
4164 <page name="repackconfirm">
4165 <template name="page"/>
4166
4167 <text style="text_l">
4168 <condition var1="tw_repack_kernel" var2="1"/>
4169 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4170 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4171 </text>
4172
4173 <text style="text_l">
4174 <condition var1="tw_repack_kernel" var2="0"/>
4175 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4176 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4177 </text>
4178
4179 <text style="text_m">
4180 <condition var1="tw_repack_kernel" var2="1"/>
4181 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4182 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4183 </text>
4184
4185 <text style="text_m">
4186 <condition var1="tw_repack_kernel" var2="0"/>
4187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4188 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4189 </text>
4190
4191 <text style="text_m_accent">
4192 <placement x="%indent%" y="%row2_y%"/>
4193 <text>{@folder=Folder:}</text>
4194 </text>
4195
4196 <text style="text_m">
4197 <placement x="%indent%" y="%row3_y%"/>
4198 <text>%tw_zip_location%</text>
4199 </text>
4200
4201 <text style="text_m_accent">
4202 <placement x="%indent%" y="%row4_y%"/>
4203 <text>{@file=File:}</text>
4204 </text>
4205
4206 <text style="text_m">
4207 <placement x="%indent%" y="%row5_y%"/>
4208 <text>%tw_file%</text>
4209 </text>
4210
4211 <checkbox>
4212 <placement x="%indent%" y="%row7_y%"/>
4213 <text>{@repack_backup_first=Back up existing image first}</text>
4214 <data variable="tw_repack_backup_first"/>
4215 </checkbox>
4216
4217 <button style="main_button_half_height">
4218 <placement x="%indent%" y="%row16_y%"/>
4219 <text>{@install_cancel=Do not Install}</text>
4220 <action function="page">repackselect</action>
4221 </button>
4222
4223 <slider>
4224 <text>{@swipe_to_install=Swipe to Install}</text>
4225 <actions>
4226 <action function="set">tw_back=advanced</action>
4227 <action function="set">tw_action=repackimage</action>
4228 <action function="set">tw_action_param=/boot</action>
4229 <action function="set">tw_action_text1={@installing=Installing...}</action>
4230 <action function="set">tw_action_text2=</action>
4231 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4232 <action function="page">action_page</action>
4233 </actions>
4234 </slider>
4235
4236 <action>
4237 <touch key="back"/>
4238 <action function="page">repackselect</action>
4239 </action>
4240
4241 <action>
4242 <touch key="home"/>
4243 <action function="page">main</action>
4244 </action>
4245 </page>
4246
z31s1g28f0a922015-11-07 18:50:22 +01004247 <page name="lock">
4248 <background color="%semi_transparent%"/>
4249
4250 <image>
4251 <image resource="unlock_icon"/>
4252 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4253 </image>
4254
4255 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004256 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004257 <action function="overlay"/>
4258 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004259
4260 <action>
4261 <touch key="power"/>
4262 <action function="togglebacklight"/>
4263 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004264 </page>
4265
4266 <page name="filemanagerlist">
4267 <template name="page"/>
4268
4269 <text style="text_l">
4270 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004271 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004272 </text>
4273
4274 <text style="text_m">
4275 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004276 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004277 </text>
4278
4279 <template name="sort_options"/>
4280
4281 <fileselector>
4282 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4283 <text>%tw_file_location1%</text>
4284 <filter folders="1" files="1"/>
4285 <path name="tw_file_location1" default="/"/>
4286 <data name="tw_filename1"/>
4287 <selection name="tw_selection1"/>
4288 </fileselector>
4289
4290 <button style="fab">
4291 <image resource="fab_selectfolder"/>
4292 <actions>
4293 <action function="set">tw_filename1=tw_file_location1</action>
4294 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004295 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004296 <action function="page">filemanageroptions</action>
4297 </actions>
4298 </button>
4299
4300 <action>
4301 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004302 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004303 <action function="set">tw_fm_isfolder=0</action>
4304 </actions>
4305 </action>
4306
4307 <action>
4308 <touch key="home"/>
4309 <action function="page">main</action>
4310 </action>
4311
4312 <action>
4313 <touch key="back"/>
4314 <action function="page">advanced</action>
4315 </action>
4316
4317 <action>
4318 <condition var1="tw_filename1" op="modified"/>
4319 <action function="page">filemanageroptions</action>
4320 </action>
4321 </page>
4322
4323 <page name="filemanageroptions">
4324 <template name="page"/>
4325
4326 <text style="text_l">
4327 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004328 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004329 </text>
4330
4331 <text style="text_m">
4332 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004333 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004334 </text>
4335
4336 <text style="text_m_accent">
4337 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004338 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004339 </text>
4340
4341 <text style="text_m">
4342 <placement x="%indent%" y="%row3_y%"/>
4343 <text>%tw_filename1%</text>
4344 </text>
4345
4346 <button style="main_button_half_height">
Captain Throwback16dd81b2021-02-12 19:32:36 -05004347 <conditions>
4348 <condition var1="tw_include_nano" var2="1"/>
4349 <condition var1="tw_fm_isfolder" var2="0"/>
4350 </conditions>
4351 <placement x="%indent%" y="%row12a_y%"/>
4352 <text>{@fm_edit_file=Edit File}</text>
4353 <actions>
4354 <action function="editfile">nano "%tw_filename1%"</action>
4355 <action function="page">terminalcommand</action>
4356 </actions>
4357 </button>
4358
4359 <button style="main_button_half_height">
Mohd Faraz77bbeb02020-08-12 12:29:42 +00004360 <condition var1="tw_fm_isfolder" var2="1"/>
4361 <placement x="%center_x%" y="%row12a_y%"/>
4362 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4363 <action function="changeterminal">%tw_filename1%</action>
4364 </button>
4365
4366 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01004367 <condition var1="tw_fm_isfolder" var2="0"/>
4368 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004369 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004370 <actions>
4371 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004372 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004373 <action function="page">choosedestinationfolder</action>
4374 </actions>
4375 </button>
4376
4377 <button style="main_button_half_height">
4378 <condition var1="tw_fm_isfolder" var2="1"/>
4379 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004380 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004381 <actions>
4382 <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 -05004383 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004384 <action function="page">choosedestinationfolder</action>
4385 </actions>
4386 </button>
4387
4388 <button style="main_button_half_height">
4389 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004390 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004391 <actions>
4392 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004393 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004394 <action function="page">choosedestinationfolder</action>
4395 </actions>
4396 </button>
4397
4398 <button style="main_button_half_height">
4399 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004400 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004401 <actions>
4402 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004403 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004404 <action function="set">tw_fm_text2=</action>
4405 <action function="set">tw_fm_text3=</action>
4406 <action function="set">tw_include_text3=0</action>
4407 <action function="set">tw_back=filemanageroptions</action>
4408 <action function="page">filemanagerconfirm</action>
4409 </actions>
4410 </button>
4411
4412 <button style="main_button_half_height">
4413 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004414 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004415 <actions>
4416 <action function="set">tw_filemanager_rename=0000</action>
4417 <action function="set">tw_fm_text2=</action>
4418 <action function="set">tw_fm_text3=</action>
4419 <action function="set">tw_include_text3=0</action>
4420 <action function="set">tw_back=filemanageroptions</action>
4421 <action function="page">filemanagerchmod</action>
4422 </actions>
4423 </button>
4424
4425 <button style="main_button_half_height">
4426 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004427 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004428 <actions>
4429 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004430 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</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 <condition var1="tw_fm_isfolder" var2="0"/>
4441 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004442 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004443 <actions>
4444 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004445 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004446 <action function="set">tw_filemanager_command=mv</action>
4447 <action function="page">filemanagerrenamefile</action>
4448 </actions>
4449 </button>
4450
4451 <button style="main_button_half_height">
4452 <condition var1="tw_fm_isfolder" var2="1"/>
4453 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004454 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004455 <actions>
4456 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004457 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004458 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4459 <action function="page">filemanagerrenamefolder</action>
4460 </actions>
4461 </button>
4462
4463 <action>
4464 <touch key="home"/>
4465 <action function="page">main</action>
4466 </action>
4467
4468 <action>
4469 <touch key="back"/>
4470 <action function="page">filemanagerlist</action>
4471 </action>
4472 </page>
4473
4474 <page name="choosedestinationfolder">
4475 <template name="page"/>
4476
4477 <text style="text_l">
4478 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004479 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004480 </text>
4481
4482 <text style="text_m">
4483 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004484 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004485 </text>
4486
4487 <template name="sort_options"/>
4488
4489 <fileselector>
4490 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4491 <text>%tw_file_location2%</text>
4492 <filter folders="1" files="0"/>
4493 <path name="tw_file_location2" default="/"/>
4494 <data name="tw_filename2"/>
4495 <selection name="tw_selection2"/>
4496 </fileselector>
4497
4498 <button style="fab">
4499 <image resource="fab_selectfolder"/>
4500 <actions>
4501 <action function="set">tw_fm_text2=to</action>
4502 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4503 <action function="set">tw_include_text3=1</action>
4504 <action function="set">tw_back=filemanageroptions</action>
4505 <action function="page">filemanagerconfirm</action>
4506 </actions>
4507 </button>
4508
4509 <action>
4510 <touch key="home"/>
4511 <action function="page">main</action>
4512 </action>
4513
4514 <action>
4515 <touch key="back"/>
4516 <action function="page">filemanageroptions</action>
4517 </action>
4518 </page>
4519
4520 <page name="filemanagerrenamefile">
4521 <template name="page"/>
4522
4523 <text style="text_l">
4524 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004525 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004526 </text>
4527
4528 <text style="text_m">
4529 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004530 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004531 </text>
4532
4533 <text style="text_m_accent">
4534 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004535 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004536 </text>
4537
4538 <input>
4539 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4540 <text>%tw_filemanager_rename%</text>
4541 <data name="tw_filemanager_rename"/>
4542 <restrict minlen="1" maxlen="128"/>
4543 <actions>
4544 <action function="set">tw_fm_text2=to</action>
4545 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4546 <action function="set">tw_include_text3=1</action>
4547 <action function="set">tw_back=filemanageroptions</action>
4548 <action function="page">filemanagerconfirm</action>
4549 </actions>
4550 </input>
4551
4552 <fill color="%accent_color%">
4553 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4554 </fill>
4555
4556 <button style="main_button_half_height">
4557 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004558 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004559 <action function="page">filemanageroptions</action>
4560 </button>
4561
4562 <template name="keyboardtemplate"/>
4563
4564 <action>
4565 <touch key="home"/>
4566 <action function="page">main</action>
4567 </action>
4568
4569 <action>
4570 <touch key="back"/>
4571 <action function="page">filemanageroptions</action>
4572 </action>
4573 </page>
4574
4575 <page name="filemanagerrenamefolder">
4576 <template name="page"/>
4577
4578 <text style="text_l">
4579 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004580 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004581 </text>
4582
4583 <text style="text_m">
4584 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004585 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004586 </text>
4587
4588 <text style="text_m_accent">
4589 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004590 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004591 </text>
4592
4593 <input>
4594 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4595 <text>%tw_filemanager_rename%</text>
4596 <data name="tw_filemanager_rename"/>
4597 <restrict minlen="1" maxlen="128"/>
4598 <actions>
4599 <action function="set">tw_fm_text2=to</action>
4600 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4601 <action function="set">tw_include_text3=1</action>
4602 <action function="set">tw_back=filemanageroptions</action>
4603 <action function="page">filemanagerconfirm</action>
4604 </actions>
4605 </input>
4606
4607 <fill color="%accent_color%">
4608 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4609 </fill>
4610
4611 <button style="main_button_half_height">
4612 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004613 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004614 <action function="page">filemanageroptions</action>
4615 </button>
4616
4617 <template name="keyboardtemplate"/>
4618
4619 <action>
4620 <touch key="home"/>
4621 <action function="page">main</action>
4622 </action>
4623
4624 <action>
4625 <touch key="back"/>
4626 <action function="page">filemanageroptions</action>
4627 </action>
4628 </page>
4629
4630 <page name="filemanagerchmod">
4631 <template name="page"/>
4632
4633 <text style="text_l">
4634 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004635 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004636 </text>
4637
4638 <text style="text_m">
4639 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004640 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004641 </text>
4642
4643 <text style="text_m_accent">
4644 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004645 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004646 </text>
4647
4648 <input>
4649 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4650 <text>%tw_filemanager_rename%</text>
4651 <data name="tw_filemanager_rename"/>
4652 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4653 <actions>
4654 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4655 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4656 <action function="set">tw_back=filemanageroptions</action>
4657 <action function="page">filemanagerconfirm</action>
4658 </actions>
4659 </input>
4660
4661 <fill color="%accent_color%">
4662 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4663 </fill>
4664
4665 <button style="main_button_half_height">
4666 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004667 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004668 <action function="page">filemanageroptions</action>
4669 </button>
4670
4671 <template name="keyboardtemplate"/>
4672
4673 <action>
4674 <touch key="home"/>
4675 <action function="page">main</action>
4676 </action>
4677
4678 <action>
4679 <touch key="back"/>
4680 <action function="page">filemanageroptions</action>
4681 </action>
4682 </page>
4683
4684 <page name="filemanagerconfirm">
4685 <template name="page"/>
4686
4687 <text style="text_l">
4688 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004689 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004690 </text>
4691
4692 <text style="text_m">
4693 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004694 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004695 </text>
4696
4697 <text style="text_m_accent">
4698 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4699 <text>%tw_fm_text1%</text>
4700 </text>
4701
4702 <text style="text_m">
4703 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4704 <text>%tw_filename1%</text>
4705 </text>
4706
4707 <text style="text_m_accent">
4708 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4709 <text>%tw_fm_text2%</text>
4710 </text>
4711
4712 <text style="text_m">
4713 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4714 <text>%tw_fm_text3%</text>
4715 </text>
4716
4717 <text style="text_m">
4718 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004719 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004720 </text>
4721
4722 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004723 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004724 <action function="page">filemanageraction</action>
4725 </slider>
4726
4727 <action>
4728 <touch key="back"/>
4729 <action function="page">%tw_back%</action>
4730 </action>
4731
4732 <action>
4733 <touch key="home"/>
4734 <action function="page">main</action>
4735 </action>
4736 </page>
4737
4738 <page name="filemanageraction">
4739 <template name="page"/>
4740
4741 <text style="text_l">
4742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004743 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004744 </text>
4745
4746 <text style="text_m">
4747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4748 <text>%tw_fm_text1%</text>
4749 </text>
4750
4751 <template name="console"/>
4752
4753 <template name="progress_bar"/>
4754
4755 <action>
4756 <conditions>
4757 <condition var1="tw_operation_state" var2="1"/>
4758 <condition var1="tw_operation_status" var2="0"/>
4759 </conditions>
4760 <actions>
4761 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004762 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004763 <action function="page">action_complete</action>
4764 </actions>
4765 </action>
4766
4767 <action>
4768 <conditions>
4769 <condition var1="tw_operation_state" var2="1"/>
4770 <condition var1="tw_operation_status" op="!=" var2="0"/>
4771 </conditions>
4772 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004773 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004774 <action function="page">action_complete</action>
4775 </actions>
4776 </action>
4777
4778 <action>
4779 <condition var1="tw_include_text3" var2="0"/>
4780 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4781 </action>
4782
4783 <action>
4784 <condition var1="tw_include_text3" var2="1"/>
4785 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4786 </action>
4787 </page>
4788
4789 <page name="decrypt">
4790 <template name="page"/>
4791
4792 <action>
4793 <condition var1="tw_crypto_pwtype" var2="2"/>
4794 <action function="page">decrypt_pattern</action>
4795 </action>
4796
4797 <text style="text_l">
4798 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004799 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004800 </text>
4801
4802 <text style="text_m">
4803 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004804 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004805 </text>
4806
4807 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004808 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004809 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004810 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004811 </text>
4812
Noah Jacobson81d638d2019-04-28 00:10:07 -04004813 <text style="text_m_accent">
4814 <condition var1="tw_is_fbe" var2="1"/>
4815 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4816 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4817 </text>
4818
z31s1g28f0a922015-11-07 18:50:22 +01004819 <input>
4820 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4821 <text>%tw_crypto_display%</text>
4822 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4823 <restrict minlen="1" maxlen="254"/>
4824 <action function="page">trydecrypt</action>
4825 </input>
4826
4827 <fill color="%accent_color%">
4828 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4829 </fill>
4830
4831 <fill color="%text_fail_color%">
4832 <condition var1="tw_password_fail" var2="1"/>
4833 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4834 </fill>
4835
4836 <text style="text_m_fail">
4837 <condition var1="tw_password_fail" var2="1"/>
4838 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004839 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004840 </text>
4841
4842 <button style="main_button_half_height">
4843 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004844 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004845 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004846 </button>
4847
z31s1g608d7ff2016-01-18 19:47:25 +01004848 <button style="main_button_half_height">
4849 <placement x="%center_x%" y="%row10_y%"/>
4850 <text>{@sel_lang_btn=Select Language}</text>
4851 <action function="overlay">select_language</action>
4852 </button>
4853
z31s1g28f0a922015-11-07 18:50:22 +01004854 <template name="keyboardtemplate"/>
4855 </page>
4856
4857 <page name="decrypt_pattern">
4858 <template name="page"/>
4859
4860 <text style="text_l">
4861 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004862 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004863 </text>
4864
4865 <text style="text_m">
4866 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004867 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004868 </text>
4869
4870 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004871 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004872 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004873 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004874 </text>
4875
Noah Jacobson81d638d2019-04-28 00:10:07 -04004876 <text style="text_m_accent">
4877 <condition var1="tw_is_fbe" var2="1"/>
4878 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4879 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4880 </text>
4881
Aleksa Saraib25a1832015-12-31 17:36:00 +01004882 <text style="text_m_fail">
4883 <condition var1="tw_password_fail" var2="1"/>
4884 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004885 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004886 </text>
4887
z31s1g28f0a922015-11-07 18:50:22 +01004888 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004889 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004890 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4891 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4892 <data name="tw_crypto_password"/>
4893 <action function="page">trydecrypt</action>
4894 </patternpassword>
4895
Aleksa Saraib25a1832015-12-31 17:36:00 +01004896 <button style="button_quarter_width">
4897 <placement x="%indent%" y="%row19a_y%"/>
4898 <text>3x3</text>
4899 <action function="set">tw_gui_pattern_grid_size=3</action>
4900 </button>
4901
4902 <button style="button_quarter_width">
4903 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4904 <text>4x4</text>
4905 <action function="set">tw_gui_pattern_grid_size=4</action>
4906 </button>
4907
4908 <button style="button_quarter_width">
4909 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4910 <text>5x5</text>
4911 <action function="set">tw_gui_pattern_grid_size=5</action>
4912 </button>
4913
4914 <button style="button_quarter_width">
4915 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4916 <text>6x6</text>
4917 <action function="set">tw_gui_pattern_grid_size=6</action>
4918 </button>
4919
z31s1g28f0a922015-11-07 18:50:22 +01004920 <button style="main_button_half_height">
4921 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004922 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05004923 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004924 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004925
4926 <button style="main_button_half_height">
4927 <placement x="%center_x%" y="%row21a_y%"/>
4928 <text>{@sel_lang_btn=Select Language}</text>
4929 <action function="overlay">select_language</action>
4930 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004931 </page>
4932
4933 <page name="trydecrypt">
4934 <template name="page"/>
4935
4936 <text style="text_l">
4937 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004938 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004939 </text>
4940
4941 <text style="text_m">
4942 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004943 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004944 </text>
4945
4946 <template name="console"/>
4947
4948 <template name="progress_bar"/>
4949
4950 <action>
4951 <action function="decrypt"/>
4952 </action>
4953
4954 <action>
4955 <conditions>
4956 <condition var1="tw_operation_state" var2="1"/>
4957 <condition var1="tw_operation_status" op="!=" var2="0"/>
4958 </conditions>
4959 <actions>
4960 <action function="set">tw_password_fail=1</action>
4961 <action function="page">decrypt</action>
4962 </actions>
4963 </action>
4964
4965 <action>
4966 <conditions>
4967 <condition var1="tw_operation_state" var2="1"/>
4968 <condition var1="tw_operation_status" op="=" var2="0"/>
4969 </conditions>
4970 <actions>
4971 <action function="set">tw_page_done=1</action>
4972 <action function="page">main</action>
4973 </actions>
4974 </action>
4975 </page>
4976
Captain Throwback89b56a12021-02-10 18:25:07 -05004977 <page name="canceldecrypt">
4978 <template name="page"/>
4979
4980 <text style="text_l">
4981 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4982 <text>{@cancel_btn=Cancel}</text>
4983 </text>
4984
4985 <text style="text_m">
4986 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4987 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
4988 </text>
4989
4990 <template name="console"/>
4991
4992 <template name="progress_bar"/>
4993
4994 <action>
4995 <action function="refreshsizes"/>
4996 </action>
4997
4998 <action>
4999 <conditions>
5000 <condition var1="tw_operation_state" var2="1"/>
5001 </conditions>
5002 <actions>
5003 <action function="set">tw_page_done=1</action>
5004 <action function="page">main</action>
5005 </actions>
5006 </action>
5007 </page>
5008
z31s1g28f0a922015-11-07 18:50:22 +01005009 <page name="terminalcommand">
5010 <template name="page"/>
5011
z31s1g56189522016-01-13 19:12:40 +01005012 <fill color="%background_color%">
5013 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005014 </fill>
5015
z31s1g56189522016-01-13 19:12:40 +01005016 <terminal>
5017 <condition var1="tw_hide_kb" var2="0"/>
5018 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
5019 </terminal>
5020
5021 <terminal>
5022 <condition var1="tw_hide_kb" var2="1"/>
5023 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
5024 </terminal>
5025
5026 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005027
5028 <template name="keyboardtemplate"/>
5029
z31s1g608d7ff2016-01-18 19:47:25 +01005030 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005031 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005032 </fill>
z31s1g56189522016-01-13 19:12:40 +01005033
z31s1g608d7ff2016-01-18 19:47:25 +01005034 <button>
z31s1g56189522016-01-13 19:12:40 +01005035 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5036 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5037 <image resource="back" />
5038 <condition var1="tw_busy" var2="0" />
5039 <actions>
5040 <action function="set">tw_hide_kb=0</action>
5041 <action function="key">back</action>
5042 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005043 </button>
z31s1g56189522016-01-13 19:12:40 +01005044
z31s1g608d7ff2016-01-18 19:47:25 +01005045 <button>
z31s1g56189522016-01-13 19:12:40 +01005046 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5047 <condition var1="tw_hide_kb" op="=" var2="0" />
5048 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5049 <image resource="kb_hide" />
5050 <condition var1="tw_busy" var2="0" />
5051 <actions>
5052 <action function="set">tw_hide_kb=1</action>
5053 <action function="page">terminalcommand</action>
5054 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005055 </button>
z31s1g56189522016-01-13 19:12:40 +01005056
z31s1g608d7ff2016-01-18 19:47:25 +01005057 <button>
z31s1g56189522016-01-13 19:12:40 +01005058 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5059 <condition var1="tw_hide_kb" op="=" var2="1" />
5060 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5061 <image resource="kb_show" />
5062 <condition var1="tw_busy" var2="0" />
5063 <actions>
5064 <action function="set">tw_hide_kb=0</action>
5065 <action function="page">terminalcommand</action>
5066 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005067 </button>
z31s1g56189522016-01-13 19:12:40 +01005068
z31s1g608d7ff2016-01-18 19:47:25 +01005069 <button>
z31s1g56189522016-01-13 19:12:40 +01005070 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5071 <image resource="home" />
5072 <condition var1="tw_busy" var2="0" />
5073 <actions>
5074 <action function="set">tw_hide_kb=0</action>
5075 <action function="key">home</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005076 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005077 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005078 </button>
z31s1g56189522016-01-13 19:12:40 +01005079
z31s1g608d7ff2016-01-18 19:47:25 +01005080 <button>
z31s1g56189522016-01-13 19:12:40 +01005081 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5082 <condition var1="tw_hide_kb" op="=" var2="0" />
5083 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5084 <image resource="kb_hide" />
5085 <condition var1="tw_busy" var2="0" />
5086 <actions>
5087 <action function="set">tw_hide_kb=1</action>
5088 <action function="page">terminalcommand</action>
5089 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005090 </button>
z31s1g56189522016-01-13 19:12:40 +01005091
z31s1g608d7ff2016-01-18 19:47:25 +01005092 <button>
z31s1g56189522016-01-13 19:12:40 +01005093 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5094 <condition var1="tw_hide_kb" op="=" var2="1" />
5095 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5096 <image resource="kb_show" />
5097 <condition var1="tw_busy" var2="0" />
5098 <actions>
5099 <action function="set">tw_hide_kb=0</action>
5100 <action function="page">terminalcommand</action>
5101 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005102 </button>
z31s1g56189522016-01-13 19:12:40 +01005103
z31s1g608d7ff2016-01-18 19:47:25 +01005104 <button>
z31s1g56189522016-01-13 19:12:40 +01005105 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5106 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5107 <image resource="back" />
5108 <condition var1="tw_busy" var2="0" />
5109 <actions>
5110 <action function="set">tw_hide_kb=0</action>
5111 <action function="key">back</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005112 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005113 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005114 </button>
z31s1g56189522016-01-13 19:12:40 +01005115
z31s1g28f0a922015-11-07 18:50:22 +01005116 <action>
5117 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005118 <actions>
5119 <action function="set">tw_hide_kb=0</action>
5120 <action function="page">main</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005121 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005122 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005123 </action>
5124
5125 <action>
5126 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005127 <actions>
5128 <action function="set">tw_hide_kb=0</action>
5129 <action function="page">advanced</action>
Mohd Faraz77bbeb02020-08-12 12:29:42 +00005130 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005131 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005132 </action>
z31s1g56189522016-01-13 19:12:40 +01005133
z31s1g608d7ff2016-01-18 19:47:25 +01005134 <action>
z31s1g56189522016-01-13 19:12:40 +01005135 <touch key="power+voldown" />
5136 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005137 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005138 </page>
5139
bigbiffdf8436b2020-08-30 16:22:34 -04005140 <page name="fastboot">
5141 <template name="page"/>
5142
5143 <text style="text_l">
5144 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5145 <text>{@fastboot_button=Fastboot}</text>
5146 </text>
5147
5148 <template name="console"/>
5149
5150 <template name="progress_bar"/>
5151
5152 <button style="main_button_half_height">
5153 <condition var1="tw_enable_fastboot" op="=" var2="1" />
5154 <placement x="%indent%" y="%row21a_y%"/>
5155 <text>{@enable_adb=Enable ADB}</text>
5156 <actions>
5157 <action function="enableadb"/>
5158 <action function="set">tw_enable_adb=1</action>
5159 <action function="set">tw_enable_fastboot=0</action>
5160 </actions>
5161 </button>
5162
5163 <button style="main_button_half_height">
5164 <condition var1="tw_enable_adb" op="=" var2="1" />
5165 <placement x="%indent%" y="%row21a_y%"/>
5166 <text>{@enable_fastboot=Enable Fastboot}</text>
5167 <actions>
5168 <action function="enablefastboot"/>
5169 <action function="set">tw_enable_fastboot=1</action>
5170 <action function="set">tw_enable_adb=0</action>
5171 </actions>
5172 </button>
5173
5174 <button style="main_button_half_height">
5175 <placement x="%center_x%" y="%row21a_y%"/>
5176 <text>{@reboot_btn=Reboot}</text>
5177 <action function="page">fastbootreboot</action>
5178 </button>
5179 </page>
5180
z31s1g28f0a922015-11-07 18:50:22 +01005181 <page name="sideload">
5182 <template name="page"/>
5183
5184 <text style="text_l">
5185 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005186 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005187 </text>
5188
5189 <text style="text_m">
5190 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005191 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005192 </text>
5193
5194 <checkbox>
5195 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005196 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005197 <data variable="tw_wipe_dalvik"/>
5198 </checkbox>
5199
5200 <checkbox>
5201 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005202 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005203 <data variable="tw_wipe_cache"/>
5204 </checkbox>
5205
5206 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005207 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005208 <actions>
5209 <action function="set">tw_back=advanced</action>
5210 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005211 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5212 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5213 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005214 <action function="set">tw_has_cancel=1</action>
5215 <action function="set">tw_show_reboot=1</action>
5216 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5217 <action function="page">action_page</action>
5218 </actions>
5219 </slider>
5220
5221 <action>
5222 <touch key="home"/>
5223 <action function="page">main</action>
5224 </action>
5225
5226 <action>
5227 <touch key="back"/>
5228 <action function="page">advanced</action>
5229 </action>
5230 </page>
5231
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005232 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005233 <template name="page"/>
5234
5235 <text style="text_l">
5236 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005237 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005238 </text>
5239
5240 <text style="text_m">
5241 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005242 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005243 </text>
5244
5245 <text style="text_m_accent">
5246 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005247 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005248 </text>
5249
z31s1g28f0a922015-11-07 18:50:22 +01005250 <text style="text_m_fail">
5251 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005252 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005253 </text>
5254
5255 <text style="text_m_fail">
5256 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005257 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005258 </text>
5259
5260 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005261 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005262 <actions>
5263 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005264 <action function="set">tw_action=fixcontexts</action>
5265 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5266 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005267 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005268 <action function="set">tw_show_reboot=1</action>
5269 <action function="page">action_page</action>
5270 </actions>
5271 </slider>
5272
5273 <action>
5274 <touch key="home"/>
5275 <action function="page">main</action>
5276 </action>
5277
5278 <action>
5279 <touch key="back"/>
5280 <action function="page">advanced</action>
5281 </action>
5282 </page>
5283
z31s1g28f0a922015-11-07 18:50:22 +01005284 <page name="slideout">
5285 <fill color="%background_color%">
5286 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5287 </fill>
5288
5289 <console>
5290 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5291 </console>
5292
5293 <button>
5294 <fill color="%transparent%"/>
5295 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5296 <action function="overlay"/>
5297 </button>
5298
5299 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005300 <touch key="power"/>
5301 <action function="togglebacklight"/>
5302 </action>
5303
5304 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005305 <touch key="power+voldown"/>
5306 <action function="screenshot"/>
5307 </action>
5308 </page>
5309
5310 <page name="select_storage">
5311 <fill color="%semi_transparent%">
5312 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5313 </fill>
5314
5315 <fill color="%background_color%">
5316 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5317 </fill>
5318
5319 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005320 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005321 <data name="tw_storage_path"/>
5322 <listtype name="storage"/>
5323 </partitionlist>
5324
5325 <button style="button_third_width">
5326 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005327 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005328 <actions>
5329 <action function="set">tw_clear_destination=%tw_back%</action>
5330 <action function="overlay"/>
5331 <action function="page">clear_vars</action>
5332 </actions>
5333 </button>
5334
5335 <fill color="#000000">
5336 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5337 </fill>
5338
5339 <button>
5340 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5341 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5342 <image resource="back"/>
5343 <condition var1="tw_busy" var2="0"/>
5344 <actions>
5345 <action function="overlay"/>
5346 <action function="key">%tw_back%</action>
5347 </actions>
5348 </button>
5349
5350 <button>
5351 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5352 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5353 <image resource="console"/>
5354 <condition var1="tw_busy" var2="0"/>
5355 <action function="overlay">slideout</action>
5356 </button>
5357
5358 <button>
5359 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5360 <image resource="home"/>
5361 <condition var1="tw_busy" var2="0"/>
5362 <actions>
5363 <action function="overlay"/>
5364 <action function="key">home</action>
5365 </actions>
5366 </button>
5367
5368 <button>
5369 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5370 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5371 <image resource="console"/>
5372 <condition var1="tw_busy" var2="0"/>
5373 <action function="overlay">slideout</action>
5374 </button>
5375
5376 <button>
5377 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5378 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5379 <image resource="back"/>
5380 <condition var1="tw_busy" var2="0"/>
5381 <actions>
5382 <action function="overlay"/>
5383 <action function="key">%tw_back%</action>
5384 </actions>
5385 </button>
5386
5387 <action>
5388 <touch key="power+voldown"/>
5389 <action function="screenshot"/>
5390 </action>
5391 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005392
5393 <page name="select_language">
5394 <fill color="%semi_transparent%">
5395 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5396 </fill>
5397
5398 <fill color="%background_color%">
5399 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5400 </fill>
5401
5402 <listbox>
5403 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5404 <text>{@select_language=Select Language:}</text>
5405 <icon selected="radio_true" unselected="radio_false" />
5406 <data name="tw_language" />
5407 </listbox>
5408
5409 <button style="button_third_width">
5410 <placement x="%dialog_button_x%" y="%row14_y%"/>
5411 <text>{@ok_btn=OK}</text>
5412 <actions>
5413 <action function="overlay"/>
5414 <action function="setlanguage"></action>
5415 </actions>
5416 </button>
5417
5418 <fill color="#000000">
5419 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5420 </fill>
5421
5422 <button>
5423 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5424 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5425 <image resource="back"/>
5426 <condition var1="tw_busy" var2="0"/>
5427 <actions>
5428 <action function="overlay"/>
5429 <action function="key">%tw_back%</action>
5430 </actions>
5431 </button>
5432
5433 <button>
5434 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5435 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5436 <image resource="console"/>
5437 <condition var1="tw_busy" var2="0"/>
5438 <action function="overlay">slideout</action>
5439 </button>
5440
5441 <button>
5442 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5443 <image resource="home"/>
5444 <condition var1="tw_busy" var2="0"/>
5445 <actions>
5446 <action function="overlay"/>
5447 <action function="key">home</action>
5448 </actions>
5449 </button>
5450
5451 <button>
5452 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5453 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5454 <image resource="console"/>
5455 <condition var1="tw_busy" var2="0"/>
5456 <action function="overlay">slideout</action>
5457 </button>
5458
5459 <button>
5460 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5461 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5462 <image resource="back"/>
5463 <condition var1="tw_busy" var2="0"/>
5464 <actions>
5465 <action function="overlay"/>
5466 <action function="key">%tw_back%</action>
5467 </actions>
5468 </button>
5469
5470 <action>
5471 <touch key="power+voldown"/>
5472 <action function="screenshot"/>
5473 </action>
5474 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005475
5476 <page name="decrypt_users">
5477 <template name="page"/>
5478
5479 <text style="text_l">
5480 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5481 <text>{@decrypt_users=Decrypt Users}</text>
5482 </text>
5483
5484 <text style="text_m_accent">
5485 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5486 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5487 </text>
5488
5489 <listbox>
5490 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5491 <text>{@select_user=Select User}</text>
5492 <icon selected="radio_true" unselected="radio_false" />
5493 <data name="tw_crypto_user_id" />
5494 </listbox>
5495
5496 <button style="main_button_half_height">
5497 <placement x="%center_x%" y="%row21a_y%"/>
5498 <text>{@decrypt_users=Decrypt Users}</text>
5499 <action function="set">tw_crypto_password=</action>
5500 <action function="set">tw_password_fail=0</action>
5501 <action function="page">decrypt</action>
5502 </button>
5503
5504 <action>
5505 <touch key="home"/>
5506 <action function="page">main</action>
5507 </action>
5508
5509 <action>
5510 <touch key="back"/>
5511 <action function="page">advanced</action>
5512 </action>
5513 </page>
epicXa721f952021-01-04 13:01:31 +05305514
5515 <page name="changeTwrpFolder">
5516 <template name="page"/>
5517
5518 <text style="text_l">
5519 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5520 <text>{@advanced_hdr=Advanced}</text>
5521 </text>
5522
5523 <text style="text_m">
5524 <placement x="%col1_x_header%" y="%row4_header_y%"/>
5525 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5526 </text>
5527
5528 <text style="text_m_accent">
5529 <placement x="%indent%" y="%row2_y%"/>
5530 <text>{@name=Name:}</text>
5531 </text>
5532
5533 <input>
5534 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
5535 <text>%tw_custom_folder%</text>
5536 <data name="tw_custom_folder"/>
5537 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5538 <actions>
5539 <action function="set">tw_back=changeTwrpFolder</action>
5540 <action function="set">tw_action=applycustomtwrpfolder</action>
5541 <action function="set">tw_action_param=%tw_custom_folder%</action>
5542 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5543 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5544 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5545 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5546 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5547 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5548 <action function="set">tw_existpage=changeTwrpFolder</action>
5549 <action function="set">tw_notexistpage=confirm_action</action>
5550 <action function="page">filecheck</action>
5551 </actions>
5552 </input>
5553
5554 <fill color="%accent_color%">
5555 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5556 </fill>
5557
5558 <fill color="%text_fail_color%">
5559 <condition var1="tw_fileexists" var2="1"/>
5560 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5561 </fill>
5562
5563 <text style="text_m_fail">
5564 <condition var1="tw_fileexists" var2="1"/>
5565 <placement x="%indent%" y="%row4a_y%"/>
5566 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5567 </text>
5568
5569 <button style="main_button_half_height">
5570 <placement x="%indent%" y="%row10_y%"/>
5571 <text>{@cancel_btn=Cancel}</text>
5572 <actions>
5573 <action function="page">advanced</action>
5574 </actions>
5575 </button>
5576
5577 <button style="main_button_half_height">
5578 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5579 <placement x="%center_x%" y="%row10_y%"/>
5580 <text>{@restore_defaults_btn=Restore Defaults}</text>
5581 <actions>
5582 <action function="set">tw_back=changeTwrpFolder</action>
5583 <action function="set">tw_action=applycustomtwrpfolder</action>
5584 <action function="set">tw_action_param=TWRP</action>
5585 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5586 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5587 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5588 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5589 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5590 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5591 <action function="set">tw_existpage=changeTwrpFolder</action>
5592 <action function="set">tw_notexistpage=confirm_action</action>
5593 <action function="page">filecheck</action>
5594 </actions>
5595 </button>
5596
5597 <template name="keyboardtemplate"/>
5598
5599 <action>
5600 <touch key="home"/>
5601 <actions>
5602 <action function="page">main</action>
5603 </actions>
5604 </action>
5605
5606 <action>
5607 <touch key="back"/>
5608 <actions>
5609 <action function="page">advanced</action>
5610 </actions>
5611 </action>
5612 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005613 </pages>
5614</recovery>