blob: cf14acea5fcdda134dbc3837dde62e0b7d08dce0 [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="radiobutton">
36 <font resource="font_m" color="%text_color%"/>
37 <image checked="radio_true" unchecked="radio_false"/>
38 </style>
39
40 <style name="main_button">
41 <highlight color="%highlight_color%"/>
42 <font resource="font_l" color="%text_button_color%"/>
43 <image resource="main_button"/>
44 </style>
45
46 <style name="main_button_m">
47 <highlight color="%highlight_color%"/>
48 <font resource="font_m" color="%text_button_color%"/>
49 <image resource="main_button"/>
50 </style>
51
52 <style name="main_button_half_width">
53 <highlight color="%highlight_color%"/>
54 <font resource="font_m" color="%text_button_color%"/>
55 <image resource="main_button_half_width"/>
56 </style>
57
58 <style name="main_button_half_width_low">
59 <highlight color="%highlight_color%"/>
60 <font resource="font_m" color="%text_button_color%"/>
61 <image resource="main_button_half_width_low"/>
62 </style>
63
64 <style name="button_third_width">
65 <highlight color="%highlight_color%"/>
66 <font resource="font_m" color="%text_button_color%"/>
67 <image resource="tab_3"/>
68 </style>
69
70 <style name="button_quarter_width">
71 <highlight color="%highlight_color%"/>
72 <font resource="font_m" color="%text_button_color%"/>
73 <image resource="tab_4"/>
74 </style>
75
76 <style name="sort_asc">
77 <highlight color="%highlight_color%"/>
78 <font resource="font_m" color="%text_button_color%"/>
79 <image resource="sort_asc"/>
80 </style>
81
82 <style name="sort_desc">
83 <highlight color="%highlight_color%"/>
84 <font resource="font_m" color="%text_button_color%"/>
85 <image resource="sort_desc"/>
86 </style>
87
88 <style name="sort_empty">
89 <highlight color="%highlight_color%"/>
90 <font resource="font_m" color="%text_button_color%"/>
91 <image resource="sort_empty"/>
92 </style>
93
94 <style name="fab">
95 <highlight color="%highlight_color%"/>
96 <placement x="%indent_right%" y="%row21a_y%" placement="1"/>
97 <font resource="font_m" color="%button_text_color%"/>
98 </style>
99
100 <style name="tab">
101 <highlight color="%highlight_color%"/>
102 <fill color="%accent_color%"/>
103 <font resource="font_s" color="%text_button_color%"/>
104 </style>
105
106 <style name="console">
107 <fastscroll rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
108 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
109 <font resource="fixed"/>
110 </style>
111
z31s1g56189522016-01-13 19:12:40 +0100112 <style name="terminal">
113 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
114 <background color="%background_color%"/>
115 <font resource="fixed" spacing="3" color="%text_color%"/>
116 </style>
117
z31s1g28f0a922015-11-07 18:50:22 +0100118 <style name="fileselector">
119 <highlight color="%fileselector_highlight_color%"/>
120 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
121 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
122 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
123 <sort name="tw_gui_sort_order"/>
124 <icon folder="folder" file="file"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
127 </style>
128
129 <style name="listbox">
130 <highlight color="%fileselector_highlight_color%"/>
131 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
132 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
133 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
134 <icon selected="radio_true" unselected="radio_false"/>
135 <background color="%background_color%"/>
136 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
137 </style>
138
139 <style name="scrolllist">
140 <background color="%background_color%"/>
141 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300142 <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 +0100143 </style>
144
145 <style name="partitionlist">
146 <highlight color="%fileselector_highlight_color%"/>
147 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
148 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
149 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
150 <icon selected="checkbox_true" unselected="checkbox_false"/>
151 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
152 <background color="%background_color%"/>
153 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
154 </style>
155
156 <style name="partitionlist_storage">
157 <highlight color="%fileselector_highlight_color%"/>
158 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
159 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
160 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
161 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
162 <icon selected="radio_true" unselected="radio_false"/>
163 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
164 <background color="%background_color%"/>
165 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
166 </style>
167
Ethan Yonker64e0a652018-07-25 09:52:17 -0500168 <style name="advanced_listbox">
169 <highlight color="%fileselector_highlight_color%"/>
170 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
171 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
172 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
173 <icon selected="handle" unselected="handle"/>
174 <background color="%background_color%"/>
175 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
176 </style>
177
z31s1g28f0a922015-11-07 18:50:22 +0100178 <style name="slider">
179 <placement x="%col2_x_right%" y="%row17a_y%"/>
180 <font resource="font_m" color="%text_color%"/>
181 <resource base="slider" used="slider_used" touch="slider_touch"/>
182 </style>
183
184 <style name="slider_centered">
185 <placement x="%center_x%" y="%row17a_y%"/>
186 <font resource="font_m" color="%text_color%"/>
187 <resource base="slider" used="slider_used" touch="slider_touch"/>
188 </style>
189
190 <style name="slidervalue">
191 <resource handle="handle"/>
192 <font resource="font_m" color="%text_color%"/>
193 <colors line="%fileselector_linecolor%"/>
194 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
195 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100196
197 <style name="patternpassword">
198 <size name="tw_gui_pattern_grid_size" default="3"/>
199 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100200 </styles>
201
202 <pages>
203 <page name="main">
204 <action>
205 <actions>
206 <action function="set">tw_clear_destination=main2</action>
207 <action function="page">clear_vars</action>
208 </actions>
209 </action>
210 </page>
211
212 <page name="main2">
213 <template name="page"/>
214
215 <text style="text_l">
216 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500217 <text>{@twrp_header=Team Win Recovery Project}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100218 </text>
219
220 <text style="text_m">
221 <condition var1="tw_no_cpu_temp" var2="0"/>
222 <placement x="%col1_x_header%" y="%row4_header_y%"/>
223 <text>%tw_version%</text>
224 </text>
225
226 <button style="main_button">
227 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500228 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100229 <actions>
230 <action function="queueclear"/>
231 <action function="set">tw_selectimage=0</action>
232 <action function="page">install</action>
233 </actions>
234 </button>
235
236 <button style="main_button">
237 <placement x="%center_x%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500238 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100239 <action function="page">wipe</action>
240 </button>
241
242 <button style="main_button">
243 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500244 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100245 <action function="page">backup</action>
246 </button>
247
248 <button style="main_button">
249 <placement x="%center_x%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500250 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100251 <action function="page">restore</action>
252 </button>
253
254 <button style="main_button">
255 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500256 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100257 <action function="page">mount</action>
258 </button>
259
260 <button style="main_button">
261 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500262 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100263 <action function="page">settings</action>
264 </button>
265
266 <button style="main_button">
267 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500268 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100269 <action function="page">advanced</action>
270 </button>
271
272 <button style="main_button">
273 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500274 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100275 <action function="page">reboot</action>
276 </button>
277 </page>
278
279 <page name="install">
280 <template name="page"/>
281
282 <text style="text_l">
283 <condition var1="tw_selectimage" var2="0"/>
284 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500285 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100286 </text>
287
288 <text style="text_l">
289 <condition var1="tw_selectimage" var2="1"/>
290 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500291 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100292 </text>
293
294 <text style="text_m">
295 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500296 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100297 </text>
298
299 <template name="sort_options"/>
300
301 <fileselector>
302 <placement x="%col1_x_left%" y="%row1a_y%" w="%fileselector_install_folder_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500303 <text>{@file_selector_folders_hdr=Folders}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100304 <filter folders="1" files="0"/>
305 <path name="tw_zip_location" default="/sdcard"/>
306 <data name="select"/>
307 </fileselector>
308
309 <fileselector>
310 <condition var1="tw_selectimage" var2="0"/>
311 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
312 <text>%tw_zip_location%</text>
mauronofrio6d3bf892019-10-26 19:47:55 +0200313 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="0" files="1"/>
Ian Macdonald88e9c6e2021-01-23 18:52:28 +0100314 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100315 <path name="tw_zip_location" default="/sdcard"/>
316 <data name="tw_filename"/>
317 <selection name="tw_file"/>
318 </fileselector>
319
320 <fileselector>
321 <condition var1="tw_selectimage" var2="1"/>
322 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
323 <text>%tw_zip_location%</text>
324 <filter extn=".img" folders="0" files="1"/>
325 <path name="tw_zip_location" default="/sdcard"/>
326 <data name="tw_filename"/>
327 <selection name="tw_file"/>
328 </fileselector>
329
330 <button style="main_button_half_width_low">
331 <condition var1="tw_selectimage" var2="0"/>
332 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500333 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100334 <actions>
335 <action function="set">tw_selectimage=1</action>
336 <action function="page">install</action>
337 </actions>
338 </button>
339
340 <button style="main_button_half_width_low">
341 <condition var1="tw_selectimage" var2="1"/>
342 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500343 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100344 <actions>
345 <action function="set">tw_selectimage=0</action>
346 <action function="page">install</action>
347 </actions>
348 </button>
349
350 <button style="main_button_half_width_low">
351 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500352 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100353 <actions>
354 <action function="set">tw_back=install</action>
355 <action function="overlay">select_storage</action>
356 </actions>
357 </button>
358
359 <action>
360 <conditions>
361 <condition var1="tw_selectimage" var2="0"/>
362 <condition var1="tw_filename" op="modified"/>
363 </conditions>
364 <actions>
365 <action function="queuezip"/>
366 <action function="page">flash_confirm</action>
367 </actions>
368 </action>
369
370 <action>
371 <conditions>
372 <condition var1="tw_selectimage" var2="1"/>
373 <condition var1="tw_filename" op="modified"/>
374 </conditions>
375 <action function="page">flashimage_confirm</action>
376 </action>
377
378 <action>
379 <touch key="back"/>
380 <action function="page">main</action>
381 </action>
382
383 <action>
384 <touch key="home"/>
385 <action function="page">main</action>
386 </action>
387 </page>
388
389 <page name="flash_confirm">
390 <template name="page"/>
391
392 <text style="text_l">
393 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500394 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100395 </text>
396
397 <text style="text_m">
398 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500399 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100400 </text>
401
402 <text style="text_m_accent">
403 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500404 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100405 </text>
406
407 <text style="text_m_accent">
408 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500409 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100410 </text>
411
412 <text style="text_m">
413 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500414 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100415 </text>
416
417 <text style="text_m_accent">
418 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500419 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100420 </text>
421
422 <text style="text_m">
423 <placement x="%col1_x_left%" y="%row9_y%"/>
424 <text>%tw_zip_location%</text>
425 </text>
426
427 <text style="text_m_accent">
428 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500429 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100430 </text>
431
432 <text style="text_m">
433 <placement x="%col1_x_left%" y="%row12_y%"/>
434 <text>%tw_file%</text>
435 </text>
436
437 <text style="text_m_accent">
438 <placement x="%col1_x_right%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500439 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100440 </text>
441
442 <checkbox>
443 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500444 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100445 <data variable="tw_signed_zip_verify"/>
446 </checkbox>
447
448 <checkbox>
449 <condition var1="tw_has_injecttwrp" var2="1"/>
450 <placement x="%col1_x_right%" y="%row10a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500451 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100452 <data variable="tw_inject_after_zip"/>
453 </checkbox>
454
bigbiffa869fc72016-03-01 19:40:36 -0500455 <checkbox>
Matt Mower8dc25b72016-04-25 23:06:53 -0500456 <placement x="%col1_x_right%" y="%row12_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500457 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower8dc25b72016-04-25 23:06:53 -0500458 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500459 </checkbox>
460
z31s1g28f0a922015-11-07 18:50:22 +0100461 <button style="main_button_half_width">
462 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500463 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100464 <action function="page">install</action>
465 </button>
466
467 <button style="main_button_half_width">
468 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500469 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100470 <actions>
471 <action function="queueclear"/>
472 <action function="page">install</action>
473 </actions>
474 </button>
475
476 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500477 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100478 <action function="flash">flash_zip</action>
479 </slider>
480
481 <action>
482 <touch key="back"/>
483 <actions>
484 <action function="cancelzip"/>
485 <action function="page">install</action>
486 </actions>
487 </action>
488
489 <action>
490 <touch key="home"/>
491 <action function="page">main</action>
492 </action>
493 </page>
494
495 <page name="flash_zip">
496 <template name="page"/>
497
498 <text style="text_l">
499 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500500 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100501 </text>
502
503 <text style="text_m">
504 <placement x="%col1_x_header%" y="%row4_header_y%"/>
505 <text>%tw_file%</text>
506 </text>
507
508 <template name="console"/>
509
510 <template name="progress_bar"/>
511
512 <action>
513 <condition var1="tw_operation_state" var2="1"/>
514 <action function="page">flash_done</action>
515 </action>
516 </page>
517
518 <page name="flash_done">
519 <template name="page"/>
520
521 <text style="text_l">
522 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500523 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100524 </text>
525
526 <text style="text_m_fail">
527 <condition var1="tw_operation_status" op="!=" var2="0"/>
528 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500529 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100530 </text>
531
532 <text style="text_m">
533 <condition var1="tw_operation_status" var2="0"/>
534 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500535 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100536 </text>
537
538 <template name="console"/>
539
540 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500541 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100542 <placement x="%col2_x_left%" y="%row15a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500543 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100544 <actions>
545 <action function="set">tw_back=flash_done</action>
546 <action function="set">tw_action=wipe</action>
547 <action function="set">tw_action_param=/cache</action>
548 <action function="set">tw_has_action2=1</action>
549 <action function="set">tw_action2=wipe</action>
550 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500551 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
552 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
553 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
554 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100555 <action function="page">confirm_action</action>
556 </actions>
557 </button>
558
559 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500560 <condition var1="tw_ab_device" var2="1"/>
561 <placement x="%indent%" y="%row21a_y%"/>
562 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
563 <actions>
564 <action function="set">tw_back=flash_done</action>
565 <action function="set">tw_action=wipe</action>
566 <action function="set">tw_action_param=dalvik</action>
567 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
568 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
569 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
570 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
571 <action function="page">confirm_action</action>
572 </actions>
573 </button>
574
575 <button style="main_button_half_width">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100576 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100577 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500578 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100579 <actions>
580 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500581 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100582 </actions>
583 </button>
584
Chaosmaster7b66bf52020-02-07 20:33:43 +0100585 <button style="main_button_half_width">
586 <condition var1="tw_ab_device" var2="1"/>
587 <placement x="%center_x%" y="%row15a_y%"/>
588 <text>{@reboot_btn=Reboot}</text>
589 <actions>
590 <action function="set">tw_back=main2</action>
591 <action function="page">reboot</action>
592 </actions>
593 </button>
594
595
z31s1g28f0a922015-11-07 18:50:22 +0100596 <action>
597 <touch key="back"/>
598 <actions>
599 <action function="set">tw_clear_destination=install</action>
600 <action function="page">clear_vars</action>
601 </actions>
602 </action>
603
604 <action>
605 <touch key="home"/>
606 <actions>
607 <action function="set">tw_clear_destination=main2</action>
608 <action function="page">clear_vars</action>
609 </actions>
610 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500611
612 <action>
613 <conditions>
614 <condition var1="tw_install_reboot" var2="1"/>
615 <condition var1="tw_operation_status" var2="0"/>
616 <condition var1="tw_reboot_system" var2="1"/>
617 </conditions>
618 <actions>
619 <action function="set">tw_sleep=%tw_sleep_total%</action>
620 <action function="page">flash_sleep_and_reboot</action>
621 </actions>
622 </action>
623 </page>
624
625 <page name="flash_sleep_and_reboot">
626 <template name="page"/>
627
628 <text style="text_l">
629 <placement x="%col1_x_header%" y="%row3_header_y%"/>
630 <text>{@install_zip_hdr=Install Zip}</text>
631 </text>
632
633 <text style="text_m">
634 <placement x="%col1_x_header%" y="%row4_header_y%"/>
635 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
636 </text>
637
638 <template name="console"/>
639
640 <template name="progress_bar"/>
641
642 <button style="main_button_half_width">
643 <condition var1="tw_sleep" op="&gt;" var2="0"/>
644 <placement x="%center_x%" y="%row15a_y%"/>
645 <text>{@cancel_btn=Cancel}</text>
646 <actions>
647 <action function="set">tw_install_reboot=0</action>
648 <action function="page">flash_done</action>
649 </actions>
650 </button>
651
652 <action>
653 <conditions>
654 <condition var1="tw_sleep" var2="tw_sleep_total"/>
655 <condition var1="tw_install_reboot" var2="1"/>
656 </conditions>
657 <action function="sleepcounter">%tw_sleep_total%</action>
658 </action>
659
660 <action>
661 <conditions>
662 <condition var1="tw_sleep" var2="0"/>
663 <condition var1="tw_install_reboot" var2="1"/>
664 </conditions>
665 <actions>
666 <action function="sleep">50000</action>
667 <action function="set">tw_back=main2</action>
668 <action function="page">reboot_system_routine</action>
669 </actions>
670 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100671 </page>
672
673 <page name="flashimage_confirm">
674 <template name="page"/>
675
676 <text style="text_l">
677 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500678 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100679 </text>
680
681 <text style="text_m">
682 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500683 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100684 </text>
685
686 <text style="text_m_accent">
687 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500688 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100689 </text>
690
691 <text style="text_m">
692 <placement x="%col1_x_left%" y="%row9_y%"/>
693 <text>%tw_zip_location%</text>
694 </text>
695
696 <text style="text_m_accent">
697 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500698 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100699 </text>
700
701 <text style="text_m">
702 <placement x="%col1_x_left%" y="%row12_y%"/>
703 <text>%tw_file%</text>
704 </text>
705
706 <partitionlist>
707 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
708 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500709 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100710 <data name="tw_flash_partition"/>
711 <listtype name="flashimg"/>
712 </partitionlist>
713
714 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500715 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100716 <actions>
717 <action function="set">tw_back=flashimage_confirm</action>
718 <action function="set">tw_action=flashimage</action>
719 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500720 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100721 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500722 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100723 <action function="page">action_page</action>
724 </actions>
725 <action function="flashimage"/>
726 </slider>
727
728 <action>
729 <touch key="back"/>
730 <actions>
731 <action function="set">tw_clear_destination=install</action>
732 <action function="page">clear_vars</action>
733 </actions>
734 </action>
735
736 <action>
737 <touch key="home"/>
738 <actions>
739 <action function="set">tw_clear_destination=main2</action>
740 <action function="page">clear_vars</action>
741 </actions>
742 </action>
743 </page>
744
745 <page name="clear_vars">
746 <action>
747 <action function="set">tw_operation_state=0</action>
748 <action function="set">tw_text1=</action>
749 <action function="set">tw_text2=</action>
750 <action function="set">tw_text3=</action>
751 <action function="set">tw_text4=</action>
752 <action function="set">tw_action_text1=</action>
753 <action function="set">tw_action_text2=</action>
754 <action function="set">tw_action_param=</action>
755 <action function="set">tw_has_action2=0</action>
756 <action function="set">tw_action2=</action>
757 <action function="set">tw_action2_param=</action>
758 <action function="set">tw_has_cancel=0</action>
759 <action function="set">tw_cancel_action=</action>
760 <action function="set">tw_cancel_param=</action>
761 <action function="set">tw_show_exclamation=0</action>
762 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400763 <action function="set">tw_crypto_user_id=</action>
764 <action function="set">tw_multiuser_warning_accepted=</action>
765 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100766 <action function="page">%tw_clear_destination%</action>
767 </action>
768 </page>
769
Matt Mower908dd252016-05-25 02:26:50 -0500770 <page name="reboot_system_routine">
771 <action>
772 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500773 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500774 <action function="set">tw_has_action2=0</action>
775 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
776 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
777 <action function="set">tw_text3=</action>
778 <action function="set">tw_text4=</action>
779 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
780 <action function="set">tw_action_text2=</action>
781 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
782 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
783 <action function="page">rebootcheck</action>
784 </action>
785 </page>
786
z31s1g28f0a922015-11-07 18:50:22 +0100787 <page name="confirm_action">
788 <template name="page"/>
789
790 <text style="text_l">
791 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500792 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100793 </text>
794
795 <text style="text_m">
796 <placement x="%col1_x_header%" y="%row4_header_y%"/>
797 <text/>
798 </text>
799
800 <text style="text_m_accent">
801 <placement x="%center_x%" y="%row2_y%" placement="5"/>
802 <text>%tw_text1%</text>
803 </text>
804
805 <text style="text_m_accent">
806 <placement x="%center_x%" y="%row3_y%" placement="5"/>
807 <text>%tw_text2%</text>
808 </text>
809
810 <text style="text_m">
811 <placement x="%center_x%" y="%row4_y%" placement="5"/>
812 <text>%tw_text3%</text>
813 </text>
814
815 <text style="text_m">
816 <placement x="%center_x%" y="%row5_y%" placement="5"/>
817 <text>%tw_text4%</text>
818 </text>
819
820 <text style="text_m">
821 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500822 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100823 </text>
824
825 <slider style="slider_centered">
826 <text>%tw_slider_text%</text>
827 <action function="page">action_page</action>
828 </slider>
829
830 <action>
831 <touch key="back"/>
832 <actions>
833 <action function="set">tw_clear_destination=%tw_back%</action>
834 <action function="page">clear_vars</action>
835 </actions>
836 </action>
837
838 <action>
839 <touch key="home"/>
840 <action function="page">main</action>
841 </action>
842 </page>
843
844 <page name="action_page">
845 <template name="page"/>
846
847 <text style="text_l">
848 <placement x="%col1_x_header%" y="%row3_header_y%"/>
849 <text>%tw_action_text1%</text>
850 </text>
851
852 <text style="text_m">
853 <placement x="%col1_x_header%" y="%row4_header_y%"/>
854 <text>%tw_action_text2%</text>
855 </text>
856
857 <template name="console"/>
858
859 <template name="progress_bar"/>
860
861 <button style="main_button_half_width">
862 <condition var1="tw_has_cancel" var2="1"/>
863 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500864 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100865 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
866 </button>
867
868 <action>
869 <condition var1="tw_operation_state" var2="1"/>
870 <actions>
871 <action function="page">action_complete</action>
872 </actions>
873 </action>
874
875 <action>
876 <condition var1="tw_has_action2" var2="0"/>
877 <actions>
878 <action function="%tw_action%">%tw_action_param%</action>
879 </actions>
880 </action>
881
882 <action>
883 <condition var1="tw_has_action2" var2="1"/>
884 <actions>
885 <action function="%tw_action%">%tw_action_param%</action>
886 <action function="%tw_action2%">%tw_action2_param%</action>
887 </actions>
888 </action>
889 </page>
890
891 <page name="singleaction_page">
892 <template name="page"/>
893
894 <text style="text_l">
895 <placement x="%col1_x_header%" y="%row3_header_y%"/>
896 <text>%tw_action_text1%</text>
897 </text>
898
899 <text style="text_m">
900 <placement x="%col1_x_header%" y="%row4_header_y%"/>
901 <text>%tw_action_text2%</text>
902 </text>
903
904 <template name="console"/>
905
906 <template name="progress_bar"/>
907
908 <action>
909 <condition var1="tw_operation_state" var2="1"/>
910 <actions>
911 <action function="set">tw_page_done=1</action>
912 </actions>
913 </action>
914
915 <action>
916 <condition var1="tw_has_action2" var2="0"/>
917 <actions>
918 <action function="%tw_action%">%tw_action_param%</action>
919 </actions>
920 </action>
921
922 <action>
923 <condition var1="tw_has_action2" var2="1"/>
924 <actions>
925 <action function="%tw_action%">%tw_action_param%</action>
926 <action function="%tw_action2%">%tw_action2_param%</action>
927 </actions>
928 </action>
929 </page>
930
931 <page name="action_complete">
932 <template name="page"/>
933
934 <text style="text_l">
935 <placement x="%col1_x_header%" y="%row3_header_y%"/>
936 <text>%tw_complete_text1%</text>
937 </text>
938
939 <text style="text_m_fail">
940 <condition var1="tw_operation_status" op="!=" var2="0"/>
941 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500942 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100943 </text>
944
945 <text style="text_m">
946 <condition var1="tw_operation_status" var2="0"/>
947 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500948 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100949 </text>
950
951 <template name="console"/>
952
953 <button style="main_button_half_width">
954 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500955 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100956 <actions>
957 <action function="set">tw_clear_destination=%tw_back%</action>
958 <action function="page">clear_vars</action>
959 </actions>
960 </button>
961
962 <button style="main_button_half_width">
963 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500964 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100965 <actions>
966 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500967 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100968 </actions>
969 </button>
970
971 <action>
972 <touch key="home"/>
973 <actions>
974 <action function="set">tw_clear_destination=main2</action>
975 <action function="page">clear_vars</action>
976 </actions>
977 </action>
978
979 <action>
980 <touch key="back"/>
981 <actions>
982 <action function="set">tw_clear_destination=%tw_back%</action>
983 <action function="page">clear_vars</action>
984 </actions>
985 </action>
986 </page>
987
988 <page name="filecheck">
989 <action>
990 <action function="fileexists">%tw_filecheck%</action>
991 </action>
992
993 <action>
994 <conditions>
995 <condition var1="tw_operation_state" var2="1"/>
996 <condition var1="tw_operation_status" var2="0"/>
997 </conditions>
998 <actions>
999 <action function="set">tw_fileexists=1</action>
1000 <action function="page">%tw_existpage%</action>
1001 </actions>
1002 </action>
1003
1004 <action>
1005 <conditions>
1006 <condition var1="tw_operation_state" var2="1"/>
1007 <condition var1="tw_operation_status" var2="1"/>
1008 </conditions>
1009 <actions>
1010 <action function="set">tw_fileexists=0</action>
1011 <action function="page">%tw_notexistpage%</action>
1012 </actions>
1013 </action>
1014 </page>
1015
1016 <page name="rebootcheck">
1017 <action>
1018 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker70e0a392020-12-17 14:51:50 -06001019 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001020 </action>
1021
1022 <action>
1023 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1024 <action function="page">confirm_action</action>
1025 </action>
1026 </page>
1027
1028 <page name="wipe">
1029 <template name="page"/>
1030
1031 <text style="text_l">
1032 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001033 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001034 </text>
1035
1036 <text style="text_m">
1037 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001038 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001039 </text>
1040
1041 <text style="text_m_accent">
1042 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001043 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001044 </text>
1045
1046 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001047 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001048 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1049 </text>
1050
1051 <text style="text_m_accent">
1052 <condition var1="tw_has_data_media" var2="1"/>
1053 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001054 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001055 </text>
1056
1057 <text style="text_m_accent">
1058 <conditions>
1059 <condition var1="tw_has_android_secure" var2="1"/>
1060 <condition var1="fileexists" var2="/and-sec"/>
1061 </conditions>
1062 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001063 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001064 </text>
1065
1066 <text style="text_m_accent">
1067 <condition var1="tw_has_sdext_partition" var2="1"/>
1068 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001069 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001070 </text>
1071
1072 <text style="text_m">
1073 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001074 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001075 </text>
1076
1077 <text style="text_m">
1078 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001079 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001080 </text>
1081
1082 <text style="text_m">
1083 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001084 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001085 </text>
1086
1087 <button style="main_button_half_width">
1088 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001089 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001090 <actions>
1091 <action function="set">partitionlisterror=0</action>
1092 <action function="page">advancedwipe</action>
1093 </actions>
1094 </button>
1095
1096 <button style="main_button_half_width">
1097 <condition var1="tw_has_data_media" var2="1"/>
1098 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001099 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001100 <action function="page">formatdata</action>
1101 </button>
1102
1103 <button style="main_button_half_width">
1104 <conditions>
1105 <condition var1="tw_is_encrypted" var2="1"/>
1106 <condition var1="tw_has_data_media" var2="0"/>
1107 </conditions>
1108 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001109 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001110 <actions>
1111 <action function="set">tw_back=wipe</action>
1112 <action function="set">tw_action=wipe</action>
1113 <action function="set">tw_action_param=DATAMEDIA</action>
1114 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001115 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001116 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001117 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1118 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1119 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001120 <action function="page">confirm_action</action>
1121 </actions>
1122 </button>
1123
1124 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001125 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001126 <actions>
1127 <action function="set">tw_back=wipe</action>
1128 <action function="set">tw_action=wipe</action>
1129 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001130 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1131 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <action function="page">action_page</action>
1133 </actions>
1134 </slider>
1135
1136 <action>
1137 <touch key="back"/>
1138 <action function="page">main</action>
1139 </action>
1140
1141 <action>
1142 <touch key="home"/>
1143 <action function="page">main</action>
1144 </action>
1145 </page>
1146
1147 <page name="advancedwipe">
1148 <template name="page"/>
1149
1150 <action>
1151 <action function="set">tw_wipe_list=</action>
1152 </action>
1153
1154 <text style="text_l">
1155 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001156 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001157 </text>
1158
1159 <text style="text_m">
1160 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001161 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001162 </text>
1163
1164 <partitionlist>
1165 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001166 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001167 <data name="tw_wipe_list"/>
1168 <listtype name="wipe"/>
1169 </partitionlist>
1170
1171 <text style="text_m_fail">
1172 <condition var1="partitionlisterror" var2="1"/>
1173 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001174 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001175 </text>
1176
1177 <button style="main_button_m">
1178 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001179 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001180 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001181 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001182 <action function="page">checkpartitionlist</action>
1183 </actions>
1184 </button>
1185
1186 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001187 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001188 <actions>
1189 <action function="set">tw_back=advancedwipe</action>
1190 <action function="set">tw_action=wipe</action>
1191 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001192 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1193 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1194 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001195 <action function="page">action_page</action>
1196 </actions>
1197 </slider>
1198
1199 <action>
1200 <touch key="home"/>
1201 <action function="page">main</action>
1202 </action>
1203
1204 <action>
1205 <touch key="back"/>
1206 <action function="page">wipe</action>
1207 </action>
1208 </page>
1209
1210 <page name="formatdata">
1211 <template name="page"/>
1212
1213 <text style="text_l">
1214 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001215 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001216 </text>
1217
1218 <text style="text_m">
1219 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001220 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001221 </text>
1222
1223 <text style="text_m_fail">
1224 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001225 <text>{@format_data_lcp1=Format Data will wipe all of your apps, backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001226 </text>
1227
1228 <text style="text_m_fail">
1229 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001230 <text>{@format_data_lcp2=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001231 </text>
1232
Ethan Yonker66a19492015-12-10 10:19:45 -06001233 <text style="text_m_fail">
1234 <condition var1="tw_has_adopted_storage" var2="1"/>
1235 <placement x="%center_x%" y="%row4_y%" placement="5"/>
1236 <text>{@format_data_adopted=Including Adopted Storage}</text>
1237 </text>
1238
z31s1g28f0a922015-11-07 18:50:22 +01001239 <text style="text_m">
1240 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001241 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001242 </text>
1243
1244 <text style="text_m">
1245 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001246 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001247 </text>
1248
1249 <input>
1250 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1251 <text>%tw_confirm_formatdata%</text>
1252 <data name="tw_confirm_formatdata"/>
1253 <restrict minlen="3" maxlen="3" allow="yes"/>
1254 <action function="page">formatdata_confirm</action>
1255 </input>
1256
1257 <fill color="%accent_color%">
1258 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1259 </fill>
1260
1261 <template name="keyboardtemplate"/>
1262
1263 <action>
1264 <touch key="home"/>
1265 <action function="page">main</action>
1266 </action>
1267
1268 <action>
1269 <touch key="back"/>
1270 <action function="page">wipe</action>
1271 </action>
1272 </page>
1273
1274 <page name="formatdata_confirm">
1275 <action>
1276 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1277 <actions>
1278 <action function="set">tw_back=formatdata</action>
1279 <action function="set">tw_action=wipe</action>
1280 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001281 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1282 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001283 <action function="page">action_page</action>
1284 </actions>
1285 </action>
1286
1287 <action>
1288 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1289 <action function="page">formatdata</action>
1290 </action>
1291 </page>
1292
1293 <page name="checkpartitionlist">
1294 <action>
1295 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1296 <actions>
1297 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001298 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001299 <action function="page">partitionoptions</action>
1300 </actions>
1301 </action>
1302
1303 <action>
1304 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1305 <actions>
1306 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001307 <action function="page">advancedwipe</action>
1308 </actions>
1309 </action>
1310 </page>
1311
1312 <page name="partitionoptions">
1313 <template name="page"/>
1314
1315 <text style="text_l">
1316 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001317 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001318 </text>
1319
1320 <text style="text_m">
1321 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001322 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001323 </text>
1324
1325 <text style="text_m_accent">
1326 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001327 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001328 </text>
1329
1330 <text style="text_m_accent">
1331 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001332 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001333 </text>
1334
1335 <text style="text_m">
1336 <condition var1="tw_partition_is_present" var2="1"/>
1337 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001338 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001339 </text>
1340
1341 <text style="text_m">
1342 <condition var1="tw_partition_is_present" var2="0"/>
1343 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001344 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001345 </text>
1346
1347 <text style="text_m">
1348 <condition var1="tw_partition_removable" var2="1"/>
1349 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001350 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001351 </text>
1352
1353 <text style="text_m">
1354 <condition var1="tw_partition_removable" var2="0"/>
1355 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001356 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001357 </text>
1358
1359 <text style="text_m">
1360 <placement x="%col2_x_left%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001362 </text>
1363
1364 <text style="text_m">
1365 <placement x="%col1_x_right%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001366 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001367 </text>
1368
1369 <text style="text_m">
1370 <placement x="%col2_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001371 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001372 </text>
1373
1374 <text style="text_m">
1375 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001376 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001377 </text>
1378
1379 <button style="main_button_half_width">
1380 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1381 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001382 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001383 <actions>
1384 <action function="set">tw_back=partitionoptions</action>
1385 <action function="set">tw_action=resize</action>
1386 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1387 <action function="set">tw_has_action2=1</action>
1388 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001389 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001390 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001391 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001392 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1393 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1394 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001395 <action function="page">confirm_action</action>
1396 </actions>
1397 </button>
1398
1399 <button style="main_button_half_width">
1400 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1401 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001402 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001403 <actions>
1404 <action function="set">tw_back=partitionoptions</action>
1405 <action function="set">tw_action=repair</action>
1406 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1407 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001408 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001409 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001410 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1411 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1412 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001413 <action function="page">confirm_action</action>
1414 </actions>
1415 </button>
1416
1417 <button style="main_button_half_width">
1418 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001419 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001420 <action function="page">selectfilesystem</action>
1421 </button>
1422
1423 <action>
1424 <touch key="home"/>
1425 <action function="page">main</action>
1426 </action>
1427
1428 <action>
1429 <touch key="back"/>
1430 <action function="page">advancedwipe</action>
1431 </action>
1432 </page>
1433
1434 <page name="refreshfilesystem">
1435 <action>
1436 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1437 <actions>
1438 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001439 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001440 <action function="page">selectfilesystem</action>
1441 </actions>
1442 </action>
1443
1444 <action>
1445 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1446 <actions>
1447 <action function="set">partitionlisterror=1</action>
1448 <action function="set">tw_wipe_list=</action>
1449 <action function="page">advancedwipe</action>
1450 </actions>
1451 </action>
1452 </page>
1453
1454 <page name="selectfilesystem">
1455 <template name="page"/>
1456
1457 <text style="text_l">
1458 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001459 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001460 </text>
1461
1462 <text style="text_m">
1463 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001464 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001465 </text>
1466
1467 <text style="text_m_accent">
1468 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001469 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001470 </text>
1471
1472 <text style="text_m_accent">
1473 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001474 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001475 </text>
1476
1477 <text style="text_m_fail">
1478 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001479 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001480 </text>
1481
1482 <text style="text_m_fail">
1483 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001484 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001485 </text>
1486
1487 <button style="main_button_half_width">
1488 <condition var1="tw_partition_ext" op="=" var2="1"/>
1489 <placement x="%col1_x_left%" y="%row11_y%"/>
1490 <text>EXT2</text>
1491 <actions>
1492 <action function="set">tw_back=refreshfilesystem</action>
1493 <action function="set">tw_action=changefilesystem</action>
1494 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1495 <action function="set">tw_action_new_file_system=ext2</action>
1496 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001497 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1498 <action function="set">tw_text2=EXT2</action>
1499 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1500 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1501 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001502 <action function="page">confirm_action</action>
1503 </actions>
1504 </button>
1505
1506 <button style="main_button_half_width">
1507 <condition var1="tw_partition_ext" op="=" var2="1"/>
1508 <placement x="%col2_x_left%" y="%row11_y%"/>
1509 <text>EXT3</text>
1510 <actions>
1511 <action function="set">tw_back=refreshfilesystem</action>
1512 <action function="set">tw_action=changefilesystem</action>
1513 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1514 <action function="set">tw_action_new_file_system=ext3</action>
1515 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001516 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1517 <action function="set">tw_text2=EXT3</action>
1518 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1519 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1520 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001521 <action function="page">confirm_action</action>
1522 </actions>
1523 </button>
1524
1525 <button style="main_button_half_width">
1526 <condition var1="tw_partition_ext" op="=" var2="1"/>
1527 <placement x="%center_x%" y="%row11_y%"/>
1528 <text>EXT4</text>
1529 <actions>
1530 <action function="set">tw_back=refreshfilesystem</action>
1531 <action function="set">tw_action=changefilesystem</action>
1532 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1533 <action function="set">tw_action_new_file_system=ext4</action>
1534 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001535 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1536 <action function="set">tw_text2=EXT4</action>
1537 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1538 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1539 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001540 <action function="page">confirm_action</action>
1541 </actions>
1542 </button>
1543
1544 <button style="main_button_half_width">
1545 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1546 <placement x="%col2_x_right%" y="%row11_y%"/>
1547 <text>FAT</text>
1548 <actions>
1549 <action function="set">tw_back=refreshfilesystem</action>
1550 <action function="set">tw_action=changefilesystem</action>
1551 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1552 <action function="set">tw_action_new_file_system=vfat</action>
1553 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001554 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1555 <action function="set">tw_text2=FAT</action>
1556 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1557 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1558 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001559 <action function="page">confirm_action</action>
1560 </actions>
1561 </button>
1562
1563 <button style="main_button_half_width">
1564 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1565 <placement x="%col2_x_left%" y="%row15a_y%"/>
1566 <text>exFAT</text>
1567 <actions>
1568 <action function="set">tw_back=refreshfilesystem</action>
1569 <action function="set">tw_action=changefilesystem</action>
1570 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1571 <action function="set">tw_action_new_file_system=exfat</action>
1572 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001573 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1574 <action function="set">tw_text2=exFAT</action>
1575 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1576 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1577 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001578 <action function="page">confirm_action</action>
1579 </actions>
1580 </button>
1581
1582 <button style="main_button_half_width">
1583 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1584 <placement x="%center_x%" y="%row15a_y%"/>
1585 <text>F2FS</text>
1586 <actions>
1587 <action function="set">tw_back=refreshfilesystem</action>
1588 <action function="set">tw_action=changefilesystem</action>
1589 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1590 <action function="set">tw_action_new_file_system=f2fs</action>
1591 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001592 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1593 <action function="set">tw_text2=F2FS</action>
1594 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1595 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1596 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001597 <action function="page">confirm_action</action>
1598 </actions>
1599 </button>
1600
1601 <action>
1602 <touch key="home"/>
1603 <action function="page">main</action>
1604 </action>
1605
1606 <action>
1607 <touch key="back"/>
1608 <action function="page">partitionoptions</action>
1609 </action>
1610 </page>
1611
1612 <page name="backup">
1613 <template name="page"/>
1614
Noah Jacobson81d638d2019-04-28 00:10:07 -04001615 <action>
1616 <conditions>
1617 <condition var1="tw_is_fbe" var2="1"/>
1618 <condition var1="tw_all_users_decrypted" var2="0"/>
1619 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1620 </conditions>
1621 <actions>
1622 <action function="set">tw_multiuser_warning_destination=backup</action>
1623 <action function="page">multiuser_warning</action>
1624 </actions>
1625 </action>
1626
z31s1g28f0a922015-11-07 18:50:22 +01001627 <text style="text_l">
1628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001629 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001630 </text>
1631
1632 <text style="text_m">
1633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001634 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001635 </text>
1636
1637 <text style="text_m_accent">
1638 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001639 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001640 </text>
1641
1642 <text style="text_m">
1643 <placement x="%col1_x_left%" y="%row3_y%"/>
1644 <text>%tw_backup_name%</text>
1645 </text>
1646
1647 <fill color="%fileselector_linecolor%">
1648 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1649 </fill>
1650
1651 <button>
1652 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1653 <fill color="%transparent%"/>
1654 <actions>
1655 <action function="set">tw_fileexists=0</action>
1656 <action function="page">backupname1</action>
1657 </actions>
1658 </button>
1659
1660 <partitionlist>
1661 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001662 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001663 <data name="tw_backup_list"/>
1664 <listtype name="backup"/>
1665 </partitionlist>
1666
1667 <text style="text_m_accent">
1668 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001669 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001670 </text>
1671
1672 <text style="text_m">
1673 <conditions>
1674 <condition var1="tw_include_encrypted_backup" var2="1"/>
1675 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001676 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001677 </conditions>
1678 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001679 <text>{@enc_disabled=disabled - set a password to enable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001680 </text>
1681
1682 <text style="text_m">
1683 <conditions>
1684 <condition var1="tw_include_encrypted_backup" var2="1"/>
1685 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001686 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001687 </conditions>
1688 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001689 <text>{@enc_enabled=enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001690 </text>
1691
1692 <fill color="%fileselector_linecolor%">
1693 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1694 </fill>
1695
1696 <button>
1697 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1698 <fill color="%transparent%"/>
1699 <actions>
1700 <action function="set">tw_password_not_match=0</action>
1701 <action function="page">backupencryption</action>
1702 </actions>
1703 </button>
1704
1705 <text style="text_m_accent">
1706 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001707 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001708 </text>
1709
1710 <checkbox>
1711 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001712 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001713 <data variable="tw_use_compression"/>
1714 </checkbox>
1715
1716 <checkbox>
1717 <placement x="%col1_x_right%" y="%row7a_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001718 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1719 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001720 </checkbox>
1721
1722 <checkbox>
1723 <placement x="%col1_x_right%" y="%row9_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001724 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001725 <data variable="tw_disable_free_space"/>
1726 </checkbox>
1727
1728 <button style="main_button_half_width">
bigbiffce8f83c2015-12-12 18:30:21 -05001729 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001730 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001731 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001732 <actions>
1733 <action function="set">tw_back=backup</action>
1734 <action function="overlay">select_storage</action>
1735 </actions>
1736 </button>
1737
1738 <button style="main_button_half_width">
1739 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001740 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001741 <actions>
1742 <action function="refreshsizes"/>
1743 <action function="page">backup</action>
1744 </actions>
1745 </button>
1746
1747 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001748 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001749 <action function="page">backup_run</action>
1750 </slider>
1751
1752 <action>
1753 <touch key="home"/>
1754 <action function="page">main</action>
1755 </action>
1756
1757 <action>
1758 <touch key="back"/>
1759 <action function="page">main</action>
1760 </action>
1761 </page>
1762
Noah Jacobson81d638d2019-04-28 00:10:07 -04001763 <page name="multiuser_warning">
1764 <template name="page"/>
1765
1766 <text style="text_l">
1767 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1768 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1769 </text>
1770
1771 <text style="text_m_fail">
1772 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1773 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1774 </text>
1775
1776 <text style="text_m_fail">
1777 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1778 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1779 </text>
1780
1781 <button style="main_button_m">
1782 <placement x="%col1_x_left%" y="%row15a_y%"/>
1783 <text>{@decrypt_users=Decrypt Users}</text>
1784 <action function="page">decrypt_users</action>
1785 </button>
1786
1787 <slider>
1788 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1789 <actions>
1790 <action function="set">tw_multiuser_warning_accepted=1</action>
1791 <action function="page">%tw_multiuser_warning_destination%</action>
1792 </actions>
1793 </slider>
1794
1795 <action>
1796 <touch key="home"/>
1797 <action function="page">main</action>
1798 </action>
1799
1800 <action>
1801 <touch key="back"/>
1802 <action function="page">main</action>
1803 </action>
1804 </page>
1805
z31s1g28f0a922015-11-07 18:50:22 +01001806 <page name="backupname1">
1807 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001808 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001809 <action function="generatebackupname"/>
1810 </action>
1811
1812 <action>
1813 <action function="page">backupname2</action>
1814 </action>
1815 </page>
1816
1817 <page name="backupname2">
1818 <template name="page"/>
1819
1820 <text style="text_l">
1821 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001822 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001823 </text>
1824
1825 <text style="text_m">
1826 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001827 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001828 </text>
1829
1830 <text style="text_m_accent">
1831 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001832 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001833 </text>
1834
1835 <input>
1836 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1837 <text>%tw_backup_name%</text>
1838 <data name="tw_backup_name"/>
1839 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1840 <actions>
1841 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1842 <action function="set">tw_existpage=backupname2</action>
1843 <action function="set">tw_notexistpage=backup</action>
1844 <action function="page">filecheck</action>
1845 </actions>
1846 </input>
1847
1848 <fill color="%accent_color%">
1849 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1850 </fill>
1851
1852 <fill color="%text_fail_color%">
1853 <condition var1="tw_fileexists" var2="1"/>
1854 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1855 </fill>
1856
1857 <text style="text_m_fail">
1858 <condition var1="tw_fileexists" var2="1"/>
1859 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001860 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001861 </text>
1862
1863 <button style="main_button_half_width_low">
1864 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001865 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001866 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001867 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001868 <action function="page">backup</action>
1869 </actions>
1870 </button>
1871
1872 <button style="main_button_half_width_low">
1873 <placement x="%date_button_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001874 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001875 <action function="appenddatetobackupname"/>
1876 </button>
1877
1878 <template name="keyboardtemplate"/>
1879
1880 <action>
1881 <touch key="home"/>
1882 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001883 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001884 <action function="page">main</action>
1885 </actions>
1886 </action>
1887
1888 <action>
1889 <touch key="back"/>
1890 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001892 <action function="page">backup</action>
1893 </actions>
1894 </action>
1895 </page>
1896
1897 <page name="backupencryption">
1898 <template name="page"/>
1899
1900 <text style="text_l">
1901 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001902 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001903 </text>
1904
1905 <text style="text_m">
1906 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001907 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001908 </text>
1909
1910 <text style="text_m_accent">
1911 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001912 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001913 </text>
1914
1915 <input>
1916 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1917 <text>%tw_backup_encrypt_display%</text>
1918 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1919 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1920 <action function="page">backupencryption2</action>
1921 </input>
1922
1923 <fill color="%accent_color%">
1924 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1925 </fill>
1926
1927 <fill color="%text_fail_color%">
1928 <condition var1="tw_password_not_match" var2="1"/>
1929 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1930 </fill>
1931
1932 <text style="text_m_fail">
1933 <condition var1="tw_password_not_match" var2="1"/>
1934 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001935 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001936 </text>
1937
1938 <button style="main_button_half_width_low">
1939 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001940 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001941 <actions>
1942 <action function="set">tw_encrypt_backup=0</action>
1943 <action function="set">tw_backup_password=</action>
1944 <action function="set">tw_backup_password2=</action>
1945 <action function="set">tw_backup_encrypt_display=</action>
1946 <action function="set">tw_backup_encrypt_display2=</action>
1947 <action function="page">backup</action>
1948 </actions>
1949 </button>
1950
1951 <template name="keyboardtemplate"/>
1952
1953 <action>
1954 <touch key="home"/>
1955 <action function="page">main</action>
1956 </action>
1957
1958 <action>
1959 <touch key="back"/>
1960 <action function="page">backup</action>
1961 </action>
1962 </page>
1963
1964 <page name="backupencryption2">
1965 <template name="page"/>
1966
1967 <text style="text_l">
1968 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001969 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001970 </text>
1971
1972 <text style="text_m">
1973 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001974 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001975 </text>
1976
1977 <text style="text_m_accent">
1978 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001979 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001980 </text>
1981
1982 <input>
1983 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1984 <text>%tw_backup_encrypt_display2%</text>
1985 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
1986 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1987 <action function="page">checkbackuppassword</action>
1988 </input>
1989
1990 <fill color="%accent_color%">
1991 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1992 </fill>
1993
1994 <text style="text_m">
1995 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001996 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001997 </text>
1998
1999 <button style="main_button_half_width_low">
2000 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002001 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002002 <actions>
2003 <action function="set">tw_encrypt_backup=0</action>
2004 <action function="set">tw_backup_password=</action>
2005 <action function="set">tw_backup_password2=</action>
2006 <action function="set">tw_backup_encrypt_display=</action>
2007 <action function="set">tw_backup_encrypt_display2=</action>
2008 <action function="page">backup</action>
2009 </actions>
2010 </button>
2011
2012 <template name="keyboardtemplate"/>
2013
2014 <action>
2015 <touch key="home"/>
2016 <action function="page">main</action>
2017 </action>
2018
2019 <action>
2020 <touch key="back"/>
2021 <action function="page">backup</action>
2022 </action>
2023 </page>
2024
2025 <page name="checkbackuppassword">
2026 <action>
2027 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2028 <actions>
2029 <action function="set">tw_encrypt_backup=1</action>
2030 <action function="page">backup</action>
2031 </actions>
2032 </action>
2033
2034 <action>
2035 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2036 <actions>
2037 <action function="set">tw_encrypt_backup=0</action>
2038 <action function="set">tw_password_not_match=1</action>
2039 <action function="set">tw_backup_password=</action>
2040 <action function="set">tw_backup_password2=</action>
2041 <action function="set">tw_backup_encrypt_display=</action>
2042 <action function="set">tw_backup_encrypt_display2=</action>
2043 <action function="page">backupencryption</action>
2044 </actions>
2045 </action>
2046 </page>
2047
2048 <page name="backup_run">
2049 <template name="page"/>
2050
2051 <text style="text_l">
2052 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2053 <text>%tw_operation%</text>
2054 </text>
2055
2056 <text style="text_m">
2057 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2058 <text>%tw_partition% Partition</text>
2059 </text>
2060
2061 <template name="console"/>
2062
2063 <template name="progress_bar"/>
2064
2065 <text style="text_m_accent">
2066 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002067 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002068 </text>
2069
2070 <text style="text_m">
2071 <placement x="%progress_text_x%" y="%row17_y%"/>
2072 <text>%tw_file_progress%</text>
2073 </text>
2074
2075 <text style="text_m">
2076 <placement x="%progress_text_x%" y="%row18_y%"/>
2077 <text>%tw_size_progress%</text>
2078 </text>
2079
2080 <button style="main_button_half_width">
2081 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002082 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002083 <action function="cancelbackup"/>
2084 </button>
2085
2086 <action>
2087 <action function="nandroid">backup</action>
2088 </action>
2089
2090 <action>
2091 <condition var1="tw_operation_state" var2="1"/>
2092 <condition var1="tw_cancel_backup" var2="0"/>
2093 <actions>
2094 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002095 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002096 <action function="set">tw_show_reboot=1</action>
2097 <action function="page">action_complete</action>
2098 </actions>
2099 </action>
2100
2101 <action>
2102 <condition var1="tw_operation_state" var2="1"/>
2103 <condition var1="tw_cancel_backup" var2="1"/>
2104 <actions>
2105 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002106 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002107 <action function="set">tw_show_reboot=1</action>
2108 <action function="page">action_complete</action>
2109 </actions>
2110 </action>
2111 </page>
2112
2113 <page name="restore">
2114 <template name="page"/>
2115
Noah Jacobson81d638d2019-04-28 00:10:07 -04002116 <action>
2117 <conditions>
2118 <condition var1="tw_is_fbe" var2="1"/>
2119 <condition var1="tw_all_users_decrypted" var2="0"/>
2120 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2121 </conditions>
2122 <actions>
2123 <action function="set">tw_multiuser_warning_destination=restore</action>
2124 <action function="page">multiuser_warning</action>
2125 </actions>
2126 </action>
2127
z31s1g28f0a922015-11-07 18:50:22 +01002128 <text style="text_l">
2129 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002130 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002131 </text>
2132
2133 <text style="text_m">
2134 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002135 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002136 </text>
2137
2138 <template name="sort_options"/>
2139
2140 <fileselector>
2141 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002142 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002143 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002144 <path name="tw_backups_folder"/>
2145 <data name="tw_restore" default=""/>
2146 <selection name="tw_restore_name"/>
2147 </fileselector>
2148
2149 <button style="main_button_half_width_low">
2150 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002151 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002152 <actions>
2153 <action function="set">tw_back=restore</action>
2154 <action function="overlay">select_storage</action>
2155 </actions>
2156 </button>
2157
2158 <action>
2159 <condition var1="tw_restore" op="modified"/>
2160 <actions>
2161 <action function="readBackup"/>
2162 <action function="page">restore_read</action>
2163 </actions>
2164 </action>
2165
2166 <action>
2167 <touch key="home"/>
2168 <action function="page">main</action>
2169 </action>
2170
2171 <action>
2172 <touch key="back"/>
2173 <action function="page">main</action>
2174 </action>
2175 </page>
2176
2177 <page name="restore_read">
2178 <action>
2179 <condition var1="tw_restore_encrypted" var2="1"/>
2180 <actions>
2181 <action function="set">tw_password_fail=0</action>
2182 <action function="page">restore_decrypt</action>
2183 </actions>
2184 </action>
2185
2186 <action>
2187 <condition var1="tw_restore_encrypted" var2="0"/>
2188 <actions>
2189 <action function="page">restore_select</action>
2190 </actions>
2191 </action>
2192 </page>
2193
2194 <page name="restore_decrypt">
2195 <template name="page"/>
2196
2197 <text style="text_l">
2198 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002199 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002200 </text>
2201
2202 <text style="text_m">
2203 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002204 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002205 </text>
2206
2207 <text style="text_m_accent">
2208 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002209 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002210 </text>
2211
2212 <input>
2213 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2214 <text>%tw_restore_display%</text>
2215 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2216 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2217 <action function="page">try_restore_decrypt</action>
2218 </input>
2219
2220 <fill color="%accent_color%">
2221 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2222 </fill>
2223
2224 <fill color="%text_fail_color%">
2225 <condition var1="tw_password_fail" var2="1"/>
2226 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2227 </fill>
2228
2229 <text style="text_m_fail">
2230 <condition var1="tw_password_fail" var2="1"/>
2231 <placement x="%col1_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002232 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002233 </text>
2234
2235 <button style="main_button_half_width_low">
2236 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002237 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002238 <actions>
2239 <action function="set">tw_page_done=1</action>
2240 <action function="page">restore</action>
2241 </actions>
2242 </button>
2243
2244 <button style="main_button_half_width_low">
2245 <placement x="%col_button_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002246 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002247 <actions>
2248 <action function="set">tw_back=restore</action>
2249 <action function="set">tw_action=cmd</action>
2250 <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 -05002251 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2252 <action function="set">tw_text2=%tw_restore_name%</action>
2253 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2254 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2255 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2256 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002257 <action function="page">confirm_action</action>
2258 </actions>
2259 </button>
2260
2261 <template name="keyboardtemplate"/>
2262
2263 <action>
2264 <touch key="home"/>
2265 <action function="page">main</action>
2266 </action>
2267
2268 <action>
2269 <touch key="back"/>
2270 <action function="page">restore</action>
2271 </action>
2272 </page>
2273
2274 <page name="try_restore_decrypt">
2275 <template name="page"/>
2276
2277 <text style="text_l">
2278 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002279 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002280 </text>
2281
2282 <text style="text_m">
2283 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002284 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002285 </text>
2286
2287 <template name="console"/>
2288
2289 <template name="progress_bar"/>
2290
2291 <action>
2292 <action function="decrypt_backup"/>
2293 </action>
2294
2295 <action>
2296 <conditions>
2297 <condition var1="tw_operation_state" var2="1"/>
2298 <condition var1="tw_operation_status" op="!=" var2="0"/>
2299 </conditions>
2300 <actions>
2301 <action function="set">tw_password_fail=1</action>
2302 <action function="page">restore_decrypt</action>
2303 </actions>
2304 </action>
2305
2306 <action>
2307 <conditions>
2308 <condition var1="tw_operation_state" var2="1"/>
2309 <condition var1="tw_operation_status" op="=" var2="0"/>
2310 </conditions>
2311 <actions>
2312 <action function="set">tw_page_done=1</action>
2313 <action function="page">restore_select</action>
2314 </actions>
2315 </action>
2316 </page>
2317
2318 <page name="restore_select">
2319 <template name="page"/>
2320
2321 <text style="text_l">
2322 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002323 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002324 </text>
2325
2326 <text style="text_m">
2327 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002328 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002329 </text>
2330
2331 <text style="text_m_accent">
2332 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002333 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002334 </text>
2335
2336 <text style="text_m">
2337 <placement x="%col1_x_left%" y="%row3_y%"/>
2338 <text>%tw_restore_name%</text>
2339 </text>
2340
2341 <fill color="%fileselector_linecolor%">
2342 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/>
2343 </fill>
2344
2345 <button>
2346 <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2347 <fill color="%transparent%"/>
2348 <actions>
2349 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2350 <action function="set">tw_fileexists=0</action>
2351 <action function="page">renamebackup</action>
2352 </actions>
2353 </button>
2354
2355 <partitionlist>
2356 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002357 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002358 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2359 <listtype name="restore"/>
2360 </partitionlist>
2361
2362 <text style="text_m_accent">
2363 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002364 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002365 </text>
2366
2367 <checkbox>
2368 <placement x="%col1_x_right%" y="%row6_y%"/>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002369 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002370 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2371 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002372 </checkbox>
2373
2374 <button style="main_button_half_width">
2375 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002376 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002377 <actions>
2378 <action function="set">tw_back=restore</action>
2379 <action function="set">tw_action=cmd</action>
2380 <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 -05002381 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002382 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002383 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2384 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2385 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2386 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002387 <action function="page">confirm_action</action>
2388 </actions>
2389 </button>
2390
2391 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002392 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002393 <action function="page">restore_run</action>
2394 </slider>
2395
2396 <action>
2397 <touch key="home"/>
2398 <action function="page">main</action>
2399 </action>
2400
2401 <action>
2402 <touch key="back"/>
2403 <action function="page">restore</action>
2404 </action>
2405 </page>
2406
2407 <page name="renamebackup">
2408 <template name="page"/>
2409
2410 <text style="text_l">
2411 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002412 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002413 </text>
2414
2415 <text style="text_m">
2416 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002417 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002418 </text>
2419
2420 <text style="text_m_accent">
2421 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002422 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002423 </text>
2424
2425 <input>
2426 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2427 <text>%tw_backup_rename%</text>
2428 <data name="tw_backup_rename"/>
2429 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2430 <actions>
2431 <action function="set">tw_back=restore</action>
2432 <action function="set">tw_action=cmd</action>
2433 <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 -05002434 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2435 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2436 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2437 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2438 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002439 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2440 <action function="set">tw_existpage=renamebackup</action>
2441 <action function="set">tw_notexistpage=confirm_action</action>
2442 <action function="page">filecheck</action>
2443 </actions>
2444 </input>
2445
2446 <fill color="%accent_color%">
2447 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2448 </fill>
2449
2450 <fill color="%text_fail_color%">
2451 <condition var1="tw_fileexists" var2="1"/>
2452 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2453 </fill>
2454
2455 <text style="text_m_fail">
2456 <condition var1="tw_fileexists" var2="1"/>
2457 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002458 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002459 </text>
2460
2461 <button style="main_button_half_width_low">
2462 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002463 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002464 <action function="page">restore_select</action>
2465 </button>
2466
2467 <template name="keyboardtemplate"/>
2468
2469 <action>
2470 <touch key="home"/>
2471 <action function="page">main</action>
2472 </action>
2473
2474 <action>
2475 <touch key="back"/>
2476 <action function="page">restore_select</action>
2477 </action>
2478 </page>
2479
2480 <page name="restore_run">
2481 <template name="page"/>
2482
2483 <text style="text_l">
2484 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002485 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002486 </text>
2487
2488 <text style="text_m">
2489 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2490 <text>%tw_operation% %tw_partition%</text>
2491 </text>
2492
2493 <template name="console"/>
2494
2495 <template name="progress_bar"/>
2496
2497 <text style="text_m_accent">
2498 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002499 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002500 </text>
2501
2502 <text style="text_m">
2503 <placement x="%progress_text_x%" y="%row18_y%"/>
2504 <text>%tw_size_progress%</text>
2505 </text>
2506
2507 <action>
2508 <condition var1="tw_operation_state" var2="1"/>
2509 <actions>
2510 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002511 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002512 <action function="set">tw_show_reboot=1</action>
2513 <action function="page">action_complete</action>
2514 </actions>
2515 </action>
2516
2517 <action>
2518 <action function="nandroid">restore</action>
2519 </action>
2520 </page>
2521
2522 <page name="mount">
2523 <template name="page"/>
2524
2525 <text style="text_l">
2526 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002527 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002528 </text>
2529
2530 <text style="text_m">
2531 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002532 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002533 </text>
2534
2535 <partitionlist>
2536 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002537 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002538 <listtype name="mount"/>
2539 </partitionlist>
2540
2541 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002542 <conditions>
2543 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2544 <condition var1="tw_is_super" op="=" var2="0"/>
2545 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002546 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002547 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002548 <image resource="checkbox_false"/>
2549 <action function="mountsystemtoggle">1</action>
2550 </button>
2551
2552 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002553 <conditions>
2554 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2555 <condition var1="tw_is_super" op="=" var2="0"/>
2556 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002557 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002558 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002559 <image resource="checkbox_true"/>
2560 <actions>
2561 <action function="set">tw_lifetime_writes=2</action>
2562 <action function="page">system_readonly_check</action>
2563 </actions>
2564 </button>
2565
2566 <button style="main_button_half_width">
2567 <condition var1="tw_has_usb_storage" var2="1"/>
2568 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002569 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002570 <action function="page">usb_mount</action>
2571 </button>
2572
2573 <button style="main_button_half_width">
2574 <conditions>
2575 <condition var1="tw_is_encrypted" var2="1"/>
2576 <condition var1="tw_is_decrypted" var2="0"/>
2577 </conditions>
2578 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002579 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002580 <action function="set">tw_crypto_user_id=0</action>
2581 <action function="set">tw_crypto_password=</action>
2582 <action function="set">tw_password_fail=0</action>
2583 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002584 <action function="page">decrypt</action>
2585 </button>
2586
2587 <button style="main_button_half_width">
2588 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002589 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002590 <actions>
2591 <action function="set">tw_back=mount</action>
2592 <action function="overlay">select_storage</action>
2593 </actions>
2594 </button>
2595
2596 <button style="main_button_half_width">
2597 <conditions>
2598 <condition var1="tw_has_mtp" var2="1"/>
2599 <condition var1="tw_mtp_enabled" var2="0"/>
2600 </conditions>
2601 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002602 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002603 <action function="startmtp"/>
2604 </button>
2605
2606 <button style="main_button_half_width">
2607 <conditions>
2608 <condition var1="tw_has_mtp" var2="1"/>
2609 <condition var1="tw_mtp_enabled" var2="1"/>
2610 </conditions>
2611 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002612 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002613 <action function="stopmtp"/>
2614 </button>
2615
2616 <action>
2617 <touch key="home"/>
2618 <action function="page">main</action>
2619 </action>
2620
2621 <action>
2622 <touch key="back"/>
2623 <action function="page">main</action>
2624 </action>
2625 </page>
2626
2627 <page name="usb_mount">
2628 <template name="page"/>
2629
2630 <text style="text_l">
2631 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002632 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002633 </text>
2634
2635 <text style="text_m">
2636 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002637 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002638 </text>
2639
2640 <text style="text_m_accent">
2641 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002642 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002643 </text>
2644
2645 <text style="text_m">
2646 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002647 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002648 </text>
2649
2650 <text style="text_m">
2651 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002652 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002653 </text>
2654
2655 <button style="main_button_half_width">
2656 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002657 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002658 <action function="page">usb_umount</action>
2659 </button>
2660
2661 <action>
2662 <action function="mount">usb</action>
2663 <action function="set">tw_busy=1</action>
2664 </action>
2665 </page>
2666
2667 <page name="usb_umount">
2668 <action>
2669 <action function="unmount">usb</action>
2670 </action>
2671
2672 <action>
2673 <action function="page">mount</action>
2674 <action function="set">tw_busy=0</action>
2675 </action>
2676 </page>
2677
2678 <page name="system_readonly_check">
2679 <action>
2680 <action function="checkpartitionlifetimewrites">/system</action>
2681 </action>
2682
2683 <action>
2684 <condition var1="tw_lifetime_writes" var2="1"/>
2685 <actions>
2686 <action function="mountsystemtoggle">0</action>
2687 <action function="page">mount</action>
2688 </actions>
2689 </action>
2690
2691 <action>
2692 <condition var1="tw_lifetime_writes" var2="0"/>
2693 <actions>
2694 <action function="set">tw_back=mount</action>
2695 <action function="page">system_readonly</action>
2696 </actions>
2697 </action>
2698 </page>
2699
bigbiffdf8436b2020-08-30 16:22:34 -04002700 <page name="fastbootreboot">
2701 <template name="page"/>
2702
2703 <text style="text_l">
2704 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2705 <text>{@reboot_hdr=Reboot}</text>
2706 </text>
2707
2708 <listbox style="advanced_listbox">
Captain Throwbackbd7085d2020-12-25 22:46:59 -05002709 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002710
2711 <listitem name="{@rb_system_btn=System}">
2712 <condition var1="tw_reboot_system" var2="1"/>
2713 <actions>
2714 <action function="set">tw_back=fastbootreboot</action>
2715 <action function="set">tw_action=reboot</action>
2716 <action function="set">tw_action_param=system</action>
2717 <action function="set">tw_reboot_param=system</action>
2718 <action function="set">tw_has_action2=0</action>
2719 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2720 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2721 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2722 <action function="page">confirm_action</action>
2723 </actions>
2724 </listitem>
2725
2726 <listitem name="{@rb_poweroff_btn=Power Off}">
2727 <condition var1="tw_reboot_poweroff" var2="1"/>
2728 <actions>
2729 <action function="set">tw_back=fastbootreboot</action>
2730 <action function="set">tw_action=reboot</action>
2731 <action function="set">tw_action_param=poweroff</action>
2732 <action function="set">tw_reboot_param=poweroff</action>
2733 <action function="set">tw_has_action2=0</action>
2734 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2735 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2736 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2737 <action function="page">confirm_action</action>
2738 </actions>
2739 </listitem>
2740
2741 <listitem name="{@rb_recovery_btn=Recovery}">
2742 <condition var1="tw_reboot_recovery" var2="1"/>
2743 <actions>
2744 <action function="set">tw_back=fastbootreboot</action>
2745 <action function="set">tw_action=reboot</action>
2746 <action function="set">tw_action_param=recovery</action>
2747 <action function="set">tw_reboot_param=recovery</action>
2748 <action function="set">tw_has_action2=0</action>
2749 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2750 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2751 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2752 <action function="page">confirm_action</action>
2753 </actions>
2754 </listitem>
2755
2756 <listitem name="{@rb_bootloader_btn=Bootloader}">
2757 <condition var1="tw_reboot_bootloader" var2="1"/>
2758 <actions>
2759 <action function="set">tw_back=fastbootreboot</action>
2760 <action function="set">tw_action=reboot</action>
2761 <action function="set">tw_action_param=bootloader</action>
2762 <action function="set">tw_reboot_param=bootloader</action>
2763 <action function="set">tw_has_action2=0</action>
2764 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2765 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2766 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2767 <action function="page">confirm_action</action>
2768 </actions>
2769 </listitem>
2770
2771 <listitem name="{@rb_download_btn=Download}">
2772 <condition var1="tw_download_mode" var2="1"/>
2773 <actions>
2774 <action function="set">tw_back=fastbootreboot</action>
2775 <action function="set">tw_action=reboot</action>
2776 <action function="set">tw_action_param=download</action>
2777 <action function="set">tw_reboot_param=download</action>
2778 <action function="set">tw_has_action2=0</action>
2779 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2780 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2781 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2782 <action function="page">confirm_action</action>
2783 </actions>
2784 </listitem>
2785
2786 <listitem name="{@fastboot_button=Fastboot}">
2787 <condition var1="tw_fastboot_mode" var2="1"/>
2788 <actions>
2789 <action function="set">tw_back=fastbootreboot</action>
2790 <action function="set">tw_action=reboot</action>
2791 <action function="set">tw_action_param=fastboot</action>
2792 <action function="set">tw_reboot_param=fastboot</action>
2793 <action function="set">tw_has_action2=0</action>
2794 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2795 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2796 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2797 <action function="page">confirm_action</action>
2798 </actions>
2799 </listitem>
2800
2801 <listitem name="{@rb_edl_btn=Edl}">
2802 <condition var1="tw_edl_mode" var2="1"/>
2803 <actions>
2804 <action function="set">tw_back=fastbootreboot</action>
2805 <action function="set">tw_action=reboot</action>
2806 <action function="set">tw_action_param=edl</action>
2807 <action function="set">tw_reboot_param=edl</action>
2808 <action function="set">tw_has_action2=0</action>
2809 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2810 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2811 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2812 <action function="page">confirm_action</action>
2813 </actions>
2814 </listitem>
2815 </listbox>
2816 <action>
2817 <touch key="home"/>
2818 <action function="page">fastboot</action>
2819 </action>
2820
2821 <action>
2822 <touch key="back"/>
2823 <action function="page">fastboot</action>
2824 </action>
2825 </page>
2826
z31s1g28f0a922015-11-07 18:50:22 +01002827 <page name="reboot">
Ethan Yonker70e0a392020-12-17 14:51:50 -06002828 <action>
2829 <action function="checkforapp"></action>
2830 <action function="page">reboot2</action>
2831 </action>
2832 </page>
2833
2834 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002835 <template name="page"/>
2836
2837 <text style="text_l">
2838 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002839 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002840 </text>
2841
bigbiffdf8436b2020-08-30 16:22:34 -04002842 <listbox style="advanced_listbox">
Captain Throwbackbd7085d2020-12-25 22:46:59 -05002843 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002844
2845 <listitem name="{@rb_system_btn=System}">
2846 <condition var1="tw_reboot_system" var2="1"/>
2847 <actions>
2848 <action function="set">tw_back=reboot</action>
2849 <action function="page">reboot_system_routine</action>
2850 </actions>
2851 </listitem>
2852
2853 <listitem name="{@rb_poweroff_btn=Power Off}">
2854 <condition var1="tw_reboot_poweroff" var2="1"/>
2855 <actions>
2856 <action function="set">tw_back=reboot</action>
2857 <action function="set">tw_action=reboot</action>
2858 <action function="set">tw_action_param=poweroff</action>
2859 <action function="set">tw_reboot_param=poweroff</action>
2860 <action function="set">tw_has_action2=0</action>
2861 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2862 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2863 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2864 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2865 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2866 <action function="page">rebootcheck</action>
2867 </actions>
2868 </listitem>
2869
2870 <listitem name="{@rb_recovery_btn=Recovery}">
2871 <condition var1="tw_reboot_recovery" var2="1"/>
2872 <actions>
2873 <action function="set">tw_back=reboot</action>
2874 <action function="set">tw_action=reboot</action>
2875 <action function="set">tw_action_param=recovery</action>
2876 <action function="set">tw_reboot_param=recovery</action>
2877 <action function="set">tw_has_action2=0</action>
2878 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2879 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2880 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2881 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2882 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2883 <action function="page">rebootcheck</action>
2884 </actions>
2885 </listitem>
2886
2887 <listitem name="{@rb_bootloader_btn=Bootloader}">
2888 <condition var1="tw_reboot_bootloader" var2="1"/>
2889 <actions>
2890 <action function="set">tw_back=reboot</action>
2891 <action function="set">tw_action=reboot</action>
2892 <action function="set">tw_action_param=bootloader</action>
2893 <action function="set">tw_reboot_param=bootloader</action>
2894 <action function="set">tw_has_action2=0</action>
2895 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2896 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2897 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2898 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2899 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2900 <action function="page">rebootcheck</action>
2901 </actions>
2902 </listitem>
2903
2904 <listitem name="{@rb_download_btn=Download}">
2905 <condition var1="tw_download_mode" var2="1"/>
2906 <actions>
2907 <action function="set">tw_back=reboot</action>
2908 <action function="set">tw_action=reboot</action>
2909 <action function="set">tw_action_param=download</action>
2910 <action function="set">tw_reboot_param=download</action>
2911 <action function="set">tw_has_action2=0</action>
2912 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2913 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2914 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2915 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2916 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2917 <action function="page">rebootcheck</action>
2918 </actions>
2919 </listitem>
2920
2921
2922 <listitem name="{@fastboot_button=Fastboot}">
2923 <condition var1="tw_fastboot_mode" var2="1"/>
2924 <actions>
2925 <action function="set">tw_back=reboot</action>
2926 <action function="set">tw_action=reboot</action>
2927 <action function="set">tw_action_param=fastboot</action>
2928 <action function="set">tw_reboot_param=fastboot</action>
2929 <action function="set">tw_has_action2=0</action>
2930 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2931 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2932 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2933 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2934 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2935 <action function="page">rebootcheck</action>
2936 </actions>
2937 </listitem>
2938
2939 <listitem name="{@rb_edl_btn=Edl}">
2940 <condition var1="tw_edl_mode" var2="1"/>
2941 <actions>
2942 <action function="set">tw_back=reboot</action>
2943 <action function="set">tw_action=reboot</action>
2944 <action function="set">tw_action_param=edl</action>
2945 <action function="set">tw_reboot_param=edl</action>
2946 <action function="set">tw_has_action2=0</action>
2947 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2948 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2949 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2950 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2951 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2952 <action function="page">rebootcheck</action>
2953 </actions>
2954 </button>
2955 </listbox>
2956
Ethan Yonker70e0a392020-12-17 14:51:50 -06002957 <button style="main_button">
2958 <condition var1="tw_app_install_status" var2="1"/>
2959 <placement x="%center_x%" y="%row12_y%"/>
2960 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
2961 <actions>
2962 <action function="set">tw_back=reboot</action>
2963 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
2964 <action function="page">installapp</action>
2965 </actions>
2966 </button>
2967
bigbiffdf8436b2020-08-30 16:22:34 -04002968 <text style="text_m">
2969 <condition var1="tw_has_boot_slots" var2="1"/>
Ethan Yonker70e0a392020-12-17 14:51:50 -06002970 <placement x="%col1_x_header%" y="%row14_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002971 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2972 </text>
2973
z31s1g28f0a922015-11-07 18:50:22 +01002974 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04002975 <condition var1="tw_has_boot_slots" var2="1"/>
2976 <placement x="%indent%" y="%row16_y%"/>
2977 <text>{@boot_slot_a=Slot A}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002978 <actions>
2979 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002980 <action function="set">tw_action=setbootslot</action>
2981 <action function="set">tw_action_param=A</action>
2982 <action function="set">tw_has_action2=0</action>
2983 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2984 <action function="set">tw_action_text2=</action>
2985 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2986 <action function="page">action_page</action>
z31s1g28f0a922015-11-07 18:50:22 +01002987 </actions>
2988 </button>
2989
2990 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04002991 <condition var1="tw_has_boot_slots" var2="1"/>
2992 <placement x="%center_x%" y="%row16_y%"/>
2993 <text>{@boot_slot_b=Slot B}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002994 <actions>
2995 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002996 <action function="set">tw_action=setbootslot</action>
2997 <action function="set">tw_action_param=B</action>
z31s1g28f0a922015-11-07 18:50:22 +01002998 <action function="set">tw_has_action2=0</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002999 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
3000 <action function="set">tw_action_text2=</action>
3001 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3002 <action function="page">action_page</action>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003003 </actions>
3004 </button>
3005
z31s1g28f0a922015-11-07 18:50:22 +01003006 <action>
3007 <touch key="home"/>
3008 <action function="page">main</action>
3009 </action>
3010
3011 <action>
3012 <touch key="back"/>
3013 <action function="page">main</action>
3014 </action>
3015 </page>
3016
Ethan Yonker70e0a392020-12-17 14:51:50 -06003017 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003018 <template name="page"/>
3019
3020 <text style="text_l">
3021 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003022 <text>%tw_appinstall_title%</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003023 </text>
3024
3025 <text style="text_m">
3026 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003027 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003028 </text>
3029
3030 <text style="text_m_accent">
3031 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3032 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3033 </text>
3034
3035 <text style="text_m_accent">
3036 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3037 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3038 </text>
3039
3040 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003041 <condition var1="tw_mount_system_ro" var2="0"/>
3042 <placement x="%indent%" y="%row7_y%"/>
3043 <text>{@reboot_install_app_system=Install as a System App}</text>
3044 <data variable="tw_app_install_system"/>
3045 </checkbox>
3046
3047 <button style="main_button_half_width">
3048 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003049 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003050 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003051 </button>
3052
3053 <slider>
3054 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3055 <actions>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003056 <action function="set">tw_action=installapp</action>
3057 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3058 <action function="set">tw_action_text2=</action>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003059 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003060 <action function="page">action_page</action>
3061 </actions>
3062 </slider>
3063
3064 <action>
3065 <touch key="home"/>
3066 <actions>
3067 <action function="set">tw_app_install_status=0</action>
3068 <action function="page">main</action>
3069 </actions>
3070 </action>
3071
3072 <action>
3073 <touch key="back"/>
3074 <actions>
3075 <action function="set">tw_app_install_status=0</action>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003076 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003077 </actions>
3078 </action>
3079 </page>
3080
z31s1g28f0a922015-11-07 18:50:22 +01003081 <page name="system_readonly">
3082 <template name="page"/>
3083
3084 <text style="text_l">
3085 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003086 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003087 </text>
3088
3089 <text style="text_m_accent">
3090 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003091 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003092 </text>
3093
3094 <text style="text_m">
3095 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003096 <text>{@sys_rol1=TWRP can leave your system partition unmodified to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003097 </text>
3098
3099 <text style="text_m">
3100 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003101 <text>{@sys_rol2=TWRP will be unable to prevent the stock ROM from replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003102 </text>
3103
3104 <text style="text_m_fail">
3105 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003106 <text>{@sys_rol3=Installing zips or performing adb operations may still modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003107 </text>
3108
3109 <checkbox>
3110 <condition var1="tw_is_encrypted" var2="0"/>
3111 <placement x="%col1_x_left%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003112 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003113 <data variable="tw_never_show_system_ro_page"/>
3114 </checkbox>
3115
3116 <button style="main_button_half_width">
3117 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003118 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003119 <actions>
3120 <action function="mountsystemtoggle">1</action>
3121 <action function="set">tw_page_done=1</action>
3122 <action function="page">%tw_back%</action>
3123 </actions>
3124 </button>
3125
z31s1g608d7ff2016-01-18 19:47:25 +01003126 <button style="main_button_half_width">
3127 <placement x="%col2_x_left%" y="%row15a_y%"/>
3128 <text>{@sel_lang_btn=Select Language}</text>
3129 <action function="overlay">select_language</action>
3130 </button>
3131
z31s1g28f0a922015-11-07 18:50:22 +01003132 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003133 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003134 <actions>
3135 <action function="mountsystemtoggle">0</action>
3136 <action function="set">tw_page_done=1</action>
3137 <action function="page">%tw_back%</action>
3138 </actions>
3139 </slider>
3140 </page>
3141
3142 <page name="settings">
3143 <template name="page"/>
3144
3145 <text style="text_l">
3146 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003147 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003148 </text>
3149
3150 <text style="text_m">
3151 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003152 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003153 </text>
3154
3155 <template name="tabs_settings"/>
3156
3157 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003158 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003159 </fill>
3160
3161 <listbox style="scrolllist">
3162 <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/>
3163 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003164 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003165 <data variable="tw_signed_zip_verify"/>
3166 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003167 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3168 <data variable="tw_install_reboot"/>
3169 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003170 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003171 <data variable="tw_rm_rf"/>
3172 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003173 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3174 <data variable="tw_disable_free_space"/>
3175 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003176 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3177 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003178 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003179 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3180 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003181 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003182 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003183 <data variable="tw_military_time"/>
3184 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003185 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003186 <data variable="tw_simulate_actions"/>
3187 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003188 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003189 <condition var1="tw_simulate_actions" var2="1"/>
3190 <data variable="tw_simulate_fail"/>
3191 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003192 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3193 <condition var1="tw_no_sha2" var2="0"/>
3194 <data variable="tw_use_sha2"/>
3195 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003196 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3197 <data variable="tw_unmount_system"/>
3198 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003199 </listbox>
3200
3201 <checkbox>
3202 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003203 <text>{@rev_navbar_chk=Reversed navbar layout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003204 <data variable="tw_samsung_navbar"/>
3205 </checkbox>
3206
3207 <button style="radiobutton">
3208 <condition var1="tw_navbar_button_position" op="!=" var2="0"/>
3209 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003210 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003211 <image resource="radio_false"/>
3212 <action function="set">tw_navbar_button_position=0</action>
3213 </button>
3214
3215 <button style="radiobutton">
3216 <condition var1="tw_navbar_button_position" var2="0"/>
3217 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003218 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003219 <image resource="radio_true"/>
3220 <action function="set">tw_navbar_button_position=0</action>
3221 </button>
3222
3223 <button style="radiobutton">
3224 <condition var1="tw_navbar_button_position" op="!=" var2="1"/>
3225 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003226 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003227 <image resource="radio_false"/>
3228 <action function="set">tw_navbar_button_position=1</action>
3229 </button>
3230
3231 <button style="radiobutton">
3232 <condition var1="tw_navbar_button_position" var2="1"/>
3233 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003234 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003235 <image resource="radio_true"/>
3236 <action function="set">tw_navbar_button_position=1</action>
3237 </button>
3238
3239 <button style="radiobutton">
3240 <condition var1="tw_navbar_button_position" op="!=" var2="2"/>
3241 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003242 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003243 <image resource="radio_false"/>
3244 <action function="set">tw_navbar_button_position=2</action>
3245 </button>
3246
3247 <button style="radiobutton">
3248 <condition var1="tw_navbar_button_position" var2="2"/>
3249 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003250 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003251 <image resource="radio_true"/>
3252 <action function="set">tw_navbar_button_position=2</action>
3253 </button>
3254
3255 <button style="main_button_half_width">
3256 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003257 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003258 <action function="restoredefaultsettings"/>
3259 </button>
3260
3261 <action>
3262 <touch key="home"/>
3263 <action function="page">main</action>
3264 </action>
3265
3266 <action>
3267 <touch key="back"/>
3268 <action function="page">main</action>
3269 </action>
3270 </page>
3271
3272 <page name="settings_timezone">
3273 <template name="page"/>
3274
3275 <text style="text_l">
3276 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003277 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003278 </text>
3279
3280 <text style="text_m">
3281 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 </text>
3284
3285 <template name="tabs_settings"/>
3286
3287 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003288 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003289 </fill>
3290
3291 <listbox>
3292 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003293 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003294 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003295 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3296 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3297 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3298 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3299 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3300 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3301 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3302 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3303 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3304 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3305 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3306 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3307 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3308 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3309 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3310 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3311 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3312 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3313 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3314 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3315 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3316 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3317 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3318 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003319 </listbox>
3320
3321 <text style="text_m_accent">
3322 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003323 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003324 </text>
3325
3326 <button style="button_quarter_width">
3327 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003328 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003329 <action function="set">tw_time_zone_guioffset=0</action>
3330 </button>
3331
3332 <button style="button_quarter_width">
3333 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003334 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003335 <action function="set">tw_time_zone_guioffset=15</action>
3336 </button>
3337
3338 <button style="button_quarter_width">
3339 <placement x="%btn4_col3_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003340 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003341 <action function="set">tw_time_zone_guioffset=30</action>
3342 </button>
3343
3344 <button style="button_quarter_width">
3345 <placement x="%btn4_col4_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003346 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003347 <action function="set">tw_time_zone_guioffset=45</action>
3348 </button>
3349
3350 <checkbox>
3351 <placement x="%col1_x_right%" y="%row7_y%"/>
3352 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003353 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003354 <data variable="tw_time_zone_guidst"/>
3355 <image checked="checkbox_true" unchecked="checkbox_false"/>
3356 </checkbox>
3357
3358 <text color="%text_color%">
3359 <font resource="font_m"/>
3360 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003361 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003362 </text>
3363
3364 <button>
3365 <highlight color="%highlight_color%"/>
3366 <placement x="%col2_x_right%" y="%row15a_y%"/>
3367 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003368 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003369 <image resource="main_button_half_width"/>
3370 <action function="setguitimezone"/>
3371 </button>
3372
3373 <action>
3374 <touch key="home"/>
3375 <action function="page">main</action>
3376 </action>
3377
3378 <action>
3379 <touch key="back"/>
3380 <action function="page">main</action>
3381 </action>
3382 </page>
3383
3384 <page name="settings_screen">
3385 <template name="page"/>
3386
3387 <text style="text_l">
3388 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003389 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003390 </text>
3391
3392 <text style="text_m">
3393 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003394 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003395 </text>
3396
3397 <template name="tabs_settings"/>
3398
3399 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003400 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003401 </fill>
3402
3403 <button>
3404 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3405 <font resource="font_m" color="%text_color%"/>
3406 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3407 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003408 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 <image resource="checkbox_false"/>
3410 <action function="set">tw_screen_timeout_secs=60</action>
3411 </button>
3412
3413 <button>
3414 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3415 <font resource="font_m" color="%text_color%"/>
3416 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3417 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003418 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003419 <image resource="checkbox_true"/>
3420 <action function="set">tw_screen_timeout_secs=0</action>
3421 </button>
3422
3423 <slidervalue>
3424 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3425 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3426 <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003427 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003428 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3429 </slidervalue>
3430
3431 <slidervalue>
3432 <condition var1="tw_has_brightnesss_file" var2="1"/>
3433 <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003434 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003435 <data variable="tw_brightness_pct" min="10" max="100"/>
3436 <actions>
3437 <action function="set">tw_brightness=%tw_brightness_max%</action>
3438 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3439 <action function="compute">tw_brightness/100</action>
3440 <action function="setbrightness">%tw_brightness%</action>
3441 </actions>
3442 </slidervalue>
3443
3444 <action>
3445 <touch key="home"/>
3446 <action function="page">main</action>
3447 </action>
3448
3449 <action>
3450 <touch key="back"/>
3451 <action function="page">main</action>
3452 </action>
3453 </page>
3454
3455 <page name="settings_vibration">
3456 <template name="page"/>
3457
3458 <text style="text_l">
3459 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003460 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003461 </text>
3462
3463 <text style="text_m">
3464 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003465 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003466 </text>
3467
3468 <template name="tabs_settings"/>
3469
3470 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003471 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003472 </fill>
3473
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003474 <text style="text_m">
3475 <condition var1="tw_disable_haptics" var2="1"/>
3476 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
3477 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3478 </text>
3479
z31s1g28f0a922015-11-07 18:50:22 +01003480 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003481 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003482 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003483 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003484 <data variable="tw_button_vibrate" min="0" max="300"/>
3485 </slidervalue>
3486
3487 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003488 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003489 <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003490 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003491 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3492 </slidervalue>
3493
3494 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003495 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003496 <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003497 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003498 <data variable="tw_action_vibrate" min="0" max="500"/>
3499 </slidervalue>
3500
3501 <action>
3502 <touch key="home"/>
3503 <action function="page">main</action>
3504 </action>
3505
3506 <action>
3507 <touch key="back"/>
3508 <action function="page">main</action>
3509 </action>
3510 </page>
3511
Ethan Yonker74db1572015-10-28 12:44:49 -05003512 <page name="settings_language">
3513 <template name="page"/>
3514
3515 <text style="text_l">
3516 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3517 <text>{@settings_hdr=Settings}</text>
3518 </text>
3519
3520 <text style="text_m">
3521 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3522 <text>{@language_hdr=Language - %tw_language_display%}</text>
3523 </text>
3524
3525 <template name="tabs_settings"/>
3526
3527 <fill color="%text_color%">
3528 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3529 </fill>
3530
3531 <listbox>
z31s1g56189522016-01-13 19:12:40 +01003532 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003533 <text>{@select_language=Select Language:}</text>
3534 <icon selected="radio_true" unselected="radio_false" />
3535 <data name="tw_language" />
3536 </listbox>
3537
z31s1g56189522016-01-13 19:12:40 +01003538 <button>
3539 <highlight color="%highlight_color%"/>
3540 <placement x="%col2_x_right%" y="%row15a_y%"/>
3541 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003542 <text>{@set_language_btn=Set Language}</text>
z31s1g56189522016-01-13 19:12:40 +01003543 <image resource="main_button_half_width"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003544 <action function="setlanguage"></action>
3545 </button>
3546
3547 <action>
3548 <touch key="home" />
3549 <action function="page">main</action>
3550 </action>
3551
3552 <action>
3553 <touch key="back" />
3554 <action function="page">settings</action>
3555 </action>
3556 </page>
3557
Matt Mower32676622017-01-18 18:56:13 -06003558 <page name="copylog">
3559 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003560
Matt Mower32676622017-01-18 18:56:13 -06003561 <text style="text_l">
3562 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3563 <text>{@copying_log=Copy Logs to SD Card}</text>
3564 </text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003565
Matt Mower32676622017-01-18 18:56:13 -06003566 <checkbox>
3567 <placement x="%indent%" y="%row4_y%"/>
3568 <text>{@include_kernel_log=Include Kernel Log}</text>
3569 <data variable="tw_include_kernel_log" value="1"/>
3570 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003571
Matt Mower32676622017-01-18 18:56:13 -06003572 <slider>
3573 <text>{@copying_log=Copy Logs to SD Card}</text>
3574 <actions>
3575 <action function="set">tw_back=advanced</action>
3576 <action function="set">tw_action=copylog</action>
3577 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3578 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
3579 <action function="page">action_page</action>
3580 </actions>
3581 </slider>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003582
Matt Mower32676622017-01-18 18:56:13 -06003583 <action>
3584 <touch key="home"/>
3585 <action function="page">main</action>
3586 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003587
Matt Mower32676622017-01-18 18:56:13 -06003588 <action>
3589 <touch key="back"/>
3590 <actions>
3591 <action function="page">advanced</action>
3592 </actions>
3593 </action>
3594 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003595
z31s1g28f0a922015-11-07 18:50:22 +01003596 <page name="advanced">
3597 <template name="page"/>
3598
3599 <text style="text_l">
3600 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003601 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003602 </text>
3603
3604 <button style="main_button">
3605 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003606 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003607 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003608 </button>
3609
3610 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003611 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003612 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003613 <action function="page">filemanagerlist</action>
3614 </button>
3615
3616 <button style="main_button">
3617 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003618 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01003619 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003620 </button>
3621
3622 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003623 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003624 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003625 <action function="page">sideload</action>
3626 </button>
3627
Ethan Yonker64e0a652018-07-25 09:52:17 -05003628 <listbox style="advanced_listbox">
3629 <placement x="%center_x%" y="%row2_y%" w="%content_half_width%" h="%fileselector_install_height%"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003630 <listitem name="{@decrypt_users=Decrypt Users}">
3631 <conditions>
3632 <condition var1="tw_is_fbe" var2="1"/>
3633 <condition var1="tw_all_users_decrypted" var2="0"/>
3634 </conditions>
3635 <actions>
3636 <action function="set">tw_crypto_user_id=</action>
3637 <action function="page">decrypt_users</action>
3638 </actions>
3639 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003640 <listitem name="{@reload_theme_btn=Reload Theme}">
3641 <action function="reload"/>
3642 </listitem>
3643 <listitem name="{@part_sd_btn=Partition SD Card}">
3644 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3645 <actions>
3646 <action function="set">partitionlisterror=0</action>
3647 <action function="page">partsdcardsel</action>
3648 </actions>
3649 </listitem>
3650 <listitem name="{@fix_context_btn=Fix Contexts}">
3651 <condition var1="tw_has_data_media" var2="1"/>
3652 <action function="page">fixcontexts</action>
3653 </listitem>
3654 <listitem name="{@dumlock_btn=HTC Dumlock}">
3655 <condition var1="tw_show_dumlock" var2="1"/>
3656 <action function="page">htcdumlock</action>
3657 </listitem>
3658 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3659 <condition var1="tw_has_injecttwrp" var2="1"/>
3660 <actions>
3661 <action function="set">tw_back=advanced</action>
3662 <action function="set">tw_action=reinjecttwrp</action>
3663 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3664 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3665 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3666 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3667 <action function="page">confirm_action</action>
3668 </actions>
3669 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003670 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3671 <conditions>
3672 <condition var1="tw_has_boot_slots" var2="1"/>
3673 <condition var1="tw_has_repack_tools" var2="1"/>
3674 </conditions>
3675 <actions>
3676 <action function="set">tw_repack_kernel=0</action>
3677 <action function="page">repackselect</action>
3678 </actions>
3679 </listitem>
3680 <listitem name="{@install_kernel=Install Kernel}">
3681 <conditions>
3682 <condition var1="tw_has_boot_slots" var2="1"/>
3683 <condition var1="tw_has_repack_tools" var2="1"/>
3684 </conditions>
3685 <actions>
3686 <action function="set">tw_repack_kernel=1</action>
3687 <action function="page">repackselect</action>
3688 </actions>
3689 </listitem>
3690 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3691 <conditions>
3692 <condition var1="tw_has_boot_slots" var2="1"/>
3693 <condition var1="tw_has_repack_tools" var2="1"/>
3694 </conditions>
3695 <actions>
3696 <action function="set">tw_back=advanced</action>
3697 <action function="set">tw_action=fixabrecoverybootloop</action>
3698 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3699 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3700 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3701 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3702 <action function="page">confirm_action</action>
3703 </actions>
3704 </listitem>
Ethan Yonker70e0a392020-12-17 14:51:50 -06003705 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3706 <condition var1="tw_app_install_status" var2="1"/>
3707 <actions>
3708 <action function="set">tw_back=advanced</action>
3709 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3710 <action function="page">installapp</action>
3711 </actions>
3712 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003713 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3714 <condition var1="tw_app_installed_in_system" var2="1"/>
3715 <actions>
3716 <action function="set">tw_back=advanced</action>
3717 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3718 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3719 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3720 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3721 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3722 <action function="page">confirm_action</action>
3723 </actions>
3724 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003725 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003726
3727 <action>
3728 <touch key="home"/>
3729 <action function="page">main</action>
3730 </action>
3731
3732 <action>
3733 <touch key="back"/>
3734 <action function="page">main</action>
3735 </action>
3736 </page>
3737
Ethan Yonker483e9f42016-01-11 22:21:18 -06003738 <page name="partsdcardsel">
3739 <template name="page"/>
3740
3741 <text style="text_l">
3742 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3743 <text>{@advanced_hdr=Advanced}</text>
3744 </text>
3745
3746 <text style="text_m">
3747 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3748 <text>{@part_sd_hdr=Partition SD Card}</text>
3749 </text>
3750
z31s1g782e1c92016-01-30 16:50:09 +01003751 <partitionlist>
3752 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003753 <text>{@sel_storage_list=Select Storage}</text>
3754 <data name="tw_storage_path"/>
3755 <listtype name="storage"/>
3756 </partitionlist>
3757
z31s1g782e1c92016-01-30 16:50:09 +01003758 <text style="text_m_fail">
3759 <condition var1="partitionlisterror" var2="1"/>
3760 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3761 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3762 </text>
3763
3764 <button style="main_button_half_width">
3765 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003766 <text>{@ok_btn=OK}</text>
3767 <actions>
3768 <action function="getpartitiondetails">tw_storage_path</action>
3769 <action function="page">partsdcardcheck</action>
3770 </actions>
3771 </button>
3772
Ethan Yonker483e9f42016-01-11 22:21:18 -06003773 <action>
3774 <touch key="home"/>
3775 <action function="page">main</action>
3776 </action>
3777
3778 <action>
3779 <touch key="back"/>
3780 <action function="page">advanced</action>
3781 </action>
3782 </page>
3783
3784 <page name="partsdcardcheck">
3785 <action>
3786 <condition var1="tw_partition_removable" op="=" var2="1"/>
3787 <actions>
3788 <action function="set">partitionlisterror=0</action>
3789 <action function="page">partsdcard</action>
3790 </actions>
3791 </action>
3792
3793 <action>
3794 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3795 <actions>
3796 <action function="set">partitionlisterror=1</action>
3797 <action function="page">partsdcardsel</action>
3798 </actions>
3799 </action>
3800 </page>
3801
z31s1g28f0a922015-11-07 18:50:22 +01003802 <page name="partsdcard">
3803 <template name="page"/>
3804
3805 <text style="text_l">
3806 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003807 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003808 </text>
3809
3810 <text style="text_m">
3811 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003812 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003813 </text>
3814
3815 <text style="text_m_fail">
3816 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003817 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003818 </text>
3819
3820 <text style="text_m_fail">
3821 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003822 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003823 </text>
3824
3825 <text style="text_m_accent">
3826 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003827 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003828 </text>
3829
3830 <text style="text_m">
3831 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3832 <text>%tw_sdext_size%</text>
3833 </text>
3834
3835 <button style="button_quarter_width">
3836 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003837 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003838 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003839 </button>
3840
3841 <button style="button_quarter_width">
3842 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003843 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003844 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003845 </button>
3846
3847 <text style="text_m_accent">
3848 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003849 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003850 </text>
3851
3852 <text style="text_m">
3853 <placement x="%center_x%" y="%row10_y%" placement="5"/>
3854 <text>%tw_swap_size%</text>
3855 </text>
3856
3857 <button style="button_quarter_width">
3858 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003859 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003860 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003861 </button>
3862
3863 <button style="button_quarter_width">
3864 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003865 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003866 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003867 </button>
3868
3869 <text style="text_m_accent">
3870 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003871 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003872 </text>
3873
3874 <text style="text_m">
3875 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3876 <text>%tw_sdpart_file_system%</text>
3877 </text>
3878
3879 <button style="button_quarter_width">
3880 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
3881 <text>EXT3</text>
3882 <action function="set">tw_sdpart_file_system=ext3</action>
3883 </button>
3884
3885 <button style="button_quarter_width">
3886 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
3887 <text>EXT4</text>
3888 <action function="set">tw_sdpart_file_system=ext4</action>
3889 </button>
3890
3891 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05003892 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003893 <action function="page">partsdcardaction</action>
3894 <actions>
3895 <action function="set">tw_back=partsdcard</action>
3896 <action function="set">tw_action=partitionsd</action>
3897 <action function="set">tw_has_action2=1</action>
3898 <action function="set">tw_action2=set</action>
3899 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003900 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3901 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3902 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003903 <action function="page">action_page</action>
3904 </actions>
3905 </slider>
3906
3907 <action>
3908 <touch key="home"/>
3909 <action function="page">main</action>
3910 </action>
3911
3912 <action>
3913 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003914 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01003915 </action>
3916 </page>
3917
3918 <page name="htcdumlock">
3919 <template name="page"/>
3920
3921 <text style="text_l">
3922 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003923 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003924 </text>
3925
3926 <text style="text_m">
3927 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003928 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003929 </text>
3930
3931 <button style="main_button_m">
3932 <placement x="%col2_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003933 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003934 <actions>
3935 <action function="set">tw_back=htcdumlock</action>
3936 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003937 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3938 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3939 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3940 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003941 <action function="page">confirm_action</action>
3942 </actions>
3943 </button>
3944
3945 <button style="main_button_m">
3946 <placement x="%col2_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003947 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003948 <actions>
3949 <action function="set">tw_back=htcdumlock</action>
3950 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003951 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3952 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3953 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3954 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003955 <action function="page">confirm_action</action>
3956 </actions>
3957 </button>
3958
3959 <button style="main_button_m">
3960 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003961 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003962 <actions>
3963 <action function="set">tw_back=htcdumlock</action>
3964 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003965 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3966 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3967 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3968 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003969 <action function="page">confirm_action</action>
3970 </actions>
3971 </button>
3972
3973 <action>
3974 <touch key="home"/>
3975 <action function="page">main</action>
3976 </action>
3977
3978 <action>
3979 <touch key="back"/>
3980 <action function="page">advanced</action>
3981 </action>
3982 </page>
3983
Ethan Yonker53796e72019-01-11 22:49:52 -06003984 <page name="repackselect">
3985 <template name="page"/>
3986
3987 <text style="text_l">
3988 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3989 <text>{@repack_image_hdr=Select Image}</text>
3990 </text>
3991
3992 <text style="text_m">
3993 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3994 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
3995 </text>
3996
3997 <template name="sort_options"/>
3998
3999 <fileselector>
4000 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4001 <text>%tw_zip_location%</text>
4002 <filter extn=".img" folders="1" files="1"/>
4003 <path name="tw_zip_location" default="/sdcard"/>
4004 <data name="tw_filename"/>
4005 <selection name="tw_file"/>
4006 </fileselector>
4007
4008 <button style="main_button_half_width_low">
4009 <placement x="%col_button_right%" y="%row16a_y%"/>
4010 <text>{@select_storage_btn=Select Storage}</text>
4011 <actions>
4012 <action function="set">tw_back=install</action>
4013 <action function="overlay">select_storage</action>
4014 </actions>
4015 </button>
4016
4017 <action>
4018 <conditions>
4019 <condition var1="tw_filename" op="modified"/>
4020 </conditions>
4021 <action function="page">repackconfirm</action>
4022 </action>
4023
4024 <action>
4025 <touch key="back"/>
4026 <action function="page">advanced</action>
4027 </action>
4028
4029 <action>
4030 <touch key="home"/>
4031 <action function="page">main</action>
4032 </action>
4033 </page>
4034
4035 <page name="repackconfirm">
4036 <template name="page"/>
4037
4038 <text style="text_l">
4039 <condition var1="tw_repack_kernel" var2="1"/>
4040 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4041 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4042 </text>
4043
4044 <text style="text_l">
4045 <condition var1="tw_repack_kernel" var2="0"/>
4046 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4047 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4048 </text>
4049
4050 <text style="text_m">
4051 <condition var1="tw_repack_kernel" var2="1"/>
4052 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4053 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4054 </text>
4055
4056 <text style="text_m">
4057 <condition var1="tw_repack_kernel" var2="0"/>
4058 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4059 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4060 </text>
4061
4062 <text style="text_m_accent">
4063 <placement x="%indent%" y="%row2_y%"/>
4064 <text>{@folder=Folder:}</text>
4065 </text>
4066
4067 <text style="text_m">
4068 <placement x="%indent%" y="%row3_y%"/>
4069 <text>%tw_zip_location%</text>
4070 </text>
4071
4072 <text style="text_m_accent">
4073 <placement x="%indent%" y="%row4_y%"/>
4074 <text>{@file=File:}</text>
4075 </text>
4076
4077 <text style="text_m">
4078 <placement x="%indent%" y="%row5_y%"/>
4079 <text>%tw_file%</text>
4080 </text>
4081
4082 <checkbox>
4083 <placement x="%indent%" y="%row7_y%"/>
4084 <text>{@repack_backup_first=Back up existing image first}</text>
4085 <data variable="tw_repack_backup_first"/>
4086 </checkbox>
4087
4088 <button style="main_button_half_width">
4089 <placement x="%col1_x_left%" y="%row15a_y%"/>
4090 <text>{@install_cancel=Do not Install}</text>
4091 <action function="page">repackselect</action>
4092 </button>
4093
4094 <slider style="slider_centered">
4095 <text>{@swipe_to_install=Swipe to Install}</text>
4096 <actions>
4097 <action function="set">tw_back=advanced</action>
4098 <action function="set">tw_action=repackimage</action>
4099 <action function="set">tw_action_param=/boot</action>
4100 <action function="set">tw_action_text1={@installing=Installing...}</action>
4101 <action function="set">tw_action_text2=</action>
4102 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4103 <action function="page">action_page</action>
4104 </actions>
4105 </slider>
4106
4107 <action>
4108 <touch key="back"/>
4109 <action function="page">repackselect</action>
4110 </action>
4111
4112 <action>
4113 <touch key="home"/>
4114 <action function="page">main</action>
4115 </action>
4116 </page>
4117
z31s1g28f0a922015-11-07 18:50:22 +01004118 <page name="lock">
4119 <background color="%semi_transparent%"/>
4120
4121 <image>
4122 <image resource="unlock_icon"/>
4123 <placement x="%center_x%" y="%row8_y%" placement="4"/>
4124 </image>
4125
4126 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004127 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004128 <action function="overlay"/>
4129 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004130
4131 <action>
4132 <touch key="power"/>
4133 <action function="togglebacklight"/>
4134 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004135 </page>
4136
4137 <page name="filemanagerlist">
4138 <template name="page"/>
4139
4140 <text style="text_l">
4141 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004142 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004143 </text>
4144
4145 <text style="text_m">
4146 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004147 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004148 </text>
4149
4150 <template name="sort_options"/>
4151
4152 <fileselector>
4153 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4154 <text>%tw_file_location1%</text>
4155 <filter folders="1" files="1"/>
4156 <path name="tw_file_location1" default="/"/>
4157 <data name="tw_filename1"/>
4158 <selection name="tw_selection1"/>
4159 </fileselector>
4160
4161 <button style="main_button_half_width_low">
4162 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004163 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004164 <actions>
4165 <action function="set">tw_filename1=tw_file_location1</action>
4166 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004167 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004168 <action function="page">filemanageroptions</action>
4169 </actions>
4170 </button>
4171
4172 <action>
4173 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004174 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004175 <action function="set">tw_fm_isfolder=0</action>
4176 </actions>
4177 </action>
4178
4179 <action>
4180 <touch key="home"/>
4181 <action function="page">main</action>
4182 </action>
4183
4184 <action>
4185 <touch key="back"/>
4186 <action function="page">advanced</action>
4187 </action>
4188
4189 <action>
4190 <condition var1="tw_filename1" op="modified"/>
4191 <action function="page">filemanageroptions</action>
4192 </action>
4193 </page>
4194
4195 <page name="filemanageroptions">
4196 <template name="page"/>
4197
4198 <text style="text_l">
4199 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004200 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004201 </text>
4202
4203 <text style="text_m">
4204 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004205 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004206 </text>
4207
4208 <text style="text_m_accent">
4209 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004210 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004211 </text>
4212
4213 <text style="text_m">
4214 <placement x="%col1_x_left%" y="%row3_y%"/>
4215 <text>%tw_filename1%</text>
4216 </text>
4217
4218 <button style="main_button_half_width">
4219 <condition var1="tw_fm_isfolder" var2="0"/>
4220 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004221 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004222 <actions>
4223 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004224 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004225 <action function="page">choosedestinationfolder</action>
4226 </actions>
4227 </button>
4228
4229 <button style="main_button_half_width">
4230 <condition var1="tw_fm_isfolder" var2="1"/>
4231 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004232 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004233 <actions>
4234 <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 -05004235 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004236 <action function="page">choosedestinationfolder</action>
4237 </actions>
4238 </button>
4239
4240 <button style="main_button_half_width">
Captain Throwback51de3b62021-02-12 19:32:36 -05004241edi <conditions>
4242 <condition var1="tw_include_nano" var2="1"/>
4243 <condition var1="tw_fm_isfolder" var2="0"/>
4244 </conditions>
4245 <placement x="%col1_x_left%" y="%row15a_y%"/>
4246 <text>{@fm_edit_file=Edit File}</text>
4247 <actions>
4248 <action function="editfile">nano "%tw_filename1%"</action>
4249 <action function="page">terminalcommand</action>
4250 </actions>
4251 </button>
4252
4253 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004254 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004255 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004256 <actions>
4257 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004258 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004259 <action function="page">choosedestinationfolder</action>
4260 </actions>
4261 </button>
4262
4263 <button style="main_button_half_width">
4264 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004265 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004266 <actions>
4267 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004268 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004269 <action function="set">tw_fm_text2=</action>
4270 <action function="set">tw_fm_text3=</action>
4271 <action function="set">tw_include_text3=0</action>
4272 <action function="set">tw_back=filemanageroptions</action>
4273 <action function="page">filemanagerconfirm</action>
4274 </actions>
4275 </button>
4276
4277 <button style="main_button_half_width">
4278 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004279 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004280 <actions>
4281 <action function="set">tw_filemanager_rename=0000</action>
4282 <action function="set">tw_fm_text2=</action>
4283 <action function="set">tw_fm_text3=</action>
4284 <action function="set">tw_include_text3=0</action>
4285 <action function="set">tw_back=filemanageroptions</action>
4286 <action function="page">filemanagerchmod</action>
4287 </actions>
4288 </button>
4289
4290 <button style="main_button_half_width">
Mohd Farazd59a6042020-08-12 12:29:42 +00004291 <condition var1="tw_fm_isfolder" var2="1"/>
4292 <placement x="%col2_x_right%" y="%row15a_y%"/>
4293 <text>{@fm_open_terminal_btn=Open Terminal Here}</text>
4294 <action function="changeterminal">%tw_filename1%</action>
4295 </button>
4296
4297 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004298 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004299 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004300 <actions>
4301 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004302 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004303 <action function="set">tw_fm_text2=</action>
4304 <action function="set">tw_fm_text3=</action>
4305 <action function="set">tw_include_text3=0</action>
4306 <action function="set">tw_back=filemanageroptions</action>
4307 <action function="page">filemanagerconfirm</action>
4308 </actions>
4309 </button>
4310
4311 <button style="main_button_half_width">
4312 <condition var1="tw_fm_isfolder" var2="0"/>
4313 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004314 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004315 <actions>
4316 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004317 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004318 <action function="set">tw_filemanager_command=mv</action>
4319 <action function="page">filemanagerrenamefile</action>
4320 </actions>
4321 </button>
4322
4323 <button style="main_button_half_width">
4324 <condition var1="tw_fm_isfolder" var2="1"/>
4325 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004326 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004327 <actions>
4328 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004329 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004330 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4331 <action function="page">filemanagerrenamefolder</action>
4332 </actions>
4333 </button>
4334
4335 <action>
4336 <touch key="home"/>
4337 <action function="page">main</action>
4338 </action>
4339
4340 <action>
4341 <touch key="back"/>
4342 <action function="page">filemanagerlist</action>
4343 </action>
4344 </page>
4345
4346 <page name="choosedestinationfolder">
4347 <template name="page"/>
4348
4349 <text style="text_l">
4350 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004351 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004352 </text>
4353
4354 <text style="text_m">
4355 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004356 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004357 </text>
4358
4359 <template name="sort_options"/>
4360
4361 <fileselector>
4362 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4363 <text>%tw_file_location2%</text>
4364 <filter folders="1" files="0"/>
4365 <path name="tw_file_location2" default="/"/>
4366 <data name="tw_filename2"/>
4367 <selection name="tw_selection2"/>
4368 </fileselector>
4369
4370 <button style="main_button_half_width_low">
4371 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004372 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004373 <actions>
4374 <action function="set">tw_fm_text2=to</action>
4375 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4376 <action function="set">tw_include_text3=1</action>
4377 <action function="set">tw_back=filemanageroptions</action>
4378 <action function="page">filemanagerconfirm</action>
4379 </actions>
4380 </button>
4381
4382 <action>
4383 <touch key="home"/>
4384 <action function="page">main</action>
4385 </action>
4386
4387 <action>
4388 <touch key="back"/>
4389 <action function="page">filemanageroptions</action>
4390 </action>
4391 </page>
4392
4393 <page name="filemanagerrenamefile">
4394 <template name="page"/>
4395
4396 <text style="text_l">
4397 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004398 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004399 </text>
4400
4401 <text style="text_m">
4402 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004403 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004404 </text>
4405
4406 <text style="text_m_accent">
4407 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004408 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004409 </text>
4410
4411 <input>
4412 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4413 <text>%tw_filemanager_rename%</text>
4414 <data name="tw_filemanager_rename"/>
4415 <restrict minlen="1" maxlen="128"/>
4416 <actions>
4417 <action function="set">tw_fm_text2=to</action>
4418 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4419 <action function="set">tw_include_text3=1</action>
4420 <action function="set">tw_back=filemanageroptions</action>
4421 <action function="page">filemanagerconfirm</action>
4422 </actions>
4423 </input>
4424
4425 <fill color="%accent_color%">
4426 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4427 </fill>
4428
4429 <button style="main_button_half_width_low">
4430 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004431 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004432 <action function="page">filemanageroptions</action>
4433 </button>
4434
4435 <template name="keyboardtemplate"/>
4436
4437 <action>
4438 <touch key="home"/>
4439 <action function="page">main</action>
4440 </action>
4441
4442 <action>
4443 <touch key="back"/>
4444 <action function="page">filemanageroptions</action>
4445 </action>
4446 </page>
4447
4448 <page name="filemanagerrenamefolder">
4449 <template name="page"/>
4450
4451 <text style="text_l">
4452 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004453 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004454 </text>
4455
4456 <text style="text_m">
4457 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004458 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004459 </text>
4460
4461 <text style="text_m_accent">
4462 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004463 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004464 </text>
4465
4466 <input>
4467 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4468 <text>%tw_filemanager_rename%</text>
4469 <data name="tw_filemanager_rename"/>
4470 <restrict minlen="1" maxlen="128"/>
4471 <actions>
4472 <action function="set">tw_fm_text2=to</action>
4473 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4474 <action function="set">tw_include_text3=1</action>
4475 <action function="set">tw_back=filemanageroptions</action>
4476 <action function="page">filemanagerconfirm</action>
4477 </actions>
4478 </input>
4479
4480 <fill color="%accent_color%">
4481 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4482 </fill>
4483
4484 <button style="main_button_half_width_low">
4485 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004486 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004487 <action function="page">filemanageroptions</action>
4488 </button>
4489
4490 <template name="keyboardtemplate"/>
4491
4492 <action>
4493 <touch key="home"/>
4494 <action function="page">main</action>
4495 </action>
4496
4497 <action>
4498 <touch key="back"/>
4499 <action function="page">filemanageroptions</action>
4500 </action>
4501 </page>
4502
4503 <page name="filemanagerchmod">
4504 <template name="page"/>
4505
4506 <text style="text_l">
4507 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004508 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004509 </text>
4510
4511 <text style="text_m">
4512 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004513 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004514 </text>
4515
4516 <text style="text_m_accent">
4517 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004518 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004519 </text>
4520
4521 <input>
4522 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4523 <text>%tw_filemanager_rename%</text>
4524 <data name="tw_filemanager_rename"/>
4525 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4526 <actions>
4527 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4528 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4529 <action function="set">tw_back=filemanageroptions</action>
4530 <action function="page">filemanagerconfirm</action>
4531 </actions>
4532 </input>
4533
4534 <fill color="%accent_color%">
4535 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4536 </fill>
4537
4538 <button style="main_button_half_width_low">
4539 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004540 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004541 <action function="page">filemanageroptions</action>
4542 </button>
4543
4544 <template name="keyboardtemplate"/>
4545
4546 <action>
4547 <touch key="home"/>
4548 <action function="page">main</action>
4549 </action>
4550
4551 <action>
4552 <touch key="back"/>
4553 <action function="page">filemanageroptions</action>
4554 </action>
4555 </page>
4556
4557 <page name="filemanagerconfirm">
4558 <template name="page"/>
4559
4560 <text style="text_l">
4561 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 </text>
4564
4565 <text style="text_m">
4566 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004567 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004568 </text>
4569
4570 <text style="text_m_accent">
4571 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4572 <text>%tw_fm_text1%</text>
4573 </text>
4574
4575 <text style="text_m">
4576 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4577 <text>%tw_filename1%</text>
4578 </text>
4579
4580 <text style="text_m_accent">
4581 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4582 <text>%tw_fm_text2%</text>
4583 </text>
4584
4585 <text style="text_m">
4586 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4587 <text>%tw_fm_text3%</text>
4588 </text>
4589
4590 <text style="text_m">
4591 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004592 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004593 </text>
4594
4595 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004596 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004597 <action function="page">filemanageraction</action>
4598 </slider>
4599
4600 <action>
4601 <touch key="back"/>
4602 <action function="page">%tw_back%</action>
4603 </action>
4604
4605 <action>
4606 <touch key="home"/>
4607 <action function="page">main</action>
4608 </action>
4609 </page>
4610
4611 <page name="filemanageraction">
4612 <template name="page"/>
4613
4614 <text style="text_l">
4615 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004616 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004617 </text>
4618
4619 <text style="text_m">
4620 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4621 <text>%tw_fm_text1%</text>
4622 </text>
4623
4624 <template name="console"/>
4625
4626 <template name="progress_bar"/>
4627
4628 <action>
4629 <conditions>
4630 <condition var1="tw_operation_state" var2="1"/>
4631 <condition var1="tw_operation_status" var2="0"/>
4632 </conditions>
4633 <actions>
4634 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004635 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004636 <action function="page">action_complete</action>
4637 </actions>
4638 </action>
4639
4640 <action>
4641 <conditions>
4642 <condition var1="tw_operation_state" var2="1"/>
4643 <condition var1="tw_operation_status" op="!=" var2="0"/>
4644 </conditions>
4645 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004646 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004647 <action function="page">action_complete</action>
4648 </actions>
4649 </action>
4650
4651 <action>
4652 <condition var1="tw_include_text3" var2="0"/>
4653 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4654 </action>
4655
4656 <action>
4657 <condition var1="tw_include_text3" var2="1"/>
4658 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4659 </action>
4660 </page>
4661
4662 <page name="decrypt">
4663 <template name="page"/>
4664
4665 <action>
4666 <condition var1="tw_crypto_pwtype" var2="2"/>
4667 <action function="page">decrypt_pattern</action>
4668 </action>
4669
4670 <text style="text_l">
4671 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004672 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004673 </text>
4674
4675 <text style="text_m">
4676 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004677 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004678 </text>
4679
4680 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004681 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004682 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004683 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004684 </text>
4685
Noah Jacobson81d638d2019-04-28 00:10:07 -04004686 <text style="text_m_accent">
4687 <condition var1="tw_is_fbe" var2="1"/>
4688 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4689 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4690 </text>
4691
z31s1g28f0a922015-11-07 18:50:22 +01004692 <input>
4693 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4694 <text>%tw_crypto_display%</text>
4695 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4696 <restrict minlen="1" maxlen="254"/>
4697 <action function="page">trydecrypt</action>
4698 </input>
4699
4700 <fill color="%accent_color%">
4701 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4702 </fill>
4703
4704 <fill color="%text_fail_color%">
4705 <condition var1="tw_password_fail" var2="1"/>
4706 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4707 </fill>
4708
4709 <text style="text_m_fail">
4710 <condition var1="tw_password_fail" var2="1"/>
4711 <placement x="%col1_x_left%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004712 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004713 </text>
4714
4715 <button style="main_button_half_width_low">
4716 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004717 <text>{@cancel_btn=Cancel}</text>
Captain Throwback3ff59dd2021-02-10 18:25:07 -05004718 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004719 </button>
4720
z31s1g608d7ff2016-01-18 19:47:25 +01004721 <button style="main_button_half_width_low">
4722 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4723 <text>{@sel_lang_btn=Select Language}</text>
4724 <action function="overlay">select_language</action>
4725 </button>
4726
z31s1g28f0a922015-11-07 18:50:22 +01004727 <template name="keyboardtemplate"/>
4728 </page>
4729
4730 <page name="decrypt_pattern">
4731 <template name="page"/>
4732
4733 <text style="text_l">
4734 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004735 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004736 </text>
4737
4738 <text style="text_m">
4739 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004740 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004741 </text>
4742
4743 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004744 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004745 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004746 </text>
4747
Aleksa Saraib25a1832015-12-31 17:36:00 +01004748 <text style="text_m_fail">
4749 <condition var1="tw_password_fail" var2="1"/>
4750 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004751 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004752 </text>
4753
z31s1g28f0a922015-11-07 18:50:22 +01004754 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004755 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004756 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4757 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4758 <data name="tw_crypto_password"/>
4759 <action function="page">trydecrypt</action>
4760 </patternpassword>
4761
Aleksa Saraib25a1832015-12-31 17:36:00 +01004762 <button style="main_button_half_width_low">
4763 <placement x="%col_button_right%" y="%row1a_y%"/>
4764 <text>3x3</text>
4765 <action function="set">tw_gui_pattern_grid_size=3</action>
4766 </button>
4767
4768 <button style="main_button_half_width_low">
4769 <placement x="%col_button_right%" y="%row4a_y%"/>
4770 <text>4x4</text>
4771 <action function="set">tw_gui_pattern_grid_size=4</action>
4772 </button>
4773
4774 <button style="main_button_half_width_low">
4775 <placement x="%col_button_right%" y="%row7a_y%"/>
4776 <text>5x5</text>
4777 <action function="set">tw_gui_pattern_grid_size=5</action>
4778 </button>
4779
4780 <button style="main_button_half_width_low">
4781 <placement x="%col_button_right%" y="%row10a_y%"/>
4782 <text>6x6</text>
4783 <action function="set">tw_gui_pattern_grid_size=6</action>
4784 </button>
4785
z31s1g28f0a922015-11-07 18:50:22 +01004786 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004787 <placement x="%col1_x_right%" y="%row15a_y%"/>
4788 <text>{@sel_lang_btn=Select Language}</text>
4789 <action function="overlay">select_language</action>
4790 </button>
4791
4792 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004793 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004794 <text>{@cancel_btn=Cancel}</text>
Captain Throwback3ff59dd2021-02-10 18:25:07 -05004795 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01004796 </button>
4797 </page>
4798
4799 <page name="trydecrypt">
4800 <template name="page"/>
4801
4802 <text style="text_l">
4803 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004804 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004805 </text>
4806
4807 <text style="text_m">
4808 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004809 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004810 </text>
4811
4812 <template name="console"/>
4813
4814 <template name="progress_bar"/>
4815
4816 <action>
4817 <action function="decrypt"/>
4818 </action>
4819
4820 <action>
4821 <conditions>
4822 <condition var1="tw_operation_state" var2="1"/>
4823 <condition var1="tw_operation_status" op="!=" var2="0"/>
4824 </conditions>
4825 <actions>
4826 <action function="set">tw_password_fail=1</action>
4827 <action function="page">decrypt</action>
4828 </actions>
4829 </action>
4830
4831 <action>
4832 <conditions>
4833 <condition var1="tw_operation_state" var2="1"/>
4834 <condition var1="tw_operation_status" op="=" var2="0"/>
4835 </conditions>
4836 <actions>
4837 <action function="set">tw_page_done=1</action>
4838 <action function="page">main</action>
4839 </actions>
4840 </action>
4841 </page>
4842
Captain Throwback3ff59dd2021-02-10 18:25:07 -05004843 <page name="canceldecrypt">
4844 <template name="page"/>
4845
4846 <text style="text_l">
4847 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4848 <text>{@cancel_btn=Cancel}</text>
4849 </text>
4850
4851 <text style="text_m">
4852 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4853 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
4854 </text>
4855
4856 <template name="console"/>
4857
4858 <template name="progress_bar"/>
4859
4860 <action>
4861 <action function="refreshsizes"/>
4862 </action>
4863
4864 <action>
4865 <conditions>
4866 <condition var1="tw_operation_state" var2="1"/>
4867 </conditions>
4868 <actions>
4869 <action function="set">tw_page_done=1</action>
4870 <action function="page">main</action>
4871 </actions>
4872 </action>
4873 </page>
4874
z31s1g28f0a922015-11-07 18:50:22 +01004875 <page name="terminalcommand">
4876 <template name="page"/>
4877
4878 <fill color="%background_color%">
4879 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
4880 </fill>
4881
z31s1g56189522016-01-13 19:12:40 +01004882 <terminal>
4883 <condition var1="tw_hide_kb" var2="0"/>
4884 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
4885 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004886
z31s1g56189522016-01-13 19:12:40 +01004887 <terminal>
4888 <condition var1="tw_hide_kb" var2="1"/>
4889 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
4890 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004891
z31s1g56189522016-01-13 19:12:40 +01004892 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004893
z31s1g56189522016-01-13 19:12:40 +01004894 <object type="fill" color="#000000">
4895 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
4896 </object>
z31s1g28f0a922015-11-07 18:50:22 +01004897
z31s1g608d7ff2016-01-18 19:47:25 +01004898 <button>
z31s1g56189522016-01-13 19:12:40 +01004899 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4900 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4901 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4902 <image resource="back" />
4903 <condition var1="tw_busy" var2="0" />
4904 <actions>
4905 <action function="set">tw_hide_kb=0</action>
4906 <action function="page">advanced</action>
4907 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004908 </button>
z31s1g56189522016-01-13 19:12:40 +01004909
z31s1g608d7ff2016-01-18 19:47:25 +01004910 <button>
z31s1g56189522016-01-13 19:12:40 +01004911 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4912 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4913 <condition var1="tw_hide_kb" op="=" var2="0" />
4914 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4915 <image resource="kb_hide" />
4916 <condition var1="tw_busy" var2="0" />
4917 <actions>
4918 <action function="set">tw_hide_kb=1</action>
4919 <action function="page">terminalcommand</action>
4920 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004921 </button>
z31s1g56189522016-01-13 19:12:40 +01004922
z31s1g608d7ff2016-01-18 19:47:25 +01004923 <button>
z31s1g56189522016-01-13 19:12:40 +01004924 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4925 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4926 <condition var1="tw_hide_kb" op="=" var2="1" />
4927 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4928 <image resource="kb_show" />
4929 <condition var1="tw_busy" var2="0" />
4930 <actions>
4931 <action function="set">tw_hide_kb=0</action>
4932 <action function="page">terminalcommand</action>
4933 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004934 </button>
z31s1g56189522016-01-13 19:12:40 +01004935
z31s1g608d7ff2016-01-18 19:47:25 +01004936 <button>
z31s1g56189522016-01-13 19:12:40 +01004937 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4938 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4939 <image resource="home" />
4940 <condition var1="tw_busy" var2="0" />
4941 <actions>
4942 <action function="set">tw_hide_kb=0</action>
4943 <action function="key">home</action>
Mohd Farazd59a6042020-08-12 12:29:42 +00004944 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01004945 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004946 </button>
z31s1g56189522016-01-13 19:12:40 +01004947
z31s1g608d7ff2016-01-18 19:47:25 +01004948 <button>
z31s1g56189522016-01-13 19:12:40 +01004949 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4950 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4951 <condition var1="tw_hide_kb" op="=" var2="0" />
4952 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4953 <image resource="kb_hide" />
4954 <condition var1="tw_busy" var2="0" />
4955 <actions>
4956 <action function="set">tw_hide_kb=1</action>
4957 <action function="page">terminalcommand</action>
4958 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004959 </button>
z31s1g56189522016-01-13 19:12:40 +01004960
z31s1g608d7ff2016-01-18 19:47:25 +01004961 <button>
z31s1g56189522016-01-13 19:12:40 +01004962 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4963 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4964 <condition var1="tw_hide_kb" op="=" var2="1" />
4965 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4966 <image resource="kb_show" />
4967 <condition var1="tw_busy" var2="0" />
4968 <actions>
4969 <action function="set">tw_hide_kb=0</action>
4970 <action function="page">terminalcommand</action>
4971 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004972 </button>
z31s1g56189522016-01-13 19:12:40 +01004973
z31s1g608d7ff2016-01-18 19:47:25 +01004974 <button>
z31s1g56189522016-01-13 19:12:40 +01004975 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4976 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4977 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4978 <image resource="back" />
4979 <condition var1="tw_busy" var2="0" />
4980 <actions>
4981 <action function="set">tw_hide_kb=0</action>
4982 <action function="page">advanced</action>
4983 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004984 </button>
z31s1g56189522016-01-13 19:12:40 +01004985
z31s1g608d7ff2016-01-18 19:47:25 +01004986 <button>
z31s1g56189522016-01-13 19:12:40 +01004987 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4988 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4989 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4990 <image resource="back" />
4991 <condition var1="tw_busy" var2="0" />
4992 <actions>
4993 <action function="set">tw_hide_kb=0</action>
4994 <action function="page">advanced</action>
4995 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004996 </button>
z31s1g56189522016-01-13 19:12:40 +01004997
z31s1g608d7ff2016-01-18 19:47:25 +01004998 <button>
z31s1g56189522016-01-13 19:12:40 +01004999 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5000 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5001 <condition var1="tw_hide_kb" op="=" var2="0" />
5002 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5003 <image resource="kb_hide" />
5004 <condition var1="tw_busy" var2="0" />
5005 <actions>
5006 <action function="set">tw_hide_kb=1</action>
5007 <action function="page">terminalcommand</action>
5008 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005009 </button>
z31s1g56189522016-01-13 19:12:40 +01005010
z31s1g608d7ff2016-01-18 19:47:25 +01005011 <button>
z31s1g56189522016-01-13 19:12:40 +01005012 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5013 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5014 <condition var1="tw_hide_kb" op="=" var2="1" />
5015 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5016 <image resource="kb_show" />
5017 <condition var1="tw_busy" var2="0" />
5018 <actions>
5019 <action function="set">tw_hide_kb=0</action>
5020 <action function="page">terminalcommand</action>
5021 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005022 </button>
z31s1g56189522016-01-13 19:12:40 +01005023
z31s1g608d7ff2016-01-18 19:47:25 +01005024 <button>
z31s1g56189522016-01-13 19:12:40 +01005025 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5026 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5027 <image resource="home" />
5028 <condition var1="tw_busy" var2="0" />
5029 <actions>
5030 <action function="set">tw_hide_kb=0</action>
5031 <action function="key">home</action>
Mohd Farazd59a6042020-08-12 12:29:42 +00005032 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005033 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005034 </button>
z31s1g56189522016-01-13 19:12:40 +01005035
z31s1g608d7ff2016-01-18 19:47:25 +01005036 <button>
z31s1g56189522016-01-13 19:12:40 +01005037 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5038 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5039 <condition var1="tw_hide_kb" op="=" var2="0" />
5040 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5041 <image resource="kb_hide" />
5042 <condition var1="tw_busy" var2="0" />
5043 <actions>
5044 <action function="set">tw_hide_kb=1</action>
5045 <action function="page">terminalcommand</action>
5046 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005047 </button>
z31s1g56189522016-01-13 19:12:40 +01005048
z31s1g608d7ff2016-01-18 19:47:25 +01005049 <button>
z31s1g56189522016-01-13 19:12:40 +01005050 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5051 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5052 <condition var1="tw_hide_kb" op="=" var2="1" />
5053 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5054 <image resource="kb_show" />
5055 <condition var1="tw_busy" var2="0" />
5056 <actions>
5057 <action function="set">tw_hide_kb=0</action>
5058 <action function="page">terminalcommand</action>
5059 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005060 </button>
z31s1g56189522016-01-13 19:12:40 +01005061
z31s1g608d7ff2016-01-18 19:47:25 +01005062 <button>
z31s1g56189522016-01-13 19:12:40 +01005063 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5064 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5065 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5066 <image resource="back" />
5067 <condition var1="tw_busy" var2="0" />
5068 <actions>
5069 <action function="set">tw_hide_kb=0</action>
5070 <action function="page">advanced</action>
Mohd Farazd59a6042020-08-12 12:29:42 +00005071 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005072 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005073 </button>
z31s1g56189522016-01-13 19:12:40 +01005074
z31s1g608d7ff2016-01-18 19:47:25 +01005075 <button>
z31s1g56189522016-01-13 19:12:40 +01005076 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5077 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5078 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5079 <image resource="back" />
5080 <condition var1="tw_busy" var2="0" />
5081 <actions>
5082 <action function="set">tw_hide_kb=0</action>
5083 <action function="page">advanced</action>
5084 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005085 </button>
z31s1g56189522016-01-13 19:12:40 +01005086
z31s1g608d7ff2016-01-18 19:47:25 +01005087 <button>
z31s1g56189522016-01-13 19:12:40 +01005088 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5089 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5090 <condition var1="tw_hide_kb" op="=" var2="0" />
5091 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5092 <image resource="kb_hide" />
5093 <condition var1="tw_busy" var2="0" />
5094 <actions>
5095 <action function="set">tw_hide_kb=1</action>
5096 <action function="page">terminalcommand</action>
5097 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005098 </button>
z31s1g56189522016-01-13 19:12:40 +01005099
z31s1g608d7ff2016-01-18 19:47:25 +01005100 <button>
z31s1g56189522016-01-13 19:12:40 +01005101 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5102 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5103 <condition var1="tw_hide_kb" op="=" var2="1" />
5104 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5105 <image resource="kb_show" />
5106 <condition var1="tw_busy" var2="0" />
5107 <actions>
5108 <action function="set">tw_hide_kb=0</action>
5109 <action function="page">terminalcommand</action>
5110 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005111 </button>
z31s1g56189522016-01-13 19:12:40 +01005112
z31s1g608d7ff2016-01-18 19:47:25 +01005113 <button>
z31s1g56189522016-01-13 19:12:40 +01005114 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5115 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5116 <image resource="home" />
5117 <condition var1="tw_busy" var2="0" />
5118 <actions>
5119 <action function="set">tw_hide_kb=0</action>
5120 <action function="key">home</action>
5121 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005122 </button>
z31s1g56189522016-01-13 19:12:40 +01005123
z31s1g608d7ff2016-01-18 19:47:25 +01005124 <button>
z31s1g56189522016-01-13 19:12:40 +01005125 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5126 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5127 <condition var1="tw_hide_kb" op="=" var2="0" />
5128 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5129 <image resource="kb_hide" />
5130 <condition var1="tw_busy" var2="0" />
5131 <actions>
5132 <action function="set">tw_hide_kb=1</action>
5133 <action function="page">terminalcommand</action>
5134 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005135 </button>
z31s1g56189522016-01-13 19:12:40 +01005136
z31s1g608d7ff2016-01-18 19:47:25 +01005137 <button>
z31s1g56189522016-01-13 19:12:40 +01005138 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5139 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5140 <condition var1="tw_hide_kb" op="=" var2="1" />
5141 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5142 <image resource="kb_show" />
5143 <condition var1="tw_busy" var2="0" />
5144 <actions>
5145 <action function="set">tw_hide_kb=0</action>
5146 <action function="page">terminalcommand</action>
5147 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005148 </button>
z31s1g56189522016-01-13 19:12:40 +01005149
z31s1g608d7ff2016-01-18 19:47:25 +01005150 <button>
z31s1g56189522016-01-13 19:12:40 +01005151 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5152 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5153 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5154 <image resource="back" />
5155 <condition var1="tw_busy" var2="0" />
5156 <actions>
5157 <action function="set">tw_hide_kb=0</action>
5158 <action function="page">advanced</action>
5159 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005160 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005161
5162 <action>
5163 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005164 <actions>
5165 <action function="page">main</action>
5166 <action function="set">tw_hide_kb=0</action>
Mohd Farazd59a6042020-08-12 12:29:42 +00005167 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005168 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005169 </action>
5170
5171 <action>
5172 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005173 <actions>
5174 <action function="page">advanced</action>
5175 <action function="set">tw_hide_kb=0</action>
Mohd Farazd59a6042020-08-12 12:29:42 +00005176 <action function="changeterminal"/>
z31s1g56189522016-01-13 19:12:40 +01005177 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005178 </action>
z31s1g56189522016-01-13 19:12:40 +01005179
5180 <object type="action">
5181 <touch key="power+voldown" />
5182 <action function="screenshot" />
5183 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005184 </page>
Mohd Farazd59a6042020-08-12 12:29:42 +00005185
bigbiffdf8436b2020-08-30 16:22:34 -04005186 <page name="fastboot">
5187 <template name="page"/>
5188
5189 <text style="text_l">
5190 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5191 <text>{@fastboot_button=Fastboot}</text>
5192 </text>
5193
5194 <template name="console"/>
5195
5196 <template name="progress_bar"/>
5197
5198 <button style="main_button_half_width">
5199 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005200 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005201 <text>{@enable_adb=Enable ADB}</text>
5202 <actions>
5203 <action function="enableadb"/>
5204 <action function="set">tw_enable_adb=1</action>
5205 <action function="set">tw_enable_fastboot=0</action>
5206 </actions>
5207 </button>
5208
5209 <button style="main_button_half_width">
5210 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005211 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005212 <text>{@enable_fastboot=Enable Fastboot}</text>
5213 <actions>
5214 <action function="enablefastboot"/>
5215 <action function="set">tw_enable_fastboot=1</action>
5216 <action function="set">tw_enable_adb=0</action>
5217 </actions>
5218 </button>
5219
5220 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005221 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005222 <text>{@reboot_btn=Reboot}</text>
5223 <action function="page">fastbootreboot</action>
5224 </button>
5225 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005226
5227 <page name="sideload">
5228 <template name="page"/>
5229
5230 <text style="text_l">
5231 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005232 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005233 </text>
5234
5235 <text style="text_m">
5236 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005237 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005238 </text>
5239
5240 <checkbox>
5241 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005242 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005243 <data variable="tw_wipe_dalvik"/>
5244 </checkbox>
5245
5246 <checkbox>
5247 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005248 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005249 <data variable="tw_wipe_cache"/>
5250 </checkbox>
5251
5252 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005253 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005254 <actions>
5255 <action function="set">tw_back=advanced</action>
5256 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005257 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5258 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5259 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005260 <action function="set">tw_has_cancel=1</action>
5261 <action function="set">tw_show_reboot=1</action>
5262 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5263 <action function="page">action_page</action>
5264 </actions>
5265 </slider>
5266
5267 <action>
5268 <touch key="home"/>
5269 <action function="page">main</action>
5270 </action>
5271
5272 <action>
5273 <touch key="back"/>
5274 <action function="page">advanced</action>
5275 </action>
5276 </page>
5277
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005278 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005279 <template name="page"/>
5280
5281 <text style="text_l">
5282 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005283 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005284 </text>
5285
5286 <text style="text_m">
5287 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005288 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005289 </text>
5290
5291 <text style="text_m_accent">
5292 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005293 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005294 </text>
5295
z31s1g28f0a922015-11-07 18:50:22 +01005296 <text style="text_m_fail">
5297 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005298 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005299 </text>
5300
5301 <text style="text_m_fail">
5302 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005303 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005304 </text>
5305
5306 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005307 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005308 <actions>
5309 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005310 <action function="set">tw_action=fixcontexts</action>
5311 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5312 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005313 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005314 <action function="set">tw_show_reboot=1</action>
5315 <action function="page">action_page</action>
5316 </actions>
5317 </slider>
5318
5319 <action>
5320 <touch key="home"/>
5321 <action function="page">main</action>
5322 </action>
5323
5324 <action>
5325 <touch key="back"/>
5326 <action function="page">advanced</action>
5327 </action>
5328 </page>
5329
z31s1g28f0a922015-11-07 18:50:22 +01005330 <page name="slideout">
5331 <fill color="%background_color%">
5332 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5333 </fill>
5334
5335 <console>
5336 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5337 </console>
5338
5339 <button>
5340 <fill color="%transparent%"/>
5341 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5342 <action function="overlay"/>
5343 </button>
5344
5345 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005346 <touch key="power"/>
5347 <action function="togglebacklight"/>
5348 </action>
5349
5350 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005351 <touch key="power+voldown"/>
5352 <action function="screenshot"/>
5353 </action>
5354 </page>
5355
5356 <page name="select_storage">
5357 <fill color="%semi_transparent%">
5358 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5359 </fill>
5360
5361 <fill color="%background_color%">
5362 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5363 </fill>
5364
5365 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005366 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005367 <data name="tw_storage_path"/>
5368 <listtype name="storage"/>
5369 </partitionlist>
5370
5371 <button style="button_third_width">
5372 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005373 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005374 <actions>
5375 <action function="set">tw_clear_destination=%tw_back%</action>
5376 <action function="overlay"/>
5377 <action function="page">clear_vars</action>
5378 </actions>
5379 </button>
5380
5381 <fill color="#000000">
5382 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5383 </fill>
5384
5385 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005386 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5387 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5388 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5389 <image resource="back" />
5390 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005391 <actions>
5392 <action function="overlay"/>
5393 <action function="key">%tw_back%</action>
5394 </actions>
5395 </button>
5396
5397 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005398 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5399 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5400 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5401 <image resource="console" />
5402 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005403 <action function="overlay">slideout</action>
5404 </button>
5405
5406 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005407 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5408 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5409 <image resource="home" />
5410 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005411 <actions>
5412 <action function="overlay"/>
5413 <action function="key">home</action>
5414 </actions>
5415 </button>
5416
5417 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005418 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5419 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5420 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5421 <image resource="console" />
5422 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005423 <action function="overlay">slideout</action>
5424 </button>
5425
5426 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005427 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5428 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5429 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5430 <image resource="back" />
5431 <condition var1="tw_busy" var2="0" />
5432 <actions>
5433 <action function="overlay"/>
5434 <action function="key">%tw_back%</action>
5435 </actions>
5436 </button>
5437
5438 <button>
5439 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5440 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5441 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5442 <image resource="back" />
5443 <condition var1="tw_busy" var2="0" />
5444 <actions>
5445 <action function="overlay"/>
5446 <action function="key">%tw_back%</action>
5447 </actions>
5448 </button>
5449
5450 <button>
5451 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5452 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5453 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5454 <image resource="console" />
5455 <condition var1="tw_busy" var2="0" />
5456 <action function="overlay">slideout</action>
5457 </button>
5458
5459 <button>
5460 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5461 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5462 <image resource="home" />
5463 <condition var1="tw_busy" var2="0" />
5464 <actions>
5465 <action function="overlay"/>
5466 <action function="key">home</action>
5467 </actions>
5468 </button>
5469
5470 <button>
5471 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5472 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5473 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5474 <image resource="console" />
5475 <condition var1="tw_busy" var2="0" />
5476 <action function="overlay">slideout</action>
5477 </button>
5478
5479 <button>
5480 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5481 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5482 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5483 <image resource="back" />
5484 <condition var1="tw_busy" var2="0" />
5485 <actions>
5486 <action function="overlay"/>
5487 <action function="key">%tw_back%</action>
5488 </actions>
5489 </button>
5490
5491 <button>
5492 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5493 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5494 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5495 <image resource="back" />
5496 <condition var1="tw_busy" var2="0" />
5497 <actions>
5498 <action function="overlay"/>
5499 <action function="key">%tw_back%</action>
5500 </actions>
5501 </button>
5502
5503 <button>
5504 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5505 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5506 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5507 <image resource="console" />
5508 <condition var1="tw_busy" var2="0" />
5509 <action function="overlay">slideout</action>
5510 </button>
5511
5512 <button>
5513 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5514 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5515 <image resource="home" />
5516 <condition var1="tw_busy" var2="0" />
5517 <actions>
5518 <action function="overlay"/>
5519 <action function="key">home</action>
5520 </actions>
5521 </button>
5522
5523 <button>
5524 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5525 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5526 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5527 <image resource="console" />
5528 <condition var1="tw_busy" var2="0" />
5529 <action function="overlay">slideout</action>
5530 </button>
5531
5532 <button>
5533 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5534 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5535 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5536 <image resource="back" />
5537 <condition var1="tw_busy" var2="0" />
5538 <actions>
5539 <action function="overlay"/>
5540 <action function="key">%tw_back%</action>
5541 </actions>
5542 </button>
5543
5544 <action>
5545 <touch key="power+voldown"/>
5546 <action function="screenshot"/>
5547 </action>
5548 </page>
5549
5550 <page name="select_language">
5551 <fill color="%semi_transparent%">
5552 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5553 </fill>
5554
5555 <fill color="%background_color%">
5556 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5557 </fill>
5558
5559 <listbox>
5560 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5561 <text>{@select_language=Select Language:}</text>
5562 <icon selected="radio_true" unselected="radio_false" />
5563 <data name="tw_language" />
5564 </listbox>
5565
5566 <button style="button_third_width">
5567 <placement x="%dialog_button_x%" y="%row13_y%"/>
5568 <text>{@ok_btn=OK}</text>
5569 <actions>
5570 <action function="overlay"/>
5571 <action function="setlanguage"></action>
5572 </actions>
5573 </button>
5574
5575 <fill color="#000000">
5576 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5577 </fill>
5578
5579 <button>
5580 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5581 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5582 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5583 <image resource="back" />
5584 <condition var1="tw_busy" var2="0" />
5585 <actions>
5586 <action function="overlay"/>
5587 <action function="key">%tw_back%</action>
5588 </actions>
5589 </button>
5590
5591 <button>
5592 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5593 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5594 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5595 <image resource="console" />
5596 <condition var1="tw_busy" var2="0" />
5597 <action function="overlay">slideout</action>
5598 </button>
5599
5600 <button>
5601 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5602 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5603 <image resource="home" />
5604 <condition var1="tw_busy" var2="0" />
5605 <actions>
5606 <action function="overlay"/>
5607 <action function="key">home</action>
5608 </actions>
5609 </button>
5610
5611 <button>
5612 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5613 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5614 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5615 <image resource="console" />
5616 <condition var1="tw_busy" var2="0" />
5617 <action function="overlay">slideout</action>
5618 </button>
5619
5620 <button>
5621 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5622 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5623 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5624 <image resource="back" />
5625 <condition var1="tw_busy" var2="0" />
5626 <actions>
5627 <action function="overlay"/>
5628 <action function="key">%tw_back%</action>
5629 </actions>
5630 </button>
5631
5632 <button>
5633 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5634 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5635 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5636 <image resource="back" />
5637 <condition var1="tw_busy" var2="0" />
5638 <actions>
5639 <action function="overlay"/>
5640 <action function="key">%tw_back%</action>
5641 </actions>
5642 </button>
5643
5644 <button>
5645 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5646 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5647 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5648 <image resource="console" />
5649 <condition var1="tw_busy" var2="0" />
5650 <action function="overlay">slideout</action>
5651 </button>
5652
5653 <button>
5654 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5655 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5656 <image resource="home" />
5657 <condition var1="tw_busy" var2="0" />
5658 <actions>
5659 <action function="overlay"/>
5660 <action function="key">home</action>
5661 </actions>
5662 </button>
5663
5664 <button>
5665 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5666 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5667 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5668 <image resource="console" />
5669 <condition var1="tw_busy" var2="0" />
5670 <action function="overlay">slideout</action>
5671 </button>
5672
5673 <button>
5674 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5675 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5676 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5677 <image resource="back" />
5678 <condition var1="tw_busy" var2="0" />
5679 <actions>
5680 <action function="overlay"/>
5681 <action function="key">%tw_back%</action>
5682 </actions>
5683 </button>
5684
5685 <button>
5686 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5687 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5688 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5689 <image resource="back" />
5690 <condition var1="tw_busy" var2="0" />
5691 <actions>
5692 <action function="overlay"/>
5693 <action function="key">%tw_back%</action>
5694 </actions>
5695 </button>
5696
5697 <button>
5698 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5699 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5700 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5701 <image resource="console" />
5702 <condition var1="tw_busy" var2="0" />
5703 <action function="overlay">slideout</action>
5704 </button>
5705
5706 <button>
5707 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5708 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5709 <image resource="home" />
5710 <condition var1="tw_busy" var2="0" />
5711 <actions>
5712 <action function="overlay"/>
5713 <action function="key">home</action>
5714 </actions>
5715 </button>
5716
5717 <button>
5718 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5719 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5720 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5721 <image resource="console" />
5722 <condition var1="tw_busy" var2="0" />
5723 <action function="overlay">slideout</action>
5724 </button>
5725
5726 <button>
5727 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5728 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5729 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5730 <image resource="back" />
5731 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005732 <actions>
5733 <action function="overlay"/>
5734 <action function="key">%tw_back%</action>
5735 </actions>
5736 </button>
5737
5738 <action>
5739 <touch key="power+voldown"/>
5740 <action function="screenshot"/>
5741 </action>
5742 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005743
5744 <page name="decrypt_users">
5745 <template name="page"/>
5746
5747 <text style="text_l">
5748 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5749 <text>{@decrypt_users=Decrypt Users}</text>
5750 </text>
5751
5752 <text style="text_m_accent">
5753 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5754 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5755 </text>
5756
5757 <listbox>
5758 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
5759 <text>{@select_user=Select User}</text>
5760 <icon selected="radio_true" unselected="radio_false" />
5761 <data name="tw_crypto_user_id" />
5762 </listbox>
5763
5764 <button style="main_button_half_width">
5765 <placement x="%col2_x_right%" y="%row15a_y%"/>
5766 <text>{@decrypt_users=Decrypt Users}</text>
5767 <action function="set">tw_crypto_password=</action>
5768 <action function="set">tw_password_fail=0</action>
5769 <action function="page">decrypt</action>
5770 </button>
5771
5772 <action>
5773 <touch key="home"/>
5774 <action function="page">main</action>
5775 </action>
5776
5777 <action>
5778 <touch key="back"/>
5779 <action function="page">advanced</action>
5780 </action>
5781 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005782 </pages>
5783</recovery>