blob: b78191d5310373054643540419d0f32966c467d1 [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_half_height">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_m" color="%text_button_color%"/>
44 <image resource="main_button_half_height"/>
45 </style>
46
47 <style name="main_button_half_height_full_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_m" color="%text_button_color%"/>
50 <image resource="main_button_half_height_full_width"/>
51 </style>
52
53 <style name="button_third_width">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="tab_3"/>
57 </style>
58
59 <style name="button_quarter_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="tab_4"/>
63 </style>
64
65 <style name="fab">
66 <highlight color="%highlight_color%"/>
67 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
68 <font resource="font_m" color="%button_text_color%"/>
69 </style>
70
71 <style name="tab">
72 <highlight color="%highlight_color%"/>
z31s1g56a7a992016-01-23 17:06:40 +010073 <fill color="%transparent%"/>
z31s1g28f0a922015-11-07 18:50:22 +010074 <font resource="font_s" color="%text_button_color%"/>
75 </style>
76
77 <style name="console">
78 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
79 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
80 <font resource="fixed"/>
81 </style>
82
z31s1g56189522016-01-13 19:12:40 +010083 <style name="terminal">
84 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
85 <background color="%background_color%"/>
86 <font resource="fixed" spacing="3" color="%text_color%"/>
87 </style>
88
z31s1g28f0a922015-11-07 18:50:22 +010089 <style name="fileselector">
90 <highlight color="%fileselector_highlight_color%"/>
91 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
92 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
93 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
94 <sort name="tw_gui_sort_order"/>
95 <icon folder="folder" file="file"/>
96 <background color="%background_color%"/>
97 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
98 </style>
99
100 <style name="listbox">
101 <highlight color="%fileselector_highlight_color%"/>
102 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
103 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
104 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
105 <icon selected="radio_true" unselected="radio_false"/>
106 <background color="%background_color%"/>
107 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
108 </style>
109
110 <style name="scrolllist">
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300113 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
z31s1g28f0a922015-11-07 18:50:22 +0100114 </style>
115
116 <style name="partitionlist">
117 <highlight color="%fileselector_highlight_color%"/>
118 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
119 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
120 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
121 <icon selected="checkbox_true" unselected="checkbox_false"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <background color="%background_color%"/>
124 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
125 </style>
126
127 <style name="partitionlist_storage">
128 <highlight color="%fileselector_highlight_color%"/>
129 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
130 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
131 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
132 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
133 <icon selected="radio_true" unselected="radio_false"/>
134 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
137 </style>
138
Ethan Yonker64e0a652018-07-25 09:52:17 -0500139 <style name="advanced_listbox">
140 <highlight color="%fileselector_highlight_color%"/>
141 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
142 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
143 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
144 <icon selected="handle" unselected="handle"/>
145 <background color="%background_color%"/>
146 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
147 </style>
148
z31s1g28f0a922015-11-07 18:50:22 +0100149 <style name="slider">
150 <placement x="%center_x%" y="%row23_y%"/>
151 <font resource="font_s" color="%text_color%"/>
152 <resource base="slider" used="slider_used" touch="slider_touch"/>
153 </style>
154
155 <style name="slidervalue">
156 <resource handle="handle"/>
157 <font resource="font_m" color="%text_color%"/>
158 <colors line="%fileselector_linecolor%"/>
159 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
160 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100161
162 <style name="patternpassword">
163 <size name="tw_gui_pattern_grid_size" default="3"/>
164 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100165 </styles>
166
167 <pages>
168 <page name="main">
169 <action>
170 <actions>
171 <action function="set">tw_clear_destination=main2</action>
172 <action function="page">clear_vars</action>
173 </actions>
174 </action>
175 </page>
176
177 <page name="main2">
178 <template name="page"/>
179
180 <text style="text_l">
181 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500182 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100183 </text>
184
185 <text style="text_m">
186 <condition var1="tw_no_cpu_temp" var2="0"/>
187 <placement x="%col1_x_header%" y="%row4_header_y%"/>
188 <text>%tw_version%</text>
189 </text>
190
191 <button style="main_button">
192 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500193 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100194 <actions>
195 <action function="queueclear"/>
196 <action function="set">tw_selectimage=0</action>
197 <action function="page">install</action>
198 </actions>
199 </button>
200
201 <button style="main_button">
202 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500203 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100204 <action function="page">wipe</action>
205 </button>
206
207 <button style="main_button">
208 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500209 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100210 <action function="page">backup</action>
211 </button>
212
213 <button style="main_button">
214 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500215 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100216 <action function="page">restore</action>
217 </button>
218
219 <button style="main_button">
220 <placement x="%indent%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">mount</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%center_x%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">settings</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <action function="page">advanced</action>
235 </button>
236
237 <button style="main_button">
238 <placement x="%center_x%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500239 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100240 <action function="page">reboot</action>
241 </button>
242 </page>
243
244 <page name="install">
245 <template name="page"/>
246
247 <text style="text_l">
248 <condition var1="tw_selectimage" var2="0"/>
249 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 </text>
252
253 <text style="text_l">
254 <condition var1="tw_selectimage" var2="1"/>
255 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 </text>
258
259 <text style="text_m">
260 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500261 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100262 </text>
263
264 <template name="sort_options"/>
265
266 <fileselector>
267 <condition var1="tw_selectimage" var2="0"/>
268 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
269 <text>%tw_zip_location%</text>
mauronofrio0ff59842019-10-26 19:47:55 +0200270 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100271 <path name="tw_zip_location" default="/sdcard"/>
272 <data name="tw_filename"/>
273 <selection name="tw_file"/>
274 </fileselector>
275
276 <fileselector>
277 <condition var1="tw_selectimage" var2="1"/>
278 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
279 <text>%tw_zip_location%</text>
280 <filter extn=".img" folders="1" files="1"/>
281 <path name="tw_zip_location" default="/sdcard"/>
282 <data name="tw_filename"/>
283 <selection name="tw_file"/>
284 </fileselector>
285
286 <button style="main_button_half_height">
287 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500288 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100289 <actions>
290 <action function="set">tw_back=install</action>
291 <action function="overlay">select_storage</action>
292 </actions>
293 </button>
294
295 <button style="main_button_half_height">
296 <condition var1="tw_selectimage" var2="0"/>
297 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500298 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100299 <actions>
300 <action function="set">tw_selectimage=1</action>
301 <action function="page">install</action>
302 </actions>
303 </button>
304
305 <button style="main_button_half_height">
306 <condition var1="tw_selectimage" var2="1"/>
307 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <actions>
310 <action function="set">tw_selectimage=0</action>
311 <action function="page">install</action>
312 </actions>
313 </button>
314
315 <action>
316 <conditions>
317 <condition var1="tw_selectimage" var2="0"/>
318 <condition var1="tw_filename" op="modified"/>
319 </conditions>
320 <actions>
321 <action function="queuezip"/>
322 <action function="page">flash_confirm</action>
323 </actions>
324 </action>
325
326 <action>
327 <conditions>
328 <condition var1="tw_selectimage" var2="1"/>
329 <condition var1="tw_filename" op="modified"/>
330 </conditions>
331 <action function="page">flashimage_confirm</action>
332 </action>
333
334 <action>
335 <touch key="back"/>
336 <action function="page">main</action>
337 </action>
338
339 <action>
340 <touch key="home"/>
341 <action function="page">main</action>
342 </action>
343 </page>
344
345 <page name="flash_confirm">
346 <template name="page"/>
347
348 <text style="text_l">
349 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500350 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100351 </text>
352
353 <text style="text_m">
354 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500355 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100356 </text>
357
358 <text style="text_m_accent">
359 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500360 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100361 </text>
362
363 <text style="text_m_accent">
364 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500365 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100366 </text>
367
368 <text style="text_m">
369 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500370 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100371 </text>
372
373 <text style="text_m_accent">
374 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500375 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100376 </text>
377
378 <text style="text_m">
379 <placement x="%indent%" y="%row8_y%"/>
380 <text>%tw_zip_location%</text>
381 </text>
382
383 <text style="text_m_accent">
384 <placement x="%indent%" y="%row9a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500385 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100386 </text>
387
388 <text style="text_m">
389 <placement x="%indent%" y="%row10a_y%"/>
390 <text>%tw_file%</text>
391 </text>
392
393 <checkbox>
394 <placement x="%indent%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500395 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100396 <data variable="tw_signed_zip_verify"/>
397 </checkbox>
398
399 <checkbox>
Matt Mowera8a89d12016-12-30 18:10:37 -0600400 <placement x="%indent%" y="%row13a_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500401 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mowera8a89d12016-12-30 18:10:37 -0600402 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500403 </checkbox>
404
405 <checkbox>
Ethan Yonker75aa6152017-09-08 12:17:03 -0500406 <condition var1="tw_has_injecttwrp" var2="1"/>
nkk71b4c35912017-10-11 23:39:10 +0300407 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500408 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100409 <data variable="tw_inject_after_zip"/>
410 </checkbox>
411
412 <button style="main_button_half_height">
413 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500414 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100415 <action function="page">install</action>
416 </button>
417
418 <button style="main_button_half_height">
419 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500420 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100421 <actions>
422 <action function="queueclear"/>
423 <action function="page">install</action>
424 </actions>
425 </button>
426
427 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500428 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100429 <action function="flash">flash_zip</action>
430 </slider>
431
432 <action>
433 <touch key="back"/>
434 <actions>
435 <action function="cancelzip"/>
436 <action function="page">install</action>
437 </actions>
438 </action>
439
440 <action>
441 <touch key="home"/>
442 <action function="page">main</action>
443 </action>
444 </page>
445
446 <page name="flash_zip">
447 <template name="page"/>
448
449 <text style="text_l">
450 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 </text>
453
454 <text style="text_m">
455 <placement x="%col1_x_header%" y="%row4_header_y%"/>
456 <text>%tw_file%</text>
457 </text>
458
459 <template name="console"/>
460
461 <template name="progress_bar"/>
462
463 <action>
464 <condition var1="tw_operation_state" var2="1"/>
465 <action function="page">flash_done</action>
466 </action>
467 </page>
468
469 <page name="flash_done">
470 <template name="page"/>
471
472 <text style="text_l">
473 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500474 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100475 </text>
476
477 <text style="text_m_fail">
478 <condition var1="tw_operation_status" op="!=" var2="0"/>
479 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500480 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100481 </text>
482
483 <text style="text_m">
484 <condition var1="tw_operation_status" var2="0"/>
485 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500486 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100487 </text>
488
489 <template name="console"/>
490
491 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500492 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100493 <placement x="%indent%" y="%row21a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500494 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100495 <actions>
496 <action function="set">tw_back=flash_done</action>
497 <action function="set">tw_action=wipe</action>
498 <action function="set">tw_action_param=/cache</action>
499 <action function="set">tw_has_action2=1</action>
500 <action function="set">tw_action2=wipe</action>
501 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500502 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
503 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
504 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
505 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100506 <action function="page">confirm_action</action>
507 </actions>
508 </button>
509
510 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500511 <condition var1="tw_ab_device" var2="1"/>
512 <placement x="%indent%" y="%row21a_y%"/>
513 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
514 <actions>
515 <action function="set">tw_back=flash_done</action>
516 <action function="set">tw_action=wipe</action>
517 <action function="set">tw_action_param=dalvik</action>
518 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
519 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
520 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
521 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
522 <action function="page">confirm_action</action>
523 </actions>
524 </button>
525
526 <button style="main_button_half_height">
Chaosmaster90df3de2020-02-07 20:33:43 +0100527 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100528 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500529 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100530 <actions>
531 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500532 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100533 </actions>
534 </button>
535
Chaosmaster90df3de2020-02-07 20:33:43 +0100536 <button style="main_button_half_height">
537 <condition var1="tw_ab_device" var2="1"/>
538 <placement x="%center_x%" y="%row21a_y%"/>
539 <text>{@reboot_btn=Reboot}</text>
540 <actions>
541 <action function="set">tw_back=main2</action>
542 <action function="page">reboot</action>
543 </actions>
544 </button>
545
z31s1g28f0a922015-11-07 18:50:22 +0100546 <action>
547 <touch key="back"/>
548 <actions>
549 <action function="set">tw_clear_destination=install</action>
550 <action function="page">clear_vars</action>
551 </actions>
552 </action>
553
554 <action>
555 <touch key="home"/>
556 <actions>
557 <action function="set">tw_clear_destination=main2</action>
558 <action function="page">clear_vars</action>
559 </actions>
560 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500561
562 <action>
563 <conditions>
564 <condition var1="tw_install_reboot" var2="1"/>
565 <condition var1="tw_operation_status" var2="0"/>
566 <condition var1="tw_reboot_system" var2="1"/>
567 </conditions>
568 <actions>
569 <action function="set">tw_sleep=%tw_sleep_total%</action>
570 <action function="page">flash_sleep_and_reboot</action>
571 </actions>
572 </action>
573 </page>
574
575 <page name="flash_sleep_and_reboot">
576 <template name="page"/>
577
578 <text style="text_l">
579 <placement x="%col1_x_header%" y="%row3_header_y%"/>
580 <text>{@install_zip_hdr=Install Zip}</text>
581 </text>
582
583 <text style="text_m">
584 <placement x="%col1_x_header%" y="%row4_header_y%"/>
585 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
586 </text>
587
588 <template name="console"/>
589
590 <template name="progress_bar"/>
591
592 <button style="main_button_half_height">
593 <condition var1="tw_sleep" op="&gt;" var2="0"/>
594 <placement x="%center_x%" y="%row21a_y%"/>
595 <text>{@cancel_btn=Cancel}</text>
596 <actions>
597 <action function="set">tw_install_reboot=0</action>
598 <action function="page">flash_done</action>
599 </actions>
600 </button>
601
602 <action>
603 <conditions>
604 <condition var1="tw_sleep" var2="tw_sleep_total"/>
605 <condition var1="tw_install_reboot" var2="1"/>
606 </conditions>
607 <action function="sleepcounter">%tw_sleep_total%</action>
608 </action>
609
610 <action>
611 <conditions>
612 <condition var1="tw_sleep" var2="0"/>
613 <condition var1="tw_install_reboot" var2="1"/>
614 </conditions>
615 <actions>
616 <action function="sleep">50000</action>
617 <action function="set">tw_back=main2</action>
618 <action function="page">reboot_system_routine</action>
619 </actions>
620 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100621 </page>
622
623 <page name="flashimage_confirm">
624 <template name="page"/>
625
626 <text style="text_l">
627 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500628 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100629 </text>
630
631 <text style="text_m">
632 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500633 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100634 </text>
635
636 <text style="text_m_accent">
637 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500638 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100639 </text>
640
641 <text style="text_m">
642 <placement x="%indent%" y="%row3_y%"/>
643 <text>%tw_zip_location%</text>
644 </text>
645
646 <text style="text_m_accent">
647 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500648 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100649 </text>
650
651 <text style="text_m">
652 <placement x="%indent%" y="%row5a_y%"/>
653 <text>%tw_file%</text>
654 </text>
655
656 <partitionlist>
657 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%partitionlist_flashimage_height%"/>
658 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500659 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100660 <data name="tw_flash_partition"/>
661 <listtype name="flashimg"/>
662 </partitionlist>
663
664 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500665 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100666 <actions>
667 <action function="set">tw_back=flashimage_confirm</action>
668 <action function="set">tw_action=flashimage</action>
669 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500670 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100671 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500672 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100673 <action function="page">action_page</action>
674 </actions>
675 <action function="flashimage"/>
676 </slider>
677
678 <action>
679 <touch key="back"/>
680 <actions>
681 <action function="set">tw_clear_destination=install</action>
682 <action function="page">clear_vars</action>
683 </actions>
684 </action>
685
686 <action>
687 <touch key="home"/>
688 <actions>
689 <action function="set">tw_clear_destination=main2</action>
690 <action function="page">clear_vars</action>
691 </actions>
692 </action>
693 </page>
694
695 <page name="clear_vars">
696 <action>
697 <action function="set">tw_operation_state=0</action>
698 <action function="set">tw_text1=</action>
699 <action function="set">tw_text2=</action>
700 <action function="set">tw_text3=</action>
701 <action function="set">tw_text4=</action>
702 <action function="set">tw_action_text1=</action>
703 <action function="set">tw_action_text2=</action>
704 <action function="set">tw_action_param=</action>
705 <action function="set">tw_has_action2=0</action>
706 <action function="set">tw_action2=</action>
707 <action function="set">tw_action2_param=</action>
708 <action function="set">tw_has_cancel=0</action>
709 <action function="set">tw_cancel_action=</action>
710 <action function="set">tw_cancel_param=</action>
711 <action function="set">tw_show_exclamation=0</action>
712 <action function="set">tw_show_reboot=0</action>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400713 <action function="set">tw_crypto_user_id=</action>
Noah Jacobson3ad80f42020-07-21 01:28:22 -0400714 <action function="set">tw_multiuser_warning_accepted=</action>
715 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100716 <action function="page">%tw_clear_destination%</action>
717 </action>
718 </page>
719
Matt Mower908dd252016-05-25 02:26:50 -0500720 <page name="reboot_system_routine">
721 <action>
722 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500723 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500724 <action function="set">tw_has_action2=0</action>
725 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
726 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
727 <action function="set">tw_text3=</action>
728 <action function="set">tw_text4=</action>
729 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
730 <action function="set">tw_action_text2=</action>
731 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
732 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
733 <action function="page">rebootcheck</action>
734 </action>
735 </page>
736
z31s1g28f0a922015-11-07 18:50:22 +0100737 <page name="confirm_action">
738 <template name="page"/>
739
740 <text style="text_l">
741 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500742 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100743 </text>
744
745 <text style="text_m">
746 <placement x="%col1_x_header%" y="%row4_header_y%"/>
747 <text/>
748 </text>
749
750 <text style="text_m_accent">
751 <placement x="%center_x%" y="%row2_y%" placement="5"/>
752 <text>%tw_text1%</text>
753 </text>
754
755 <text style="text_m_accent">
756 <placement x="%center_x%" y="%row3_y%" placement="5"/>
757 <text>%tw_text2%</text>
758 </text>
759
760 <text style="text_m">
761 <placement x="%center_x%" y="%row4_y%" placement="5"/>
762 <text>%tw_text3%</text>
763 </text>
764
765 <text style="text_m">
766 <placement x="%center_x%" y="%row5_y%" placement="5"/>
767 <text>%tw_text4%</text>
768 </text>
769
770 <text style="text_m">
771 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500772 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100773 </text>
774
775 <slider>
776 <text>%tw_slider_text%</text>
777 <action function="page">action_page</action>
778 </slider>
779
780 <action>
781 <touch key="back"/>
782 <actions>
783 <action function="set">tw_clear_destination=%tw_back%</action>
784 <action function="page">clear_vars</action>
785 </actions>
786 </action>
787
788 <action>
789 <touch key="home"/>
790 <action function="page">main</action>
791 </action>
792 </page>
793
794 <page name="action_page">
795 <template name="page"/>
796
797 <text style="text_l">
798 <placement x="%col1_x_header%" y="%row3_header_y%"/>
799 <text>%tw_action_text1%</text>
800 </text>
801
802 <text style="text_m">
803 <placement x="%col1_x_header%" y="%row4_header_y%"/>
804 <text>%tw_action_text2%</text>
805 </text>
806
807 <template name="console"/>
808
809 <template name="progress_bar"/>
810
811 <button style="main_button_half_height">
812 <condition var1="tw_has_cancel" var2="1"/>
813 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500814 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100815 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
816 </button>
817
818 <action>
819 <condition var1="tw_operation_state" var2="1"/>
820 <actions>
821 <action function="page">action_complete</action>
822 </actions>
823 </action>
824
825 <action>
826 <condition var1="tw_has_action2" var2="0"/>
827 <actions>
828 <action function="%tw_action%">%tw_action_param%</action>
829 </actions>
830 </action>
831
832 <action>
833 <condition var1="tw_has_action2" var2="1"/>
834 <actions>
835 <action function="%tw_action%">%tw_action_param%</action>
836 <action function="%tw_action2%">%tw_action2_param%</action>
837 </actions>
838 </action>
839 </page>
840
841 <page name="singleaction_page">
842 <template name="page"/>
843
844 <text style="text_l">
845 <placement x="%col1_x_header%" y="%row3_header_y%"/>
846 <text>%tw_action_text1%</text>
847 </text>
848
849 <text style="text_m">
850 <placement x="%col1_x_header%" y="%row4_header_y%"/>
851 <text>%tw_action_text2%</text>
852 </text>
853
854 <template name="console"/>
855
856 <template name="progress_bar"/>
857
858 <action>
859 <condition var1="tw_operation_state" var2="1"/>
860 <actions>
861 <action function="set">tw_page_done=1</action>
862 </actions>
863 </action>
864
865 <action>
866 <condition var1="tw_has_action2" var2="0"/>
867 <actions>
868 <action function="%tw_action%">%tw_action_param%</action>
869 </actions>
870 </action>
871
872 <action>
873 <condition var1="tw_has_action2" var2="1"/>
874 <actions>
875 <action function="%tw_action%">%tw_action_param%</action>
876 <action function="%tw_action2%">%tw_action2_param%</action>
877 </actions>
878 </action>
879 </page>
880
881 <page name="action_complete">
882 <template name="page"/>
883
884 <text style="text_l">
885 <placement x="%col1_x_header%" y="%row3_header_y%"/>
886 <text>%tw_complete_text1%</text>
887 </text>
888
889 <text style="text_m_fail">
890 <condition var1="tw_operation_status" op="!=" var2="0"/>
891 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500892 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100893 </text>
894
895 <text style="text_m">
896 <condition var1="tw_operation_status" var2="0"/>
897 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500898 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100899 </text>
900
901 <template name="console"/>
902
903 <button style="main_button_half_height">
904 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500905 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100906 <actions>
907 <action function="set">tw_clear_destination=%tw_back%</action>
908 <action function="page">clear_vars</action>
909 </actions>
910 </button>
911
912 <button style="main_button_half_height">
913 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500914 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100915 <actions>
916 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500917 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100918 </actions>
919 </button>
920
921 <action>
922 <touch key="home"/>
923 <actions>
924 <action function="set">tw_clear_destination=main2</action>
925 <action function="page">clear_vars</action>
926 </actions>
927 </action>
928
929 <action>
930 <touch key="back"/>
931 <actions>
932 <action function="set">tw_clear_destination=%tw_back%</action>
933 <action function="page">clear_vars</action>
934 </actions>
935 </action>
936 </page>
937
938 <page name="filecheck">
939 <action>
940 <action function="fileexists">%tw_filecheck%</action>
941 </action>
942
943 <action>
944 <conditions>
945 <condition var1="tw_operation_state" var2="1"/>
946 <condition var1="tw_operation_status" var2="0"/>
947 </conditions>
948 <actions>
949 <action function="set">tw_fileexists=1</action>
950 <action function="page">%tw_existpage%</action>
951 </actions>
952 </action>
953
954 <action>
955 <conditions>
956 <condition var1="tw_operation_state" var2="1"/>
957 <condition var1="tw_operation_status" var2="1"/>
958 </conditions>
959 <actions>
960 <action function="set">tw_fileexists=0</action>
961 <action function="page">%tw_notexistpage%</action>
962 </actions>
963 </action>
964 </page>
965
966 <page name="rebootcheck">
967 <action>
968 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -0600969 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +0100970 </action>
971
972 <action>
973 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
974 <action function="page">confirm_action</action>
975 </action>
976 </page>
977
978 <page name="wipe">
979 <template name="page"/>
980
981 <text style="text_l">
982 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500983 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100984 </text>
985
986 <text style="text_m">
987 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500988 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100989 </text>
990
991 <text style="text_m_accent">
992 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500993 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100994 </text>
995
996 <text style="text_m_accent">
z31s1g28f0a922015-11-07 18:50:22 +0100997 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -0400998 <text>{@factory_reset5=(not including users/lockscreen)}</text>
999 </text>
1000
1001 <text style="text_m_accent">
1002 <condition var1="tw_has_data_media" var2="1"/>
1003 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001004 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001005 </text>
1006
1007 <text style="text_m_accent">
1008 <conditions>
1009 <condition var1="tw_has_android_secure" var2="1"/>
1010 <condition var1="fileexists" var2="/and-sec"/>
1011 </conditions>
1012 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001013 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001014 </text>
1015
1016 <text style="text_m_accent">
1017 <condition var1="tw_has_sdext_partition" var2="1"/>
1018 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001019 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001020 </text>
1021
1022 <text style="text_m">
1023 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001024 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001025 </text>
1026
1027 <text style="text_m">
1028 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001029 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001030 </text>
1031
1032 <text style="text_m">
1033 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001034 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001035 </text>
1036
1037 <button style="main_button_half_height">
1038 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001039 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001040 <actions>
1041 <action function="set">partitionlisterror=0</action>
1042 <action function="page">advancedwipe</action>
1043 </actions>
1044 </button>
1045
1046 <button style="main_button_half_height">
1047 <condition var1="tw_has_data_media" var2="1"/>
1048 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001049 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001050 <action function="page">formatdata</action>
1051 </button>
1052
1053 <button style="main_button_half_height">
1054 <conditions>
1055 <condition var1="tw_is_encrypted" var2="1"/>
1056 <condition var1="tw_has_data_media" var2="0"/>
1057 </conditions>
1058 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001059 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001060 <actions>
1061 <action function="set">tw_back=wipe</action>
1062 <action function="set">tw_action=wipe</action>
1063 <action function="set">tw_action_param=DATAMEDIA</action>
1064 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001065 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001066 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001067 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1068 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1069 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001070 <action function="page">confirm_action</action>
1071 </actions>
1072 </button>
1073
1074 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001075 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001076 <actions>
1077 <action function="set">tw_back=wipe</action>
1078 <action function="set">tw_action=wipe</action>
1079 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001080 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1081 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001082 <action function="page">action_page</action>
1083 </actions>
1084 </slider>
1085
1086 <action>
1087 <touch key="back"/>
1088 <action function="page">main</action>
1089 </action>
1090
1091 <action>
1092 <touch key="home"/>
1093 <action function="page">main</action>
1094 </action>
1095 </page>
1096
1097 <page name="advancedwipe">
1098 <template name="page"/>
1099
1100 <action>
1101 <action function="set">tw_wipe_list=</action>
1102 </action>
1103
1104 <text style="text_l">
1105 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001106 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001107 </text>
1108
1109 <text style="text_m">
1110 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001111 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001112 </text>
1113
1114 <partitionlist>
1115 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001116 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001117 <data name="tw_wipe_list"/>
1118 <listtype name="wipe"/>
1119 </partitionlist>
1120
1121 <text style="text_m_fail">
1122 <condition var1="partitionlisterror" var2="1"/>
1123 <placement x="%center_x%" y="%row17_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001124 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001125 </text>
1126
1127 <button style="main_button_half_height_full_width">
1128 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001129 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001130 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001131 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <action function="page">checkpartitionlist</action>
1133 </actions>
1134 </button>
1135
1136 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001137 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001138 <actions>
1139 <action function="set">tw_back=advancedwipe</action>
1140 <action function="set">tw_action=wipe</action>
1141 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001142 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1143 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1144 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001145 <action function="page">action_page</action>
1146 </actions>
1147 </slider>
1148
1149 <action>
1150 <touch key="home"/>
1151 <action function="page">main</action>
1152 </action>
1153
1154 <action>
1155 <touch key="back"/>
1156 <action function="page">wipe</action>
1157 </action>
1158 </page>
1159
1160 <page name="formatdata">
1161 <template name="page"/>
1162
1163 <text style="text_l">
1164 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001165 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001166 </text>
1167
1168 <text style="text_m">
1169 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001170 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001171 </text>
1172
1173 <text style="text_m_fail">
1174 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001175 <text>{@format_data_ptr1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001176 </text>
1177
1178 <text style="text_m_fail">
1179 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001180 <text>{@format_data_ptr2=backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001181 </text>
1182
1183 <text style="text_m_fail">
1184 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001185 <text>{@format_data_ptr3=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001186 </text>
1187
Ethan Yonker66a19492015-12-10 10:19:45 -06001188 <text style="text_m_fail">
1189 <condition var1="tw_has_adopted_storage" var2="1"/>
1190 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1191 <text>{@format_data_adopted=Including Adopted Storage}</text>
1192 </text>
1193
z31s1g28f0a922015-11-07 18:50:22 +01001194 <text style="text_m">
1195 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001196 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001197 </text>
1198
1199 <text style="text_m">
1200 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001201 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001202 </text>
1203
1204 <input>
1205 <placement x="%indent%" y="%row10_y%" w="%content_width%" h="%input_height%"/>
1206 <text>%tw_confirm_formatdata%</text>
1207 <data name="tw_confirm_formatdata"/>
1208 <restrict minlen="3" maxlen="3" allow="yes"/>
1209 <action function="page">formatdata_confirm</action>
1210 </input>
1211
1212 <fill color="%accent_color%">
1213 <placement x="%indent%" y="row11_y" w="%content_width%" h="input_line_width"/>
1214 </fill>
1215
1216 <template name="keyboardtemplate"/>
1217
1218 <action>
1219 <touch key="home"/>
1220 <action function="page">main</action>
1221 </action>
1222
1223 <action>
1224 <touch key="back"/>
1225 <action function="page">wipe</action>
1226 </action>
1227 </page>
1228
1229 <page name="formatdata_confirm">
1230 <action>
1231 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1232 <actions>
1233 <action function="set">tw_back=formatdata</action>
1234 <action function="set">tw_action=wipe</action>
1235 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001236 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1237 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001238 <action function="page">action_page</action>
1239 </actions>
1240 </action>
1241
1242 <action>
1243 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1244 <action function="page">formatdata</action>
1245 </action>
1246 </page>
1247
1248 <page name="checkpartitionlist">
1249 <action>
1250 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1251 <actions>
1252 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001253 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001254 <action function="page">partitionoptions</action>
1255 </actions>
1256 </action>
1257
1258 <action>
1259 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1260 <actions>
1261 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001262 <action function="page">advancedwipe</action>
1263 </actions>
1264 </action>
1265 </page>
1266
1267 <page name="partitionoptions">
1268 <template name="page"/>
1269
1270 <text style="text_l">
1271 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001272 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001273 </text>
1274
1275 <text style="text_m">
1276 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001277 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001278 </text>
1279
1280 <text style="text_m_accent">
1281 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001282 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001283 </text>
1284
1285 <text style="text_m_accent">
1286 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001287 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001288 </text>
1289
1290 <text style="text_m">
1291 <condition var1="tw_partition_is_present" var2="1"/>
1292 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001293 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001294 </text>
1295
1296 <text style="text_m">
1297 <condition var1="tw_partition_is_present" var2="0"/>
1298 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001299 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001300 </text>
1301
1302 <text style="text_m">
1303 <condition var1="tw_partition_removable" var2="1"/>
1304 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001305 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001306 </text>
1307
1308 <text style="text_m">
1309 <condition var1="tw_partition_removable" var2="0"/>
1310 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001311 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001312 </text>
1313
1314 <text style="text_m">
1315 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001316 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001317 </text>
1318
1319 <text style="text_m">
1320 <placement x="%center_x%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001322 </text>
1323
1324 <text style="text_m">
1325 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001326 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001327 </text>
1328
1329 <text style="text_m">
1330 <placement x="%center_x%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001331 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001332 </text>
1333
1334 <button style="main_button_half_height">
1335 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1336 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001337 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001338 <actions>
1339 <action function="set">tw_back=partitionoptions</action>
1340 <action function="set">tw_action=resize</action>
1341 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1342 <action function="set">tw_has_action2=1</action>
1343 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001344 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001346 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001347 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1348 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1349 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001350 <action function="page">confirm_action</action>
1351 </actions>
1352 </button>
1353
1354 <button style="main_button_half_height">
1355 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1356 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001357 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001358 <actions>
1359 <action function="set">tw_back=partitionoptions</action>
1360 <action function="set">tw_action=repair</action>
1361 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1362 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001363 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001364 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001365 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1366 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1367 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001368 <action function="page">confirm_action</action>
1369 </actions>
1370 </button>
1371
1372 <button style="main_button_half_height">
1373 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001374 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001375 <action function="page">selectfilesystem</action>
1376 </button>
1377
1378 <action>
1379 <touch key="home"/>
1380 <action function="page">main</action>
1381 </action>
1382
1383 <action>
1384 <touch key="back"/>
1385 <action function="page">advancedwipe</action>
1386 </action>
1387 </page>
1388
1389 <page name="refreshfilesystem">
1390 <action>
1391 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1392 <actions>
1393 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001394 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001395 <action function="page">selectfilesystem</action>
1396 </actions>
1397 </action>
1398
1399 <action>
1400 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1401 <actions>
1402 <action function="set">partitionlisterror=1</action>
1403 <action function="set">tw_wipe_list=</action>
1404 <action function="page">advancedwipe</action>
1405 </actions>
1406 </action>
1407 </page>
1408
1409 <page name="selectfilesystem">
1410 <template name="page"/>
1411
1412 <text style="text_l">
1413 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001414 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001415 </text>
1416
1417 <text style="text_m">
1418 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001419 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001420 </text>
1421
1422 <text style="text_m_accent">
1423 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001424 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001425 </text>
1426
1427 <text style="text_m_accent">
1428 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001429 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001430 </text>
1431
1432 <text style="text_m_fail">
1433 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001434 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001435 </text>
1436
1437 <text style="text_m_fail">
1438 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001439 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001440 </text>
1441
1442 <button style="main_button_half_height">
1443 <condition var1="tw_partition_ext" op="=" var2="1"/>
1444 <placement x="%indent%" y="%row15a_y%"/>
1445 <text>EXT2</text>
1446 <actions>
1447 <action function="set">tw_back=refreshfilesystem</action>
1448 <action function="set">tw_action=changefilesystem</action>
1449 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1450 <action function="set">tw_action_new_file_system=ext2</action>
1451 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001452 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1453 <action function="set">tw_text2=EXT2</action>
1454 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1455 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1456 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001457 <action function="page">confirm_action</action>
1458 </actions>
1459 </button>
1460
1461 <button style="main_button_half_height">
1462 <condition var1="tw_partition_ext" op="=" var2="1"/>
1463 <placement x="%indent%" y="%row18a_y%"/>
1464 <text>EXT3</text>
1465 <actions>
1466 <action function="set">tw_back=refreshfilesystem</action>
1467 <action function="set">tw_action=changefilesystem</action>
1468 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1469 <action function="set">tw_action_new_file_system=ext3</action>
1470 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001471 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1472 <action function="set">tw_text2=EXT3</action>
1473 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1474 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1475 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001476 <action function="page">confirm_action</action>
1477 </actions>
1478 </button>
1479
1480 <button style="main_button_half_height">
1481 <condition var1="tw_partition_ext" op="=" var2="1"/>
1482 <placement x="%indent%" y="%row21a_y%"/>
1483 <text>EXT4</text>
1484 <actions>
1485 <action function="set">tw_back=refreshfilesystem</action>
1486 <action function="set">tw_action=changefilesystem</action>
1487 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1488 <action function="set">tw_action_new_file_system=ext4</action>
1489 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001490 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1491 <action function="set">tw_text2=EXT4</action>
1492 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1493 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1494 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001495 <action function="page">confirm_action</action>
1496 </actions>
1497 </button>
1498
1499 <button style="main_button_half_height">
1500 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1501 <placement x="%center_x%" y="%row15a_y%"/>
1502 <text>FAT</text>
1503 <actions>
1504 <action function="set">tw_back=refreshfilesystem</action>
1505 <action function="set">tw_action=changefilesystem</action>
1506 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1507 <action function="set">tw_action_new_file_system=vfat</action>
1508 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001509 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1510 <action function="set">tw_text2=FAT</action>
1511 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1512 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1513 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001514 <action function="page">confirm_action</action>
1515 </actions>
1516 </button>
1517
1518 <button style="main_button_half_height">
1519 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1520 <placement x="%center_x%" y="%row18a_y%"/>
1521 <text>exFAT</text>
1522 <actions>
1523 <action function="set">tw_back=refreshfilesystem</action>
1524 <action function="set">tw_action=changefilesystem</action>
1525 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1526 <action function="set">tw_action_new_file_system=exfat</action>
1527 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001528 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1529 <action function="set">tw_text2=exFAT</action>
1530 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1531 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1532 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001533 <action function="page">confirm_action</action>
1534 </actions>
1535 </button>
1536
1537 <button style="main_button_half_height">
1538 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1539 <placement x="%center_x%" y="%row21a_y%"/>
1540 <text>F2FS</text>
1541 <actions>
1542 <action function="set">tw_back=refreshfilesystem</action>
1543 <action function="set">tw_action=changefilesystem</action>
1544 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1545 <action function="set">tw_action_new_file_system=f2fs</action>
1546 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001547 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1548 <action function="set">tw_text2=F2FS</action>
1549 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1550 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1551 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001552 <action function="page">confirm_action</action>
1553 </actions>
1554 </button>
1555
1556 <action>
1557 <touch key="home"/>
1558 <action function="page">main</action>
1559 </action>
1560
1561 <action>
1562 <touch key="back"/>
1563 <action function="page">partitionoptions</action>
1564 </action>
1565 </page>
1566
1567 <page name="backup">
1568 <template name="page"/>
1569
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001570 <action>
1571 <conditions>
1572 <condition var1="tw_is_fbe" var2="1"/>
1573 <condition var1="tw_all_users_decrypted" var2="0"/>
1574 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1575 </conditions>
1576 <actions>
1577 <action function="set">tw_multiuser_warning_destination=backup</action>
1578 <action function="page">multiuser_warning</action>
1579 </actions>
1580 </action>
1581
z31s1g28f0a922015-11-07 18:50:22 +01001582 <text style="text_l">
1583 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001584 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001585 </text>
1586
1587 <text style="text_m">
1588 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001589 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001590 </text>
1591
1592 <template name="tabs_backup"/>
1593
1594 <fill color="%text_color%">
1595 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1596 </fill>
1597
1598 <button style="tab">
1599 <conditions>
1600 <condition var1="tw_include_encrypted_backup" var2="1"/>
1601 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001602 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001603 </conditions>
1604 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001605 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001606 <font resource="font_s" color="%text_color%"/>
1607 <actions>
1608 <action function="set">tw_password_not_match=0</action>
1609 <action function="page">backupencryption</action>
1610 </actions>
1611 </button>
1612
1613 <button style="tab">
1614 <conditions>
1615 <condition var1="tw_include_encrypted_backup" var2="1"/>
1616 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001617 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001618 </conditions>
1619 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001620 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001621 <font resource="font_s" color="%text_success_color%"/>
1622 <actions>
1623 <action function="set">tw_password_not_match=0</action>
1624 <action function="page">backupencryption</action>
1625 </actions>
1626 </button>
1627
1628 <text style="text_m_accent">
1629 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001630 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001631 </text>
1632
1633 <text style="text_m">
1634 <placement x="%indent%" y="%row4a_y%"/>
1635 <text>%tw_backup_name%</text>
1636 </text>
1637
1638 <fill color="%fileselector_linecolor%">
1639 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width"/>
1640 </fill>
1641
1642 <button>
bigbiffce8f83c2015-12-12 18:30:21 -05001643 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001644 <placement x="indent" y="%row3a_y%" w="%content_width%" h="%navbar_height%"/>
1645 <fill color="%transparent%"/>
1646 <actions>
1647 <action function="set">tw_fileexists=0</action>
1648 <action function="page">backupname1</action>
1649 </actions>
1650 </button>
1651
1652 <partitionlist>
1653 <placement x="%indent%" y="%row6_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001654 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001655 <data name="tw_backup_list"/>
1656 <listtype name="backup"/>
1657 </partitionlist>
1658
1659 <button style="main_button_half_height">
bigbiffce8f83c2015-12-12 18:30:21 -05001660 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001661 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001662 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001663 <actions>
1664 <action function="set">tw_back=backup</action>
1665 <action function="overlay">select_storage</action>
1666 </actions>
1667 </button>
1668
1669 <button style="main_button_half_height">
1670 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001671 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001672 <actions>
1673 <action function="refreshsizes"/>
1674 <action function="page">backup</action>
1675 </actions>
1676 </button>
1677
1678 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001679 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001680 <action function="page">backup_run</action>
1681 </slider>
1682
1683 <action>
1684 <touch key="home"/>
1685 <action function="page">main</action>
1686 </action>
1687
1688 <action>
1689 <touch key="back"/>
1690 <action function="page">main</action>
1691 </action>
1692 </page>
1693
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001694 <page name="multiuser_warning">
1695 <template name="page"/>
1696
1697 <text style="text_l">
1698 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1699 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1700 </text>
1701
1702 <text style="text_m_fail">
1703 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1704 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1705 </text>
1706
1707 <text style="text_m_fail">
1708 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1709 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1710 </text>
1711
1712 <button style="main_button_half_height_full_width">
1713 <placement x="%indent%" y="%row18a_y%"/>
1714 <text>{@decrypt_users=Decrypt Users}</text>
1715 <action function="page">decrypt_users</action>
1716 </button>
1717
1718 <slider>>
1719 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1720 <actions>
1721 <action function="set">tw_multiuser_warning_accepted=1</action>
1722 <action function="page">%tw_multiuser_warning_destination%</action>
1723 </actions>
1724 </slider>
1725
1726 <action>
1727 <touch key="home"/>
1728 <action function="page">main</action>
1729 </action>
1730
1731 <action>
1732 <touch key="back"/>
1733 <action function="page">main</action>
1734 </action>
1735 </page>
1736
z31s1g28f0a922015-11-07 18:50:22 +01001737 <page name="backup_options">
1738 <template name="page"/>
1739
1740 <text style="text_l">
1741 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001742 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001743 </text>
1744
1745 <text style="text_m">
1746 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 </text>
1749
1750 <template name="tabs_backup"/>
1751
1752 <fill color="%text_color%">
1753 <placement x="%tab3_col2_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1754 </fill>
1755
1756 <button style="tab">
1757 <conditions>
1758 <condition var1="tw_include_encrypted_backup" var2="1"/>
1759 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001760 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001761 </conditions>
1762 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001763 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001764 <font resource="font_s" color="%text_color%"/>
1765 <actions>
1766 <action function="set">tw_password_not_match=0</action>
1767 <action function="page">backupencryption</action>
1768 </actions>
1769 </button>
1770
1771 <button style="tab">
1772 <conditions>
1773 <condition var1="tw_include_encrypted_backup" var2="1"/>
1774 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001775 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001776 </conditions>
1777 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001778 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001779 <font resource="font_s" color="%text_success_color%"/>
1780 <actions>
1781 <action function="set">tw_password_not_match=0</action>
1782 <action function="page">backupencryption</action>
1783 </actions>
1784 </button>
1785
1786 <checkbox>
1787 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001788 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001789 <data variable="tw_use_compression"/>
1790 </checkbox>
1791
1792 <checkbox>
1793 <placement x="%indent%" y="%row5_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001794 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1795 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001796 </checkbox>
1797
1798 <checkbox>
1799 <placement x="%indent%" y="%row6a_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001800 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001801 <data variable="tw_disable_free_space"/>
1802 </checkbox>
1803
Ethan Yonker1b190162016-12-05 15:25:19 -06001804 <text style="text_m">
1805 <condition var1="tw_has_boot_slots" var2="1"/>
Mauronofrio Matarrese1ecb6df2019-04-04 23:18:43 +01001806 <placement x="%center_x%" y="%row18_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06001807 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
1808 </text>
1809
1810 <button style="main_button">
1811 <condition var1="tw_has_boot_slots" var2="1"/>
1812 <placement x="%indent%" y="%row19_y%"/>
1813 <text>{@boot_slot_a=Slot A}</text>
1814 <actions>
1815 <action function="set">tw_back=backup_options</action>
1816 <action function="set">tw_action=setbootslot</action>
1817 <action function="set">tw_action_param=A</action>
1818 <action function="set">tw_has_action2=0</action>
1819 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1820 <action function="set">tw_action_text2=</action>
1821 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1822 <action function="page">action_page</action>
1823 </actions>
1824 </button>
1825
1826 <button style="main_button">
1827 <condition var1="tw_has_boot_slots" var2="1"/>
1828 <placement x="%center_x%" y="%row19_y%"/>
1829 <text>{@boot_slot_b=Slot B}</text>
1830 <actions>
1831 <action function="set">tw_back=backup_options</action>
1832 <action function="set">tw_action=setbootslot</action>
1833 <action function="set">tw_action_param=B</action>
1834 <action function="set">tw_has_action2=0</action>
1835 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
1836 <action function="set">tw_action_text2=</action>
1837 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
1838 <action function="page">action_page</action>
1839 </actions>
1840 </button>
1841
z31s1g28f0a922015-11-07 18:50:22 +01001842 <action>
1843 <touch key="home"/>
1844 <action function="page">main</action>
1845 </action>
1846
1847 <action>
1848 <touch key="back"/>
1849 <action function="page">backup</action>
1850 </action>
1851 </page>
1852
1853 <page name="backupname1">
1854 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001855 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001856 <action function="generatebackupname"/>
1857 </action>
1858
1859 <action>
1860 <action function="page">backupname2</action>
1861 </action>
1862 </page>
1863
1864 <page name="backupname2">
1865 <template name="page"/>
1866
1867 <text style="text_l">
1868 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001869 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001870 </text>
1871
1872 <text style="text_m">
1873 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001874 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001875 </text>
1876
1877 <template name="tabs_backup"/>
1878
1879 <fill color="%text_color%">
1880 <placement x="0" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
1881 </fill>
1882
1883 <button style="tab">
1884 <conditions>
1885 <condition var1="tw_include_encrypted_backup" var2="1"/>
1886 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001887 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001888 </conditions>
1889 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001890 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001891 <font resource="font_s" color="%text_color%"/>
1892 <actions>
1893 <action function="set">tw_password_not_match=0</action>
1894 <action function="page">backupencryption</action>
1895 </actions>
1896 </button>
1897
1898 <button style="tab">
1899 <conditions>
1900 <condition var1="tw_include_encrypted_backup" var2="1"/>
1901 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001902 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </conditions>
1904 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001905 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001906 <font resource="font_s" color="%text_success_color%"/>
1907 <actions>
1908 <action function="set">tw_password_not_match=0</action>
1909 <action function="page">backupencryption</action>
1910 </actions>
1911 </button>
1912
1913 <text style="text_m_accent">
1914 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001915 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001916 </text>
1917
1918 <input>
1919 <placement x="%indent%" y="%row4_input_y%" w="%content_width%" h="%input_height%"/>
1920 <text>%tw_backup_name%</text>
1921 <data name="tw_backup_name"/>
1922 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1923 <actions>
1924 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1925 <action function="set">tw_existpage=backupname2</action>
1926 <action function="set">tw_notexistpage=backup</action>
1927 <action function="page">filecheck</action>
1928 </actions>
1929 </input>
1930
1931 <fill color="%accent_color%">
1932 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1933 </fill>
1934
1935 <fill color="%text_fail_color%">
1936 <condition var1="tw_fileexists" var2="1"/>
1937 <placement x="%indent%" y="row5a_y" w="%content_width%" h="input_line_width" placement="1"/>
1938 </fill>
1939
1940 <text style="text_m_fail">
1941 <condition var1="tw_fileexists" var2="1"/>
1942 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001943 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001944 </text>
1945
1946 <button style="main_button_half_height">
1947 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001948 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001949 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001950 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001951 <action function="page">backup</action>
1952 </actions>
1953 </button>
1954
1955 <button style="main_button_half_height">
1956 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001957 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001958 <action function="appenddatetobackupname"/>
1959 </button>
1960
1961 <template name="keyboardtemplate"/>
1962
1963 <action>
1964 <touch key="home"/>
1965 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001966 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001967 <action function="page">main</action>
1968 </actions>
1969 </action>
1970
1971 <action>
1972 <touch key="back"/>
1973 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001974 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001975 <action function="page">backup</action>
1976 </actions>
1977 </action>
1978 </page>
1979
1980 <page name="backupencryption">
1981 <template name="page"/>
1982
1983 <text style="text_l">
1984 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001985 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001986 </text>
1987
1988 <text style="text_m">
1989 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001990 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001991 </text>
1992
1993 <template name="tabs_backup"/>
1994
1995 <button style="tab">
1996 <conditions>
1997 <condition var1="tw_include_encrypted_backup" var2="1"/>
1998 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001999 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002000 </conditions>
2001 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002002 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002003 <font resource="font_s" color="%text_color%"/>
2004 <actions>
2005 <action function="set">tw_password_not_match=0</action>
2006 <action function="page">backupencryption</action>
2007 </actions>
2008 </button>
2009
2010 <button style="tab">
2011 <conditions>
2012 <condition var1="tw_include_encrypted_backup" var2="1"/>
2013 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002014 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002015 </conditions>
2016 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002017 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002018 <font resource="font_s" color="%text_success_color%"/>
2019 <actions>
2020 <action function="set">tw_password_not_match=0</action>
2021 <action function="page">backupencryption</action>
2022 </actions>
2023 </button>
2024
2025 <fill color="%text_color%">
2026 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2027 </fill>
2028
2029 <text style="text_m_accent">
2030 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002031 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002032 </text>
2033
2034 <text style="text_m">
2035 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002036 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002037 </text>
2038
2039 <input>
2040 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2041 <text>%tw_backup_encrypt_display%</text>
2042 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2043 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2044 <action function="page">backupencryption2</action>
2045 </input>
2046
2047 <fill color="%accent_color%">
2048 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2049 </fill>
2050
2051 <fill color="%text_fail_color%">
2052 <condition var1="tw_password_not_match" var2="1"/>
2053 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2054 </fill>
2055
2056 <text style="text_m_fail">
2057 <condition var1="tw_password_not_match" var2="1"/>
2058 <placement x="%indent%" y="%row8a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002059 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002060 </text>
2061
2062 <button style="main_button_half_height">
2063 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002064 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002065 <actions>
2066 <action function="set">tw_encrypt_backup=0</action>
2067 <action function="set">tw_backup_password=</action>
2068 <action function="set">tw_backup_password2=</action>
2069 <action function="set">tw_backup_encrypt_display=</action>
2070 <action function="set">tw_backup_encrypt_display2=</action>
2071 <action function="page">backup</action>
2072 </actions>
2073 </button>
2074
2075 <template name="keyboardtemplate"/>
2076
2077 <action>
2078 <touch key="home"/>
2079 <action function="page">main</action>
2080 </action>
2081
2082 <action>
2083 <touch key="back"/>
2084 <action function="page">backup</action>
2085 </action>
2086 </page>
2087
2088 <page name="backupencryption2">
2089 <template name="page"/>
2090
2091 <text style="text_l">
2092 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002093 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002094 </text>
2095
2096 <text style="text_m">
2097 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002098 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002099 </text>
2100
2101 <template name="tabs_backup"/>
2102
2103 <button style="tab">
2104 <conditions>
2105 <condition var1="tw_include_encrypted_backup" var2="1"/>
2106 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002107 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002108 </conditions>
2109 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002110 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002111 <font resource="font_s" color="%text_color%"/>
2112 <actions>
2113 <action function="set">tw_password_not_match=0</action>
2114 <action function="page">backupencryption</action>
2115 </actions>
2116 </button>
2117
2118 <button style="tab">
2119 <conditions>
2120 <condition var1="tw_include_encrypted_backup" var2="1"/>
2121 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002122 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002123 </conditions>
2124 <placement x="%tab3_col3_x%" y="%row1_y%" w="%tab3_width%" h="%tab_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002125 <text>{@encryption_tab=ENCRYPTION}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002126 <font resource="font_s" color="%text_success_color%"/>
2127 <actions>
2128 <action function="set">tw_password_not_match=0</action>
2129 <action function="page">backupencryption</action>
2130 </actions>
2131 </button>
2132
2133 <fill color="%text_color%">
2134 <placement x="%tab3_col3_x%" y="%row_tab_y%" w="%tab3_width%" h="%tab_indicator_height%"/>
2135 </fill>
2136
2137 <text style="text_m_accent">
2138 <placement x="%center_x%" y="%row3a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002139 <text>{@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002140 </text>
2141
2142 <text style="text_m">
2143 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002144 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002145 </text>
2146
2147 <input>
2148 <placement x="%indent%" y="%row7_y%" w="%content_width%" h="%input_height%"/>
2149 <text>%tw_backup_encrypt_display2%</text>
2150 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2151 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2152 <action function="page">checkbackuppassword</action>
2153 </input>
2154
2155 <fill color="%accent_color%">
2156 <placement x="%indent%" y="row8_y" w="%content_width%" h="input_line_width" placement="1"/>
2157 </fill>
2158
2159 <button style="main_button_half_height">
2160 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002161 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002162 <actions>
2163 <action function="set">tw_encrypt_backup=0</action>
2164 <action function="set">tw_backup_password=</action>
2165 <action function="set">tw_backup_password2=</action>
2166 <action function="set">tw_backup_encrypt_display=</action>
2167 <action function="set">tw_backup_encrypt_display2=</action>
2168 <action function="page">backup</action>
2169 </actions>
2170 </button>
2171
2172 <template name="keyboardtemplate"/>
2173
2174 <action>
2175 <touch key="home"/>
2176 <action function="page">main</action>
2177 </action>
2178
2179 <action>
2180 <touch key="back"/>
2181 <action function="page">backup</action>
2182 </action>
2183 </page>
2184
2185 <page name="checkbackuppassword">
2186 <action>
2187 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2188 <actions>
2189 <action function="set">tw_encrypt_backup=1</action>
2190 <action function="page">backup</action>
2191 </actions>
2192 </action>
2193
2194 <action>
2195 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2196 <actions>
2197 <action function="set">tw_encrypt_backup=0</action>
2198 <action function="set">tw_password_not_match=1</action>
2199 <action function="set">tw_backup_password=</action>
2200 <action function="set">tw_backup_password2=</action>
2201 <action function="set">tw_backup_encrypt_display=</action>
2202 <action function="set">tw_backup_encrypt_display2=</action>
2203 <action function="page">backupencryption</action>
2204 </actions>
2205 </action>
2206 </page>
2207
2208 <page name="backup_run">
2209 <template name="page"/>
2210
2211 <text style="text_l">
2212 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2213 <text>%tw_operation%</text>
2214 </text>
2215
2216 <text style="text_m">
2217 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2218 <text>%tw_partition% Partition</text>
2219 </text>
2220
2221 <template name="console"/>
2222
2223 <template name="progress_bar"/>
2224
2225 <text style="text_m_accent">
2226 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002227 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002228 </text>
2229
2230 <text style="text_m">
2231 <placement x="%indent%" y="%row20_y%"/>
2232 <text>%tw_file_progress%</text>
2233 </text>
2234
2235 <text style="text_m">
2236 <placement x="%indent%" y="%row21_y%"/>
2237 <text>%tw_size_progress%</text>
2238 </text>
2239
2240 <button style="main_button_half_height">
2241 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002242 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002243 <action function="cancelbackup"/>
2244 </button>
2245
2246 <action>
2247 <action function="nandroid">backup</action>
2248 </action>
2249
2250 <action>
2251 <condition var1="tw_operation_state" var2="1"/>
2252 <condition var1="tw_cancel_backup" var2="0"/>
2253 <actions>
2254 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002255 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002256 <action function="set">tw_show_reboot=1</action>
2257 <action function="page">action_complete</action>
2258 </actions>
2259 </action>
2260
2261 <action>
2262 <condition var1="tw_operation_state" var2="1"/>
2263 <condition var1="tw_cancel_backup" var2="1"/>
2264 <actions>
2265 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002266 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002267 <action function="set">tw_show_reboot=1</action>
2268 <action function="page">action_complete</action>
2269 </actions>
2270 </action>
2271 </page>
2272
2273 <page name="restore">
2274 <template name="page"/>
2275
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002276 <action>
2277 <conditions>
2278 <condition var1="tw_is_fbe" var2="1"/>
2279 <condition var1="tw_all_users_decrypted" var2="0"/>
2280 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2281 </conditions>
2282 <actions>
2283 <action function="set">tw_multiuser_warning_destination=restore</action>
2284 <action function="page">multiuser_warning</action>
2285 </actions>
2286 </action>
2287
z31s1g28f0a922015-11-07 18:50:22 +01002288 <text style="text_l">
2289 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002290 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002291 </text>
2292
2293 <text style="text_m">
2294 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002295 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002296 </text>
2297
2298 <template name="sort_options"/>
2299
2300 <fileselector>
2301 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002302 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002303 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002304 <path name="tw_backups_folder"/>
2305 <data name="tw_restore" default=""/>
2306 <selection name="tw_restore_name"/>
2307 </fileselector>
2308
2309 <button style="main_button_half_height">
2310 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002311 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002312 <actions>
2313 <action function="set">tw_back=restore</action>
2314 <action function="overlay">select_storage</action>
2315 </actions>
2316 </button>
2317
2318 <action>
2319 <condition var1="tw_restore" op="modified"/>
2320 <actions>
2321 <action function="readBackup"/>
2322 <action function="page">restore_read</action>
2323 </actions>
2324 </action>
2325
2326 <action>
2327 <touch key="home"/>
2328 <action function="page">main</action>
2329 </action>
2330
2331 <action>
2332 <touch key="back"/>
2333 <action function="page">main</action>
2334 </action>
2335 </page>
2336
2337 <page name="restore_read">
2338 <action>
2339 <condition var1="tw_restore_encrypted" var2="1"/>
2340 <actions>
2341 <action function="set">tw_password_fail=0</action>
2342 <action function="page">restore_decrypt</action>
2343 </actions>
2344 </action>
2345
2346 <action>
2347 <condition var1="tw_restore_encrypted" var2="0"/>
2348 <actions>
2349 <action function="page">restore_select</action>
2350 </actions>
2351 </action>
2352 </page>
2353
2354 <page name="restore_decrypt">
2355 <template name="page"/>
2356
2357 <text style="text_l">
2358 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002359 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002360 </text>
2361
2362 <text style="text_m">
2363 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002364 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002365 </text>
2366
2367 <text style="text_m_accent">
2368 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002369 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002370 </text>
2371
2372 <input>
2373 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2374 <text>%tw_restore_display%</text>
2375 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2376 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2377 <action function="page">try_restore_decrypt</action>
2378 </input>
2379
2380 <fill color="%accent_color%">
2381 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2382 </fill>
2383
2384 <fill color="%text_fail_color%">
2385 <condition var1="tw_password_fail" var2="1"/>
2386 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
2387 </fill>
2388
2389 <text style="text_m_fail">
2390 <condition var1="tw_password_fail" var2="1"/>
2391 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002392 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002393 </text>
2394
2395 <button style="main_button_half_height">
2396 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002397 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002398 <actions>
2399 <action function="set">tw_page_done=1</action>
2400 <action function="page">restore</action>
2401 </actions>
2402 </button>
2403
2404 <button style="main_button_half_height">
2405 <placement x="%center_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002406 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002407 <actions>
2408 <action function="set">tw_back=restore</action>
2409 <action function="set">tw_action=cmd</action>
2410 <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 -05002411 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2412 <action function="set">tw_text2=%tw_restore_name%</action>
2413 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2414 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2415 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2416 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002417 <action function="page">confirm_action</action>
2418 </actions>
2419 </button>
2420
2421 <template name="keyboardtemplate"/>
2422
2423 <action>
2424 <touch key="home"/>
2425 <action function="page">main</action>
2426 </action>
2427
2428 <action>
2429 <touch key="back"/>
2430 <action function="page">restore</action>
2431 </action>
2432 </page>
2433
2434 <page name="try_restore_decrypt">
2435 <template name="page"/>
2436
2437 <text style="text_l">
2438 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002439 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002440 </text>
2441
2442 <text style="text_m">
2443 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002444 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002445 </text>
2446
2447 <template name="console"/>
2448
2449 <template name="progress_bar"/>
2450
2451 <action>
2452 <action function="decrypt_backup"/>
2453 </action>
2454
2455 <action>
2456 <conditions>
2457 <condition var1="tw_operation_state" var2="1"/>
2458 <condition var1="tw_operation_status" op="!=" var2="0"/>
2459 </conditions>
2460 <actions>
2461 <action function="set">tw_password_fail=1</action>
2462 <action function="page">restore_decrypt</action>
2463 </actions>
2464 </action>
2465
2466 <action>
2467 <conditions>
2468 <condition var1="tw_operation_state" var2="1"/>
2469 <condition var1="tw_operation_status" op="=" var2="0"/>
2470 </conditions>
2471 <actions>
2472 <action function="set">tw_page_done=1</action>
2473 <action function="page">restore_select</action>
2474 </actions>
2475 </action>
2476 </page>
2477
2478 <page name="restore_select">
2479 <template name="page"/>
2480
2481 <text style="text_l">
2482 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002483 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002484 </text>
2485
2486 <text style="text_m">
2487 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002488 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002489 </text>
2490
2491 <text style="text_m_accent">
2492 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002493 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002494 </text>
2495
2496 <text style="text_m">
2497 <placement x="%indent%" y="%row3_y%"/>
2498 <text>%tw_restore_name%</text>
2499 </text>
2500
2501 <fill color="%fileselector_linecolor%">
2502 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width"/>
2503 </fill>
2504
2505 <button>
2506 <placement x="indent" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2507 <fill color="%transparent%"/>
2508 <actions>
2509 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2510 <action function="set">tw_fileexists=0</action>
2511 <action function="page">renamebackup</action>
2512 </actions>
2513 </button>
2514
2515 <partitionlist>
2516 <placement x="%indent%" y="%row4a_y%" w="%content_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002517 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002518 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2519 <listtype name="restore"/>
2520 </partitionlist>
2521
2522 <checkbox>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002523 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002524 <placement x="%indent%" y="%row17_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002525 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2526 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002527 </checkbox>
2528
2529 <button style="main_button_half_height">
2530 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002531 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002532 <actions>
2533 <action function="set">tw_back=restore</action>
2534 <action function="set">tw_action=cmd</action>
2535 <action function="set">tw_action_param=cd %tw_backups_folder% &amp;&amp; rm -rf "%tw_restore_name%"</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002537 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002538 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2539 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2540 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2541 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002542 <action function="page">confirm_action</action>
2543 </actions>
2544 </button>
2545
2546 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002547 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002548 <action function="page">restore_run</action>
2549 </slider>
2550
2551 <action>
2552 <touch key="home"/>
2553 <action function="page">main</action>
2554 </action>
2555
2556 <action>
2557 <touch key="back"/>
2558 <action function="page">restore</action>
2559 </action>
2560 </page>
2561
2562 <page name="renamebackup">
2563 <template name="page"/>
2564
2565 <text style="text_l">
2566 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002567 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002568 </text>
2569
2570 <text style="text_m">
2571 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002572 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002573 </text>
2574
2575 <text style="text_m_accent">
2576 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002577 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002578 </text>
2579
2580 <input>
2581 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2582 <text>%tw_backup_rename%</text>
2583 <data name="tw_backup_rename"/>
2584 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2585 <actions>
2586 <action function="set">tw_back=restore</action>
2587 <action function="set">tw_action=cmd</action>
2588 <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 -05002589 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2590 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2591 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2592 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2593 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002594 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2595 <action function="set">tw_existpage=renamebackup</action>
2596 <action function="set">tw_notexistpage=confirm_action</action>
2597 <action function="page">filecheck</action>
2598 </actions>
2599 </input>
2600
2601 <fill color="%accent_color%">
2602 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2603 </fill>
2604
2605 <fill color="%text_fail_color%">
2606 <condition var1="tw_fileexists" var2="1"/>
2607 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2608 </fill>
2609
2610 <text style="text_m_fail">
2611 <condition var1="tw_fileexists" var2="1"/>
2612 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002613 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002614 </text>
2615
2616 <button style="main_button_half_height">
2617 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002618 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002619 <action function="page">restore_select</action>
2620 </button>
2621
2622 <template name="keyboardtemplate"/>
2623
2624 <action>
2625 <touch key="home"/>
2626 <action function="page">main</action>
2627 </action>
2628
2629 <action>
2630 <touch key="back"/>
2631 <action function="page">restore_select</action>
2632 </action>
2633 </page>
2634
2635 <page name="restore_run">
2636 <template name="page"/>
2637
2638 <text style="text_l">
2639 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002640 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002641 </text>
2642
2643 <text style="text_m">
2644 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2645 <text>%tw_operation% %tw_partition%</text>
2646 </text>
2647
2648 <template name="console"/>
2649
2650 <template name="progress_bar"/>
2651
2652 <text style="text_m_accent">
2653 <placement x="%indent%" y="%row19_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002654 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002655 </text>
2656
2657 <text style="text_m">
2658 <placement x="%indent%" y="%row20_y%"/>
2659 <text>%tw_size_progress%</text>
2660 </text>
2661
2662 <action>
2663 <condition var1="tw_operation_state" var2="1"/>
2664 <actions>
2665 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002666 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002667 <action function="set">tw_show_reboot=1</action>
2668 <action function="page">action_complete</action>
2669 </actions>
2670 </action>
2671
2672 <action>
2673 <action function="nandroid">restore</action>
2674 </action>
2675 </page>
2676
2677 <page name="mount">
2678 <template name="page"/>
2679
2680 <text style="text_l">
2681 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002682 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002683 </text>
2684
2685 <text style="text_m">
2686 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002687 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002688 </text>
2689
2690 <partitionlist>
2691 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002692 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002693 <listtype name="mount"/>
2694 </partitionlist>
2695
2696 <button style="checkbox">
2697 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
2698 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002699 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002700 <image resource="checkbox_false"/>
2701 <action function="mountsystemtoggle">1</action>
2702 </button>
2703
2704 <button style="checkbox">
2705 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2706 <placement x="%indent%" y="%row15a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002707 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002708 <image resource="checkbox_true"/>
2709 <actions>
2710 <action function="set">tw_lifetime_writes=2</action>
2711 <action function="page">system_readonly_check</action>
2712 </actions>
2713 </button>
2714
2715 <button style="main_button_half_height">
2716 <condition var1="tw_has_usb_storage" var2="1"/>
2717 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002718 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002719 <action function="page">usb_mount</action>
2720 </button>
2721
2722 <button style="main_button_half_height">
2723 <conditions>
2724 <condition var1="tw_is_encrypted" var2="1"/>
2725 <condition var1="tw_is_decrypted" var2="0"/>
2726 </conditions>
2727 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002728 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson5a79f672019-04-28 00:10:07 -04002729 <action function="set">tw_crypto_user_id=0</action>
2730 <action function="set">tw_crypto_password=</action>
2731 <action function="set">tw_password_fail=0</action>
2732 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002733 <action function="page">decrypt</action>
2734 </button>
2735
2736 <button style="main_button_half_height">
2737 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002738 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002739 <actions>
2740 <action function="set">tw_back=mount</action>
2741 <action function="overlay">select_storage</action>
2742 </actions>
2743 </button>
2744
2745 <button style="main_button_half_height">
2746 <conditions>
2747 <condition var1="tw_has_mtp" var2="1"/>
2748 <condition var1="tw_mtp_enabled" var2="0"/>
2749 </conditions>
2750 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002751 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002752 <action function="startmtp"/>
2753 </button>
2754
2755 <button style="main_button_half_height">
2756 <conditions>
2757 <condition var1="tw_has_mtp" var2="1"/>
2758 <condition var1="tw_mtp_enabled" var2="1"/>
2759 </conditions>
2760 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002761 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002762 <action function="stopmtp"/>
2763 </button>
2764
2765 <action>
2766 <touch key="home"/>
2767 <action function="page">main</action>
2768 </action>
2769
2770 <action>
2771 <touch key="back"/>
2772 <action function="page">main</action>
2773 </action>
2774 </page>
2775
2776 <page name="usb_mount">
2777 <template name="page"/>
2778
2779 <text style="text_l">
2780 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002781 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002782 </text>
2783
2784 <text style="text_m">
2785 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002786 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002787 </text>
2788
2789 <text style="text_m_accent">
2790 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002791 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002792 </text>
2793
2794 <text style="text_m">
2795 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002796 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002797 </text>
2798
2799 <text style="text_m">
2800 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002801 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002802 </text>
2803
2804 <button style="main_button_half_height">
2805 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002806 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002807 <action function="page">usb_umount</action>
2808 </button>
2809
2810 <action>
2811 <action function="mount">usb</action>
2812 <action function="set">tw_busy=1</action>
2813 </action>
2814 </page>
2815
2816 <page name="usb_umount">
2817 <action>
2818 <action function="unmount">usb</action>
2819 </action>
2820
2821 <action>
2822 <action function="page">mount</action>
2823 <action function="set">tw_busy=0</action>
2824 </action>
2825 </page>
2826
2827 <page name="system_readonly_check">
2828 <action>
2829 <action function="checkpartitionlifetimewrites">/system</action>
2830 </action>
2831
2832 <action>
2833 <condition var1="tw_lifetime_writes" var2="1"/>
2834 <actions>
2835 <action function="mountsystemtoggle">0</action>
2836 <action function="page">mount</action>
2837 </actions>
2838 </action>
2839
2840 <action>
2841 <condition var1="tw_lifetime_writes" var2="0"/>
2842 <actions>
2843 <action function="set">tw_back=mount</action>
2844 <action function="page">system_readonly</action>
2845 </actions>
2846 </action>
2847 </page>
2848
2849 <page name="reboot">
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06002850 <action>
2851 <action function="checkforapp"></action>
2852 <action function="page">reboot2</action>
2853 </action>
2854 </page>
2855
2856 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002857 <template name="page"/>
2858
2859 <text style="text_l">
2860 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002861 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002862 </text>
2863
bigbiff97829df2020-12-20 12:26:15 -05002864 <listbox style="advanced_listbox">
2865 <placement x="%indent%" y="%row2a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01002866
bigbiff97829df2020-12-20 12:26:15 -05002867 <listitem name="{@rb_system_btn=System}">
2868 <condition var1="tw_reboot_system" var2="1"/>
2869 <actions>
2870 <action function="set">tw_back=reboot</action>
2871 <action function="page">reboot_system_routine</action>
2872 </actions>
2873 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002874
bigbiff97829df2020-12-20 12:26:15 -05002875 <listitem name="{@rb_poweroff_btn=Power Off}">
2876 <condition var1="tw_reboot_poweroff" var2="1"/>
2877 <actions>
2878 <action function="set">tw_back=reboot</action>
2879 <action function="set">tw_action=reboot</action>
2880 <action function="set">tw_action_param=poweroff</action>
2881 <action function="set">tw_reboot_param=poweroff</action>
2882 <action function="set">tw_has_action2=0</action>
2883 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2884 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2885 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2886 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2887 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2888 <action function="page">rebootcheck</action>
2889 </actions>
2890 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002891
bigbiff97829df2020-12-20 12:26:15 -05002892 <listitem name="{@rb_recovery_btn=Recovery}">
2893 <condition var1="tw_reboot_recovery" var2="1"/>
2894 <actions>
2895 <action function="set">tw_back=reboot</action>
2896 <action function="set">tw_action=reboot</action>
2897 <action function="set">tw_action_param=recovery</action>
2898 <action function="set">tw_reboot_param=recovery</action>
2899 <action function="set">tw_has_action2=0</action>
2900 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2901 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2902 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2903 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2904 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2905 <action function="page">rebootcheck</action>
2906 </actions>
2907 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002908
bigbiff97829df2020-12-20 12:26:15 -05002909 <listitem name="{@rb_bootloader_btn=Bootloader}">
2910 <condition var1="tw_reboot_bootloader" var2="1"/>
2911 <actions>
2912 <action function="set">tw_back=reboot</action>
2913 <action function="set">tw_action=reboot</action>
2914 <action function="set">tw_action_param=bootloader</action>
2915 <action function="set">tw_reboot_param=bootloader</action>
2916 <action function="set">tw_has_action2=0</action>
2917 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2918 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2919 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2920 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2921 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2922 <action function="page">rebootcheck</action>
2923 </actions>
2924 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01002925
bigbiff97829df2020-12-20 12:26:15 -05002926 <listitem name="{@rb_download_btn=Download}">
2927 <condition var1="tw_download_mode" var2="1"/>
2928 <actions>
2929 <action function="set">tw_back=reboot</action>
2930 <action function="set">tw_action=reboot</action>
2931 <action function="set">tw_action_param=download</action>
2932 <action function="set">tw_reboot_param=download</action>
2933 <action function="set">tw_has_action2=0</action>
2934 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2935 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2936 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2937 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2938 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2939 <action function="page">rebootcheck</action>
2940 </actions>
2941 </listitem>
2942
2943 <listitem name="{@rb_edl_btn=Edl}">
2944 <condition var1="tw_edl_mode" var2="1"/>
2945 <actions>
2946 <action function="set">tw_back=reboot</action>
2947 <action function="set">tw_action=reboot</action>
2948 <action function="set">tw_action_param=edl</action>
2949 <action function="set">tw_reboot_param=edl</action>
2950 <action function="set">tw_has_action2=0</action>
2951 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2952 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2953 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2954 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2955 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2956 <action function="page">rebootcheck</action>
2957 </actions>
2958 </button>
2959 </listbox>
mauronofrioe9a49ef2018-10-03 13:38:16 +02002960
Ethan Yonker1b190162016-12-05 15:25:19 -06002961 <text style="text_m">
2962 <condition var1="tw_has_boot_slots" var2="1"/>
bigbiff97829df2020-12-20 12:26:15 -05002963 <placement x="%center_x%" y="%row15_y%" placement="5"/>
Ethan Yonker1b190162016-12-05 15:25:19 -06002964 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2965 </text>
2966
bigbiff97829df2020-12-20 12:26:15 -05002967 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002968 <condition var1="tw_has_boot_slots" var2="1"/>
2969 <placement x="%indent%" y="%row19_y%"/>
2970 <text>{@boot_slot_a=Slot A}</text>
2971 <actions>
2972 <action function="set">tw_back=reboot</action>
2973 <action function="set">tw_action=setbootslot</action>
2974 <action function="set">tw_action_param=A</action>
2975 <action function="set">tw_has_action2=0</action>
2976 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2977 <action function="set">tw_action_text2=</action>
2978 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2979 <action function="page">action_page</action>
2980 </actions>
2981 </button>
2982
bigbiff97829df2020-12-20 12:26:15 -05002983 <button style="main_button_half_height">
Ethan Yonker1b190162016-12-05 15:25:19 -06002984 <condition var1="tw_has_boot_slots" var2="1"/>
2985 <placement x="%center_x%" y="%row19_y%"/>
2986 <text>{@boot_slot_b=Slot B}</text>
2987 <actions>
2988 <action function="set">tw_back=reboot</action>
2989 <action function="set">tw_action=setbootslot</action>
2990 <action function="set">tw_action_param=B</action>
2991 <action function="set">tw_has_action2=0</action>
2992 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2993 <action function="set">tw_action_text2=</action>
2994 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2995 <action function="page">action_page</action>
2996 </actions>
2997 </button>
2998
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06002999 <button style="main_button_half_height">
3000 <condition var1="tw_app_install_status" var2="1"/>
3001 <placement x="%indent%" y="%row22_y%"/>
3002 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
3003 <actions>
3004 <action function="set">tw_back=reboot</action>
3005 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
3006 <action function="page">installapp</action>
3007 </actions>
3008 </button>
3009
z31s1g28f0a922015-11-07 18:50:22 +01003010 <action>
3011 <touch key="home"/>
3012 <action function="page">main</action>
3013 </action>
3014
3015 <action>
3016 <touch key="back"/>
3017 <action function="page">main</action>
3018 </action>
3019 </page>
3020
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003021 <page name="installapp">
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003022 <template name="page"/>
3023
3024 <text style="text_l">
3025 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003026 <text>%tw_appinstall_title%</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003027 </text>
3028
3029 <text style="text_m">
3030 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003031 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003032 </text>
3033
3034 <text style="text_m_accent">
3035 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3036 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3037 </text>
3038
3039 <text style="text_m_accent">
3040 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3041 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3042 </text>
3043
3044 <checkbox>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003045 <condition var1="tw_mount_system_ro" var2="0"/>
3046 <placement x="%indent%" y="%row7_y%"/>
3047 <text>{@reboot_install_app_system=Install as a System App}</text>
3048 <data variable="tw_app_install_system"/>
3049 </checkbox>
3050
3051 <button style="main_button_half_height">
3052 <placement x="%indent%" y="%row16_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003053 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003054 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003055 </button>
3056
3057 <slider>
3058 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3059 <actions>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003060 <action function="set">tw_action=installapp</action>
3061 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3062 <action function="set">tw_action_text2=</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003063 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003064 <action function="page">action_page</action>
3065 </actions>
3066 </slider>
3067
3068 <action>
3069 <touch key="home"/>
3070 <actions>
3071 <action function="set">tw_app_install_status=0</action>
3072 <action function="page">main</action>
3073 </actions>
3074 </action>
3075
3076 <action>
3077 <touch key="back"/>
3078 <actions>
3079 <action function="set">tw_app_install_status=0</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003080 <action function="page">%tw_back%</action>
Ethan Yonkerb4bff5e2016-12-16 07:47:58 -06003081 </actions>
3082 </action>
3083 </page>
3084
z31s1g28f0a922015-11-07 18:50:22 +01003085 <page name="system_readonly">
3086 <template name="page"/>
3087
3088 <text style="text_l">
3089 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003090 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003091 </text>
3092
3093 <text style="text_m_accent">
3094 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003095 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003096 </text>
3097
3098 <text style="text_m">
3099 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003100 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003101 </text>
3102
3103 <text style="text_m">
3104 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003105 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003106 </text>
3107
3108 <text style="text_m">
3109 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003110 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003111 </text>
3112
3113 <text style="text_m">
3114 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003115 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003116 </text>
3117
3118 <text style="text_m_fail">
3119 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003120 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003121 </text>
3122
3123 <text style="text_m_fail">
3124 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003125 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003126 </text>
3127
3128 <checkbox>
3129 <condition var1="tw_is_encrypted" var2="0"/>
3130 <placement x="%indent%" y="%row15_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003131 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003132 <data variable="tw_never_show_system_ro_page"/>
3133 </checkbox>
3134
3135 <button style="main_button_half_height">
3136 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003137 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003138 <actions>
3139 <action function="mountsystemtoggle">1</action>
3140 <action function="set">tw_page_done=1</action>
3141 <action function="page">%tw_back%</action>
3142 </actions>
3143 </button>
3144
z31s1g608d7ff2016-01-18 19:47:25 +01003145 <button style="main_button_half_height">
3146 <placement x="%center_x%" y="%row18a_y%"/>
3147 <text>{@sel_lang_btn=Select Language}</text>
3148 <action function="overlay">select_language</action>
3149 </button>
3150
z31s1g28f0a922015-11-07 18:50:22 +01003151 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003152 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003153 <actions>
3154 <action function="mountsystemtoggle">0</action>
3155 <action function="set">tw_page_done=1</action>
3156 <action function="page">%tw_back%</action>
3157 </actions>
3158 </slider>
3159 </page>
3160
3161 <page name="settings">
3162 <template name="page"/>
3163
3164 <text style="text_l">
3165 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003166 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003167 </text>
3168
3169 <text style="text_m">
3170 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003171 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003172 </text>
3173
3174 <template name="tabs_settings"/>
3175
3176 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003177 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003178 </fill>
3179
3180 <listbox style="scrolllist">
3181 <placement x="%indent%" y="%row3a_y%" w="%content_width%" h="%listbox_settings_height%"/>
3182 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003183 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003184 <data variable="tw_signed_zip_verify"/>
3185 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003186 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3187 <data variable="tw_install_reboot"/>
3188 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003189 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003190 <data variable="tw_rm_rf"/>
3191 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003192 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3193 <data variable="tw_disable_free_space"/>
3194 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003195 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3196 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003197 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003198 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3199 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003200 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003201 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003202 <data variable="tw_military_time"/>
3203 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003204 <listitem name="{@rev_navbar_chk=Reversed navbar layout}">
z31s1g28f0a922015-11-07 18:50:22 +01003205 <data variable="tw_samsung_navbar"/>
3206 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003207 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003208 <data variable="tw_simulate_actions"/>
3209 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003210 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003211 <condition var1="tw_simulate_actions" var2="1"/>
3212 <data variable="tw_simulate_fail"/>
3213 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003214 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3215 <condition var1="tw_no_sha2" var2="0"/>
3216 <data variable="tw_use_sha2"/>
3217 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003218 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3219 <data variable="tw_unmount_system"/>
3220 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003221 </listbox>
3222
3223 <button style="main_button_half_height">
3224 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003225 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g56a7a992016-01-23 17:06:40 +01003226 <actions>
3227 <action function="set">tw_samsung_navbar=0</action>
3228 <action function="set">tw_tab_icons=0</action>
3229 <action function="restoredefaultsettings"/>
3230 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003231 </button>
3232
3233 <action>
3234 <touch key="home"/>
3235 <action function="page">main</action>
3236 </action>
3237
3238 <action>
3239 <touch key="back"/>
3240 <action function="page">main</action>
3241 </action>
3242 </page>
3243
3244 <page name="settings_timezone">
3245 <template name="page"/>
3246
3247 <text style="text_l">
3248 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003249 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003250 </text>
3251
3252 <text style="text_m">
3253 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003254 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003255 </text>
3256
3257 <template name="tabs_settings"/>
3258
3259 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003260 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003261 </fill>
3262
3263 <listbox>
3264 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003265 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003266 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003267 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3268 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3269 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3270 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3271 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3272 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3273 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3274 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3275 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3276 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3277 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3278 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3279 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3280 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3281 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3282 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3283 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3284 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3285 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3286 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3287 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3288 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3289 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3290 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003291 </listbox>
3292
3293 <text style="text_m_accent">
3294 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003295 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003296 </text>
3297
3298 <button style="button_quarter_width">
3299 <placement x="%indent%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003300 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003301 <action function="set">tw_time_zone_guioffset=0</action>
3302 </button>
3303
3304 <button style="button_quarter_width">
3305 <placement x="%btn4_col2_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003306 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003307 <action function="set">tw_time_zone_guioffset=15</action>
3308 </button>
3309
3310 <button style="button_quarter_width">
3311 <placement x="%btn4_col3_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003312 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003313 <action function="set">tw_time_zone_guioffset=30</action>
3314 </button>
3315
3316 <button style="button_quarter_width">
3317 <placement x="%btn4_col4_x%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003318 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003319 <action function="set">tw_time_zone_guioffset=45</action>
3320 </button>
3321
3322 <checkbox>
3323 <placement x="%indent%" y="%row18a_y%"/>
3324 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003325 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 <data variable="tw_time_zone_guidst"/>
3327 <image checked="checkbox_true" unchecked="checkbox_false"/>
3328 </checkbox>
3329
3330 <text color="%text_color%">
3331 <font resource="font_m"/>
3332 <placement x="%indent%" y="%row20_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003333 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003334 </text>
3335
3336 <button>
3337 <highlight color="%highlight_color%"/>
3338 <placement x="%center_x%" y="%row21a_y%"/>
3339 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003340 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003341 <image resource="main_button_half_height"/>
3342 <action function="setguitimezone"/>
3343 </button>
3344
3345 <action>
3346 <touch key="home"/>
3347 <action function="page">main</action>
3348 </action>
3349
3350 <action>
3351 <touch key="back"/>
3352 <action function="page">main</action>
3353 </action>
3354 </page>
3355
3356 <page name="settings_screen">
3357 <template name="page"/>
3358
3359 <text style="text_l">
3360 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003361 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003362 </text>
3363
3364 <text style="text_m">
3365 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003366 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003367 </text>
3368
3369 <template name="tabs_settings"/>
3370
3371 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003372 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003373 </fill>
3374
3375 <button>
3376 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3377 <font resource="font_m" color="%text_color%"/>
3378 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3379 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003380 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003381 <image resource="checkbox_false"/>
3382 <action function="set">tw_screen_timeout_secs=60</action>
3383 </button>
3384
3385 <button>
3386 <placement x="%indent%" y="%row3a_y%" textplacement="6"/>
3387 <font resource="font_m" color="%text_color%"/>
3388 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3389 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003390 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003391 <image resource="checkbox_true"/>
3392 <action function="set">tw_screen_timeout_secs=0</action>
3393 </button>
3394
3395 <slidervalue>
3396 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3397 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3398 <placement x="indent" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003399 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003400 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3401 </slidervalue>
3402
3403 <slidervalue>
3404 <condition var1="tw_has_brightnesss_file" var2="1"/>
3405 <placement x="indent" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003406 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003407 <data variable="tw_brightness_pct" min="10" max="100"/>
3408 <actions>
3409 <action function="set">tw_brightness=%tw_brightness_max%</action>
3410 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3411 <action function="compute">tw_brightness/100</action>
3412 <action function="setbrightness">%tw_brightness%</action>
3413 </actions>
3414 </slidervalue>
3415
3416 <action>
3417 <touch key="home"/>
3418 <action function="page">main</action>
3419 </action>
3420
3421 <action>
3422 <touch key="back"/>
3423 <action function="page">main</action>
3424 </action>
3425 </page>
3426
3427 <page name="settings_vibration">
3428 <template name="page"/>
3429
3430 <text style="text_l">
3431 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003432 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003433 </text>
3434
3435 <text style="text_m">
3436 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003437 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003438 </text>
3439
3440 <template name="tabs_settings"/>
3441
3442 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003443 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003444 </fill>
3445
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003446 <text style="text_m">
3447 <condition var1="tw_disable_haptics" var2="1"/>
3448 <placement x="%indent%" y="%row4_y%"/>
3449 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3450 </text>
3451
z31s1g28f0a922015-11-07 18:50:22 +01003452 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003453 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003454 <placement x="indent" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003455 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003456 <data variable="tw_button_vibrate" min="0" max="300"/>
3457 </slidervalue>
3458
3459 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003460 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003461 <placement x="indent" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003462 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003463 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3464 </slidervalue>
3465
3466 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003467 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003468 <placement x="indent" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003470 <data variable="tw_action_vibrate" min="0" max="500"/>
3471 </slidervalue>
3472
3473 <action>
3474 <touch key="home"/>
3475 <action function="page">main</action>
3476 </action>
3477
3478 <action>
3479 <touch key="back"/>
3480 <action function="page">main</action>
3481 </action>
3482 </page>
3483
Ethan Yonker74db1572015-10-28 12:44:49 -05003484 <page name="settings_language">
3485 <template name="page"/>
3486
3487 <text style="text_l">
3488 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3489 <text>{@settings_hdr=Settings}</text>
3490 </text>
3491
3492 <text style="text_m">
3493 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3494 <text>{@language_hdr=Language - %tw_language_display%}</text>
3495 </text>
3496
3497 <template name="tabs_settings"/>
3498
3499 <fill color="%text_color%">
3500 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3501 </fill>
3502
3503 <listbox>
3504 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_settings_height%"/>
3505 <text>{@select_language=Select Language:}</text>
3506 <icon selected="radio_true" unselected="radio_false" />
3507 <data name="tw_language" />
3508 </listbox>
3509
3510 <button style="main_button_half_height">
3511 <placement x="%center_x%" y="%row21a_y%"/>
3512 <text>{@set_language_btn=Set Language}</text>
3513 <action function="setlanguage"></action>
3514 </button>
3515
3516 <action>
3517 <touch key="home" />
3518 <action function="page">main</action>
3519 </action>
3520
3521 <action>
3522 <touch key="back" />
3523 <action function="page">settings</action>
3524 </action>
3525 </page>
3526
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003527 <page name="copylog">
3528 <template name="page"/>
3529
3530 <text style="text_l">
3531 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3532 <text>{@copying_log=Copy Logs to SD Card}</text>
3533 </text>
3534
3535 <checkbox>
3536 <placement x="%indent%" y="%row4_y%"/>
3537 <text>{@include_kernel_log=Include Kernel Log}</text>
3538 <data variable="tw_include_kernel_log" value="1"/>
3539 </checkbox>
3540
3541 <slider>
3542 <text>{@copying_log=Copy Logs to SD Card}</text>
3543 <actions>
3544 <action function="set">tw_back=advanced</action>
3545 <action function="set">tw_action=copylog</action>
Matt Mower32676622017-01-18 18:56:13 -06003546 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3547 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003548 <action function="page">action_page</action>
3549 </actions>
3550 </slider>
3551
3552 <action>
3553 <touch key="home"/>
3554 <action function="page">main</action>
3555 </action>
3556
3557 <action>
3558 <touch key="back"/>
3559 <actions>
3560 <action function="page">advanced</action>
3561 </actions>
3562 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003563 </page>
3564
z31s1g28f0a922015-11-07 18:50:22 +01003565 <page name="advanced">
3566 <template name="page"/>
3567
3568 <text style="text_l">
3569 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003570 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003571 </text>
3572
3573 <button style="main_button">
3574 <placement x="%indent%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003575 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003576 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003577 </button>
3578
3579 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06003580 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01003581 <placement x="%center_x%" y="%row2a_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003582 <text>{@adb_sideload_btn=ADB Sideload}</text>
3583 <action function="page">sideload</action>
z31s1g28f0a922015-11-07 18:50:22 +01003584 </button>
3585
3586 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003587 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003588 <text>{@terminal_btn=Terminal}</text>
3589 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003590 </button>
3591
3592 <button style="main_button">
3593 <placement x="%center_x%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003594 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003595 <action function="page">filemanagerlist</action>
3596 </button>
3597
Ethan Yonker64e0a652018-07-25 09:52:17 -05003598 <listbox style="advanced_listbox">
3599 <placement x="%indent%" y="%row13a_y%" w="%content_width%" h="%listbox_advanced_height%"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003600 <listitem name="{@decrypt_users=Decrypt Users}">
3601 <conditions>
3602 <condition var1="tw_is_fbe" var2="1"/>
3603 <condition var1="tw_all_users_decrypted" var2="0"/>
3604 </conditions>
3605 <actions>
3606 <action function="set">tw_crypto_user_id=</action>
3607 <action function="page">decrypt_users</action>
3608 </actions>
3609 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003610 <listitem name="{@reload_theme_btn=Reload Theme}">
3611 <action function="reload"/>
3612 </listitem>
3613 <listitem name="{@part_sd_btn=Partition SD Card}">
3614 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3615 <actions>
3616 <action function="set">partitionlisterror=0</action>
3617 <action function="page">partsdcardsel</action>
3618 </actions>
3619 </listitem>
3620 <listitem name="{@fix_context_btn=Fix Contexts}">
3621 <condition var1="tw_has_data_media" var2="1"/>
3622 <action function="page">fixcontexts</action>
3623 </listitem>
3624 <listitem name="{@dumlock_btn=HTC Dumlock}">
3625 <condition var1="tw_show_dumlock" var2="1"/>
3626 <action function="page">htcdumlock</action>
3627 </listitem>
3628 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3629 <condition var1="tw_has_injecttwrp" var2="1"/>
3630 <actions>
3631 <action function="set">tw_back=advanced</action>
3632 <action function="set">tw_action=reinjecttwrp</action>
3633 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3634 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3635 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3636 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3637 <action function="page">confirm_action</action>
3638 </actions>
3639 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003640 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3641 <conditions>
3642 <condition var1="tw_has_boot_slots" var2="1"/>
3643 <condition var1="tw_has_repack_tools" var2="1"/>
3644 </conditions>
3645 <actions>
3646 <action function="set">tw_repack_kernel=0</action>
3647 <action function="page">repackselect</action>
3648 </actions>
3649 </listitem>
3650 <listitem name="{@install_kernel=Install Kernel}">
3651 <conditions>
3652 <condition var1="tw_has_boot_slots" var2="1"/>
3653 <condition var1="tw_has_repack_tools" var2="1"/>
3654 </conditions>
3655 <actions>
3656 <action function="set">tw_repack_kernel=1</action>
3657 <action function="page">repackselect</action>
3658 </actions>
3659 </listitem>
3660 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3661 <conditions>
3662 <condition var1="tw_has_boot_slots" var2="1"/>
3663 <condition var1="tw_has_repack_tools" var2="1"/>
3664 </conditions>
3665 <actions>
3666 <action function="set">tw_back=advanced</action>
3667 <action function="set">tw_action=fixabrecoverybootloop</action>
3668 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3669 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3670 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3671 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3672 <action function="page">confirm_action</action>
3673 </actions>
3674 </listitem>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003675 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3676 <condition var1="tw_app_install_status" var2="1"/>
3677 <actions>
3678 <action function="set">tw_back=advanced</action>
3679 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3680 <action function="page">installapp</action>
3681 </actions>
3682 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003683 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3684 <condition var1="tw_app_installed_in_system" var2="1"/>
3685 <actions>
3686 <action function="set">tw_back=advanced</action>
3687 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3688 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3689 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3690 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3691 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3692 <action function="page">confirm_action</action>
3693 </actions>
3694 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003695 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003696
3697 <action>
3698 <touch key="home"/>
3699 <action function="page">main</action>
3700 </action>
3701
3702 <action>
3703 <touch key="back"/>
3704 <action function="page">main</action>
3705 </action>
3706 </page>
3707
Ethan Yonker483e9f42016-01-11 22:21:18 -06003708 <page name="partsdcardsel">
3709 <template name="page"/>
3710
3711 <text style="text_l">
3712 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3713 <text>{@advanced_hdr=Advanced}</text>
3714 </text>
3715
3716 <text style="text_m">
3717 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3718 <text>{@part_sd_hdr=Partition SD Card}</text>
3719 </text>
3720
z31s1g782e1c92016-01-30 16:50:09 +01003721 <partitionlist>
3722 <placement x="%indent%" y="%row1a_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003723 <text>{@sel_storage_list=Select Storage}</text>
3724 <data name="tw_storage_path"/>
3725 <listtype name="storage"/>
3726 </partitionlist>
3727
3728 <text style="text_m_fail">
3729 <condition var1="partitionlisterror" var2="1"/>
z31s1g782e1c92016-01-30 16:50:09 +01003730 <placement x="%center_x%" y="%row20_y%" placement="5"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003731 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3732 </text>
3733
z31s1g782e1c92016-01-30 16:50:09 +01003734 <button style="main_button_half_height">
3735 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003736 <text>{@ok_btn=OK}</text>
3737 <actions>
3738 <action function="getpartitiondetails">tw_storage_path</action>
3739 <action function="page">partsdcardcheck</action>
3740 </actions>
3741 </button>
3742
3743 <action>
3744 <touch key="home"/>
3745 <action function="page">main</action>
3746 </action>
3747
3748 <action>
3749 <touch key="back"/>
3750 <action function="page">advanced</action>
3751 </action>
3752 </page>
3753
3754 <page name="partsdcardcheck">
3755 <action>
3756 <condition var1="tw_partition_removable" op="=" var2="1"/>
3757 <actions>
3758 <action function="set">partitionlisterror=0</action>
3759 <action function="page">partsdcard</action>
3760 </actions>
3761 </action>
3762
3763 <action>
3764 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3765 <actions>
3766 <action function="set">partitionlisterror=1</action>
3767 <action function="page">partsdcardsel</action>
3768 </actions>
3769 </action>
3770 </page>
3771
z31s1g28f0a922015-11-07 18:50:22 +01003772 <page name="partsdcard">
3773 <template name="page"/>
3774
3775 <text style="text_l">
3776 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003777 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003778 </text>
3779
3780 <text style="text_m">
3781 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003782 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003783 </text>
3784
3785 <text style="text_m_fail">
3786 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003787 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003788 </text>
3789
3790 <text style="text_m_fail">
3791 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003792 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003793 </text>
3794
3795 <text style="text_m_accent">
3796 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003797 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003798 </text>
3799
3800 <text style="text_m">
3801 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
3802 <text>%tw_sdext_size%</text>
3803 </text>
3804
3805 <button style="button_quarter_width">
3806 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003807 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003808 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003809 </button>
3810
3811 <button style="button_quarter_width">
3812 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003813 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003814 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003815 </button>
3816
3817 <text style="text_m_accent">
3818 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003819 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003820 </text>
3821
3822 <text style="text_m">
3823 <placement x="%center_x%" y="%row10a_y%" placement="5"/>
3824 <text>%tw_swap_size%</text>
3825 </text>
3826
3827 <button style="button_quarter_width">
3828 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003829 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003830 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003831 </button>
3832
3833 <button style="button_quarter_width">
3834 <placement x="%btn4_col4_x%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003835 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003836 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003837 </button>
3838
3839 <text style="text_m_accent">
3840 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003841 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003842 </text>
3843
3844 <text style="text_m">
3845 <placement x="%center_x%" y="%row14a_y%" placement="5"/>
3846 <text>%tw_sdpart_file_system%</text>
3847 </text>
3848
3849 <button style="button_quarter_width">
3850 <placement x="%indent%" y="%row14_y%"/>
3851 <text>EXT3</text>
3852 <action function="set">tw_sdpart_file_system=ext3</action>
3853 </button>
3854
3855 <button style="button_quarter_width">
3856 <placement x="%btn4_col4_x%" y="%row14_y%"/>
3857 <text>EXT4</text>
3858 <action function="set">tw_sdpart_file_system=ext4</action>
3859 </button>
3860
3861 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003862 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003863 <action function="page">partsdcardaction</action>
3864 <actions>
3865 <action function="set">tw_back=partsdcard</action>
3866 <action function="set">tw_action=partitionsd</action>
3867 <action function="set">tw_has_action2=1</action>
3868 <action function="set">tw_action2=set</action>
3869 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003870 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3871 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3872 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003873 <action function="page">action_page</action>
3874 </actions>
3875 </slider>
3876
3877 <action>
3878 <touch key="home"/>
3879 <action function="page">main</action>
3880 </action>
3881
3882 <action>
3883 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003884 <actions>
3885 <action function="set">partitionlisterror=0</action>
3886 <action function="page">partsdcardsel</action>
3887 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01003888 </action>
3889 </page>
3890
3891 <page name="htcdumlock">
3892 <template name="page"/>
3893
3894 <text style="text_l">
3895 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003896 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003897 </text>
3898
3899 <text style="text_m">
3900 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003901 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003902 </text>
3903
3904 <button style="main_button_half_height_full_width">
3905 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003906 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003907 <actions>
3908 <action function="set">tw_back=htcdumlock</action>
3909 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003910 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3911 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3912 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3913 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003914 <action function="page">confirm_action</action>
3915 </actions>
3916 </button>
3917
3918 <button style="main_button_half_height_full_width">
3919 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003920 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003921 <actions>
3922 <action function="set">tw_back=htcdumlock</action>
3923 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003924 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3925 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3926 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3927 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003928 <action function="page">confirm_action</action>
3929 </actions>
3930 </button>
3931
3932 <button style="main_button_half_height_full_width">
3933 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003934 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003935 <actions>
3936 <action function="set">tw_back=htcdumlock</action>
3937 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003938 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3939 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3940 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3941 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003942 <action function="page">confirm_action</action>
3943 </actions>
3944 </button>
3945
3946 <action>
3947 <touch key="home"/>
3948 <action function="page">main</action>
3949 </action>
3950
3951 <action>
3952 <touch key="back"/>
3953 <action function="page">advanced</action>
3954 </action>
3955 </page>
3956
Ethan Yonker53796e72019-01-11 22:49:52 -06003957 <page name="repackselect">
3958 <template name="page"/>
3959
3960 <text style="text_l">
3961 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3962 <text>{@repack_image_hdr=Select Image}</text>
3963 </text>
3964
3965 <text style="text_m">
3966 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3967 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3968 </text>
3969
3970 <template name="sort_options"/>
3971
3972 <fileselector>
3973 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_install_height%"/>
3974 <text>%tw_zip_location%</text>
3975 <filter extn=".img" folders="1" files="1"/>
3976 <path name="tw_zip_location" default="/sdcard"/>
3977 <data name="tw_filename"/>
3978 <selection name="tw_file"/>
3979 </fileselector>
3980
3981 <button style="main_button_half_height">
3982 <placement x="%indent%" y="%row21a_y%"/>
3983 <text>{@select_storage_btn=Select Storage}</text>
3984 <actions>
3985 <action function="set">tw_back=repackselect</action>
3986 <action function="overlay">select_storage</action>
3987 </actions>
3988 </button>
3989
3990 <action>
3991 <conditions>
3992 <condition var1="tw_filename" op="modified"/>
3993 </conditions>
3994 <action function="page">repackconfirm</action>
3995 </action>
3996
3997 <action>
3998 <touch key="back"/>
3999 <action function="page">advanced</action>
4000 </action>
4001
4002 <action>
4003 <touch key="home"/>
4004 <action function="page">main</action>
4005 </action>
4006 </page>
4007
4008 <page name="repackconfirm">
4009 <template name="page"/>
4010
4011 <text style="text_l">
4012 <condition var1="tw_repack_kernel" var2="1"/>
4013 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4014 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4015 </text>
4016
4017 <text style="text_l">
4018 <condition var1="tw_repack_kernel" var2="0"/>
4019 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4020 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4021 </text>
4022
4023 <text style="text_m">
4024 <condition var1="tw_repack_kernel" var2="1"/>
4025 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4026 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4027 </text>
4028
4029 <text style="text_m">
4030 <condition var1="tw_repack_kernel" var2="0"/>
4031 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4032 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4033 </text>
4034
4035 <text style="text_m_accent">
4036 <placement x="%indent%" y="%row2_y%"/>
4037 <text>{@folder=Folder:}</text>
4038 </text>
4039
4040 <text style="text_m">
4041 <placement x="%indent%" y="%row3_y%"/>
4042 <text>%tw_zip_location%</text>
4043 </text>
4044
4045 <text style="text_m_accent">
4046 <placement x="%indent%" y="%row4_y%"/>
4047 <text>{@file=File:}</text>
4048 </text>
4049
4050 <text style="text_m">
4051 <placement x="%indent%" y="%row5_y%"/>
4052 <text>%tw_file%</text>
4053 </text>
4054
4055 <checkbox>
4056 <placement x="%indent%" y="%row7_y%"/>
4057 <text>{@repack_backup_first=Back up existing image first}</text>
4058 <data variable="tw_repack_backup_first"/>
4059 </checkbox>
4060
4061 <button style="main_button_half_height">
4062 <placement x="%indent%" y="%row16_y%"/>
4063 <text>{@install_cancel=Do not Install}</text>
4064 <action function="page">repackselect</action>
4065 </button>
4066
4067 <slider>
4068 <text>{@swipe_to_install=Swipe to Install}</text>
4069 <actions>
4070 <action function="set">tw_back=advanced</action>
4071 <action function="set">tw_action=repackimage</action>
4072 <action function="set">tw_action_param=/boot</action>
4073 <action function="set">tw_action_text1={@installing=Installing...}</action>
4074 <action function="set">tw_action_text2=</action>
4075 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4076 <action function="page">action_page</action>
4077 </actions>
4078 </slider>
4079
4080 <action>
4081 <touch key="back"/>
4082 <action function="page">repackselect</action>
4083 </action>
4084
4085 <action>
4086 <touch key="home"/>
4087 <action function="page">main</action>
4088 </action>
4089 </page>
4090
z31s1g28f0a922015-11-07 18:50:22 +01004091 <page name="lock">
4092 <background color="%semi_transparent%"/>
4093
4094 <image>
4095 <image resource="unlock_icon"/>
4096 <placement x="%center_x%" y="%row10_y%" placement="4"/>
4097 </image>
4098
4099 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004100 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004101 <action function="overlay"/>
4102 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004103
4104 <action>
4105 <touch key="power"/>
4106 <action function="togglebacklight"/>
4107 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004108 </page>
4109
4110 <page name="filemanagerlist">
4111 <template name="page"/>
4112
4113 <text style="text_l">
4114 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004115 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004116 </text>
4117
4118 <text style="text_m">
4119 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004120 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004121 </text>
4122
4123 <template name="sort_options"/>
4124
4125 <fileselector>
4126 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4127 <text>%tw_file_location1%</text>
4128 <filter folders="1" files="1"/>
4129 <path name="tw_file_location1" default="/"/>
4130 <data name="tw_filename1"/>
4131 <selection name="tw_selection1"/>
4132 </fileselector>
4133
4134 <button style="fab">
4135 <image resource="fab_selectfolder"/>
4136 <actions>
4137 <action function="set">tw_filename1=tw_file_location1</action>
4138 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004139 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004140 <action function="page">filemanageroptions</action>
4141 </actions>
4142 </button>
4143
4144 <action>
4145 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004146 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004147 <action function="set">tw_fm_isfolder=0</action>
4148 </actions>
4149 </action>
4150
4151 <action>
4152 <touch key="home"/>
4153 <action function="page">main</action>
4154 </action>
4155
4156 <action>
4157 <touch key="back"/>
4158 <action function="page">advanced</action>
4159 </action>
4160
4161 <action>
4162 <condition var1="tw_filename1" op="modified"/>
4163 <action function="page">filemanageroptions</action>
4164 </action>
4165 </page>
4166
4167 <page name="filemanageroptions">
4168 <template name="page"/>
4169
4170 <text style="text_l">
4171 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004172 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004173 </text>
4174
4175 <text style="text_m">
4176 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004177 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004178 </text>
4179
4180 <text style="text_m_accent">
4181 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004182 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004183 </text>
4184
4185 <text style="text_m">
4186 <placement x="%indent%" y="%row3_y%"/>
4187 <text>%tw_filename1%</text>
4188 </text>
4189
4190 <button style="main_button_half_height">
4191 <condition var1="tw_fm_isfolder" var2="0"/>
4192 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004193 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004194 <actions>
4195 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004196 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004197 <action function="page">choosedestinationfolder</action>
4198 </actions>
4199 </button>
4200
4201 <button style="main_button_half_height">
4202 <condition var1="tw_fm_isfolder" var2="1"/>
4203 <placement x="%indent%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004204 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004205 <actions>
4206 <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 -05004207 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004208 <action function="page">choosedestinationfolder</action>
4209 </actions>
4210 </button>
4211
4212 <button style="main_button_half_height">
4213 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004214 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004215 <actions>
4216 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004217 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004218 <action function="page">choosedestinationfolder</action>
4219 </actions>
4220 </button>
4221
4222 <button style="main_button_half_height">
4223 <placement x="%indent%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004224 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004225 <actions>
4226 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004227 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004228 <action function="set">tw_fm_text2=</action>
4229 <action function="set">tw_fm_text3=</action>
4230 <action function="set">tw_include_text3=0</action>
4231 <action function="set">tw_back=filemanageroptions</action>
4232 <action function="page">filemanagerconfirm</action>
4233 </actions>
4234 </button>
4235
4236 <button style="main_button_half_height">
4237 <placement x="%center_x%" y="%row18a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004238 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004239 <actions>
4240 <action function="set">tw_filemanager_rename=0000</action>
4241 <action function="set">tw_fm_text2=</action>
4242 <action function="set">tw_fm_text3=</action>
4243 <action function="set">tw_include_text3=0</action>
4244 <action function="set">tw_back=filemanageroptions</action>
4245 <action function="page">filemanagerchmod</action>
4246 </actions>
4247 </button>
4248
4249 <button style="main_button_half_height">
4250 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004251 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004252 <actions>
4253 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004254 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004255 <action function="set">tw_fm_text2=</action>
4256 <action function="set">tw_fm_text3=</action>
4257 <action function="set">tw_include_text3=0</action>
4258 <action function="set">tw_back=filemanageroptions</action>
4259 <action function="page">filemanagerconfirm</action>
4260 </actions>
4261 </button>
4262
4263 <button style="main_button_half_height">
4264 <condition var1="tw_fm_isfolder" var2="0"/>
4265 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004266 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004267 <actions>
4268 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004269 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004270 <action function="set">tw_filemanager_command=mv</action>
4271 <action function="page">filemanagerrenamefile</action>
4272 </actions>
4273 </button>
4274
4275 <button style="main_button_half_height">
4276 <condition var1="tw_fm_isfolder" var2="1"/>
4277 <placement x="%center_x%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004278 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004279 <actions>
4280 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004281 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004282 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4283 <action function="page">filemanagerrenamefolder</action>
4284 </actions>
4285 </button>
4286
4287 <action>
4288 <touch key="home"/>
4289 <action function="page">main</action>
4290 </action>
4291
4292 <action>
4293 <touch key="back"/>
4294 <action function="page">filemanagerlist</action>
4295 </action>
4296 </page>
4297
4298 <page name="choosedestinationfolder">
4299 <template name="page"/>
4300
4301 <text style="text_l">
4302 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004304 </text>
4305
4306 <text style="text_m">
4307 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004308 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004309 </text>
4310
4311 <template name="sort_options"/>
4312
4313 <fileselector>
4314 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4315 <text>%tw_file_location2%</text>
4316 <filter folders="1" files="0"/>
4317 <path name="tw_file_location2" default="/"/>
4318 <data name="tw_filename2"/>
4319 <selection name="tw_selection2"/>
4320 </fileselector>
4321
4322 <button style="fab">
4323 <image resource="fab_selectfolder"/>
4324 <actions>
4325 <action function="set">tw_fm_text2=to</action>
4326 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4327 <action function="set">tw_include_text3=1</action>
4328 <action function="set">tw_back=filemanageroptions</action>
4329 <action function="page">filemanagerconfirm</action>
4330 </actions>
4331 </button>
4332
4333 <action>
4334 <touch key="home"/>
4335 <action function="page">main</action>
4336 </action>
4337
4338 <action>
4339 <touch key="back"/>
4340 <action function="page">filemanageroptions</action>
4341 </action>
4342 </page>
4343
4344 <page name="filemanagerrenamefile">
4345 <template name="page"/>
4346
4347 <text style="text_l">
4348 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004349 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004350 </text>
4351
4352 <text style="text_m">
4353 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004354 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004355 </text>
4356
4357 <text style="text_m_accent">
4358 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004359 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004360 </text>
4361
4362 <input>
4363 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4364 <text>%tw_filemanager_rename%</text>
4365 <data name="tw_filemanager_rename"/>
4366 <restrict minlen="1" maxlen="128"/>
4367 <actions>
4368 <action function="set">tw_fm_text2=to</action>
4369 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4370 <action function="set">tw_include_text3=1</action>
4371 <action function="set">tw_back=filemanageroptions</action>
4372 <action function="page">filemanagerconfirm</action>
4373 </actions>
4374 </input>
4375
4376 <fill color="%accent_color%">
4377 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4378 </fill>
4379
4380 <button style="main_button_half_height">
4381 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004382 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004383 <action function="page">filemanageroptions</action>
4384 </button>
4385
4386 <template name="keyboardtemplate"/>
4387
4388 <action>
4389 <touch key="home"/>
4390 <action function="page">main</action>
4391 </action>
4392
4393 <action>
4394 <touch key="back"/>
4395 <action function="page">filemanageroptions</action>
4396 </action>
4397 </page>
4398
4399 <page name="filemanagerrenamefolder">
4400 <template name="page"/>
4401
4402 <text style="text_l">
4403 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004404 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004405 </text>
4406
4407 <text style="text_m">
4408 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004409 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004410 </text>
4411
4412 <text style="text_m_accent">
4413 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004414 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004415 </text>
4416
4417 <input>
4418 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4419 <text>%tw_filemanager_rename%</text>
4420 <data name="tw_filemanager_rename"/>
4421 <restrict minlen="1" maxlen="128"/>
4422 <actions>
4423 <action function="set">tw_fm_text2=to</action>
4424 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4425 <action function="set">tw_include_text3=1</action>
4426 <action function="set">tw_back=filemanageroptions</action>
4427 <action function="page">filemanagerconfirm</action>
4428 </actions>
4429 </input>
4430
4431 <fill color="%accent_color%">
4432 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4433 </fill>
4434
4435 <button style="main_button_half_height">
4436 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004437 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004438 <action function="page">filemanageroptions</action>
4439 </button>
4440
4441 <template name="keyboardtemplate"/>
4442
4443 <action>
4444 <touch key="home"/>
4445 <action function="page">main</action>
4446 </action>
4447
4448 <action>
4449 <touch key="back"/>
4450 <action function="page">filemanageroptions</action>
4451 </action>
4452 </page>
4453
4454 <page name="filemanagerchmod">
4455 <template name="page"/>
4456
4457 <text style="text_l">
4458 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004459 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004460 </text>
4461
4462 <text style="text_m">
4463 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004464 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004465 </text>
4466
4467 <text style="text_m_accent">
4468 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004469 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004470 </text>
4471
4472 <input>
4473 <placement x="%indent%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4474 <text>%tw_filemanager_rename%</text>
4475 <data name="tw_filemanager_rename"/>
4476 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4477 <actions>
4478 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4479 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4480 <action function="set">tw_back=filemanageroptions</action>
4481 <action function="page">filemanagerconfirm</action>
4482 </actions>
4483 </input>
4484
4485 <fill color="%accent_color%">
4486 <placement x="%indent%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4487 </fill>
4488
4489 <button style="main_button_half_height">
4490 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004491 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004492 <action function="page">filemanageroptions</action>
4493 </button>
4494
4495 <template name="keyboardtemplate"/>
4496
4497 <action>
4498 <touch key="home"/>
4499 <action function="page">main</action>
4500 </action>
4501
4502 <action>
4503 <touch key="back"/>
4504 <action function="page">filemanageroptions</action>
4505 </action>
4506 </page>
4507
4508 <page name="filemanagerconfirm">
4509 <template name="page"/>
4510
4511 <text style="text_l">
4512 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004513 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004514 </text>
4515
4516 <text style="text_m">
4517 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004518 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004519 </text>
4520
4521 <text style="text_m_accent">
4522 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4523 <text>%tw_fm_text1%</text>
4524 </text>
4525
4526 <text style="text_m">
4527 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4528 <text>%tw_filename1%</text>
4529 </text>
4530
4531 <text style="text_m_accent">
4532 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4533 <text>%tw_fm_text2%</text>
4534 </text>
4535
4536 <text style="text_m">
4537 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4538 <text>%tw_fm_text3%</text>
4539 </text>
4540
4541 <text style="text_m">
4542 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004543 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004544 </text>
4545
4546 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004547 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004548 <action function="page">filemanageraction</action>
4549 </slider>
4550
4551 <action>
4552 <touch key="back"/>
4553 <action function="page">%tw_back%</action>
4554 </action>
4555
4556 <action>
4557 <touch key="home"/>
4558 <action function="page">main</action>
4559 </action>
4560 </page>
4561
4562 <page name="filemanageraction">
4563 <template name="page"/>
4564
4565 <text style="text_l">
4566 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004567 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004568 </text>
4569
4570 <text style="text_m">
4571 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4572 <text>%tw_fm_text1%</text>
4573 </text>
4574
4575 <template name="console"/>
4576
4577 <template name="progress_bar"/>
4578
4579 <action>
4580 <conditions>
4581 <condition var1="tw_operation_state" var2="1"/>
4582 <condition var1="tw_operation_status" var2="0"/>
4583 </conditions>
4584 <actions>
4585 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004586 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004587 <action function="page">action_complete</action>
4588 </actions>
4589 </action>
4590
4591 <action>
4592 <conditions>
4593 <condition var1="tw_operation_state" var2="1"/>
4594 <condition var1="tw_operation_status" op="!=" var2="0"/>
4595 </conditions>
4596 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004597 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004598 <action function="page">action_complete</action>
4599 </actions>
4600 </action>
4601
4602 <action>
4603 <condition var1="tw_include_text3" var2="0"/>
4604 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4605 </action>
4606
4607 <action>
4608 <condition var1="tw_include_text3" var2="1"/>
4609 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4610 </action>
4611 </page>
4612
4613 <page name="decrypt">
4614 <template name="page"/>
4615
4616 <action>
4617 <condition var1="tw_crypto_pwtype" var2="2"/>
4618 <action function="page">decrypt_pattern</action>
4619 </action>
4620
4621 <text style="text_l">
4622 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004623 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004624 </text>
4625
4626 <text style="text_m">
4627 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004628 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004629 </text>
4630
4631 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004632 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004633 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004634 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004635 </text>
4636
Noah Jacobson5a79f672019-04-28 00:10:07 -04004637 <text style="text_m_accent">
4638 <condition var1="tw_is_fbe" var2="1"/>
4639 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4640 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4641 </text>
4642
z31s1g28f0a922015-11-07 18:50:22 +01004643 <input>
4644 <placement x="%indent%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4645 <text>%tw_crypto_display%</text>
4646 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4647 <restrict minlen="1" maxlen="254"/>
4648 <action function="page">trydecrypt</action>
4649 </input>
4650
4651 <fill color="%accent_color%">
4652 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4653 </fill>
4654
4655 <fill color="%text_fail_color%">
4656 <condition var1="tw_password_fail" var2="1"/>
4657 <placement x="%indent%" y="row4a_y" w="%content_width%" h="input_line_width" placement="1"/>
4658 </fill>
4659
4660 <text style="text_m_fail">
4661 <condition var1="tw_password_fail" var2="1"/>
4662 <placement x="%indent%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004663 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004664 </text>
4665
4666 <button style="main_button_half_height">
4667 <placement x="%indent%" y="%row10_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004668 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004669 <actions>
4670 <action function="set">tw_page_done=1</action>
4671 <action function="page">main</action>
4672 </actions>
4673 </button>
4674
z31s1g608d7ff2016-01-18 19:47:25 +01004675 <button style="main_button_half_height">
4676 <placement x="%center_x%" y="%row10_y%"/>
4677 <text>{@sel_lang_btn=Select Language}</text>
4678 <action function="overlay">select_language</action>
4679 </button>
4680
z31s1g28f0a922015-11-07 18:50:22 +01004681 <template name="keyboardtemplate"/>
4682 </page>
4683
4684 <page name="decrypt_pattern">
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>{@mount_hdr=Mount}</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>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004695 </text>
4696
4697 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04004698 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004699 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004700 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004701 </text>
4702
Noah Jacobson5a79f672019-04-28 00:10:07 -04004703 <text style="text_m_accent">
4704 <condition var1="tw_is_fbe" var2="1"/>
4705 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4706 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
4707 </text>
4708
Aleksa Saraib25a1832015-12-31 17:36:00 +01004709 <text style="text_m_fail">
4710 <condition var1="tw_password_fail" var2="1"/>
4711 <placement x="%center_x%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004712 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004713 </text>
4714
z31s1g28f0a922015-11-07 18:50:22 +01004715 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004716 <placement x="%pattern_x%" y="%row5_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004717 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4718 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4719 <data name="tw_crypto_password"/>
4720 <action function="page">trydecrypt</action>
4721 </patternpassword>
4722
Aleksa Saraib25a1832015-12-31 17:36:00 +01004723 <button style="button_quarter_width">
4724 <placement x="%indent%" y="%row19a_y%"/>
4725 <text>3x3</text>
4726 <action function="set">tw_gui_pattern_grid_size=3</action>
4727 </button>
4728
4729 <button style="button_quarter_width">
4730 <placement x="%btn4_col2_x%" y="%row19a_y%"/>
4731 <text>4x4</text>
4732 <action function="set">tw_gui_pattern_grid_size=4</action>
4733 </button>
4734
4735 <button style="button_quarter_width">
4736 <placement x="%btn4_col3_x%" y="%row19a_y%"/>
4737 <text>5x5</text>
4738 <action function="set">tw_gui_pattern_grid_size=5</action>
4739 </button>
4740
4741 <button style="button_quarter_width">
4742 <placement x="%btn4_col4_x%" y="%row19a_y%"/>
4743 <text>6x6</text>
4744 <action function="set">tw_gui_pattern_grid_size=6</action>
4745 </button>
4746
z31s1g28f0a922015-11-07 18:50:22 +01004747 <button style="main_button_half_height">
4748 <placement x="%indent%" y="%row21a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004749 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004750 <actions>
4751 <action function="set">tw_page_done=1</action>
4752 <action function="page">main</action>
4753 </actions>
4754 </button>
z31s1g608d7ff2016-01-18 19:47:25 +01004755
4756 <button style="main_button_half_height">
4757 <placement x="%center_x%" y="%row21a_y%"/>
4758 <text>{@sel_lang_btn=Select Language}</text>
4759 <action function="overlay">select_language</action>
4760 </button>
z31s1g28f0a922015-11-07 18:50:22 +01004761 </page>
4762
4763 <page name="trydecrypt">
4764 <template name="page"/>
4765
4766 <text style="text_l">
4767 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004768 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004769 </text>
4770
4771 <text style="text_m">
4772 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004773 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004774 </text>
4775
4776 <template name="console"/>
4777
4778 <template name="progress_bar"/>
4779
4780 <action>
4781 <action function="decrypt"/>
4782 </action>
4783
4784 <action>
4785 <conditions>
4786 <condition var1="tw_operation_state" var2="1"/>
4787 <condition var1="tw_operation_status" op="!=" var2="0"/>
4788 </conditions>
4789 <actions>
4790 <action function="set">tw_password_fail=1</action>
4791 <action function="page">decrypt</action>
4792 </actions>
4793 </action>
4794
4795 <action>
4796 <conditions>
4797 <condition var1="tw_operation_state" var2="1"/>
4798 <condition var1="tw_operation_status" op="=" var2="0"/>
4799 </conditions>
4800 <actions>
4801 <action function="set">tw_page_done=1</action>
4802 <action function="page">main</action>
4803 </actions>
4804 </action>
4805 </page>
4806
z31s1g28f0a922015-11-07 18:50:22 +01004807 <page name="terminalcommand">
4808 <template name="page"/>
4809
z31s1g56189522016-01-13 19:12:40 +01004810 <fill color="%background_color%">
4811 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004812 </fill>
4813
z31s1g56189522016-01-13 19:12:40 +01004814 <terminal>
4815 <condition var1="tw_hide_kb" var2="0"/>
4816 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%console_terminal_height%"/>
4817 </terminal>
4818
4819 <terminal>
4820 <condition var1="tw_hide_kb" var2="1"/>
4821 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%slideout_height%"/>
4822 </terminal>
4823
4824 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004825
4826 <template name="keyboardtemplate"/>
4827
z31s1g608d7ff2016-01-18 19:47:25 +01004828 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01004829 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01004830 </fill>
z31s1g56189522016-01-13 19:12:40 +01004831
z31s1g608d7ff2016-01-18 19:47:25 +01004832 <button>
z31s1g56189522016-01-13 19:12:40 +01004833 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4834 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4835 <image resource="back" />
4836 <condition var1="tw_busy" var2="0" />
4837 <actions>
4838 <action function="set">tw_hide_kb=0</action>
4839 <action function="key">back</action>
4840 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004841 </button>
z31s1g56189522016-01-13 19:12:40 +01004842
z31s1g608d7ff2016-01-18 19:47:25 +01004843 <button>
z31s1g56189522016-01-13 19:12:40 +01004844 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4845 <condition var1="tw_hide_kb" op="=" var2="0" />
4846 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4847 <image resource="kb_hide" />
4848 <condition var1="tw_busy" var2="0" />
4849 <actions>
4850 <action function="set">tw_hide_kb=1</action>
4851 <action function="page">terminalcommand</action>
4852 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004853 </button>
z31s1g56189522016-01-13 19:12:40 +01004854
z31s1g608d7ff2016-01-18 19:47:25 +01004855 <button>
z31s1g56189522016-01-13 19:12:40 +01004856 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4857 <condition var1="tw_hide_kb" op="=" var2="1" />
4858 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4859 <image resource="kb_show" />
4860 <condition var1="tw_busy" var2="0" />
4861 <actions>
4862 <action function="set">tw_hide_kb=0</action>
4863 <action function="page">terminalcommand</action>
4864 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004865 </button>
z31s1g56189522016-01-13 19:12:40 +01004866
z31s1g608d7ff2016-01-18 19:47:25 +01004867 <button>
z31s1g56189522016-01-13 19:12:40 +01004868 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4869 <image resource="home" />
4870 <condition var1="tw_busy" var2="0" />
4871 <actions>
4872 <action function="set">tw_hide_kb=0</action>
4873 <action function="key">home</action>
4874 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004875 </button>
z31s1g56189522016-01-13 19:12:40 +01004876
z31s1g608d7ff2016-01-18 19:47:25 +01004877 <button>
z31s1g56189522016-01-13 19:12:40 +01004878 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4879 <condition var1="tw_hide_kb" op="=" var2="0" />
4880 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4881 <image resource="kb_hide" />
4882 <condition var1="tw_busy" var2="0" />
4883 <actions>
4884 <action function="set">tw_hide_kb=1</action>
4885 <action function="page">terminalcommand</action>
4886 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004887 </button>
z31s1g56189522016-01-13 19:12:40 +01004888
z31s1g608d7ff2016-01-18 19:47:25 +01004889 <button>
z31s1g56189522016-01-13 19:12:40 +01004890 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4891 <condition var1="tw_hide_kb" op="=" var2="1" />
4892 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4893 <image resource="kb_show" />
4894 <condition var1="tw_busy" var2="0" />
4895 <actions>
4896 <action function="set">tw_hide_kb=0</action>
4897 <action function="page">terminalcommand</action>
4898 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004899 </button>
z31s1g56189522016-01-13 19:12:40 +01004900
z31s1g608d7ff2016-01-18 19:47:25 +01004901 <button>
z31s1g56189522016-01-13 19:12:40 +01004902 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4903 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4904 <image resource="back" />
4905 <condition var1="tw_busy" var2="0" />
4906 <actions>
4907 <action function="set">tw_hide_kb=0</action>
4908 <action function="key">back</action>
4909 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004910 </button>
z31s1g56189522016-01-13 19:12:40 +01004911
z31s1g28f0a922015-11-07 18:50:22 +01004912 <action>
4913 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01004914 <actions>
4915 <action function="set">tw_hide_kb=0</action>
4916 <action function="page">main</action>
4917 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004918 </action>
4919
4920 <action>
4921 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01004922 <actions>
4923 <action function="set">tw_hide_kb=0</action>
4924 <action function="page">advanced</action>
4925 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01004926 </action>
z31s1g56189522016-01-13 19:12:40 +01004927
z31s1g608d7ff2016-01-18 19:47:25 +01004928 <action>
z31s1g56189522016-01-13 19:12:40 +01004929 <touch key="power+voldown" />
4930 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01004931 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004932 </page>
4933
4934 <page name="sideload">
4935 <template name="page"/>
4936
4937 <text style="text_l">
4938 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004939 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004940 </text>
4941
4942 <text style="text_m">
4943 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004944 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004945 </text>
4946
4947 <checkbox>
4948 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004949 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004950 <data variable="tw_wipe_dalvik"/>
4951 </checkbox>
4952
4953 <checkbox>
4954 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004955 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004956 <data variable="tw_wipe_cache"/>
4957 </checkbox>
4958
4959 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004960 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004961 <actions>
4962 <action function="set">tw_back=advanced</action>
4963 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004964 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
4965 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
4966 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004967 <action function="set">tw_has_cancel=1</action>
4968 <action function="set">tw_show_reboot=1</action>
4969 <action function="set">tw_cancel_action=adbsideloadcancel</action>
4970 <action function="page">action_page</action>
4971 </actions>
4972 </slider>
4973
4974 <action>
4975 <touch key="home"/>
4976 <action function="page">main</action>
4977 </action>
4978
4979 <action>
4980 <touch key="back"/>
4981 <action function="page">advanced</action>
4982 </action>
4983 </page>
4984
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004985 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01004986 <template name="page"/>
4987
4988 <text style="text_l">
4989 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004990 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004991 </text>
4992
4993 <text style="text_m">
4994 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004995 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004996 </text>
4997
4998 <text style="text_m_accent">
4999 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005000 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005001 </text>
5002
z31s1g28f0a922015-11-07 18:50:22 +01005003 <text style="text_m_fail">
5004 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005005 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005006 </text>
5007
5008 <text style="text_m_fail">
5009 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005010 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005011 </text>
5012
5013 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005014 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005015 <actions>
5016 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005017 <action function="set">tw_action=fixcontexts</action>
5018 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5019 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005020 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005021 <action function="set">tw_show_reboot=1</action>
5022 <action function="page">action_page</action>
5023 </actions>
5024 </slider>
5025
5026 <action>
5027 <touch key="home"/>
5028 <action function="page">main</action>
5029 </action>
5030
5031 <action>
5032 <touch key="back"/>
5033 <action function="page">advanced</action>
5034 </action>
5035 </page>
5036
z31s1g28f0a922015-11-07 18:50:22 +01005037 <page name="slideout">
5038 <fill color="%background_color%">
5039 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5040 </fill>
5041
5042 <console>
5043 <placement x="%indent%" y="%row3_header_y%" w="%content_width%" h="%slideout_height%"/>
5044 </console>
5045
5046 <button>
5047 <fill color="%transparent%"/>
5048 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5049 <action function="overlay"/>
5050 </button>
5051
5052 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005053 <touch key="power"/>
5054 <action function="togglebacklight"/>
5055 </action>
5056
5057 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005058 <touch key="power+voldown"/>
5059 <action function="screenshot"/>
5060 </action>
5061 </page>
5062
5063 <page name="select_storage">
5064 <fill color="%semi_transparent%">
5065 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5066 </fill>
5067
5068 <fill color="%background_color%">
5069 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5070 </fill>
5071
5072 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005073 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005074 <data name="tw_storage_path"/>
5075 <listtype name="storage"/>
5076 </partitionlist>
5077
5078 <button style="button_third_width">
5079 <placement x="%dialog_button_x%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005080 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005081 <actions>
5082 <action function="set">tw_clear_destination=%tw_back%</action>
5083 <action function="overlay"/>
5084 <action function="page">clear_vars</action>
5085 </actions>
5086 </button>
5087
5088 <fill color="#000000">
5089 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5090 </fill>
5091
5092 <button>
5093 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5094 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5095 <image resource="back"/>
5096 <condition var1="tw_busy" var2="0"/>
5097 <actions>
5098 <action function="overlay"/>
5099 <action function="key">%tw_back%</action>
5100 </actions>
5101 </button>
5102
5103 <button>
5104 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5105 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5106 <image resource="console"/>
5107 <condition var1="tw_busy" var2="0"/>
5108 <action function="overlay">slideout</action>
5109 </button>
5110
5111 <button>
5112 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5113 <image resource="home"/>
5114 <condition var1="tw_busy" var2="0"/>
5115 <actions>
5116 <action function="overlay"/>
5117 <action function="key">home</action>
5118 </actions>
5119 </button>
5120
5121 <button>
5122 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5123 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5124 <image resource="console"/>
5125 <condition var1="tw_busy" var2="0"/>
5126 <action function="overlay">slideout</action>
5127 </button>
5128
5129 <button>
5130 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5131 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5132 <image resource="back"/>
5133 <condition var1="tw_busy" var2="0"/>
5134 <actions>
5135 <action function="overlay"/>
5136 <action function="key">%tw_back%</action>
5137 </actions>
5138 </button>
5139
5140 <action>
5141 <touch key="power+voldown"/>
5142 <action function="screenshot"/>
5143 </action>
5144 </page>
z31s1g608d7ff2016-01-18 19:47:25 +01005145
5146 <page name="select_language">
5147 <fill color="%semi_transparent%">
5148 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5149 </fill>
5150
5151 <fill color="%background_color%">
5152 <placement x="%indent%" y="row5_y" w="%content_width%" h="%dialog_height%"/>
5153 </fill>
5154
5155 <listbox>
5156 <placement x="%col1_x_left%" y="%row5_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5157 <text>{@select_language=Select Language:}</text>
5158 <icon selected="radio_true" unselected="radio_false" />
5159 <data name="tw_language" />
5160 </listbox>
5161
5162 <button style="button_third_width">
5163 <placement x="%dialog_button_x%" y="%row14_y%"/>
5164 <text>{@ok_btn=OK}</text>
5165 <actions>
5166 <action function="overlay"/>
5167 <action function="setlanguage"></action>
5168 </actions>
5169 </button>
5170
5171 <fill color="#000000">
5172 <placement x="0" y="row25_y" w="%screen_width%" h="%navbar_height"/>
5173 </fill>
5174
5175 <button>
5176 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5177 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5178 <image resource="back"/>
5179 <condition var1="tw_busy" var2="0"/>
5180 <actions>
5181 <action function="overlay"/>
5182 <action function="key">%tw_back%</action>
5183 </actions>
5184 </button>
5185
5186 <button>
5187 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5188 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5189 <image resource="console"/>
5190 <condition var1="tw_busy" var2="0"/>
5191 <action function="overlay">slideout</action>
5192 </button>
5193
5194 <button>
5195 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5196 <image resource="home"/>
5197 <condition var1="tw_busy" var2="0"/>
5198 <actions>
5199 <action function="overlay"/>
5200 <action function="key">home</action>
5201 </actions>
5202 </button>
5203
5204 <button>
5205 <condition var1="tw_samsung_navbar" op="!=" var2="1"/>
5206 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5207 <image resource="console"/>
5208 <condition var1="tw_busy" var2="0"/>
5209 <action function="overlay">slideout</action>
5210 </button>
5211
5212 <button>
5213 <condition var1="tw_samsung_navbar" op="=" var2="1"/>
5214 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5215 <image resource="back"/>
5216 <condition var1="tw_busy" var2="0"/>
5217 <actions>
5218 <action function="overlay"/>
5219 <action function="key">%tw_back%</action>
5220 </actions>
5221 </button>
5222
5223 <action>
5224 <touch key="power+voldown"/>
5225 <action function="screenshot"/>
5226 </action>
5227 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005228
5229 <page name="decrypt_users">
5230 <template name="page"/>
5231
5232 <text style="text_l">
5233 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5234 <text>{@decrypt_users=Decrypt Users}</text>
5235 </text>
5236
5237 <text style="text_m_accent">
5238 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5239 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5240 </text>
5241
5242 <listbox>
5243 <placement x="%indent%" y="%row3_y%" w="%content_width%" h="%listbox_advanced_height%"/>
5244 <text>{@select_user=Select User}</text>
5245 <icon selected="radio_true" unselected="radio_false" />
5246 <data name="tw_crypto_user_id" />
5247 </listbox>
5248
5249 <button style="main_button_half_height">
5250 <placement x="%center_x%" y="%row21a_y%"/>
5251 <text>{@decrypt_users=Decrypt Users}</text>
5252 <action function="set">tw_crypto_password=</action>
5253 <action function="set">tw_password_fail=0</action>
5254 <action function="page">decrypt</action>
5255 </button>
5256
5257 <action>
5258 <touch key="home"/>
5259 <action function="page">main</action>
5260 </action>
5261
5262 <action>
5263 <touch key="back"/>
5264 <action function="page">advanced</action>
5265 </action>
5266 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005267 </pages>
5268</recovery>