blob: 65850c002abd4ea1eaca6cc76acf74e0826f6c36 [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 Macdonalde7c34e52021-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 Yonker8581ab32020-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 Throwback6321bc32020-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 Yonker8581ab32020-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 Throwback6321bc32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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 Yonker8581ab32020-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">
4241 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004242 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004243 <actions>
4244 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004245 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004246 <action function="page">choosedestinationfolder</action>
4247 </actions>
4248 </button>
4249
4250 <button style="main_button_half_width">
4251 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004252 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004253 <actions>
4254 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004255 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004256 <action function="set">tw_fm_text2=</action>
4257 <action function="set">tw_fm_text3=</action>
4258 <action function="set">tw_include_text3=0</action>
4259 <action function="set">tw_back=filemanageroptions</action>
4260 <action function="page">filemanagerconfirm</action>
4261 </actions>
4262 </button>
4263
4264 <button style="main_button_half_width">
4265 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004266 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004267 <actions>
4268 <action function="set">tw_filemanager_rename=0000</action>
4269 <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">filemanagerchmod</action>
4274 </actions>
4275 </button>
4276
4277 <button style="main_button_half_width">
4278 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004279 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004280 <actions>
4281 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004282 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004283 <action function="set">tw_fm_text2=</action>
4284 <action function="set">tw_fm_text3=</action>
4285 <action function="set">tw_include_text3=0</action>
4286 <action function="set">tw_back=filemanageroptions</action>
4287 <action function="page">filemanagerconfirm</action>
4288 </actions>
4289 </button>
4290
4291 <button style="main_button_half_width">
4292 <condition var1="tw_fm_isfolder" var2="0"/>
4293 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004294 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004295 <actions>
4296 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004297 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004298 <action function="set">tw_filemanager_command=mv</action>
4299 <action function="page">filemanagerrenamefile</action>
4300 </actions>
4301 </button>
4302
4303 <button style="main_button_half_width">
4304 <condition var1="tw_fm_isfolder" var2="1"/>
4305 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004306 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004307 <actions>
4308 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004309 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004310 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4311 <action function="page">filemanagerrenamefolder</action>
4312 </actions>
4313 </button>
4314
4315 <action>
4316 <touch key="home"/>
4317 <action function="page">main</action>
4318 </action>
4319
4320 <action>
4321 <touch key="back"/>
4322 <action function="page">filemanagerlist</action>
4323 </action>
4324 </page>
4325
4326 <page name="choosedestinationfolder">
4327 <template name="page"/>
4328
4329 <text style="text_l">
4330 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004331 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004332 </text>
4333
4334 <text style="text_m">
4335 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004336 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004337 </text>
4338
4339 <template name="sort_options"/>
4340
4341 <fileselector>
4342 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4343 <text>%tw_file_location2%</text>
4344 <filter folders="1" files="0"/>
4345 <path name="tw_file_location2" default="/"/>
4346 <data name="tw_filename2"/>
4347 <selection name="tw_selection2"/>
4348 </fileselector>
4349
4350 <button style="main_button_half_width_low">
4351 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004352 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004353 <actions>
4354 <action function="set">tw_fm_text2=to</action>
4355 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4356 <action function="set">tw_include_text3=1</action>
4357 <action function="set">tw_back=filemanageroptions</action>
4358 <action function="page">filemanagerconfirm</action>
4359 </actions>
4360 </button>
4361
4362 <action>
4363 <touch key="home"/>
4364 <action function="page">main</action>
4365 </action>
4366
4367 <action>
4368 <touch key="back"/>
4369 <action function="page">filemanageroptions</action>
4370 </action>
4371 </page>
4372
4373 <page name="filemanagerrenamefile">
4374 <template name="page"/>
4375
4376 <text style="text_l">
4377 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004378 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004379 </text>
4380
4381 <text style="text_m">
4382 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004383 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004384 </text>
4385
4386 <text style="text_m_accent">
4387 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004388 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004389 </text>
4390
4391 <input>
4392 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4393 <text>%tw_filemanager_rename%</text>
4394 <data name="tw_filemanager_rename"/>
4395 <restrict minlen="1" maxlen="128"/>
4396 <actions>
4397 <action function="set">tw_fm_text2=to</action>
4398 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4399 <action function="set">tw_include_text3=1</action>
4400 <action function="set">tw_back=filemanageroptions</action>
4401 <action function="page">filemanagerconfirm</action>
4402 </actions>
4403 </input>
4404
4405 <fill color="%accent_color%">
4406 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4407 </fill>
4408
4409 <button style="main_button_half_width_low">
4410 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004411 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004412 <action function="page">filemanageroptions</action>
4413 </button>
4414
4415 <template name="keyboardtemplate"/>
4416
4417 <action>
4418 <touch key="home"/>
4419 <action function="page">main</action>
4420 </action>
4421
4422 <action>
4423 <touch key="back"/>
4424 <action function="page">filemanageroptions</action>
4425 </action>
4426 </page>
4427
4428 <page name="filemanagerrenamefolder">
4429 <template name="page"/>
4430
4431 <text style="text_l">
4432 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004433 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004434 </text>
4435
4436 <text style="text_m">
4437 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004438 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004439 </text>
4440
4441 <text style="text_m_accent">
4442 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004443 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004444 </text>
4445
4446 <input>
4447 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4448 <text>%tw_filemanager_rename%</text>
4449 <data name="tw_filemanager_rename"/>
4450 <restrict minlen="1" maxlen="128"/>
4451 <actions>
4452 <action function="set">tw_fm_text2=to</action>
4453 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4454 <action function="set">tw_include_text3=1</action>
4455 <action function="set">tw_back=filemanageroptions</action>
4456 <action function="page">filemanagerconfirm</action>
4457 </actions>
4458 </input>
4459
4460 <fill color="%accent_color%">
4461 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4462 </fill>
4463
4464 <button style="main_button_half_width_low">
4465 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004466 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004467 <action function="page">filemanageroptions</action>
4468 </button>
4469
4470 <template name="keyboardtemplate"/>
4471
4472 <action>
4473 <touch key="home"/>
4474 <action function="page">main</action>
4475 </action>
4476
4477 <action>
4478 <touch key="back"/>
4479 <action function="page">filemanageroptions</action>
4480 </action>
4481 </page>
4482
4483 <page name="filemanagerchmod">
4484 <template name="page"/>
4485
4486 <text style="text_l">
4487 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004488 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004489 </text>
4490
4491 <text style="text_m">
4492 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004493 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004494 </text>
4495
4496 <text style="text_m_accent">
4497 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004498 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004499 </text>
4500
4501 <input>
4502 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4503 <text>%tw_filemanager_rename%</text>
4504 <data name="tw_filemanager_rename"/>
4505 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4506 <actions>
4507 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4508 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4509 <action function="set">tw_back=filemanageroptions</action>
4510 <action function="page">filemanagerconfirm</action>
4511 </actions>
4512 </input>
4513
4514 <fill color="%accent_color%">
4515 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4516 </fill>
4517
4518 <button style="main_button_half_width_low">
4519 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004520 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004521 <action function="page">filemanageroptions</action>
4522 </button>
4523
4524 <template name="keyboardtemplate"/>
4525
4526 <action>
4527 <touch key="home"/>
4528 <action function="page">main</action>
4529 </action>
4530
4531 <action>
4532 <touch key="back"/>
4533 <action function="page">filemanageroptions</action>
4534 </action>
4535 </page>
4536
4537 <page name="filemanagerconfirm">
4538 <template name="page"/>
4539
4540 <text style="text_l">
4541 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004542 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004543 </text>
4544
4545 <text style="text_m">
4546 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004547 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004548 </text>
4549
4550 <text style="text_m_accent">
4551 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4552 <text>%tw_fm_text1%</text>
4553 </text>
4554
4555 <text style="text_m">
4556 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4557 <text>%tw_filename1%</text>
4558 </text>
4559
4560 <text style="text_m_accent">
4561 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4562 <text>%tw_fm_text2%</text>
4563 </text>
4564
4565 <text style="text_m">
4566 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4567 <text>%tw_fm_text3%</text>
4568 </text>
4569
4570 <text style="text_m">
4571 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004572 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004573 </text>
4574
4575 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004576 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004577 <action function="page">filemanageraction</action>
4578 </slider>
4579
4580 <action>
4581 <touch key="back"/>
4582 <action function="page">%tw_back%</action>
4583 </action>
4584
4585 <action>
4586 <touch key="home"/>
4587 <action function="page">main</action>
4588 </action>
4589 </page>
4590
4591 <page name="filemanageraction">
4592 <template name="page"/>
4593
4594 <text style="text_l">
4595 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004596 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004597 </text>
4598
4599 <text style="text_m">
4600 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4601 <text>%tw_fm_text1%</text>
4602 </text>
4603
4604 <template name="console"/>
4605
4606 <template name="progress_bar"/>
4607
4608 <action>
4609 <conditions>
4610 <condition var1="tw_operation_state" var2="1"/>
4611 <condition var1="tw_operation_status" var2="0"/>
4612 </conditions>
4613 <actions>
4614 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004615 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004616 <action function="page">action_complete</action>
4617 </actions>
4618 </action>
4619
4620 <action>
4621 <conditions>
4622 <condition var1="tw_operation_state" var2="1"/>
4623 <condition var1="tw_operation_status" op="!=" var2="0"/>
4624 </conditions>
4625 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004626 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004627 <action function="page">action_complete</action>
4628 </actions>
4629 </action>
4630
4631 <action>
4632 <condition var1="tw_include_text3" var2="0"/>
4633 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4634 </action>
4635
4636 <action>
4637 <condition var1="tw_include_text3" var2="1"/>
4638 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4639 </action>
4640 </page>
4641
4642 <page name="decrypt">
4643 <template name="page"/>
4644
4645 <action>
4646 <condition var1="tw_crypto_pwtype" var2="2"/>
4647 <action function="page">decrypt_pattern</action>
4648 </action>
4649
4650 <text style="text_l">
4651 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004652 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004653 </text>
4654
4655 <text style="text_m">
4656 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004657 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004658 </text>
4659
4660 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004661 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004662 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004663 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004664 </text>
4665
Noah Jacobson81d638d2019-04-28 00:10:07 -04004666 <text style="text_m_accent">
4667 <condition var1="tw_is_fbe" var2="1"/>
4668 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4669 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4670 </text>
4671
z31s1g28f0a922015-11-07 18:50:22 +01004672 <input>
4673 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4674 <text>%tw_crypto_display%</text>
4675 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4676 <restrict minlen="1" maxlen="254"/>
4677 <action function="page">trydecrypt</action>
4678 </input>
4679
4680 <fill color="%accent_color%">
4681 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4682 </fill>
4683
4684 <fill color="%text_fail_color%">
4685 <condition var1="tw_password_fail" var2="1"/>
4686 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4687 </fill>
4688
4689 <text style="text_m_fail">
4690 <condition var1="tw_password_fail" var2="1"/>
4691 <placement x="%col1_x_left%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004692 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004693 </text>
4694
4695 <button style="main_button_half_width_low">
4696 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004697 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004698 <actions>
4699 <action function="set">tw_page_done=1</action>
4700 <action function="page">main</action>
4701 </actions>
4702 </button>
4703
z31s1g608d7ff2016-01-18 19:47:25 +01004704 <button style="main_button_half_width_low">
4705 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4706 <text>{@sel_lang_btn=Select Language}</text>
4707 <action function="overlay">select_language</action>
4708 </button>
4709
z31s1g28f0a922015-11-07 18:50:22 +01004710 <template name="keyboardtemplate"/>
4711 </page>
4712
4713 <page name="decrypt_pattern">
4714 <template name="page"/>
4715
4716 <text style="text_l">
4717 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004718 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004719 </text>
4720
4721 <text style="text_m">
4722 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004723 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004724 </text>
4725
4726 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004727 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004728 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004729 </text>
4730
Aleksa Saraib25a1832015-12-31 17:36:00 +01004731 <text style="text_m_fail">
4732 <condition var1="tw_password_fail" var2="1"/>
4733 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004734 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004735 </text>
4736
z31s1g28f0a922015-11-07 18:50:22 +01004737 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004738 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004739 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4740 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4741 <data name="tw_crypto_password"/>
4742 <action function="page">trydecrypt</action>
4743 </patternpassword>
4744
Aleksa Saraib25a1832015-12-31 17:36:00 +01004745 <button style="main_button_half_width_low">
4746 <placement x="%col_button_right%" y="%row1a_y%"/>
4747 <text>3x3</text>
4748 <action function="set">tw_gui_pattern_grid_size=3</action>
4749 </button>
4750
4751 <button style="main_button_half_width_low">
4752 <placement x="%col_button_right%" y="%row4a_y%"/>
4753 <text>4x4</text>
4754 <action function="set">tw_gui_pattern_grid_size=4</action>
4755 </button>
4756
4757 <button style="main_button_half_width_low">
4758 <placement x="%col_button_right%" y="%row7a_y%"/>
4759 <text>5x5</text>
4760 <action function="set">tw_gui_pattern_grid_size=5</action>
4761 </button>
4762
4763 <button style="main_button_half_width_low">
4764 <placement x="%col_button_right%" y="%row10a_y%"/>
4765 <text>6x6</text>
4766 <action function="set">tw_gui_pattern_grid_size=6</action>
4767 </button>
4768
z31s1g28f0a922015-11-07 18:50:22 +01004769 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004770 <placement x="%col1_x_right%" y="%row15a_y%"/>
4771 <text>{@sel_lang_btn=Select Language}</text>
4772 <action function="overlay">select_language</action>
4773 </button>
4774
4775 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004776 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004777 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004778 <actions>
4779 <action function="set">tw_page_done=1</action>
4780 <action function="page">main</action>
4781 </actions>
4782 </button>
4783 </page>
4784
4785 <page name="trydecrypt">
4786 <template name="page"/>
4787
4788 <text style="text_l">
4789 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004790 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004791 </text>
4792
4793 <text style="text_m">
4794 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004795 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004796 </text>
4797
4798 <template name="console"/>
4799
4800 <template name="progress_bar"/>
4801
4802 <action>
4803 <action function="decrypt"/>
4804 </action>
4805
4806 <action>
4807 <conditions>
4808 <condition var1="tw_operation_state" var2="1"/>
4809 <condition var1="tw_operation_status" op="!=" var2="0"/>
4810 </conditions>
4811 <actions>
4812 <action function="set">tw_password_fail=1</action>
4813 <action function="page">decrypt</action>
4814 </actions>
4815 </action>
4816
4817 <action>
4818 <conditions>
4819 <condition var1="tw_operation_state" var2="1"/>
4820 <condition var1="tw_operation_status" op="=" var2="0"/>
4821 </conditions>
4822 <actions>
4823 <action function="set">tw_page_done=1</action>
4824 <action function="page">main</action>
4825 </actions>
4826 </action>
4827 </page>
4828
z31s1g28f0a922015-11-07 18:50:22 +01004829 <page name="terminalcommand">
4830 <template name="page"/>
4831
4832 <fill color="%background_color%">
4833 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
4834 </fill>
4835
z31s1g56189522016-01-13 19:12:40 +01004836 <terminal>
4837 <condition var1="tw_hide_kb" var2="0"/>
4838 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
4839 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004840
z31s1g56189522016-01-13 19:12:40 +01004841 <terminal>
4842 <condition var1="tw_hide_kb" var2="1"/>
4843 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
4844 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004845
z31s1g56189522016-01-13 19:12:40 +01004846 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004847
z31s1g56189522016-01-13 19:12:40 +01004848 <object type="fill" color="#000000">
4849 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
4850 </object>
z31s1g28f0a922015-11-07 18:50:22 +01004851
z31s1g608d7ff2016-01-18 19:47:25 +01004852 <button>
z31s1g56189522016-01-13 19:12:40 +01004853 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4854 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4855 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4856 <image resource="back" />
4857 <condition var1="tw_busy" var2="0" />
4858 <actions>
4859 <action function="set">tw_hide_kb=0</action>
4860 <action function="page">advanced</action>
4861 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004862 </button>
z31s1g56189522016-01-13 19:12:40 +01004863
z31s1g608d7ff2016-01-18 19:47:25 +01004864 <button>
z31s1g56189522016-01-13 19:12:40 +01004865 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4866 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4867 <condition var1="tw_hide_kb" op="=" var2="0" />
4868 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4869 <image resource="kb_hide" />
4870 <condition var1="tw_busy" var2="0" />
4871 <actions>
4872 <action function="set">tw_hide_kb=1</action>
4873 <action function="page">terminalcommand</action>
4874 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004875 </button>
z31s1g56189522016-01-13 19:12:40 +01004876
z31s1g608d7ff2016-01-18 19:47:25 +01004877 <button>
z31s1g56189522016-01-13 19:12:40 +01004878 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4879 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4880 <condition var1="tw_hide_kb" op="=" var2="1" />
4881 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4882 <image resource="kb_show" />
4883 <condition var1="tw_busy" var2="0" />
4884 <actions>
4885 <action function="set">tw_hide_kb=0</action>
4886 <action function="page">terminalcommand</action>
4887 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004888 </button>
z31s1g56189522016-01-13 19:12:40 +01004889
z31s1g608d7ff2016-01-18 19:47:25 +01004890 <button>
z31s1g56189522016-01-13 19:12:40 +01004891 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4892 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4893 <image resource="home" />
4894 <condition var1="tw_busy" var2="0" />
4895 <actions>
4896 <action function="set">tw_hide_kb=0</action>
4897 <action function="key">home</action>
4898 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004899 </button>
z31s1g56189522016-01-13 19:12:40 +01004900
z31s1g608d7ff2016-01-18 19:47:25 +01004901 <button>
z31s1g56189522016-01-13 19:12:40 +01004902 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4903 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4904 <condition var1="tw_hide_kb" op="=" var2="0" />
4905 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4906 <image resource="kb_hide" />
4907 <condition var1="tw_busy" var2="0" />
4908 <actions>
4909 <action function="set">tw_hide_kb=1</action>
4910 <action function="page">terminalcommand</action>
4911 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004912 </button>
z31s1g56189522016-01-13 19:12:40 +01004913
z31s1g608d7ff2016-01-18 19:47:25 +01004914 <button>
z31s1g56189522016-01-13 19:12:40 +01004915 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4916 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4917 <condition var1="tw_hide_kb" op="=" var2="1" />
4918 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4919 <image resource="kb_show" />
4920 <condition var1="tw_busy" var2="0" />
4921 <actions>
4922 <action function="set">tw_hide_kb=0</action>
4923 <action function="page">terminalcommand</action>
4924 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004925 </button>
z31s1g56189522016-01-13 19:12:40 +01004926
z31s1g608d7ff2016-01-18 19:47:25 +01004927 <button>
z31s1g56189522016-01-13 19:12:40 +01004928 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4929 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4930 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4931 <image resource="back" />
4932 <condition var1="tw_busy" var2="0" />
4933 <actions>
4934 <action function="set">tw_hide_kb=0</action>
4935 <action function="page">advanced</action>
4936 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004937 </button>
z31s1g56189522016-01-13 19:12:40 +01004938
z31s1g608d7ff2016-01-18 19:47:25 +01004939 <button>
z31s1g56189522016-01-13 19:12:40 +01004940 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4941 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4942 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4943 <image resource="back" />
4944 <condition var1="tw_busy" var2="0" />
4945 <actions>
4946 <action function="set">tw_hide_kb=0</action>
4947 <action function="page">advanced</action>
4948 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004949 </button>
z31s1g56189522016-01-13 19:12:40 +01004950
z31s1g608d7ff2016-01-18 19:47:25 +01004951 <button>
z31s1g56189522016-01-13 19:12:40 +01004952 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4953 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4954 <condition var1="tw_hide_kb" op="=" var2="0" />
4955 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4956 <image resource="kb_hide" />
4957 <condition var1="tw_busy" var2="0" />
4958 <actions>
4959 <action function="set">tw_hide_kb=1</action>
4960 <action function="page">terminalcommand</action>
4961 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004962 </button>
z31s1g56189522016-01-13 19:12:40 +01004963
z31s1g608d7ff2016-01-18 19:47:25 +01004964 <button>
z31s1g56189522016-01-13 19:12:40 +01004965 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4966 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4967 <condition var1="tw_hide_kb" op="=" var2="1" />
4968 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4969 <image resource="kb_show" />
4970 <condition var1="tw_busy" var2="0" />
4971 <actions>
4972 <action function="set">tw_hide_kb=0</action>
4973 <action function="page">terminalcommand</action>
4974 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004975 </button>
z31s1g56189522016-01-13 19:12:40 +01004976
z31s1g608d7ff2016-01-18 19:47:25 +01004977 <button>
z31s1g56189522016-01-13 19:12:40 +01004978 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4979 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
4980 <image resource="home" />
4981 <condition var1="tw_busy" var2="0" />
4982 <actions>
4983 <action function="set">tw_hide_kb=0</action>
4984 <action function="key">home</action>
4985 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004986 </button>
z31s1g56189522016-01-13 19:12:40 +01004987
z31s1g608d7ff2016-01-18 19:47:25 +01004988 <button>
z31s1g56189522016-01-13 19:12:40 +01004989 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4990 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4991 <condition var1="tw_hide_kb" op="=" var2="0" />
4992 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
4993 <image resource="kb_hide" />
4994 <condition var1="tw_busy" var2="0" />
4995 <actions>
4996 <action function="set">tw_hide_kb=1</action>
4997 <action function="page">terminalcommand</action>
4998 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004999 </button>
z31s1g56189522016-01-13 19:12:40 +01005000
z31s1g608d7ff2016-01-18 19:47:25 +01005001 <button>
z31s1g56189522016-01-13 19:12:40 +01005002 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5003 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5004 <condition var1="tw_hide_kb" op="=" var2="1" />
5005 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5006 <image resource="kb_show" />
5007 <condition var1="tw_busy" var2="0" />
5008 <actions>
5009 <action function="set">tw_hide_kb=0</action>
5010 <action function="page">terminalcommand</action>
5011 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005012 </button>
z31s1g56189522016-01-13 19:12:40 +01005013
z31s1g608d7ff2016-01-18 19:47:25 +01005014 <button>
z31s1g56189522016-01-13 19:12:40 +01005015 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5016 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5017 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5018 <image resource="back" />
5019 <condition var1="tw_busy" var2="0" />
5020 <actions>
5021 <action function="set">tw_hide_kb=0</action>
5022 <action function="page">advanced</action>
5023 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005024 </button>
z31s1g56189522016-01-13 19:12:40 +01005025
z31s1g608d7ff2016-01-18 19:47:25 +01005026 <button>
z31s1g56189522016-01-13 19:12:40 +01005027 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5028 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5029 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5030 <image resource="back" />
5031 <condition var1="tw_busy" var2="0" />
5032 <actions>
5033 <action function="set">tw_hide_kb=0</action>
5034 <action function="page">advanced</action>
5035 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005036 </button>
z31s1g56189522016-01-13 19:12:40 +01005037
z31s1g608d7ff2016-01-18 19:47:25 +01005038 <button>
z31s1g56189522016-01-13 19:12:40 +01005039 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5040 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5041 <condition var1="tw_hide_kb" op="=" var2="0" />
5042 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5043 <image resource="kb_hide" />
5044 <condition var1="tw_busy" var2="0" />
5045 <actions>
5046 <action function="set">tw_hide_kb=1</action>
5047 <action function="page">terminalcommand</action>
5048 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005049 </button>
z31s1g56189522016-01-13 19:12:40 +01005050
z31s1g608d7ff2016-01-18 19:47:25 +01005051 <button>
z31s1g56189522016-01-13 19:12:40 +01005052 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5053 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5054 <condition var1="tw_hide_kb" op="=" var2="1" />
5055 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5056 <image resource="kb_show" />
5057 <condition var1="tw_busy" var2="0" />
5058 <actions>
5059 <action function="set">tw_hide_kb=0</action>
5060 <action function="page">terminalcommand</action>
5061 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005062 </button>
z31s1g56189522016-01-13 19:12:40 +01005063
z31s1g608d7ff2016-01-18 19:47:25 +01005064 <button>
z31s1g56189522016-01-13 19:12:40 +01005065 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5066 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5067 <image resource="home" />
5068 <condition var1="tw_busy" var2="0" />
5069 <actions>
5070 <action function="set">tw_hide_kb=0</action>
5071 <action function="key">home</action>
5072 </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 <condition var1="tw_hide_kb" op="=" var2="0" />
5079 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5080 <image resource="kb_hide" />
5081 <condition var1="tw_busy" var2="0" />
5082 <actions>
5083 <action function="set">tw_hide_kb=1</action>
5084 <action function="page">terminalcommand</action>
5085 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005086 </button>
z31s1g56189522016-01-13 19:12:40 +01005087
z31s1g608d7ff2016-01-18 19:47:25 +01005088 <button>
z31s1g56189522016-01-13 19:12:40 +01005089 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5090 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5091 <condition var1="tw_hide_kb" op="=" var2="1" />
5092 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5093 <image resource="kb_show" />
5094 <condition var1="tw_busy" var2="0" />
5095 <actions>
5096 <action function="set">tw_hide_kb=0</action>
5097 <action function="page">terminalcommand</action>
5098 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005099 </button>
z31s1g56189522016-01-13 19:12:40 +01005100
z31s1g608d7ff2016-01-18 19:47:25 +01005101 <button>
z31s1g56189522016-01-13 19:12:40 +01005102 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5103 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5104 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5105 <image resource="back" />
5106 <condition var1="tw_busy" var2="0" />
5107 <actions>
5108 <action function="set">tw_hide_kb=0</action>
5109 <action function="page">advanced</action>
5110 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005111 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005112
5113 <action>
5114 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005115 <actions>
5116 <action function="page">main</action>
5117 <action function="set">tw_hide_kb=0</action>
5118 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005119 </action>
5120
5121 <action>
5122 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005123 <actions>
5124 <action function="page">advanced</action>
5125 <action function="set">tw_hide_kb=0</action>
5126 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005127 </action>
z31s1g56189522016-01-13 19:12:40 +01005128
5129 <object type="action">
5130 <touch key="power+voldown" />
5131 <action function="screenshot" />
5132 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005133 </page>
bigbiffdf8436b2020-08-30 16:22:34 -04005134
5135 <page name="fastboot">
5136 <template name="page"/>
5137
5138 <text style="text_l">
5139 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5140 <text>{@fastboot_button=Fastboot}</text>
5141 </text>
5142
5143 <template name="console"/>
5144
5145 <template name="progress_bar"/>
5146
5147 <button style="main_button_half_width">
5148 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005149 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005150 <text>{@enable_adb=Enable ADB}</text>
5151 <actions>
5152 <action function="enableadb"/>
5153 <action function="set">tw_enable_adb=1</action>
5154 <action function="set">tw_enable_fastboot=0</action>
5155 </actions>
5156 </button>
5157
5158 <button style="main_button_half_width">
5159 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005160 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005161 <text>{@enable_fastboot=Enable Fastboot}</text>
5162 <actions>
5163 <action function="enablefastboot"/>
5164 <action function="set">tw_enable_fastboot=1</action>
5165 <action function="set">tw_enable_adb=0</action>
5166 </actions>
5167 </button>
5168
5169 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005170 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005171 <text>{@reboot_btn=Reboot}</text>
5172 <action function="page">fastbootreboot</action>
5173 </button>
5174 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005175
5176 <page name="sideload">
5177 <template name="page"/>
5178
5179 <text style="text_l">
5180 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005181 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005182 </text>
5183
5184 <text style="text_m">
5185 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005186 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005187 </text>
5188
5189 <checkbox>
5190 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005191 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005192 <data variable="tw_wipe_dalvik"/>
5193 </checkbox>
5194
5195 <checkbox>
5196 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005197 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005198 <data variable="tw_wipe_cache"/>
5199 </checkbox>
5200
5201 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005202 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005203 <actions>
5204 <action function="set">tw_back=advanced</action>
5205 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005206 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5207 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5208 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005209 <action function="set">tw_has_cancel=1</action>
5210 <action function="set">tw_show_reboot=1</action>
5211 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5212 <action function="page">action_page</action>
5213 </actions>
5214 </slider>
5215
5216 <action>
5217 <touch key="home"/>
5218 <action function="page">main</action>
5219 </action>
5220
5221 <action>
5222 <touch key="back"/>
5223 <action function="page">advanced</action>
5224 </action>
5225 </page>
5226
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005227 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005228 <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 Yonkerb5fab762016-01-28 14:03:33 -06005237 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005238 </text>
5239
5240 <text style="text_m_accent">
5241 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005242 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005243 </text>
5244
z31s1g28f0a922015-11-07 18:50:22 +01005245 <text style="text_m_fail">
5246 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005247 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005248 </text>
5249
5250 <text style="text_m_fail">
5251 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005252 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005253 </text>
5254
5255 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005256 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005257 <actions>
5258 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005259 <action function="set">tw_action=fixcontexts</action>
5260 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5261 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005262 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005263 <action function="set">tw_show_reboot=1</action>
5264 <action function="page">action_page</action>
5265 </actions>
5266 </slider>
5267
5268 <action>
5269 <touch key="home"/>
5270 <action function="page">main</action>
5271 </action>
5272
5273 <action>
5274 <touch key="back"/>
5275 <action function="page">advanced</action>
5276 </action>
5277 </page>
5278
z31s1g28f0a922015-11-07 18:50:22 +01005279 <page name="slideout">
5280 <fill color="%background_color%">
5281 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5282 </fill>
5283
5284 <console>
5285 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5286 </console>
5287
5288 <button>
5289 <fill color="%transparent%"/>
5290 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5291 <action function="overlay"/>
5292 </button>
5293
5294 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005295 <touch key="power"/>
5296 <action function="togglebacklight"/>
5297 </action>
5298
5299 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005300 <touch key="power+voldown"/>
5301 <action function="screenshot"/>
5302 </action>
5303 </page>
5304
5305 <page name="select_storage">
5306 <fill color="%semi_transparent%">
5307 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5308 </fill>
5309
5310 <fill color="%background_color%">
5311 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5312 </fill>
5313
5314 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005315 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005316 <data name="tw_storage_path"/>
5317 <listtype name="storage"/>
5318 </partitionlist>
5319
5320 <button style="button_third_width">
5321 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005322 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005323 <actions>
5324 <action function="set">tw_clear_destination=%tw_back%</action>
5325 <action function="overlay"/>
5326 <action function="page">clear_vars</action>
5327 </actions>
5328 </button>
5329
5330 <fill color="#000000">
5331 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5332 </fill>
5333
5334 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005335 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5336 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5337 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5338 <image resource="back" />
5339 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005340 <actions>
5341 <action function="overlay"/>
5342 <action function="key">%tw_back%</action>
5343 </actions>
5344 </button>
5345
5346 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005347 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5348 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5349 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5350 <image resource="console" />
5351 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005352 <action function="overlay">slideout</action>
5353 </button>
5354
5355 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005356 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5357 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5358 <image resource="home" />
5359 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005360 <actions>
5361 <action function="overlay"/>
5362 <action function="key">home</action>
5363 </actions>
5364 </button>
5365
5366 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005367 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5368 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5369 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5370 <image resource="console" />
5371 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005372 <action function="overlay">slideout</action>
5373 </button>
5374
5375 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005376 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5377 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5378 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5379 <image resource="back" />
5380 <condition var1="tw_busy" var2="0" />
5381 <actions>
5382 <action function="overlay"/>
5383 <action function="key">%tw_back%</action>
5384 </actions>
5385 </button>
5386
5387 <button>
5388 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5389 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5390 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5391 <image resource="back" />
5392 <condition var1="tw_busy" var2="0" />
5393 <actions>
5394 <action function="overlay"/>
5395 <action function="key">%tw_back%</action>
5396 </actions>
5397 </button>
5398
5399 <button>
5400 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5401 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5402 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5403 <image resource="console" />
5404 <condition var1="tw_busy" var2="0" />
5405 <action function="overlay">slideout</action>
5406 </button>
5407
5408 <button>
5409 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5410 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5411 <image resource="home" />
5412 <condition var1="tw_busy" var2="0" />
5413 <actions>
5414 <action function="overlay"/>
5415 <action function="key">home</action>
5416 </actions>
5417 </button>
5418
5419 <button>
5420 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5421 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5422 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5423 <image resource="console" />
5424 <condition var1="tw_busy" var2="0" />
5425 <action function="overlay">slideout</action>
5426 </button>
5427
5428 <button>
5429 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5430 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5431 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5432 <image resource="back" />
5433 <condition var1="tw_busy" var2="0" />
5434 <actions>
5435 <action function="overlay"/>
5436 <action function="key">%tw_back%</action>
5437 </actions>
5438 </button>
5439
5440 <button>
5441 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5442 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5443 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5444 <image resource="back" />
5445 <condition var1="tw_busy" var2="0" />
5446 <actions>
5447 <action function="overlay"/>
5448 <action function="key">%tw_back%</action>
5449 </actions>
5450 </button>
5451
5452 <button>
5453 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5454 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5455 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5456 <image resource="console" />
5457 <condition var1="tw_busy" var2="0" />
5458 <action function="overlay">slideout</action>
5459 </button>
5460
5461 <button>
5462 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5463 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5464 <image resource="home" />
5465 <condition var1="tw_busy" var2="0" />
5466 <actions>
5467 <action function="overlay"/>
5468 <action function="key">home</action>
5469 </actions>
5470 </button>
5471
5472 <button>
5473 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5474 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5475 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5476 <image resource="console" />
5477 <condition var1="tw_busy" var2="0" />
5478 <action function="overlay">slideout</action>
5479 </button>
5480
5481 <button>
5482 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5483 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5484 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5485 <image resource="back" />
5486 <condition var1="tw_busy" var2="0" />
5487 <actions>
5488 <action function="overlay"/>
5489 <action function="key">%tw_back%</action>
5490 </actions>
5491 </button>
5492
5493 <action>
5494 <touch key="power+voldown"/>
5495 <action function="screenshot"/>
5496 </action>
5497 </page>
5498
5499 <page name="select_language">
5500 <fill color="%semi_transparent%">
5501 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5502 </fill>
5503
5504 <fill color="%background_color%">
5505 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5506 </fill>
5507
5508 <listbox>
5509 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5510 <text>{@select_language=Select Language:}</text>
5511 <icon selected="radio_true" unselected="radio_false" />
5512 <data name="tw_language" />
5513 </listbox>
5514
5515 <button style="button_third_width">
5516 <placement x="%dialog_button_x%" y="%row13_y%"/>
5517 <text>{@ok_btn=OK}</text>
5518 <actions>
5519 <action function="overlay"/>
5520 <action function="setlanguage"></action>
5521 </actions>
5522 </button>
5523
5524 <fill color="#000000">
5525 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5526 </fill>
5527
5528 <button>
5529 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5530 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5531 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5532 <image resource="back" />
5533 <condition var1="tw_busy" var2="0" />
5534 <actions>
5535 <action function="overlay"/>
5536 <action function="key">%tw_back%</action>
5537 </actions>
5538 </button>
5539
5540 <button>
5541 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5542 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5543 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5544 <image resource="console" />
5545 <condition var1="tw_busy" var2="0" />
5546 <action function="overlay">slideout</action>
5547 </button>
5548
5549 <button>
5550 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5551 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5552 <image resource="home" />
5553 <condition var1="tw_busy" var2="0" />
5554 <actions>
5555 <action function="overlay"/>
5556 <action function="key">home</action>
5557 </actions>
5558 </button>
5559
5560 <button>
5561 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5562 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5563 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5564 <image resource="console" />
5565 <condition var1="tw_busy" var2="0" />
5566 <action function="overlay">slideout</action>
5567 </button>
5568
5569 <button>
5570 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5571 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5572 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5573 <image resource="back" />
5574 <condition var1="tw_busy" var2="0" />
5575 <actions>
5576 <action function="overlay"/>
5577 <action function="key">%tw_back%</action>
5578 </actions>
5579 </button>
5580
5581 <button>
5582 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5583 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5584 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5585 <image resource="back" />
5586 <condition var1="tw_busy" var2="0" />
5587 <actions>
5588 <action function="overlay"/>
5589 <action function="key">%tw_back%</action>
5590 </actions>
5591 </button>
5592
5593 <button>
5594 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5595 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5596 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5597 <image resource="console" />
5598 <condition var1="tw_busy" var2="0" />
5599 <action function="overlay">slideout</action>
5600 </button>
5601
5602 <button>
5603 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5604 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5605 <image resource="home" />
5606 <condition var1="tw_busy" var2="0" />
5607 <actions>
5608 <action function="overlay"/>
5609 <action function="key">home</action>
5610 </actions>
5611 </button>
5612
5613 <button>
5614 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5615 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5616 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5617 <image resource="console" />
5618 <condition var1="tw_busy" var2="0" />
5619 <action function="overlay">slideout</action>
5620 </button>
5621
5622 <button>
5623 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5624 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5625 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5626 <image resource="back" />
5627 <condition var1="tw_busy" var2="0" />
5628 <actions>
5629 <action function="overlay"/>
5630 <action function="key">%tw_back%</action>
5631 </actions>
5632 </button>
5633
5634 <button>
5635 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5636 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5637 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5638 <image resource="back" />
5639 <condition var1="tw_busy" var2="0" />
5640 <actions>
5641 <action function="overlay"/>
5642 <action function="key">%tw_back%</action>
5643 </actions>
5644 </button>
5645
5646 <button>
5647 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5648 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5649 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5650 <image resource="console" />
5651 <condition var1="tw_busy" var2="0" />
5652 <action function="overlay">slideout</action>
5653 </button>
5654
5655 <button>
5656 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5657 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5658 <image resource="home" />
5659 <condition var1="tw_busy" var2="0" />
5660 <actions>
5661 <action function="overlay"/>
5662 <action function="key">home</action>
5663 </actions>
5664 </button>
5665
5666 <button>
5667 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5668 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5669 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5670 <image resource="console" />
5671 <condition var1="tw_busy" var2="0" />
5672 <action function="overlay">slideout</action>
5673 </button>
5674
5675 <button>
5676 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5677 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5678 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5679 <image resource="back" />
5680 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005681 <actions>
5682 <action function="overlay"/>
5683 <action function="key">%tw_back%</action>
5684 </actions>
5685 </button>
5686
5687 <action>
5688 <touch key="power+voldown"/>
5689 <action function="screenshot"/>
5690 </action>
5691 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005692
5693 <page name="decrypt_users">
5694 <template name="page"/>
5695
5696 <text style="text_l">
5697 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5698 <text>{@decrypt_users=Decrypt Users}</text>
5699 </text>
5700
5701 <text style="text_m_accent">
5702 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5703 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5704 </text>
5705
5706 <listbox>
5707 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
5708 <text>{@select_user=Select User}</text>
5709 <icon selected="radio_true" unselected="radio_false" />
5710 <data name="tw_crypto_user_id" />
5711 </listbox>
5712
5713 <button style="main_button_half_width">
5714 <placement x="%col2_x_right%" y="%row15a_y%"/>
5715 <text>{@decrypt_users=Decrypt Users}</text>
5716 <action function="set">tw_crypto_password=</action>
5717 <action function="set">tw_password_fail=0</action>
5718 <action function="page">decrypt</action>
5719 </button>
5720
5721 <action>
5722 <touch key="home"/>
5723 <action function="page">main</action>
5724 </action>
5725
5726 <action>
5727 <touch key="back"/>
5728 <action function="page">advanced</action>
5729 </action>
5730 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005731 </pages>
5732</recovery>