blob: f8b5a950ab4e64c4ac26cd15c31b5bb3592cfdc0 [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"/>
z31s1g28f0a922015-11-07 18:50:22 +0100314 <path name="tw_zip_location" default="/sdcard"/>
315 <data name="tw_filename"/>
316 <selection name="tw_file"/>
317 </fileselector>
318
319 <fileselector>
320 <condition var1="tw_selectimage" var2="1"/>
321 <placement x="%col2_x_left%" y="%row1a_y%" w="%fileselector_install_width%" h="%fileselector_install_height%"/>
322 <text>%tw_zip_location%</text>
323 <filter extn=".img" folders="0" files="1"/>
324 <path name="tw_zip_location" default="/sdcard"/>
325 <data name="tw_filename"/>
326 <selection name="tw_file"/>
327 </fileselector>
328
329 <button style="main_button_half_width_low">
330 <condition var1="tw_selectimage" var2="0"/>
331 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500332 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100333 <actions>
334 <action function="set">tw_selectimage=1</action>
335 <action function="page">install</action>
336 </actions>
337 </button>
338
339 <button style="main_button_half_width_low">
340 <condition var1="tw_selectimage" var2="1"/>
341 <placement x="%col_button_right%" y="%row13a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500342 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100343 <actions>
344 <action function="set">tw_selectimage=0</action>
345 <action function="page">install</action>
346 </actions>
347 </button>
348
349 <button style="main_button_half_width_low">
350 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500351 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100352 <actions>
353 <action function="set">tw_back=install</action>
354 <action function="overlay">select_storage</action>
355 </actions>
356 </button>
357
358 <action>
359 <conditions>
360 <condition var1="tw_selectimage" var2="0"/>
361 <condition var1="tw_filename" op="modified"/>
362 </conditions>
363 <actions>
364 <action function="queuezip"/>
365 <action function="page">flash_confirm</action>
366 </actions>
367 </action>
368
369 <action>
370 <conditions>
371 <condition var1="tw_selectimage" var2="1"/>
372 <condition var1="tw_filename" op="modified"/>
373 </conditions>
374 <action function="page">flashimage_confirm</action>
375 </action>
376
377 <action>
378 <touch key="back"/>
379 <action function="page">main</action>
380 </action>
381
382 <action>
383 <touch key="home"/>
384 <action function="page">main</action>
385 </action>
386 </page>
387
388 <page name="flash_confirm">
389 <template name="page"/>
390
391 <text style="text_l">
392 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500393 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100394 </text>
395
396 <text style="text_m">
397 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500398 <text>{@zip_queue_count=%tw_zip_queue_count% of max of 10 Files queued}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100399 </text>
400
401 <text style="text_m_accent">
402 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500403 <text>{@zip_warn1=This operation may install incompatible}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100404 </text>
405
406 <text style="text_m_accent">
407 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500408 <text>{@zip_warn2=software and render your device unusable.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100409 </text>
410
411 <text style="text_m">
412 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500413 <text>{@zip_back_cancel=Press back to cancel adding this zip.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100414 </text>
415
416 <text style="text_m_accent">
417 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500418 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100419 </text>
420
421 <text style="text_m">
422 <placement x="%col1_x_left%" y="%row9_y%"/>
423 <text>%tw_zip_location%</text>
424 </text>
425
426 <text style="text_m_accent">
427 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500428 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100429 </text>
430
431 <text style="text_m">
432 <placement x="%col1_x_left%" y="%row12_y%"/>
433 <text>%tw_file%</text>
434 </text>
435
436 <text style="text_m_accent">
437 <placement x="%col1_x_right%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500438 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100439 </text>
440
441 <checkbox>
442 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500443 <text>{@zip_sig_chk=Zip signature verification}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100444 <data variable="tw_signed_zip_verify"/>
445 </checkbox>
446
447 <checkbox>
448 <condition var1="tw_has_injecttwrp" var2="1"/>
449 <placement x="%col1_x_right%" y="%row10a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500450 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100451 <data variable="tw_inject_after_zip"/>
452 </checkbox>
453
bigbiffa869fc72016-03-01 19:40:36 -0500454 <checkbox>
Matt Mower8dc25b72016-04-25 23:06:53 -0500455 <placement x="%col1_x_right%" y="%row12_y%"/>
bigbiffa869fc72016-03-01 19:40:36 -0500456 <text>{@install_reboot_chk=Reboot after installation is complete}</text>
Matt Mower8dc25b72016-04-25 23:06:53 -0500457 <data variable="tw_install_reboot"/>
bigbiffa869fc72016-03-01 19:40:36 -0500458 </checkbox>
459
z31s1g28f0a922015-11-07 18:50:22 +0100460 <button style="main_button_half_width">
461 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500462 <text>{@zip_add_btn=Add more Zips}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100463 <action function="page">install</action>
464 </button>
465
466 <button style="main_button_half_width">
467 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500468 <text>{@zip_clear_btn=Clear Zip Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100469 <actions>
470 <action function="queueclear"/>
471 <action function="page">install</action>
472 </actions>
473 </button>
474
475 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500476 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100477 <action function="flash">flash_zip</action>
478 </slider>
479
480 <action>
481 <touch key="back"/>
482 <actions>
483 <action function="cancelzip"/>
484 <action function="page">install</action>
485 </actions>
486 </action>
487
488 <action>
489 <touch key="home"/>
490 <action function="page">main</action>
491 </action>
492 </page>
493
494 <page name="flash_zip">
495 <template name="page"/>
496
497 <text style="text_l">
498 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500499 <text>{@install_zip_count_hdr=Install Zip %tw_zip_index% of %tw_zip_queue_count%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100500 </text>
501
502 <text style="text_m">
503 <placement x="%col1_x_header%" y="%row4_header_y%"/>
504 <text>%tw_file%</text>
505 </text>
506
507 <template name="console"/>
508
509 <template name="progress_bar"/>
510
511 <action>
512 <condition var1="tw_operation_state" var2="1"/>
513 <action function="page">flash_done</action>
514 </action>
515 </page>
516
517 <page name="flash_done">
518 <template name="page"/>
519
520 <text style="text_l">
521 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500522 <text>{@install_zip_hdr=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100523 </text>
524
525 <text style="text_m_fail">
526 <condition var1="tw_operation_status" op="!=" var2="0"/>
527 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500528 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100529 </text>
530
531 <text style="text_m">
532 <condition var1="tw_operation_status" var2="0"/>
533 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500534 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100535 </text>
536
537 <template name="console"/>
538
539 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500540 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100541 <placement x="%col2_x_left%" y="%row15a_y%"/>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500542 <text>{@wipe_cache_dalvik_btn=Wipe Cache/Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100543 <actions>
544 <action function="set">tw_back=flash_done</action>
545 <action function="set">tw_action=wipe</action>
546 <action function="set">tw_action_param=/cache</action>
547 <action function="set">tw_has_action2=1</action>
548 <action function="set">tw_action2=wipe</action>
549 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500550 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
551 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
552 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
553 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100554 <action function="page">confirm_action</action>
555 </actions>
556 </button>
557
558 <button style="main_button_half_width">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500559 <condition var1="tw_ab_device" var2="1"/>
560 <placement x="%indent%" y="%row21a_y%"/>
561 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
562 <actions>
563 <action function="set">tw_back=flash_done</action>
564 <action function="set">tw_action=wipe</action>
565 <action function="set">tw_action_param=dalvik</action>
566 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
567 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
568 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
569 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
570 <action function="page">confirm_action</action>
571 </actions>
572 </button>
573
574 <button style="main_button_half_width">
Chaosmaster7b66bf52020-02-07 20:33:43 +0100575 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100576 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500577 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100578 <actions>
579 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500580 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100581 </actions>
582 </button>
583
Chaosmaster7b66bf52020-02-07 20:33:43 +0100584 <button style="main_button_half_width">
585 <condition var1="tw_ab_device" var2="1"/>
586 <placement x="%center_x%" y="%row15a_y%"/>
587 <text>{@reboot_btn=Reboot}</text>
588 <actions>
589 <action function="set">tw_back=main2</action>
590 <action function="page">reboot</action>
591 </actions>
592 </button>
593
594
z31s1g28f0a922015-11-07 18:50:22 +0100595 <action>
596 <touch key="back"/>
597 <actions>
598 <action function="set">tw_clear_destination=install</action>
599 <action function="page">clear_vars</action>
600 </actions>
601 </action>
602
603 <action>
604 <touch key="home"/>
605 <actions>
606 <action function="set">tw_clear_destination=main2</action>
607 <action function="page">clear_vars</action>
608 </actions>
609 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500610
611 <action>
612 <conditions>
613 <condition var1="tw_install_reboot" var2="1"/>
614 <condition var1="tw_operation_status" var2="0"/>
615 <condition var1="tw_reboot_system" var2="1"/>
616 </conditions>
617 <actions>
618 <action function="set">tw_sleep=%tw_sleep_total%</action>
619 <action function="page">flash_sleep_and_reboot</action>
620 </actions>
621 </action>
622 </page>
623
624 <page name="flash_sleep_and_reboot">
625 <template name="page"/>
626
627 <text style="text_l">
628 <placement x="%col1_x_header%" y="%row3_header_y%"/>
629 <text>{@install_zip_hdr=Install Zip}</text>
630 </text>
631
632 <text style="text_m">
633 <placement x="%col1_x_header%" y="%row4_header_y%"/>
634 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
635 </text>
636
637 <template name="console"/>
638
639 <template name="progress_bar"/>
640
641 <button style="main_button_half_width">
642 <condition var1="tw_sleep" op="&gt;" var2="0"/>
643 <placement x="%center_x%" y="%row15a_y%"/>
644 <text>{@cancel_btn=Cancel}</text>
645 <actions>
646 <action function="set">tw_install_reboot=0</action>
647 <action function="page">flash_done</action>
648 </actions>
649 </button>
650
651 <action>
652 <conditions>
653 <condition var1="tw_sleep" var2="tw_sleep_total"/>
654 <condition var1="tw_install_reboot" var2="1"/>
655 </conditions>
656 <action function="sleepcounter">%tw_sleep_total%</action>
657 </action>
658
659 <action>
660 <conditions>
661 <condition var1="tw_sleep" var2="0"/>
662 <condition var1="tw_install_reboot" var2="1"/>
663 </conditions>
664 <actions>
665 <action function="sleep">50000</action>
666 <action function="set">tw_back=main2</action>
667 <action function="page">reboot_system_routine</action>
668 </actions>
669 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100670 </page>
671
672 <page name="flashimage_confirm">
673 <template name="page"/>
674
675 <text style="text_l">
676 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500677 <text>{@install_image_hdr=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100678 </text>
679
680 <text style="text_m">
681 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500682 <text>{@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100683 </text>
684
685 <text style="text_m_accent">
686 <placement x="%col1_x_left%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500687 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100688 </text>
689
690 <text style="text_m">
691 <placement x="%col1_x_left%" y="%row9_y%"/>
692 <text>%tw_zip_location%</text>
693 </text>
694
695 <text style="text_m_accent">
696 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500697 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100698 </text>
699
700 <text style="text_m">
701 <placement x="%col1_x_left%" y="%row12_y%"/>
702 <text>%tw_file%</text>
703 </text>
704
705 <partitionlist>
706 <placement x="%col1_x_right%" y="%row7a_y%" w="%content_half_width%" h="%partitionlist_flashimage_height%"/>
707 <icon selected="radio_true" unselected="radio_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500708 <text>{@flash_image_select=Select Partition to Flash Image:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100709 <data name="tw_flash_partition"/>
710 <listtype name="flashimg"/>
711 </partitionlist>
712
713 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500714 <text>{@swipe_flash=Swipe to confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100715 <actions>
716 <action function="set">tw_back=flashimage_confirm</action>
717 <action function="set">tw_action=flashimage</action>
718 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500719 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100720 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500721 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100722 <action function="page">action_page</action>
723 </actions>
724 <action function="flashimage"/>
725 </slider>
726
727 <action>
728 <touch key="back"/>
729 <actions>
730 <action function="set">tw_clear_destination=install</action>
731 <action function="page">clear_vars</action>
732 </actions>
733 </action>
734
735 <action>
736 <touch key="home"/>
737 <actions>
738 <action function="set">tw_clear_destination=main2</action>
739 <action function="page">clear_vars</action>
740 </actions>
741 </action>
742 </page>
743
744 <page name="clear_vars">
745 <action>
746 <action function="set">tw_operation_state=0</action>
747 <action function="set">tw_text1=</action>
748 <action function="set">tw_text2=</action>
749 <action function="set">tw_text3=</action>
750 <action function="set">tw_text4=</action>
751 <action function="set">tw_action_text1=</action>
752 <action function="set">tw_action_text2=</action>
753 <action function="set">tw_action_param=</action>
754 <action function="set">tw_has_action2=0</action>
755 <action function="set">tw_action2=</action>
756 <action function="set">tw_action2_param=</action>
757 <action function="set">tw_has_cancel=0</action>
758 <action function="set">tw_cancel_action=</action>
759 <action function="set">tw_cancel_param=</action>
760 <action function="set">tw_show_exclamation=0</action>
761 <action function="set">tw_show_reboot=0</action>
Noah Jacobson81d638d2019-04-28 00:10:07 -0400762 <action function="set">tw_crypto_user_id=</action>
763 <action function="set">tw_multiuser_warning_accepted=</action>
764 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +0100765 <action function="page">%tw_clear_destination%</action>
766 </action>
767 </page>
768
Matt Mower908dd252016-05-25 02:26:50 -0500769 <page name="reboot_system_routine">
770 <action>
771 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -0500772 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -0500773 <action function="set">tw_has_action2=0</action>
774 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
775 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
776 <action function="set">tw_text3=</action>
777 <action function="set">tw_text4=</action>
778 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
779 <action function="set">tw_action_text2=</action>
780 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
781 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
782 <action function="page">rebootcheck</action>
783 </action>
784 </page>
785
z31s1g28f0a922015-11-07 18:50:22 +0100786 <page name="confirm_action">
787 <template name="page"/>
788
789 <text style="text_l">
790 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500791 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100792 </text>
793
794 <text style="text_m">
795 <placement x="%col1_x_header%" y="%row4_header_y%"/>
796 <text/>
797 </text>
798
799 <text style="text_m_accent">
800 <placement x="%center_x%" y="%row2_y%" placement="5"/>
801 <text>%tw_text1%</text>
802 </text>
803
804 <text style="text_m_accent">
805 <placement x="%center_x%" y="%row3_y%" placement="5"/>
806 <text>%tw_text2%</text>
807 </text>
808
809 <text style="text_m">
810 <placement x="%center_x%" y="%row4_y%" placement="5"/>
811 <text>%tw_text3%</text>
812 </text>
813
814 <text style="text_m">
815 <placement x="%center_x%" y="%row5_y%" placement="5"/>
816 <text>%tw_text4%</text>
817 </text>
818
819 <text style="text_m">
820 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500821 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100822 </text>
823
824 <slider style="slider_centered">
825 <text>%tw_slider_text%</text>
826 <action function="page">action_page</action>
827 </slider>
828
829 <action>
830 <touch key="back"/>
831 <actions>
832 <action function="set">tw_clear_destination=%tw_back%</action>
833 <action function="page">clear_vars</action>
834 </actions>
835 </action>
836
837 <action>
838 <touch key="home"/>
839 <action function="page">main</action>
840 </action>
841 </page>
842
843 <page name="action_page">
844 <template name="page"/>
845
846 <text style="text_l">
847 <placement x="%col1_x_header%" y="%row3_header_y%"/>
848 <text>%tw_action_text1%</text>
849 </text>
850
851 <text style="text_m">
852 <placement x="%col1_x_header%" y="%row4_header_y%"/>
853 <text>%tw_action_text2%</text>
854 </text>
855
856 <template name="console"/>
857
858 <template name="progress_bar"/>
859
860 <button style="main_button_half_width">
861 <condition var1="tw_has_cancel" var2="1"/>
862 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500863 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100864 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
865 </button>
866
867 <action>
868 <condition var1="tw_operation_state" var2="1"/>
869 <actions>
870 <action function="page">action_complete</action>
871 </actions>
872 </action>
873
874 <action>
875 <condition var1="tw_has_action2" var2="0"/>
876 <actions>
877 <action function="%tw_action%">%tw_action_param%</action>
878 </actions>
879 </action>
880
881 <action>
882 <condition var1="tw_has_action2" var2="1"/>
883 <actions>
884 <action function="%tw_action%">%tw_action_param%</action>
885 <action function="%tw_action2%">%tw_action2_param%</action>
886 </actions>
887 </action>
888 </page>
889
890 <page name="singleaction_page">
891 <template name="page"/>
892
893 <text style="text_l">
894 <placement x="%col1_x_header%" y="%row3_header_y%"/>
895 <text>%tw_action_text1%</text>
896 </text>
897
898 <text style="text_m">
899 <placement x="%col1_x_header%" y="%row4_header_y%"/>
900 <text>%tw_action_text2%</text>
901 </text>
902
903 <template name="console"/>
904
905 <template name="progress_bar"/>
906
907 <action>
908 <condition var1="tw_operation_state" var2="1"/>
909 <actions>
910 <action function="set">tw_page_done=1</action>
911 </actions>
912 </action>
913
914 <action>
915 <condition var1="tw_has_action2" var2="0"/>
916 <actions>
917 <action function="%tw_action%">%tw_action_param%</action>
918 </actions>
919 </action>
920
921 <action>
922 <condition var1="tw_has_action2" var2="1"/>
923 <actions>
924 <action function="%tw_action%">%tw_action_param%</action>
925 <action function="%tw_action2%">%tw_action2_param%</action>
926 </actions>
927 </action>
928 </page>
929
930 <page name="action_complete">
931 <template name="page"/>
932
933 <text style="text_l">
934 <placement x="%col1_x_header%" y="%row3_header_y%"/>
935 <text>%tw_complete_text1%</text>
936 </text>
937
938 <text style="text_m_fail">
939 <condition var1="tw_operation_status" op="!=" var2="0"/>
940 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500941 <text>{@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100942 </text>
943
944 <text style="text_m">
945 <condition var1="tw_operation_status" var2="0"/>
946 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500947 <text>{@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100948 </text>
949
950 <template name="console"/>
951
952 <button style="main_button_half_width">
953 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500954 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100955 <actions>
956 <action function="set">tw_clear_destination=%tw_back%</action>
957 <action function="page">clear_vars</action>
958 </actions>
959 </button>
960
961 <button style="main_button_half_width">
962 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500963 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100964 <actions>
965 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500966 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100967 </actions>
968 </button>
969
970 <action>
971 <touch key="home"/>
972 <actions>
973 <action function="set">tw_clear_destination=main2</action>
974 <action function="page">clear_vars</action>
975 </actions>
976 </action>
977
978 <action>
979 <touch key="back"/>
980 <actions>
981 <action function="set">tw_clear_destination=%tw_back%</action>
982 <action function="page">clear_vars</action>
983 </actions>
984 </action>
985 </page>
986
987 <page name="filecheck">
988 <action>
989 <action function="fileexists">%tw_filecheck%</action>
990 </action>
991
992 <action>
993 <conditions>
994 <condition var1="tw_operation_state" var2="1"/>
995 <condition var1="tw_operation_status" var2="0"/>
996 </conditions>
997 <actions>
998 <action function="set">tw_fileexists=1</action>
999 <action function="page">%tw_existpage%</action>
1000 </actions>
1001 </action>
1002
1003 <action>
1004 <conditions>
1005 <condition var1="tw_operation_state" var2="1"/>
1006 <condition var1="tw_operation_status" var2="1"/>
1007 </conditions>
1008 <actions>
1009 <action function="set">tw_fileexists=0</action>
1010 <action function="page">%tw_notexistpage%</action>
1011 </actions>
1012 </action>
1013 </page>
1014
1015 <page name="rebootcheck">
1016 <action>
1017 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06001018 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001019 </action>
1020
1021 <action>
1022 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1023 <action function="page">confirm_action</action>
1024 </action>
1025 </page>
1026
1027 <page name="wipe">
1028 <template name="page"/>
1029
1030 <text style="text_l">
1031 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001032 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001033 </text>
1034
1035 <text style="text_m">
1036 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001037 <text>{@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001038 </text>
1039
1040 <text style="text_m_accent">
1041 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001042 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001043 </text>
1044
1045 <text style="text_m_accent">
bigbiffadc599e2020-05-28 19:36:30 +00001046 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04001047 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1048 </text>
1049
1050 <text style="text_m_accent">
1051 <condition var1="tw_has_data_media" var2="1"/>
1052 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001053 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001054 </text>
1055
1056 <text style="text_m_accent">
1057 <conditions>
1058 <condition var1="tw_has_android_secure" var2="1"/>
1059 <condition var1="fileexists" var2="/and-sec"/>
1060 </conditions>
1061 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001062 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001063 </text>
1064
1065 <text style="text_m_accent">
1066 <condition var1="tw_has_sdext_partition" var2="1"/>
1067 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001068 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001069 </text>
1070
1071 <text style="text_m">
1072 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001073 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001074 </text>
1075
1076 <text style="text_m">
1077 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001078 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001079 </text>
1080
1081 <text style="text_m">
1082 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001083 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001084 </text>
1085
1086 <button style="main_button_half_width">
1087 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001088 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001089 <actions>
1090 <action function="set">partitionlisterror=0</action>
1091 <action function="page">advancedwipe</action>
1092 </actions>
1093 </button>
1094
1095 <button style="main_button_half_width">
1096 <condition var1="tw_has_data_media" var2="1"/>
1097 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001098 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001099 <action function="page">formatdata</action>
1100 </button>
1101
1102 <button style="main_button_half_width">
1103 <conditions>
1104 <condition var1="tw_is_encrypted" var2="1"/>
1105 <condition var1="tw_has_data_media" var2="0"/>
1106 </conditions>
1107 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001108 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001109 <actions>
1110 <action function="set">tw_back=wipe</action>
1111 <action function="set">tw_action=wipe</action>
1112 <action function="set">tw_action_param=DATAMEDIA</action>
1113 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001114 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001115 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001116 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1117 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1118 <action function="set">tw_slider_text={@swipe_format_data=Swipe to Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001119 <action function="page">confirm_action</action>
1120 </actions>
1121 </button>
1122
1123 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001124 <text>{@swipe_factory_reset=Swipe to Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001125 <actions>
1126 <action function="set">tw_back=wipe</action>
1127 <action function="set">tw_action=wipe</action>
1128 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001129 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1130 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001131 <action function="page">action_page</action>
1132 </actions>
1133 </slider>
1134
1135 <action>
1136 <touch key="back"/>
1137 <action function="page">main</action>
1138 </action>
1139
1140 <action>
1141 <touch key="home"/>
1142 <action function="page">main</action>
1143 </action>
1144 </page>
1145
1146 <page name="advancedwipe">
1147 <template name="page"/>
1148
1149 <action>
1150 <action function="set">tw_wipe_list=</action>
1151 </action>
1152
1153 <text style="text_l">
1154 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001155 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001156 </text>
1157
1158 <text style="text_m">
1159 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001160 <text>{@advanced_wipe_hdr=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001161 </text>
1162
1163 <partitionlist>
1164 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001165 <text>{@sel_part_wipe=Select Partitions to Wipe:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001166 <data name="tw_wipe_list"/>
1167 <listtype name="wipe"/>
1168 </partitionlist>
1169
1170 <text style="text_m_fail">
1171 <condition var1="partitionlisterror" var2="1"/>
1172 <placement x="%col2_x_left%" y="%row14a_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001173 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001174 </text>
1175
1176 <button style="main_button_m">
1177 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001178 <text>{@repair_change_btn=Repair or Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001179 <actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001180 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001181 <action function="page">checkpartitionlist</action>
1182 </actions>
1183 </button>
1184
1185 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001186 <text>{@swipe_wipe=Swipe to Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001187 <actions>
1188 <action function="set">tw_back=advancedwipe</action>
1189 <action function="set">tw_action=wipe</action>
1190 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001191 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1192 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1193 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001194 <action function="page">action_page</action>
1195 </actions>
1196 </slider>
1197
1198 <action>
1199 <touch key="home"/>
1200 <action function="page">main</action>
1201 </action>
1202
1203 <action>
1204 <touch key="back"/>
1205 <action function="page">wipe</action>
1206 </action>
1207 </page>
1208
1209 <page name="formatdata">
1210 <template name="page"/>
1211
1212 <text style="text_l">
1213 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001214 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001215 </text>
1216
1217 <text style="text_m">
1218 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001219 <text>{@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001220 </text>
1221
1222 <text style="text_m_fail">
1223 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001224 <text>{@format_data_lcp1=Format Data will wipe all of your apps, backups, pictures, videos, media, and}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001225 </text>
1226
1227 <text style="text_m_fail">
1228 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001229 <text>{@format_data_lcp2=removes encryption on internal storage.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001230 </text>
1231
Ethan Yonker66a19492015-12-10 10:19:45 -06001232 <text style="text_m_fail">
1233 <condition var1="tw_has_adopted_storage" var2="1"/>
1234 <placement x="%center_x%" y="%row4_y%" placement="5"/>
1235 <text>{@format_data_adopted=Including Adopted Storage}</text>
1236 </text>
1237
z31s1g28f0a922015-11-07 18:50:22 +01001238 <text style="text_m">
1239 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001240 <text>{@format_data_undo=This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001241 </text>
1242
1243 <text style="text_m">
1244 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001245 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001246 </text>
1247
1248 <input>
1249 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="%input_height%"/>
1250 <text>%tw_confirm_formatdata%</text>
1251 <data name="tw_confirm_formatdata"/>
1252 <restrict minlen="3" maxlen="3" allow="yes"/>
1253 <action function="page">formatdata_confirm</action>
1254 </input>
1255
1256 <fill color="%accent_color%">
1257 <placement x="%col1_x_left%" y="row9_y" w="%content_width%" h="input_line_width"/>
1258 </fill>
1259
1260 <template name="keyboardtemplate"/>
1261
1262 <action>
1263 <touch key="home"/>
1264 <action function="page">main</action>
1265 </action>
1266
1267 <action>
1268 <touch key="back"/>
1269 <action function="page">wipe</action>
1270 </action>
1271 </page>
1272
1273 <page name="formatdata_confirm">
1274 <action>
1275 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1276 <actions>
1277 <action function="set">tw_back=formatdata</action>
1278 <action function="set">tw_action=wipe</action>
1279 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001280 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1281 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001282 <action function="page">action_page</action>
1283 </actions>
1284 </action>
1285
1286 <action>
1287 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1288 <action function="page">formatdata</action>
1289 </action>
1290 </page>
1291
1292 <page name="checkpartitionlist">
1293 <action>
1294 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1295 <actions>
1296 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001297 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001298 <action function="page">partitionoptions</action>
1299 </actions>
1300 </action>
1301
1302 <action>
1303 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1304 <actions>
1305 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001306 <action function="page">advancedwipe</action>
1307 </actions>
1308 </action>
1309 </page>
1310
1311 <page name="partitionoptions">
1312 <template name="page"/>
1313
1314 <text style="text_l">
1315 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001316 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001317 </text>
1318
1319 <text style="text_m">
1320 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001321 <text>{@part_opt_hdr=Partition Options for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001322 </text>
1323
1324 <text style="text_m_accent">
1325 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001326 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001327 </text>
1328
1329 <text style="text_m_accent">
1330 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001331 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001332 </text>
1333
1334 <text style="text_m">
1335 <condition var1="tw_partition_is_present" var2="1"/>
1336 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001337 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001338 </text>
1339
1340 <text style="text_m">
1341 <condition var1="tw_partition_is_present" var2="0"/>
1342 <placement x="%col2_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001343 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001344 </text>
1345
1346 <text style="text_m">
1347 <condition var1="tw_partition_removable" var2="1"/>
1348 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001349 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001350 </text>
1351
1352 <text style="text_m">
1353 <condition var1="tw_partition_removable" var2="0"/>
1354 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001355 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001356 </text>
1357
1358 <text style="text_m">
1359 <placement x="%col2_x_left%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001360 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001361 </text>
1362
1363 <text style="text_m">
1364 <placement x="%col1_x_right%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001365 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001366 </text>
1367
1368 <text style="text_m">
1369 <placement x="%col2_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001370 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001371 </text>
1372
1373 <text style="text_m">
1374 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001375 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001376 </text>
1377
1378 <button style="main_button_half_width">
1379 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1380 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001381 <text>{@resize_btn=Resize File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001382 <actions>
1383 <action function="set">tw_back=partitionoptions</action>
1384 <action function="set">tw_action=resize</action>
1385 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1386 <action function="set">tw_has_action2=1</action>
1387 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001388 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001389 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001390 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001391 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1392 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1393 <action function="set">tw_slider_text={@swipe_resize=Swipe to Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001394 <action function="page">confirm_action</action>
1395 </actions>
1396 </button>
1397
1398 <button style="main_button_half_width">
1399 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1400 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001401 <text>{@repair_btn=Repair File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001402 <actions>
1403 <action function="set">tw_back=partitionoptions</action>
1404 <action function="set">tw_action=repair</action>
1405 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1406 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001407 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001408 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001409 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1410 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1411 <action function="set">tw_slider_text={@swipe_repair=Swipe to Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001412 <action function="page">confirm_action</action>
1413 </actions>
1414 </button>
1415
1416 <button style="main_button_half_width">
1417 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001418 <text>{@change_fs_btn=Change File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001419 <action function="page">selectfilesystem</action>
1420 </button>
1421
1422 <action>
1423 <touch key="home"/>
1424 <action function="page">main</action>
1425 </action>
1426
1427 <action>
1428 <touch key="back"/>
1429 <action function="page">advancedwipe</action>
1430 </action>
1431 </page>
1432
1433 <page name="refreshfilesystem">
1434 <action>
1435 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1436 <actions>
1437 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001438 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001439 <action function="page">selectfilesystem</action>
1440 </actions>
1441 </action>
1442
1443 <action>
1444 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1445 <actions>
1446 <action function="set">partitionlisterror=1</action>
1447 <action function="set">tw_wipe_list=</action>
1448 <action function="page">advancedwipe</action>
1449 </actions>
1450 </action>
1451 </page>
1452
1453 <page name="selectfilesystem">
1454 <template name="page"/>
1455
1456 <text style="text_l">
1457 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001458 <text>{@wipe_hdr=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001459 </text>
1460
1461 <text style="text_m">
1462 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001463 <text>{@change_fs_for_hdr=Change File System for: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001464 </text>
1465
1466 <text style="text_m_accent">
1467 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001468 <text>{@part_mount_point=Mount Point: %tw_partition_mount_point%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001469 </text>
1470
1471 <text style="text_m_accent">
1472 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001473 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001474 </text>
1475
1476 <text style="text_m_fail">
1477 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001478 <text>{@change_fs_warn1=Some ROMs or kernels may not support some}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001479 </text>
1480
1481 <text style="text_m_fail">
1482 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001483 <text>{@change_fs_warn2=file systems. Proceed with caution!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001484 </text>
1485
1486 <button style="main_button_half_width">
1487 <condition var1="tw_partition_ext" op="=" var2="1"/>
1488 <placement x="%col1_x_left%" y="%row11_y%"/>
1489 <text>EXT2</text>
1490 <actions>
1491 <action function="set">tw_back=refreshfilesystem</action>
1492 <action function="set">tw_action=changefilesystem</action>
1493 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1494 <action function="set">tw_action_new_file_system=ext2</action>
1495 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001496 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1497 <action function="set">tw_text2=EXT2</action>
1498 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1499 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1500 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001501 <action function="page">confirm_action</action>
1502 </actions>
1503 </button>
1504
1505 <button style="main_button_half_width">
1506 <condition var1="tw_partition_ext" op="=" var2="1"/>
1507 <placement x="%col2_x_left%" y="%row11_y%"/>
1508 <text>EXT3</text>
1509 <actions>
1510 <action function="set">tw_back=refreshfilesystem</action>
1511 <action function="set">tw_action=changefilesystem</action>
1512 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1513 <action function="set">tw_action_new_file_system=ext3</action>
1514 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001515 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1516 <action function="set">tw_text2=EXT3</action>
1517 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1518 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1519 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001520 <action function="page">confirm_action</action>
1521 </actions>
1522 </button>
1523
1524 <button style="main_button_half_width">
1525 <condition var1="tw_partition_ext" op="=" var2="1"/>
1526 <placement x="%center_x%" y="%row11_y%"/>
1527 <text>EXT4</text>
1528 <actions>
1529 <action function="set">tw_back=refreshfilesystem</action>
1530 <action function="set">tw_action=changefilesystem</action>
1531 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1532 <action function="set">tw_action_new_file_system=ext4</action>
1533 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001534 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1535 <action function="set">tw_text2=EXT4</action>
1536 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1537 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1538 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001539 <action function="page">confirm_action</action>
1540 </actions>
1541 </button>
1542
1543 <button style="main_button_half_width">
1544 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1545 <placement x="%col2_x_right%" y="%row11_y%"/>
1546 <text>FAT</text>
1547 <actions>
1548 <action function="set">tw_back=refreshfilesystem</action>
1549 <action function="set">tw_action=changefilesystem</action>
1550 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1551 <action function="set">tw_action_new_file_system=vfat</action>
1552 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001553 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1554 <action function="set">tw_text2=FAT</action>
1555 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1556 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1557 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001558 <action function="page">confirm_action</action>
1559 </actions>
1560 </button>
1561
1562 <button style="main_button_half_width">
1563 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1564 <placement x="%col2_x_left%" y="%row15a_y%"/>
1565 <text>exFAT</text>
1566 <actions>
1567 <action function="set">tw_back=refreshfilesystem</action>
1568 <action function="set">tw_action=changefilesystem</action>
1569 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1570 <action function="set">tw_action_new_file_system=exfat</action>
1571 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001572 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1573 <action function="set">tw_text2=exFAT</action>
1574 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1575 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1576 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001577 <action function="page">confirm_action</action>
1578 </actions>
1579 </button>
1580
1581 <button style="main_button_half_width">
1582 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1583 <placement x="%center_x%" y="%row15a_y%"/>
1584 <text>F2FS</text>
1585 <actions>
1586 <action function="set">tw_back=refreshfilesystem</action>
1587 <action function="set">tw_action=changefilesystem</action>
1588 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1589 <action function="set">tw_action_new_file_system=f2fs</action>
1590 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001591 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1592 <action function="set">tw_text2=F2FS</action>
1593 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1594 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1595 <action function="set">tw_slider_text={@swipe_change_fs=Swipe to Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001596 <action function="page">confirm_action</action>
1597 </actions>
1598 </button>
1599
1600 <action>
1601 <touch key="home"/>
1602 <action function="page">main</action>
1603 </action>
1604
1605 <action>
1606 <touch key="back"/>
1607 <action function="page">partitionoptions</action>
1608 </action>
1609 </page>
1610
1611 <page name="backup">
1612 <template name="page"/>
1613
Noah Jacobson81d638d2019-04-28 00:10:07 -04001614 <action>
1615 <conditions>
1616 <condition var1="tw_is_fbe" var2="1"/>
1617 <condition var1="tw_all_users_decrypted" var2="0"/>
1618 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1619 </conditions>
1620 <actions>
1621 <action function="set">tw_multiuser_warning_destination=backup</action>
1622 <action function="page">multiuser_warning</action>
1623 </actions>
1624 </action>
1625
z31s1g28f0a922015-11-07 18:50:22 +01001626 <text style="text_l">
1627 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001628 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001629 </text>
1630
1631 <text style="text_m">
1632 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001633 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001634 </text>
1635
1636 <text style="text_m_accent">
1637 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001638 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001639 </text>
1640
1641 <text style="text_m">
1642 <placement x="%col1_x_left%" y="%row3_y%"/>
1643 <text>%tw_backup_name%</text>
1644 </text>
1645
1646 <fill color="%fileselector_linecolor%">
1647 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1648 </fill>
1649
1650 <button>
1651 <placement x="col1_x_left" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1652 <fill color="%transparent%"/>
1653 <actions>
1654 <action function="set">tw_fileexists=0</action>
1655 <action function="page">backupname1</action>
1656 </actions>
1657 </button>
1658
1659 <partitionlist>
1660 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001661 <text>{@sel_part_backup=Select Partitions to Backup:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001662 <data name="tw_backup_list"/>
1663 <listtype name="backup"/>
1664 </partitionlist>
1665
1666 <text style="text_m_accent">
1667 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001668 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001669 </text>
1670
1671 <text style="text_m">
1672 <conditions>
1673 <condition var1="tw_include_encrypted_backup" var2="1"/>
1674 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001675 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001676 </conditions>
1677 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001678 <text>{@enc_disabled=disabled - set a password to enable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001679 </text>
1680
1681 <text style="text_m">
1682 <conditions>
1683 <condition var1="tw_include_encrypted_backup" var2="1"/>
1684 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001685 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001686 </conditions>
1687 <placement x="%col1_x_right%" y="%row3_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001688 <text>{@enc_enabled=enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001689 </text>
1690
1691 <fill color="%fileselector_linecolor%">
1692 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1693 </fill>
1694
1695 <button>
1696 <placement x="col1_x_right" y="%row2_y%" w="%content_half_width%" h="%navbar_height%"/>
1697 <fill color="%transparent%"/>
1698 <actions>
1699 <action function="set">tw_password_not_match=0</action>
1700 <action function="page">backupencryption</action>
1701 </actions>
1702 </button>
1703
1704 <text style="text_m_accent">
1705 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001706 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001707 </text>
1708
1709 <checkbox>
1710 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001711 <text>{@enable_backup_comp_chk=Enable compression}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001712 <data variable="tw_use_compression"/>
1713 </checkbox>
1714
1715 <checkbox>
1716 <placement x="%col1_x_right%" y="%row7a_y%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001717 <text>{@skip_digest_backup_chk=Skip Digest generation during backup}</text>
1718 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01001719 </checkbox>
1720
1721 <checkbox>
1722 <placement x="%col1_x_right%" y="%row9_y%"/>
Matt Mowerbfccfb82016-04-25 23:22:31 -05001723 <text>{@disable_backup_space_chk=Disable free space check before backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001724 <data variable="tw_disable_free_space"/>
1725 </checkbox>
1726
1727 <button style="main_button_half_width">
bigbiffce8f83c2015-12-12 18:30:21 -05001728 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01001729 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001730 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001731 <actions>
1732 <action function="set">tw_back=backup</action>
1733 <action function="overlay">select_storage</action>
1734 </actions>
1735 </button>
1736
1737 <button style="main_button_half_width">
1738 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001739 <text>{@refresh_sizes_btn=Refresh Sizes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001740 <actions>
1741 <action function="refreshsizes"/>
1742 <action function="page">backup</action>
1743 </actions>
1744 </button>
1745
1746 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001747 <text>{@swipe_backup=Swipe to Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001748 <action function="page">backup_run</action>
1749 </slider>
1750
1751 <action>
1752 <touch key="home"/>
1753 <action function="page">main</action>
1754 </action>
1755
1756 <action>
1757 <touch key="back"/>
1758 <action function="page">main</action>
1759 </action>
1760 </page>
1761
Noah Jacobson81d638d2019-04-28 00:10:07 -04001762 <page name="multiuser_warning">
1763 <template name="page"/>
1764
1765 <text style="text_l">
1766 <placement x="%col1_x_header%" y="%row3_header_y%"/>
1767 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
1768 </text>
1769
1770 <text style="text_m_fail">
1771 <placement x="%center_x%" y="%row7_y%" placement="5"/>
1772 <text>{@multiuser_warning1=Not all users decrypted!}</text>
1773 </text>
1774
1775 <text style="text_m_fail">
1776 <placement x="%center_x%" y="%row8_y%" placement="5"/>
1777 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
1778 </text>
1779
1780 <button style="main_button_m">
1781 <placement x="%col1_x_left%" y="%row15a_y%"/>
1782 <text>{@decrypt_users=Decrypt Users}</text>
1783 <action function="page">decrypt_users</action>
1784 </button>
1785
1786 <slider>
1787 <text>{@multiuser_warning_accept=Continue Anyway}</text>
1788 <actions>
1789 <action function="set">tw_multiuser_warning_accepted=1</action>
1790 <action function="page">%tw_multiuser_warning_destination%</action>
1791 </actions>
1792 </slider>
1793
1794 <action>
1795 <touch key="home"/>
1796 <action function="page">main</action>
1797 </action>
1798
1799 <action>
1800 <touch key="back"/>
1801 <action function="page">main</action>
1802 </action>
1803 </page>
1804
z31s1g28f0a922015-11-07 18:50:22 +01001805 <page name="backupname1">
1806 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001807 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01001808 <action function="generatebackupname"/>
1809 </action>
1810
1811 <action>
1812 <action function="page">backupname2</action>
1813 </action>
1814 </page>
1815
1816 <page name="backupname2">
1817 <template name="page"/>
1818
1819 <text style="text_l">
1820 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001821 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001822 </text>
1823
1824 <text style="text_m">
1825 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001826 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001827 </text>
1828
1829 <text style="text_m_accent">
1830 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001831 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001832 </text>
1833
1834 <input>
1835 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
1836 <text>%tw_backup_name%</text>
1837 <data name="tw_backup_name"/>
1838 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
1839 <actions>
1840 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
1841 <action function="set">tw_existpage=backupname2</action>
1842 <action function="set">tw_notexistpage=backup</action>
1843 <action function="page">filecheck</action>
1844 </actions>
1845 </input>
1846
1847 <fill color="%accent_color%">
1848 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1849 </fill>
1850
1851 <fill color="%text_fail_color%">
1852 <condition var1="tw_fileexists" var2="1"/>
1853 <placement x="%col1_x_left%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1854 </fill>
1855
1856 <text style="text_m_fail">
1857 <condition var1="tw_fileexists" var2="1"/>
1858 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001859 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001860 </text>
1861
1862 <button style="main_button_half_width_low">
1863 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001864 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001865 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001866 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001867 <action function="page">backup</action>
1868 </actions>
1869 </button>
1870
1871 <button style="main_button_half_width_low">
1872 <placement x="%date_button_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001873 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001874 <action function="appenddatetobackupname"/>
1875 </button>
1876
1877 <template name="keyboardtemplate"/>
1878
1879 <action>
1880 <touch key="home"/>
1881 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001882 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001883 <action function="page">main</action>
1884 </actions>
1885 </action>
1886
1887 <action>
1888 <touch key="back"/>
1889 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05001890 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001891 <action function="page">backup</action>
1892 </actions>
1893 </action>
1894 </page>
1895
1896 <page name="backupencryption">
1897 <template name="page"/>
1898
1899 <text style="text_l">
1900 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001901 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001902 </text>
1903
1904 <text style="text_m">
1905 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001906 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001907 </text>
1908
1909 <text style="text_m_accent">
1910 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001911 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001912 </text>
1913
1914 <input>
1915 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1916 <text>%tw_backup_encrypt_display%</text>
1917 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
1918 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1919 <action function="page">backupencryption2</action>
1920 </input>
1921
1922 <fill color="%accent_color%">
1923 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1924 </fill>
1925
1926 <fill color="%text_fail_color%">
1927 <condition var1="tw_password_not_match" var2="1"/>
1928 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width"/>
1929 </fill>
1930
1931 <text style="text_m_fail">
1932 <condition var1="tw_password_not_match" var2="1"/>
1933 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001934 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001935 </text>
1936
1937 <button style="main_button_half_width_low">
1938 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001939 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001940 <actions>
1941 <action function="set">tw_encrypt_backup=0</action>
1942 <action function="set">tw_backup_password=</action>
1943 <action function="set">tw_backup_password2=</action>
1944 <action function="set">tw_backup_encrypt_display=</action>
1945 <action function="set">tw_backup_encrypt_display2=</action>
1946 <action function="page">backup</action>
1947 </actions>
1948 </button>
1949
1950 <template name="keyboardtemplate"/>
1951
1952 <action>
1953 <touch key="home"/>
1954 <action function="page">main</action>
1955 </action>
1956
1957 <action>
1958 <touch key="back"/>
1959 <action function="page">backup</action>
1960 </action>
1961 </page>
1962
1963 <page name="backupencryption2">
1964 <template name="page"/>
1965
1966 <text style="text_l">
1967 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001968 <text>{@backup_hdr=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001969 </text>
1970
1971 <text style="text_m">
1972 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001973 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001974 </text>
1975
1976 <text style="text_m_accent">
1977 <placement x="%col1_x_right%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001978 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001979 </text>
1980
1981 <input>
1982 <placement x="%col1_x_right%" y="%row2_input_y%" w="%content_half_width%" h="%input_height%"/>
1983 <text>%tw_backup_encrypt_display2%</text>
1984 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
1985 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
1986 <action function="page">checkbackuppassword</action>
1987 </input>
1988
1989 <fill color="%accent_color%">
1990 <placement x="%col1_x_right%" y="row4_y" w="%content_half_width%" h="input_line_width" placement="1"/>
1991 </fill>
1992
1993 <text style="text_m">
1994 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001995 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001996 </text>
1997
1998 <button style="main_button_half_width_low">
1999 <placement x="%center_x%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002000 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002001 <actions>
2002 <action function="set">tw_encrypt_backup=0</action>
2003 <action function="set">tw_backup_password=</action>
2004 <action function="set">tw_backup_password2=</action>
2005 <action function="set">tw_backup_encrypt_display=</action>
2006 <action function="set">tw_backup_encrypt_display2=</action>
2007 <action function="page">backup</action>
2008 </actions>
2009 </button>
2010
2011 <template name="keyboardtemplate"/>
2012
2013 <action>
2014 <touch key="home"/>
2015 <action function="page">main</action>
2016 </action>
2017
2018 <action>
2019 <touch key="back"/>
2020 <action function="page">backup</action>
2021 </action>
2022 </page>
2023
2024 <page name="checkbackuppassword">
2025 <action>
2026 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2027 <actions>
2028 <action function="set">tw_encrypt_backup=1</action>
2029 <action function="page">backup</action>
2030 </actions>
2031 </action>
2032
2033 <action>
2034 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2035 <actions>
2036 <action function="set">tw_encrypt_backup=0</action>
2037 <action function="set">tw_password_not_match=1</action>
2038 <action function="set">tw_backup_password=</action>
2039 <action function="set">tw_backup_password2=</action>
2040 <action function="set">tw_backup_encrypt_display=</action>
2041 <action function="set">tw_backup_encrypt_display2=</action>
2042 <action function="page">backupencryption</action>
2043 </actions>
2044 </action>
2045 </page>
2046
2047 <page name="backup_run">
2048 <template name="page"/>
2049
2050 <text style="text_l">
2051 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2052 <text>%tw_operation%</text>
2053 </text>
2054
2055 <text style="text_m">
2056 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2057 <text>%tw_partition% Partition</text>
2058 </text>
2059
2060 <template name="console"/>
2061
2062 <template name="progress_bar"/>
2063
2064 <text style="text_m_accent">
2065 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002066 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002067 </text>
2068
2069 <text style="text_m">
2070 <placement x="%progress_text_x%" y="%row17_y%"/>
2071 <text>%tw_file_progress%</text>
2072 </text>
2073
2074 <text style="text_m">
2075 <placement x="%progress_text_x%" y="%row18_y%"/>
2076 <text>%tw_size_progress%</text>
2077 </text>
2078
2079 <button style="main_button_half_width">
2080 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002081 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002082 <action function="cancelbackup"/>
2083 </button>
2084
2085 <action>
2086 <action function="nandroid">backup</action>
2087 </action>
2088
2089 <action>
2090 <condition var1="tw_operation_state" var2="1"/>
2091 <condition var1="tw_cancel_backup" var2="0"/>
2092 <actions>
2093 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002094 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002095 <action function="set">tw_show_reboot=1</action>
2096 <action function="page">action_complete</action>
2097 </actions>
2098 </action>
2099
2100 <action>
2101 <condition var1="tw_operation_state" var2="1"/>
2102 <condition var1="tw_cancel_backup" var2="1"/>
2103 <actions>
2104 <action function="set">tw_back=backup</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002105 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002106 <action function="set">tw_show_reboot=1</action>
2107 <action function="page">action_complete</action>
2108 </actions>
2109 </action>
2110 </page>
2111
2112 <page name="restore">
2113 <template name="page"/>
2114
Noah Jacobson81d638d2019-04-28 00:10:07 -04002115 <action>
2116 <conditions>
2117 <condition var1="tw_is_fbe" var2="1"/>
2118 <condition var1="tw_all_users_decrypted" var2="0"/>
2119 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2120 </conditions>
2121 <actions>
2122 <action function="set">tw_multiuser_warning_destination=restore</action>
2123 <action function="page">multiuser_warning</action>
2124 </actions>
2125 </action>
2126
z31s1g28f0a922015-11-07 18:50:22 +01002127 <text style="text_l">
2128 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002129 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002130 </text>
2131
2132 <text style="text_m">
2133 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002134 <text>{@restore_sel_store_hdr=Select Backup from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002135 </text>
2136
2137 <template name="sort_options"/>
2138
2139 <fileselector>
2140 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_install_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002141 <text>{@restore_sel_pack_fs=Select Package to Restore:}</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002142 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002143 <path name="tw_backups_folder"/>
2144 <data name="tw_restore" default=""/>
2145 <selection name="tw_restore_name"/>
2146 </fileselector>
2147
2148 <button style="main_button_half_width_low">
2149 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002150 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002151 <actions>
2152 <action function="set">tw_back=restore</action>
2153 <action function="overlay">select_storage</action>
2154 </actions>
2155 </button>
2156
2157 <action>
2158 <condition var1="tw_restore" op="modified"/>
2159 <actions>
2160 <action function="readBackup"/>
2161 <action function="page">restore_read</action>
2162 </actions>
2163 </action>
2164
2165 <action>
2166 <touch key="home"/>
2167 <action function="page">main</action>
2168 </action>
2169
2170 <action>
2171 <touch key="back"/>
2172 <action function="page">main</action>
2173 </action>
2174 </page>
2175
2176 <page name="restore_read">
2177 <action>
2178 <condition var1="tw_restore_encrypted" var2="1"/>
2179 <actions>
2180 <action function="set">tw_password_fail=0</action>
2181 <action function="page">restore_decrypt</action>
2182 </actions>
2183 </action>
2184
2185 <action>
2186 <condition var1="tw_restore_encrypted" var2="0"/>
2187 <actions>
2188 <action function="page">restore_select</action>
2189 </actions>
2190 </action>
2191 </page>
2192
2193 <page name="restore_decrypt">
2194 <template name="page"/>
2195
2196 <text style="text_l">
2197 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002198 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002199 </text>
2200
2201 <text style="text_m">
2202 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002203 <text>{@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002204 </text>
2205
2206 <text style="text_m_accent">
2207 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002208 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002209 </text>
2210
2211 <input>
2212 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
2213 <text>%tw_restore_display%</text>
2214 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2215 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2216 <action function="page">try_restore_decrypt</action>
2217 </input>
2218
2219 <fill color="%accent_color%">
2220 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2221 </fill>
2222
2223 <fill color="%text_fail_color%">
2224 <condition var1="tw_password_fail" var2="1"/>
2225 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
2226 </fill>
2227
2228 <text style="text_m_fail">
2229 <condition var1="tw_password_fail" var2="1"/>
2230 <placement x="%col1_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002231 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002232 </text>
2233
2234 <button style="main_button_half_width_low">
2235 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002236 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002237 <actions>
2238 <action function="set">tw_page_done=1</action>
2239 <action function="page">restore</action>
2240 </actions>
2241 </button>
2242
2243 <button style="main_button_half_width_low">
2244 <placement x="%col_button_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002245 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002246 <actions>
2247 <action function="set">tw_back=restore</action>
2248 <action function="set">tw_action=cmd</action>
2249 <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 -05002250 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2251 <action function="set">tw_text2=%tw_restore_name%</action>
2252 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2253 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2254 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2255 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002256 <action function="page">confirm_action</action>
2257 </actions>
2258 </button>
2259
2260 <template name="keyboardtemplate"/>
2261
2262 <action>
2263 <touch key="home"/>
2264 <action function="page">main</action>
2265 </action>
2266
2267 <action>
2268 <touch key="back"/>
2269 <action function="page">restore</action>
2270 </action>
2271 </page>
2272
2273 <page name="try_restore_decrypt">
2274 <template name="page"/>
2275
2276 <text style="text_l">
2277 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002278 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002279 </text>
2280
2281 <text style="text_m">
2282 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002283 <text>{@restore_try_decrypt=Encrypted Backup - Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002284 </text>
2285
2286 <template name="console"/>
2287
2288 <template name="progress_bar"/>
2289
2290 <action>
2291 <action function="decrypt_backup"/>
2292 </action>
2293
2294 <action>
2295 <conditions>
2296 <condition var1="tw_operation_state" var2="1"/>
2297 <condition var1="tw_operation_status" op="!=" var2="0"/>
2298 </conditions>
2299 <actions>
2300 <action function="set">tw_password_fail=1</action>
2301 <action function="page">restore_decrypt</action>
2302 </actions>
2303 </action>
2304
2305 <action>
2306 <conditions>
2307 <condition var1="tw_operation_state" var2="1"/>
2308 <condition var1="tw_operation_status" op="=" var2="0"/>
2309 </conditions>
2310 <actions>
2311 <action function="set">tw_page_done=1</action>
2312 <action function="page">restore_select</action>
2313 </actions>
2314 </action>
2315 </page>
2316
2317 <page name="restore_select">
2318 <template name="page"/>
2319
2320 <text style="text_l">
2321 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002322 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002323 </text>
2324
2325 <text style="text_m">
2326 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002327 <text>{@restore_backup_date=Backup made on %tw_restore_file_date%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002328 </text>
2329
2330 <text style="text_m_accent">
2331 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002332 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002333 </text>
2334
2335 <text style="text_m">
2336 <placement x="%col1_x_left%" y="%row3_y%"/>
2337 <text>%tw_restore_name%</text>
2338 </text>
2339
2340 <fill color="%fileselector_linecolor%">
2341 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width"/>
2342 </fill>
2343
2344 <button>
2345 <placement x="col1_x_left" y="%row2_y%" w="%content_width%" h="%navbar_height%"/>
2346 <fill color="%transparent%"/>
2347 <actions>
2348 <action function="set">tw_backup_rename=%tw_restore_name%</action>
2349 <action function="set">tw_fileexists=0</action>
2350 <action function="page">renamebackup</action>
2351 </actions>
2352 </button>
2353
2354 <partitionlist>
2355 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="%partitionlist_backup_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002356 <text>{@restore_sel_part=Select Partitions to Restore:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002357 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2358 <listtype name="restore"/>
2359 </partitionlist>
2360
2361 <text style="text_m_accent">
2362 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002363 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002364 </text>
2365
2366 <checkbox>
2367 <placement x="%col1_x_right%" y="%row6_y%"/>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002368 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002369 <text>{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}</text>
2370 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002371 </checkbox>
2372
2373 <button style="main_button_half_width">
2374 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002375 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002376 <actions>
2377 <action function="set">tw_back=restore</action>
2378 <action function="set">tw_action=cmd</action>
2379 <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 -05002380 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002381 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002382 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2383 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2384 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2385 <action function="set">tw_slider_text={@swipe_delete=Swipe to Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002386 <action function="page">confirm_action</action>
2387 </actions>
2388 </button>
2389
2390 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002391 <text>{@swipe_restore=Swipe to Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002392 <action function="page">restore_run</action>
2393 </slider>
2394
2395 <action>
2396 <touch key="home"/>
2397 <action function="page">main</action>
2398 </action>
2399
2400 <action>
2401 <touch key="back"/>
2402 <action function="page">restore</action>
2403 </action>
2404 </page>
2405
2406 <page name="renamebackup">
2407 <template name="page"/>
2408
2409 <text style="text_l">
2410 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002411 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002412 </text>
2413
2414 <text style="text_m">
2415 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002416 <text>{@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002417 </text>
2418
2419 <text style="text_m_accent">
2420 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002421 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002422 </text>
2423
2424 <input>
2425 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
2426 <text>%tw_backup_rename%</text>
2427 <data name="tw_backup_rename"/>
2428 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2429 <actions>
2430 <action function="set">tw_back=restore</action>
2431 <action function="set">tw_action=cmd</action>
2432 <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 -05002433 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
2434 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
2435 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
2436 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
2437 <action function="set">tw_slider_text={@swipe_to_rename=Swipe to Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002438 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
2439 <action function="set">tw_existpage=renamebackup</action>
2440 <action function="set">tw_notexistpage=confirm_action</action>
2441 <action function="page">filecheck</action>
2442 </actions>
2443 </input>
2444
2445 <fill color="%accent_color%">
2446 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2447 </fill>
2448
2449 <fill color="%text_fail_color%">
2450 <condition var1="tw_fileexists" var2="1"/>
2451 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
2452 </fill>
2453
2454 <text style="text_m_fail">
2455 <condition var1="tw_fileexists" var2="1"/>
2456 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002457 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002458 </text>
2459
2460 <button style="main_button_half_width_low">
2461 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002462 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002463 <action function="page">restore_select</action>
2464 </button>
2465
2466 <template name="keyboardtemplate"/>
2467
2468 <action>
2469 <touch key="home"/>
2470 <action function="page">main</action>
2471 </action>
2472
2473 <action>
2474 <touch key="back"/>
2475 <action function="page">restore_select</action>
2476 </action>
2477 </page>
2478
2479 <page name="restore_run">
2480 <template name="page"/>
2481
2482 <text style="text_l">
2483 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002484 <text>{@restore_hdr=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002485 </text>
2486
2487 <text style="text_m">
2488 <placement x="%col1_x_header%" y="%row4_header_y%"/>
2489 <text>%tw_operation% %tw_partition%</text>
2490 </text>
2491
2492 <template name="console"/>
2493
2494 <template name="progress_bar"/>
2495
2496 <text style="text_m_accent">
2497 <placement x="%progress_text_x%" y="%progress_text_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002498 <text>{@progress=Progress:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002499 </text>
2500
2501 <text style="text_m">
2502 <placement x="%progress_text_x%" y="%row18_y%"/>
2503 <text>%tw_size_progress%</text>
2504 </text>
2505
2506 <action>
2507 <condition var1="tw_operation_state" var2="1"/>
2508 <actions>
2509 <action function="set">tw_back=restore_select</action>
Matt Mower3c366972015-12-25 19:28:31 -06002510 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002511 <action function="set">tw_show_reboot=1</action>
2512 <action function="page">action_complete</action>
2513 </actions>
2514 </action>
2515
2516 <action>
2517 <action function="nandroid">restore</action>
2518 </action>
2519 </page>
2520
2521 <page name="mount">
2522 <template name="page"/>
2523
2524 <text style="text_l">
2525 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002526 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002527 </text>
2528
2529 <text style="text_m">
2530 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002531 <text>{@storage_hdr=Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002532 </text>
2533
2534 <partitionlist>
2535 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002536 <text>{@mount_sel_part=Select Partitions to Mount:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002537 <listtype name="mount"/>
2538 </partitionlist>
2539
2540 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002541 <conditions>
2542 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2543 <condition var1="tw_is_super" op="=" var2="0"/>
2544 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002545 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002546 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002547 <image resource="checkbox_false"/>
2548 <action function="mountsystemtoggle">1</action>
2549 </button>
2550
2551 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04002552 <conditions>
2553 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
2554 <condition var1="tw_is_super" op="=" var2="0"/>
2555 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01002556 <placement x="%col1_x_left%" y="%row14_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002557 <text>{@mount_sys_ro_chk=Mount system partition read-only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002558 <image resource="checkbox_true"/>
2559 <actions>
2560 <action function="set">tw_lifetime_writes=2</action>
2561 <action function="page">system_readonly_check</action>
2562 </actions>
2563 </button>
2564
2565 <button style="main_button_half_width">
2566 <condition var1="tw_has_usb_storage" var2="1"/>
2567 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002568 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002569 <action function="page">usb_mount</action>
2570 </button>
2571
2572 <button style="main_button_half_width">
2573 <conditions>
2574 <condition var1="tw_is_encrypted" var2="1"/>
2575 <condition var1="tw_is_decrypted" var2="0"/>
2576 </conditions>
2577 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002578 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04002579 <action function="set">tw_crypto_user_id=0</action>
2580 <action function="set">tw_crypto_password=</action>
2581 <action function="set">tw_password_fail=0</action>
2582 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01002583 <action function="page">decrypt</action>
2584 </button>
2585
2586 <button style="main_button_half_width">
2587 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002588 <text>{@select_storage_btn=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002589 <actions>
2590 <action function="set">tw_back=mount</action>
2591 <action function="overlay">select_storage</action>
2592 </actions>
2593 </button>
2594
2595 <button style="main_button_half_width">
2596 <conditions>
2597 <condition var1="tw_has_mtp" var2="1"/>
2598 <condition var1="tw_mtp_enabled" var2="0"/>
2599 </conditions>
2600 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002601 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002602 <action function="startmtp"/>
2603 </button>
2604
2605 <button style="main_button_half_width">
2606 <conditions>
2607 <condition var1="tw_has_mtp" var2="1"/>
2608 <condition var1="tw_mtp_enabled" var2="1"/>
2609 </conditions>
2610 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002611 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002612 <action function="stopmtp"/>
2613 </button>
2614
2615 <action>
2616 <touch key="home"/>
2617 <action function="page">main</action>
2618 </action>
2619
2620 <action>
2621 <touch key="back"/>
2622 <action function="page">main</action>
2623 </action>
2624 </page>
2625
2626 <page name="usb_mount">
2627 <template name="page"/>
2628
2629 <text style="text_l">
2630 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002631 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002632 </text>
2633
2634 <text style="text_m">
2635 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002636 <text>{@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002637 </text>
2638
2639 <text style="text_m_accent">
2640 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002641 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002642 </text>
2643
2644 <text style="text_m">
2645 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002646 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002647 </text>
2648
2649 <text style="text_m">
2650 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002651 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002652 </text>
2653
2654 <button style="main_button_half_width">
2655 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <action function="page">usb_umount</action>
2658 </button>
2659
2660 <action>
2661 <action function="mount">usb</action>
2662 <action function="set">tw_busy=1</action>
2663 </action>
2664 </page>
2665
2666 <page name="usb_umount">
2667 <action>
2668 <action function="unmount">usb</action>
2669 </action>
2670
2671 <action>
2672 <action function="page">mount</action>
2673 <action function="set">tw_busy=0</action>
2674 </action>
2675 </page>
2676
2677 <page name="system_readonly_check">
2678 <action>
2679 <action function="checkpartitionlifetimewrites">/system</action>
2680 </action>
2681
2682 <action>
2683 <condition var1="tw_lifetime_writes" var2="1"/>
2684 <actions>
2685 <action function="mountsystemtoggle">0</action>
2686 <action function="page">mount</action>
2687 </actions>
2688 </action>
2689
2690 <action>
2691 <condition var1="tw_lifetime_writes" var2="0"/>
2692 <actions>
2693 <action function="set">tw_back=mount</action>
2694 <action function="page">system_readonly</action>
2695 </actions>
2696 </action>
2697 </page>
2698
bigbiffdf8436b2020-08-30 16:22:34 -04002699 <page name="fastbootreboot">
2700 <template name="page"/>
2701
2702 <text style="text_l">
2703 <placement x="%col1_x_header%" y="%row3_header_y%"/>
2704 <text>{@reboot_hdr=Reboot}</text>
2705 </text>
2706
2707 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002708 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002709
2710 <listitem name="{@rb_system_btn=System}">
2711 <condition var1="tw_reboot_system" var2="1"/>
2712 <actions>
2713 <action function="set">tw_back=fastbootreboot</action>
2714 <action function="set">tw_action=reboot</action>
2715 <action function="set">tw_action_param=system</action>
2716 <action function="set">tw_reboot_param=system</action>
2717 <action function="set">tw_has_action2=0</action>
2718 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2719 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2720 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2721 <action function="page">confirm_action</action>
2722 </actions>
2723 </listitem>
2724
2725 <listitem name="{@rb_poweroff_btn=Power Off}">
2726 <condition var1="tw_reboot_poweroff" var2="1"/>
2727 <actions>
2728 <action function="set">tw_back=fastbootreboot</action>
2729 <action function="set">tw_action=reboot</action>
2730 <action function="set">tw_action_param=poweroff</action>
2731 <action function="set">tw_reboot_param=poweroff</action>
2732 <action function="set">tw_has_action2=0</action>
2733 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2734 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2735 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2736 <action function="page">confirm_action</action>
2737 </actions>
2738 </listitem>
2739
2740 <listitem name="{@rb_recovery_btn=Recovery}">
2741 <condition var1="tw_reboot_recovery" var2="1"/>
2742 <actions>
2743 <action function="set">tw_back=fastbootreboot</action>
2744 <action function="set">tw_action=reboot</action>
2745 <action function="set">tw_action_param=recovery</action>
2746 <action function="set">tw_reboot_param=recovery</action>
2747 <action function="set">tw_has_action2=0</action>
2748 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2749 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2750 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2751 <action function="page">confirm_action</action>
2752 </actions>
2753 </listitem>
2754
2755 <listitem name="{@rb_bootloader_btn=Bootloader}">
2756 <condition var1="tw_reboot_bootloader" var2="1"/>
2757 <actions>
2758 <action function="set">tw_back=fastbootreboot</action>
2759 <action function="set">tw_action=reboot</action>
2760 <action function="set">tw_action_param=bootloader</action>
2761 <action function="set">tw_reboot_param=bootloader</action>
2762 <action function="set">tw_has_action2=0</action>
2763 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2764 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2765 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2766 <action function="page">confirm_action</action>
2767 </actions>
2768 </listitem>
2769
2770 <listitem name="{@rb_download_btn=Download}">
2771 <condition var1="tw_download_mode" var2="1"/>
2772 <actions>
2773 <action function="set">tw_back=fastbootreboot</action>
2774 <action function="set">tw_action=reboot</action>
2775 <action function="set">tw_action_param=download</action>
2776 <action function="set">tw_reboot_param=download</action>
2777 <action function="set">tw_has_action2=0</action>
2778 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2779 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2780 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2781 <action function="page">confirm_action</action>
2782 </actions>
2783 </listitem>
2784
2785 <listitem name="{@fastboot_button=Fastboot}">
2786 <condition var1="tw_fastboot_mode" var2="1"/>
2787 <actions>
2788 <action function="set">tw_back=fastbootreboot</action>
2789 <action function="set">tw_action=reboot</action>
2790 <action function="set">tw_action_param=fastboot</action>
2791 <action function="set">tw_reboot_param=fastboot</action>
2792 <action function="set">tw_has_action2=0</action>
2793 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2794 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2795 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2796 <action function="page">confirm_action</action>
2797 </actions>
2798 </listitem>
2799
2800 <listitem name="{@rb_edl_btn=Edl}">
2801 <condition var1="tw_edl_mode" var2="1"/>
2802 <actions>
2803 <action function="set">tw_back=fastbootreboot</action>
2804 <action function="set">tw_action=reboot</action>
2805 <action function="set">tw_action_param=edl</action>
2806 <action function="set">tw_reboot_param=edl</action>
2807 <action function="set">tw_has_action2=0</action>
2808 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2809 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2810 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2811 <action function="page">confirm_action</action>
2812 </actions>
2813 </listitem>
2814 </listbox>
2815 <action>
2816 <touch key="home"/>
2817 <action function="page">fastboot</action>
2818 </action>
2819
2820 <action>
2821 <touch key="back"/>
2822 <action function="page">fastboot</action>
2823 </action>
2824 </page>
2825
z31s1g28f0a922015-11-07 18:50:22 +01002826 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06002827 <action>
2828 <action function="checkforapp"></action>
2829 <action function="page">reboot2</action>
2830 </action>
2831 </page>
2832
2833 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01002834 <template name="page"/>
2835
2836 <text style="text_l">
2837 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06002838 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002839 </text>
2840
bigbiffdf8436b2020-08-30 16:22:34 -04002841 <listbox style="advanced_listbox">
Captain Throwback6321bc32020-12-25 22:46:59 -05002842 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%fileselector_install_height%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002843
2844 <listitem name="{@rb_system_btn=System}">
2845 <condition var1="tw_reboot_system" var2="1"/>
2846 <actions>
2847 <action function="set">tw_back=reboot</action>
2848 <action function="page">reboot_system_routine</action>
2849 </actions>
2850 </listitem>
2851
2852 <listitem name="{@rb_poweroff_btn=Power Off}">
2853 <condition var1="tw_reboot_poweroff" var2="1"/>
2854 <actions>
2855 <action function="set">tw_back=reboot</action>
2856 <action function="set">tw_action=reboot</action>
2857 <action function="set">tw_action_param=poweroff</action>
2858 <action function="set">tw_reboot_param=poweroff</action>
2859 <action function="set">tw_has_action2=0</action>
2860 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2861 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
2862 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
2863 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
2864 <action function="set">tw_slider_text={@swipe_power_off=Swipe to Power Off}</action>
2865 <action function="page">rebootcheck</action>
2866 </actions>
2867 </listitem>
2868
2869 <listitem name="{@rb_recovery_btn=Recovery}">
2870 <condition var1="tw_reboot_recovery" var2="1"/>
2871 <actions>
2872 <action function="set">tw_back=reboot</action>
2873 <action function="set">tw_action=reboot</action>
2874 <action function="set">tw_action_param=recovery</action>
2875 <action function="set">tw_reboot_param=recovery</action>
2876 <action function="set">tw_has_action2=0</action>
2877 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2878 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2879 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2880 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2881 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2882 <action function="page">rebootcheck</action>
2883 </actions>
2884 </listitem>
2885
2886 <listitem name="{@rb_bootloader_btn=Bootloader}">
2887 <condition var1="tw_reboot_bootloader" var2="1"/>
2888 <actions>
2889 <action function="set">tw_back=reboot</action>
2890 <action function="set">tw_action=reboot</action>
2891 <action function="set">tw_action_param=bootloader</action>
2892 <action function="set">tw_reboot_param=bootloader</action>
2893 <action function="set">tw_has_action2=0</action>
2894 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2895 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2896 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2897 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2898 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2899 <action function="page">rebootcheck</action>
2900 </actions>
2901 </listitem>
2902
2903 <listitem name="{@rb_download_btn=Download}">
2904 <condition var1="tw_download_mode" var2="1"/>
2905 <actions>
2906 <action function="set">tw_back=reboot</action>
2907 <action function="set">tw_action=reboot</action>
2908 <action function="set">tw_action_param=download</action>
2909 <action function="set">tw_reboot_param=download</action>
2910 <action function="set">tw_has_action2=0</action>
2911 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2912 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2913 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2914 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2915 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2916 <action function="page">rebootcheck</action>
2917 </actions>
2918 </listitem>
2919
2920
2921 <listitem name="{@fastboot_button=Fastboot}">
2922 <condition var1="tw_fastboot_mode" var2="1"/>
2923 <actions>
2924 <action function="set">tw_back=reboot</action>
2925 <action function="set">tw_action=reboot</action>
2926 <action function="set">tw_action_param=fastboot</action>
2927 <action function="set">tw_reboot_param=fastboot</action>
2928 <action function="set">tw_has_action2=0</action>
2929 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2930 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2931 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2932 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2933 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2934 <action function="page">rebootcheck</action>
2935 </actions>
2936 </listitem>
2937
2938 <listitem name="{@rb_edl_btn=Edl}">
2939 <condition var1="tw_edl_mode" var2="1"/>
2940 <actions>
2941 <action function="set">tw_back=reboot</action>
2942 <action function="set">tw_action=reboot</action>
2943 <action function="set">tw_action_param=edl</action>
2944 <action function="set">tw_reboot_param=edl</action>
2945 <action function="set">tw_has_action2=0</action>
2946 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
2947 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
2948 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
2949 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
2950 <action function="set">tw_slider_text={@swipe_reboot=Swipe to Reboot}</action>
2951 <action function="page">rebootcheck</action>
2952 </actions>
2953 </button>
2954 </listbox>
2955
Ethan Yonker8581ab32020-12-17 14:51:50 -06002956 <button style="main_button">
2957 <condition var1="tw_app_install_status" var2="1"/>
2958 <placement x="%center_x%" y="%row12_y%"/>
2959 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
2960 <actions>
2961 <action function="set">tw_back=reboot</action>
2962 <action function="set">tw_appinstall_title={@reboot_hdr=Reboot}</action>
2963 <action function="page">installapp</action>
2964 </actions>
2965 </button>
2966
bigbiffdf8436b2020-08-30 16:22:34 -04002967 <text style="text_m">
2968 <condition var1="tw_has_boot_slots" var2="1"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06002969 <placement x="%col1_x_header%" y="%row14_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04002970 <text>{@current_boot_slot=Current Slot: %tw_active_slot%}</text>
2971 </text>
2972
z31s1g28f0a922015-11-07 18:50:22 +01002973 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04002974 <condition var1="tw_has_boot_slots" var2="1"/>
2975 <placement x="%indent%" y="%row16_y%"/>
2976 <text>{@boot_slot_a=Slot A}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002977 <actions>
2978 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002979 <action function="set">tw_action=setbootslot</action>
2980 <action function="set">tw_action_param=A</action>
2981 <action function="set">tw_has_action2=0</action>
2982 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2983 <action function="set">tw_action_text2=</action>
2984 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
2985 <action function="page">action_page</action>
z31s1g28f0a922015-11-07 18:50:22 +01002986 </actions>
2987 </button>
2988
2989 <button style="main_button">
bigbiffdf8436b2020-08-30 16:22:34 -04002990 <condition var1="tw_has_boot_slots" var2="1"/>
2991 <placement x="%center_x%" y="%row16_y%"/>
2992 <text>{@boot_slot_b=Slot B}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002993 <actions>
2994 <action function="set">tw_back=reboot</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002995 <action function="set">tw_action=setbootslot</action>
2996 <action function="set">tw_action_param=B</action>
z31s1g28f0a922015-11-07 18:50:22 +01002997 <action function="set">tw_has_action2=0</action>
bigbiffdf8436b2020-08-30 16:22:34 -04002998 <action function="set">tw_action_text1={@changing_boot_slot=Changing Boot Slot}</action>
2999 <action function="set">tw_action_text2=</action>
3000 <action function="set">tw_complete_text1={@changing_boot_slot_complete=Change Boot Slot Complete}</action>
3001 <action function="page">action_page</action>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003002 </actions>
3003 </button>
3004
z31s1g28f0a922015-11-07 18:50:22 +01003005 <action>
3006 <touch key="home"/>
3007 <action function="page">main</action>
3008 </action>
3009
3010 <action>
3011 <touch key="back"/>
3012 <action function="page">main</action>
3013 </action>
3014 </page>
3015
Ethan Yonker8581ab32020-12-17 14:51:50 -06003016 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003017 <template name="page"/>
3018
3019 <text style="text_l">
3020 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003021 <text>%tw_appinstall_title%</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003022 </text>
3023
3024 <text style="text_m">
3025 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003026 <text>{@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003027 </text>
3028
3029 <text style="text_m_accent">
3030 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3031 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3032 </text>
3033
3034 <text style="text_m_accent">
3035 <placement x="%center_x%" y="%row3_y%" placement="5"/>
3036 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3037 </text>
3038
3039 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003040 <condition var1="tw_mount_system_ro" var2="0"/>
3041 <placement x="%indent%" y="%row7_y%"/>
3042 <text>{@reboot_install_app_system=Install as a System App}</text>
3043 <data variable="tw_app_install_system"/>
3044 </checkbox>
3045
3046 <button style="main_button_half_width">
3047 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003048 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003049 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003050 </button>
3051
3052 <slider>
3053 <text>{@swipe_to_install_app=Swipe to Install TWRP App}</text>
3054 <actions>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003055 <action function="set">tw_action=installapp</action>
3056 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3057 <action function="set">tw_action_text2=</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003058 <action function="set">tw_complete_text1={@successful=Successful}</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003059 <action function="page">action_page</action>
3060 </actions>
3061 </slider>
3062
3063 <action>
3064 <touch key="home"/>
3065 <actions>
3066 <action function="set">tw_app_install_status=0</action>
3067 <action function="page">main</action>
3068 </actions>
3069 </action>
3070
3071 <action>
3072 <touch key="back"/>
3073 <actions>
3074 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003075 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003076 </actions>
3077 </action>
3078 </page>
3079
z31s1g28f0a922015-11-07 18:50:22 +01003080 <page name="system_readonly">
3081 <template name="page"/>
3082
3083 <text style="text_l">
3084 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003085 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003086 </text>
3087
3088 <text style="text_m_accent">
3089 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003090 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003091 </text>
3092
3093 <text style="text_m">
3094 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003095 <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 +01003096 </text>
3097
3098 <text style="text_m">
3099 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003100 <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 +01003101 </text>
3102
3103 <text style="text_m_fail">
3104 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003105 <text>{@sys_rol3=Installing zips or performing adb operations may still modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003106 </text>
3107
3108 <checkbox>
3109 <condition var1="tw_is_encrypted" var2="0"/>
3110 <placement x="%col1_x_left%" y="%row14_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003111 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003112 <data variable="tw_never_show_system_ro_page"/>
3113 </checkbox>
3114
3115 <button style="main_button_half_width">
3116 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003117 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003118 <actions>
3119 <action function="mountsystemtoggle">1</action>
3120 <action function="set">tw_page_done=1</action>
3121 <action function="page">%tw_back%</action>
3122 </actions>
3123 </button>
3124
z31s1g608d7ff2016-01-18 19:47:25 +01003125 <button style="main_button_half_width">
3126 <placement x="%col2_x_left%" y="%row15a_y%"/>
3127 <text>{@sel_lang_btn=Select Language}</text>
3128 <action function="overlay">select_language</action>
3129 </button>
3130
z31s1g28f0a922015-11-07 18:50:22 +01003131 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003132 <text>{@swipe_allow_mod=Swipe to Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003133 <actions>
3134 <action function="mountsystemtoggle">0</action>
3135 <action function="set">tw_page_done=1</action>
3136 <action function="page">%tw_back%</action>
3137 </actions>
3138 </slider>
3139 </page>
3140
3141 <page name="settings">
3142 <template name="page"/>
3143
3144 <text style="text_l">
3145 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003146 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003147 </text>
3148
3149 <text style="text_m">
3150 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003151 <text>{@settings_gen_hdr=General Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003152 </text>
3153
3154 <template name="tabs_settings"/>
3155
3156 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003157 <placement x="0" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003158 </fill>
3159
3160 <listbox style="scrolllist">
3161 <placement x="%col1_x_left%" y="%row3a_y%" w="%content_half_width%" h="%listbox_settings_height%"/>
3162 <icon selected="checkbox_true" unselected="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003163 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003164 <data variable="tw_signed_zip_verify"/>
3165 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003166 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3167 <data variable="tw_install_reboot"/>
3168 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003169 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003170 <data variable="tw_rm_rf"/>
3171 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003172 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3173 <data variable="tw_disable_free_space"/>
3174 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003175 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3176 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003177 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003178 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3179 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003180 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003181 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003182 <data variable="tw_military_time"/>
3183 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003184 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003185 <data variable="tw_simulate_actions"/>
3186 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003187 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003188 <condition var1="tw_simulate_actions" var2="1"/>
3189 <data variable="tw_simulate_fail"/>
3190 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003191 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3192 <condition var1="tw_no_sha2" var2="0"/>
3193 <data variable="tw_use_sha2"/>
3194 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003195 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3196 <data variable="tw_unmount_system"/>
3197 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003198 </listbox>
3199
3200 <checkbox>
3201 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003202 <text>{@rev_navbar_chk=Reversed navbar layout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003203 <data variable="tw_samsung_navbar"/>
3204 </checkbox>
3205
3206 <button style="radiobutton">
3207 <condition var1="tw_navbar_button_position" op="!=" var2="0"/>
3208 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003209 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003210 <image resource="radio_false"/>
3211 <action function="set">tw_navbar_button_position=0</action>
3212 </button>
3213
3214 <button style="radiobutton">
3215 <condition var1="tw_navbar_button_position" var2="0"/>
3216 <placement x="%col1_x_right%" y="%row5_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003217 <text>{@ctr_navbar_rdo=Center navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003218 <image resource="radio_true"/>
3219 <action function="set">tw_navbar_button_position=0</action>
3220 </button>
3221
3222 <button style="radiobutton">
3223 <condition var1="tw_navbar_button_position" op="!=" var2="1"/>
3224 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003225 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003226 <image resource="radio_false"/>
3227 <action function="set">tw_navbar_button_position=1</action>
3228 </button>
3229
3230 <button style="radiobutton">
3231 <condition var1="tw_navbar_button_position" var2="1"/>
3232 <placement x="%col1_x_right%" y="%row6a_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003233 <text>{@lft_navbar_rdo=Left align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003234 <image resource="radio_true"/>
3235 <action function="set">tw_navbar_button_position=1</action>
3236 </button>
3237
3238 <button style="radiobutton">
3239 <condition var1="tw_navbar_button_position" op="!=" var2="2"/>
3240 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003241 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003242 <image resource="radio_false"/>
3243 <action function="set">tw_navbar_button_position=2</action>
3244 </button>
3245
3246 <button style="radiobutton">
3247 <condition var1="tw_navbar_button_position" var2="2"/>
3248 <placement x="%col1_x_right%" y="%row8_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003249 <text>{@rht_navbar_rdo=Right align navbar buttons}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003250 <image resource="radio_true"/>
3251 <action function="set">tw_navbar_button_position=2</action>
3252 </button>
3253
3254 <button style="main_button_half_width">
3255 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003256 <text>{@restore_defaults_btn=Restore Defaults}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003257 <action function="restoredefaultsettings"/>
3258 </button>
3259
3260 <action>
3261 <touch key="home"/>
3262 <action function="page">main</action>
3263 </action>
3264
3265 <action>
3266 <touch key="back"/>
3267 <action function="page">main</action>
3268 </action>
3269 </page>
3270
3271 <page name="settings_timezone">
3272 <template name="page"/>
3273
3274 <text style="text_l">
3275 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003276 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003277 </text>
3278
3279 <text style="text_m">
3280 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003281 <text>{@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003282 </text>
3283
3284 <template name="tabs_settings"/>
3285
3286 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003287 <placement x="%tab5_col2_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003288 </fill>
3289
3290 <listbox>
3291 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003292 <text>{@sel_tz_list=Select Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003293 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003294 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3295 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3296 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3297 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3298 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3299 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3300 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3301 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3302 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3303 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3304 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3305 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3306 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3307 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3308 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3309 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3310 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3311 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3312 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3313 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3314 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3315 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3316 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3317 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003318 </listbox>
3319
3320 <text style="text_m_accent">
3321 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003322 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003323 </text>
3324
3325 <button style="button_quarter_width">
3326 <placement x="%col1_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003327 <text>{@tz_offset_none=None}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003328 <action function="set">tw_time_zone_guioffset=0</action>
3329 </button>
3330
3331 <button style="button_quarter_width">
3332 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003333 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003334 <action function="set">tw_time_zone_guioffset=15</action>
3335 </button>
3336
3337 <button style="button_quarter_width">
3338 <placement x="%btn4_col3_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003339 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003340 <action function="set">tw_time_zone_guioffset=30</action>
3341 </button>
3342
3343 <button style="button_quarter_width">
3344 <placement x="%btn4_col4_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003345 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003346 <action function="set">tw_time_zone_guioffset=45</action>
3347 </button>
3348
3349 <checkbox>
3350 <placement x="%col1_x_right%" y="%row7_y%"/>
3351 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003352 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003353 <data variable="tw_time_zone_guidst"/>
3354 <image checked="checkbox_true" unchecked="checkbox_false"/>
3355 </checkbox>
3356
3357 <text color="%text_color%">
3358 <font resource="font_m"/>
3359 <placement x="%col1_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003360 <text>{@curr_tz=Current Time Zone: %tw_time_zone%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003361 </text>
3362
3363 <button>
3364 <highlight color="%highlight_color%"/>
3365 <placement x="%col2_x_right%" y="%row15a_y%"/>
3366 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003367 <text>{@set_tz_btn=Set Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003368 <image resource="main_button_half_width"/>
3369 <action function="setguitimezone"/>
3370 </button>
3371
3372 <action>
3373 <touch key="home"/>
3374 <action function="page">main</action>
3375 </action>
3376
3377 <action>
3378 <touch key="back"/>
3379 <action function="page">main</action>
3380 </action>
3381 </page>
3382
3383 <page name="settings_screen">
3384 <template name="page"/>
3385
3386 <text style="text_l">
3387 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003388 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003389 </text>
3390
3391 <text style="text_m">
3392 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003393 <text>{@settings_screen_hdr=Screen Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003394 </text>
3395
3396 <template name="tabs_settings"/>
3397
3398 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003399 <placement x="%tab5_col3_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003400 </fill>
3401
3402 <button>
3403 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3404 <font resource="font_m" color="%text_color%"/>
3405 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3406 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003407 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003408 <image resource="checkbox_false"/>
3409 <action function="set">tw_screen_timeout_secs=60</action>
3410 </button>
3411
3412 <button>
3413 <placement x="%col1_x_left%" y="%row3a_y%" textplacement="6"/>
3414 <font resource="font_m" color="%text_color%"/>
3415 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3416 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003417 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003418 <image resource="checkbox_true"/>
3419 <action function="set">tw_screen_timeout_secs=0</action>
3420 </button>
3421
3422 <slidervalue>
3423 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
3424 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3425 <placement x="col1_x_left" y="%row5_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003426 <text>{@screen_to_slider=Screen timeout in seconds:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003427 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
3428 </slidervalue>
3429
3430 <slidervalue>
3431 <condition var1="tw_has_brightnesss_file" var2="1"/>
3432 <placement x="col1_x_left" y="%row10_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003433 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003434 <data variable="tw_brightness_pct" min="10" max="100"/>
3435 <actions>
3436 <action function="set">tw_brightness=%tw_brightness_max%</action>
3437 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
3438 <action function="compute">tw_brightness/100</action>
3439 <action function="setbrightness">%tw_brightness%</action>
3440 </actions>
3441 </slidervalue>
3442
3443 <action>
3444 <touch key="home"/>
3445 <action function="page">main</action>
3446 </action>
3447
3448 <action>
3449 <touch key="back"/>
3450 <action function="page">main</action>
3451 </action>
3452 </page>
3453
3454 <page name="settings_vibration">
3455 <template name="page"/>
3456
3457 <text style="text_l">
3458 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003459 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003460 </text>
3461
3462 <text style="text_m">
3463 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003464 <text>{@vibration_hdr=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003465 </text>
3466
3467 <template name="tabs_settings"/>
3468
3469 <fill color="%text_color%">
Ethan Yonker74db1572015-10-28 12:44:49 -05003470 <placement x="%tab5_col4_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
z31s1g28f0a922015-11-07 18:50:22 +01003471 </fill>
3472
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003473 <text style="text_m">
3474 <condition var1="tw_disable_haptics" var2="1"/>
3475 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
3476 <text>{@vibration_disabled=Vibration Disabled for Device}</text>
3477 </text>
3478
z31s1g28f0a922015-11-07 18:50:22 +01003479 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003480 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003481 <placement x="col1_x_left" y="%row4_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003482 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003483 <data variable="tw_button_vibrate" min="0" max="300"/>
3484 </slidervalue>
3485
3486 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003487 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003488 <placement x="col1_x_left" y="%row9_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003489 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003490 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
3491 </slidervalue>
3492
3493 <slidervalue>
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003494 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003495 <placement x="col1_x_left" y="%row14_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003496 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003497 <data variable="tw_action_vibrate" min="0" max="500"/>
3498 </slidervalue>
3499
3500 <action>
3501 <touch key="home"/>
3502 <action function="page">main</action>
3503 </action>
3504
3505 <action>
3506 <touch key="back"/>
3507 <action function="page">main</action>
3508 </action>
3509 </page>
3510
Ethan Yonker74db1572015-10-28 12:44:49 -05003511 <page name="settings_language">
3512 <template name="page"/>
3513
3514 <text style="text_l">
3515 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3516 <text>{@settings_hdr=Settings}</text>
3517 </text>
3518
3519 <text style="text_m">
3520 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3521 <text>{@language_hdr=Language - %tw_language_display%}</text>
3522 </text>
3523
3524 <template name="tabs_settings"/>
3525
3526 <fill color="%text_color%">
3527 <placement x="%tab5_col5_x%" y="%row_tab_y%" w="%tab5_width%" h="%tab_indicator_height%"/>
3528 </fill>
3529
3530 <listbox>
z31s1g56189522016-01-13 19:12:40 +01003531 <placement x="%col1_x_left%" y="%row3_y%" w="%content_half_width%" h="%listbox_timezone_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003532 <text>{@select_language=Select Language:}</text>
3533 <icon selected="radio_true" unselected="radio_false" />
3534 <data name="tw_language" />
3535 </listbox>
3536
z31s1g56189522016-01-13 19:12:40 +01003537 <button>
3538 <highlight color="%highlight_color%"/>
3539 <placement x="%col2_x_right%" y="%row15a_y%"/>
3540 <font resource="font_m" color="%text_button_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003541 <text>{@set_language_btn=Set Language}</text>
z31s1g56189522016-01-13 19:12:40 +01003542 <image resource="main_button_half_width"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003543 <action function="setlanguage"></action>
3544 </button>
3545
3546 <action>
3547 <touch key="home" />
3548 <action function="page">main</action>
3549 </action>
3550
3551 <action>
3552 <touch key="back" />
3553 <action function="page">settings</action>
3554 </action>
3555 </page>
3556
Matt Mower32676622017-01-18 18:56:13 -06003557 <page name="copylog">
3558 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003559
Matt Mower32676622017-01-18 18:56:13 -06003560 <text style="text_l">
3561 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3562 <text>{@copying_log=Copy Logs to SD Card}</text>
3563 </text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003564
Matt Mower32676622017-01-18 18:56:13 -06003565 <checkbox>
3566 <placement x="%indent%" y="%row4_y%"/>
3567 <text>{@include_kernel_log=Include Kernel Log}</text>
3568 <data variable="tw_include_kernel_log" value="1"/>
3569 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003570
Matt Mower32676622017-01-18 18:56:13 -06003571 <slider>
3572 <text>{@copying_log=Copy Logs to SD Card}</text>
3573 <actions>
3574 <action function="set">tw_back=advanced</action>
3575 <action function="set">tw_action=copylog</action>
3576 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
3577 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
3578 <action function="page">action_page</action>
3579 </actions>
3580 </slider>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003581
Matt Mower32676622017-01-18 18:56:13 -06003582 <action>
3583 <touch key="home"/>
3584 <action function="page">main</action>
3585 </action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003586
Matt Mower32676622017-01-18 18:56:13 -06003587 <action>
3588 <touch key="back"/>
3589 <actions>
3590 <action function="page">advanced</action>
3591 </actions>
3592 </action>
3593 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003594
z31s1g28f0a922015-11-07 18:50:22 +01003595 <page name="advanced">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003596 <action>
3597 <action function="checkforapp"></action>
3598 <action function="page">advanced1</action>
3599 </action>
3600 </page>
3601
3602 <page name="advanced1">
z31s1g28f0a922015-11-07 18:50:22 +01003603 <template name="page"/>
3604
3605 <text style="text_l">
3606 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003607 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003608 </text>
3609
3610 <button style="main_button">
3611 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003612 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -04003613 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +01003614 </button>
3615
3616 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003617 <placement x="%col1_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003618 <text>{@file_manager_btn=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003619 <action function="page">filemanagerlist</action>
3620 </button>
3621
3622 <button style="main_button">
3623 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003624 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01003625 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01003626 </button>
3627
3628 <button style="main_button">
z31s1g28f0a922015-11-07 18:50:22 +01003629 <placement x="%col1_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003630 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003631 <action function="page">sideload</action>
3632 </button>
3633
Ethan Yonker64e0a652018-07-25 09:52:17 -05003634 <listbox style="advanced_listbox">
3635 <placement x="%center_x%" y="%row2_y%" w="%content_half_width%" h="%fileselector_install_height%"/>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003636 <listitem name="{@decrypt_users=Decrypt Users}">
3637 <conditions>
3638 <condition var1="tw_is_fbe" var2="1"/>
3639 <condition var1="tw_all_users_decrypted" var2="0"/>
3640 </conditions>
3641 <actions>
3642 <action function="set">tw_crypto_user_id=</action>
3643 <action function="page">decrypt_users</action>
3644 </actions>
3645 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003646 <listitem name="{@reload_theme_btn=Reload Theme}">
3647 <action function="reload"/>
3648 </listitem>
3649 <listitem name="{@part_sd_btn=Partition SD Card}">
3650 <condition var1="tw_allow_partition_sdcard" var2="1"/>
3651 <actions>
3652 <action function="set">partitionlisterror=0</action>
3653 <action function="page">partsdcardsel</action>
3654 </actions>
3655 </listitem>
3656 <listitem name="{@fix_context_btn=Fix Contexts}">
3657 <condition var1="tw_has_data_media" var2="1"/>
3658 <action function="page">fixcontexts</action>
3659 </listitem>
3660 <listitem name="{@dumlock_btn=HTC Dumlock}">
3661 <condition var1="tw_show_dumlock" var2="1"/>
3662 <action function="page">htcdumlock</action>
3663 </listitem>
3664 <listitem name="{@inject_twrp_btn=Inject TWRP}">
3665 <condition var1="tw_has_injecttwrp" var2="1"/>
3666 <actions>
3667 <action function="set">tw_back=advanced</action>
3668 <action function="set">tw_action=reinjecttwrp</action>
3669 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
3670 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
3671 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
3672 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3673 <action function="page">confirm_action</action>
3674 </actions>
3675 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06003676 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
3677 <conditions>
3678 <condition var1="tw_has_boot_slots" var2="1"/>
3679 <condition var1="tw_has_repack_tools" var2="1"/>
3680 </conditions>
3681 <actions>
3682 <action function="set">tw_repack_kernel=0</action>
3683 <action function="page">repackselect</action>
3684 </actions>
3685 </listitem>
3686 <listitem name="{@install_kernel=Install Kernel}">
3687 <conditions>
3688 <condition var1="tw_has_boot_slots" var2="1"/>
3689 <condition var1="tw_has_repack_tools" var2="1"/>
3690 </conditions>
3691 <actions>
3692 <action function="set">tw_repack_kernel=1</action>
3693 <action function="page">repackselect</action>
3694 </actions>
3695 </listitem>
3696 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
3697 <conditions>
3698 <condition var1="tw_has_boot_slots" var2="1"/>
3699 <condition var1="tw_has_repack_tools" var2="1"/>
3700 </conditions>
3701 <actions>
3702 <action function="set">tw_back=advanced</action>
3703 <action function="set">tw_action=fixabrecoverybootloop</action>
3704 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
3705 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
3706 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
3707 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3708 <action function="page">confirm_action</action>
3709 </actions>
3710 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003711 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
3712 <condition var1="tw_app_install_status" var2="1"/>
3713 <actions>
3714 <action function="set">tw_back=advanced</action>
3715 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
3716 <action function="page">installapp</action>
3717 </actions>
3718 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05003719 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
3720 <condition var1="tw_app_installed_in_system" var2="1"/>
3721 <actions>
3722 <action function="set">tw_back=advanced</action>
3723 <action function="set">tw_action=uninstalltwrpsystemapp</action>
3724 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
3725 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
3726 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
3727 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
3728 <action function="page">confirm_action</action>
3729 </actions>
3730 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05003731 </listbox>
z31s1g28f0a922015-11-07 18:50:22 +01003732
3733 <action>
3734 <touch key="home"/>
3735 <action function="page">main</action>
3736 </action>
3737
3738 <action>
3739 <touch key="back"/>
3740 <action function="page">main</action>
3741 </action>
3742 </page>
3743
Ethan Yonker483e9f42016-01-11 22:21:18 -06003744 <page name="partsdcardsel">
3745 <template name="page"/>
3746
3747 <text style="text_l">
3748 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3749 <text>{@advanced_hdr=Advanced}</text>
3750 </text>
3751
3752 <text style="text_m">
3753 <placement x="%col1_x_header%" y="%row4_header_y%"/>
3754 <text>{@part_sd_hdr=Partition SD Card}</text>
3755 </text>
3756
z31s1g782e1c92016-01-30 16:50:09 +01003757 <partitionlist>
3758 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003759 <text>{@sel_storage_list=Select Storage}</text>
3760 <data name="tw_storage_path"/>
3761 <listtype name="storage"/>
3762 </partitionlist>
3763
z31s1g782e1c92016-01-30 16:50:09 +01003764 <text style="text_m_fail">
3765 <condition var1="partitionlisterror" var2="1"/>
3766 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3767 <text>{@invalid_partsd_sel=You must select a removable device}</text>
3768 </text>
3769
3770 <button style="main_button_half_width">
3771 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003772 <text>{@ok_btn=OK}</text>
3773 <actions>
3774 <action function="getpartitiondetails">tw_storage_path</action>
3775 <action function="page">partsdcardcheck</action>
3776 </actions>
3777 </button>
3778
Ethan Yonker483e9f42016-01-11 22:21:18 -06003779 <action>
3780 <touch key="home"/>
3781 <action function="page">main</action>
3782 </action>
3783
3784 <action>
3785 <touch key="back"/>
3786 <action function="page">advanced</action>
3787 </action>
3788 </page>
3789
3790 <page name="partsdcardcheck">
3791 <action>
3792 <condition var1="tw_partition_removable" op="=" var2="1"/>
3793 <actions>
3794 <action function="set">partitionlisterror=0</action>
3795 <action function="page">partsdcard</action>
3796 </actions>
3797 </action>
3798
3799 <action>
3800 <condition var1="tw_partition_removable" op="!=" var2="1"/>
3801 <actions>
3802 <action function="set">partitionlisterror=1</action>
3803 <action function="page">partsdcardsel</action>
3804 </actions>
3805 </action>
3806 </page>
3807
z31s1g28f0a922015-11-07 18:50:22 +01003808 <page name="partsdcard">
3809 <template name="page"/>
3810
3811 <text style="text_l">
3812 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003813 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003814 </text>
3815
3816 <text style="text_m">
3817 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003818 <text>{@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003819 </text>
3820
3821 <text style="text_m_fail">
3822 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003823 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003824 </text>
3825
3826 <text style="text_m_fail">
3827 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003828 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003829 </text>
3830
3831 <text style="text_m_accent">
3832 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003833 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003834 </text>
3835
3836 <text style="text_m">
3837 <placement x="%center_x%" y="%row6_y%" placement="5"/>
3838 <text>%tw_sdext_size%</text>
3839 </text>
3840
3841 <button style="button_quarter_width">
3842 <placement x="%btn4_col3_x_left%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003843 <text>{@part_sd_m=-}</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 <button style="button_quarter_width">
3848 <placement x="%btn4_col2_x_right%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003849 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003850 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01003851 </button>
3852
3853 <text style="text_m_accent">
3854 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003855 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003856 </text>
3857
3858 <text style="text_m">
3859 <placement x="%center_x%" y="%row10_y%" placement="5"/>
3860 <text>%tw_swap_size%</text>
3861 </text>
3862
3863 <button style="button_quarter_width">
3864 <placement x="%btn4_col3_x_left%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003865 <text>{@part_sd_m=-}</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 <button style="button_quarter_width">
3870 <placement x="%btn4_col2_x_right%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003871 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003872 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01003873 </button>
3874
3875 <text style="text_m_accent">
3876 <placement x="%center_x%" y="%row13_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003877 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003878 </text>
3879
3880 <text style="text_m">
3881 <placement x="%center_x%" y="%row14_y%" placement="5"/>
3882 <text>%tw_sdpart_file_system%</text>
3883 </text>
3884
3885 <button style="button_quarter_width">
3886 <placement x="%btn4_col3_x_left%" y="%row13_y%"/>
3887 <text>EXT3</text>
3888 <action function="set">tw_sdpart_file_system=ext3</action>
3889 </button>
3890
3891 <button style="button_quarter_width">
3892 <placement x="%btn4_col2_x_right%" y="%row13_y%"/>
3893 <text>EXT4</text>
3894 <action function="set">tw_sdpart_file_system=ext4</action>
3895 </button>
3896
3897 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05003898 <text>{@swipe_part_sd=Swipe to Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003899 <action function="page">partsdcardaction</action>
3900 <actions>
3901 <action function="set">tw_back=partsdcard</action>
3902 <action function="set">tw_action=partitionsd</action>
3903 <action function="set">tw_has_action2=1</action>
3904 <action function="set">tw_action2=set</action>
3905 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003906 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
3907 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
3908 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003909 <action function="page">action_page</action>
3910 </actions>
3911 </slider>
3912
3913 <action>
3914 <touch key="home"/>
3915 <action function="page">main</action>
3916 </action>
3917
3918 <action>
3919 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06003920 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01003921 </action>
3922 </page>
3923
3924 <page name="htcdumlock">
3925 <template name="page"/>
3926
3927 <text style="text_l">
3928 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003929 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003930 </text>
3931
3932 <text style="text_m">
3933 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003934 <text>{@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003935 </text>
3936
3937 <button style="main_button_m">
3938 <placement x="%col2_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003939 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003940 <actions>
3941 <action function="set">tw_back=htcdumlock</action>
3942 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003943 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
3944 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
3945 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
3946 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003947 <action function="page">confirm_action</action>
3948 </actions>
3949 </button>
3950
3951 <button style="main_button_m">
3952 <placement x="%col2_x_left%" y="%row6a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003953 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003954 <actions>
3955 <action function="set">tw_back=htcdumlock</action>
3956 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003957 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
3958 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
3959 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
3960 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003961 <action function="page">confirm_action</action>
3962 </actions>
3963 </button>
3964
3965 <button style="main_button_m">
3966 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003967 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003968 <actions>
3969 <action function="set">tw_back=htcdumlock</action>
3970 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003971 <action function="set">tw_text1={@dumlock_install_confirm=Install HTC dumlock files to ROM?}</action>
3972 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
3973 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
3974 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003975 <action function="page">confirm_action</action>
3976 </actions>
3977 </button>
3978
3979 <action>
3980 <touch key="home"/>
3981 <action function="page">main</action>
3982 </action>
3983
3984 <action>
3985 <touch key="back"/>
3986 <action function="page">advanced</action>
3987 </action>
3988 </page>
3989
Ethan Yonker53796e72019-01-11 22:49:52 -06003990 <page name="repackselect">
3991 <template name="page"/>
3992
3993 <text style="text_l">
3994 <placement x="%col1_x_header%" y="%row3_header_y%"/>
3995 <text>{@repack_image_hdr=Select Image}</text>
3996 </text>
3997
3998 <text style="text_m">
3999 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4000 <text>{@select_file_from_storage=Select File from %tw_storage_display_name% (%tw_storage_free_size% MB)}</text>
4001 </text>
4002
4003 <template name="sort_options"/>
4004
4005 <fileselector>
4006 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4007 <text>%tw_zip_location%</text>
4008 <filter extn=".img" folders="1" files="1"/>
4009 <path name="tw_zip_location" default="/sdcard"/>
4010 <data name="tw_filename"/>
4011 <selection name="tw_file"/>
4012 </fileselector>
4013
4014 <button style="main_button_half_width_low">
4015 <placement x="%col_button_right%" y="%row16a_y%"/>
4016 <text>{@select_storage_btn=Select Storage}</text>
4017 <actions>
4018 <action function="set">tw_back=install</action>
4019 <action function="overlay">select_storage</action>
4020 </actions>
4021 </button>
4022
4023 <action>
4024 <conditions>
4025 <condition var1="tw_filename" op="modified"/>
4026 </conditions>
4027 <action function="page">repackconfirm</action>
4028 </action>
4029
4030 <action>
4031 <touch key="back"/>
4032 <action function="page">advanced</action>
4033 </action>
4034
4035 <action>
4036 <touch key="home"/>
4037 <action function="page">main</action>
4038 </action>
4039 </page>
4040
4041 <page name="repackconfirm">
4042 <template name="page"/>
4043
4044 <text style="text_l">
4045 <condition var1="tw_repack_kernel" var2="1"/>
4046 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4047 <text>{@repack_kernel_confirm_hdr=Install Kernel}</text>
4048 </text>
4049
4050 <text style="text_l">
4051 <condition var1="tw_repack_kernel" var2="0"/>
4052 <placement x="%col1_x_header%" y="%row3_header_y%"/>
4053 <text>{@repack_ramdisk_confirm_hdr=Install Recovery}</text>
4054 </text>
4055
4056 <text style="text_m">
4057 <condition var1="tw_repack_kernel" var2="1"/>
4058 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4059 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4060 </text>
4061
4062 <text style="text_m">
4063 <condition var1="tw_repack_kernel" var2="0"/>
4064 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4065 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4066 </text>
4067
4068 <text style="text_m_accent">
4069 <placement x="%indent%" y="%row2_y%"/>
4070 <text>{@folder=Folder:}</text>
4071 </text>
4072
4073 <text style="text_m">
4074 <placement x="%indent%" y="%row3_y%"/>
4075 <text>%tw_zip_location%</text>
4076 </text>
4077
4078 <text style="text_m_accent">
4079 <placement x="%indent%" y="%row4_y%"/>
4080 <text>{@file=File:}</text>
4081 </text>
4082
4083 <text style="text_m">
4084 <placement x="%indent%" y="%row5_y%"/>
4085 <text>%tw_file%</text>
4086 </text>
4087
4088 <checkbox>
4089 <placement x="%indent%" y="%row7_y%"/>
4090 <text>{@repack_backup_first=Back up existing image first}</text>
4091 <data variable="tw_repack_backup_first"/>
4092 </checkbox>
4093
4094 <button style="main_button_half_width">
4095 <placement x="%col1_x_left%" y="%row15a_y%"/>
4096 <text>{@install_cancel=Do not Install}</text>
4097 <action function="page">repackselect</action>
4098 </button>
4099
4100 <slider style="slider_centered">
4101 <text>{@swipe_to_install=Swipe to Install}</text>
4102 <actions>
4103 <action function="set">tw_back=advanced</action>
4104 <action function="set">tw_action=repackimage</action>
4105 <action function="set">tw_action_param=/boot</action>
4106 <action function="set">tw_action_text1={@installing=Installing...}</action>
4107 <action function="set">tw_action_text2=</action>
4108 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4109 <action function="page">action_page</action>
4110 </actions>
4111 </slider>
4112
4113 <action>
4114 <touch key="back"/>
4115 <action function="page">repackselect</action>
4116 </action>
4117
4118 <action>
4119 <touch key="home"/>
4120 <action function="page">main</action>
4121 </action>
4122 </page>
4123
z31s1g28f0a922015-11-07 18:50:22 +01004124 <page name="lock">
4125 <background color="%semi_transparent%"/>
4126
4127 <image>
4128 <image resource="unlock_icon"/>
4129 <placement x="%center_x%" y="%row8_y%" placement="4"/>
4130 </image>
4131
4132 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004133 <text>{@swipe_to_unlock=Swipe to Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004134 <action function="overlay"/>
4135 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004136
4137 <action>
4138 <touch key="power"/>
4139 <action function="togglebacklight"/>
4140 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004141 </page>
4142
4143 <page name="filemanagerlist">
4144 <template name="page"/>
4145
4146 <text style="text_l">
4147 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004148 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004149 </text>
4150
4151 <text style="text_m">
4152 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004153 <text>{@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004154 </text>
4155
4156 <template name="sort_options"/>
4157
4158 <fileselector>
4159 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4160 <text>%tw_file_location1%</text>
4161 <filter folders="1" files="1"/>
4162 <path name="tw_file_location1" default="/"/>
4163 <data name="tw_filename1"/>
4164 <selection name="tw_selection1"/>
4165 </fileselector>
4166
4167 <button style="main_button_half_width_low">
4168 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004169 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004170 <actions>
4171 <action function="set">tw_filename1=tw_file_location1</action>
4172 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004173 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004174 <action function="page">filemanageroptions</action>
4175 </actions>
4176 </button>
4177
4178 <action>
4179 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004180 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004181 <action function="set">tw_fm_isfolder=0</action>
4182 </actions>
4183 </action>
4184
4185 <action>
4186 <touch key="home"/>
4187 <action function="page">main</action>
4188 </action>
4189
4190 <action>
4191 <touch key="back"/>
4192 <action function="page">advanced</action>
4193 </action>
4194
4195 <action>
4196 <condition var1="tw_filename1" op="modified"/>
4197 <action function="page">filemanageroptions</action>
4198 </action>
4199 </page>
4200
4201 <page name="filemanageroptions">
4202 <template name="page"/>
4203
4204 <text style="text_l">
4205 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004206 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004207 </text>
4208
4209 <text style="text_m">
4210 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004211 <text>{@fm_choose_act=Choose Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004212 </text>
4213
4214 <text style="text_m_accent">
4215 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004216 <text>{@fm_selected=%tw_fm_type% selected:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004217 </text>
4218
4219 <text style="text_m">
4220 <placement x="%col1_x_left%" y="%row3_y%"/>
4221 <text>%tw_filename1%</text>
4222 </text>
4223
4224 <button style="main_button_half_width">
4225 <condition var1="tw_fm_isfolder" var2="0"/>
4226 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004227 <text>{@fm_copy_file_btn=Copy File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004228 <actions>
4229 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004230 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004231 <action function="page">choosedestinationfolder</action>
4232 </actions>
4233 </button>
4234
4235 <button style="main_button_half_width">
4236 <condition var1="tw_fm_isfolder" var2="1"/>
4237 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004238 <text>{@fm_copy_folder_btn=Copy Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004239 <actions>
4240 <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 -05004241 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004242 <action function="page">choosedestinationfolder</action>
4243 </actions>
4244 </button>
4245
4246 <button style="main_button_half_width">
4247 <placement x="%col2_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004248 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004249 <actions>
4250 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004251 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004252 <action function="page">choosedestinationfolder</action>
4253 </actions>
4254 </button>
4255
4256 <button style="main_button_half_width">
4257 <placement x="%col2_x_left%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004258 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004259 <actions>
4260 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004261 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004262 <action function="set">tw_fm_text2=</action>
4263 <action function="set">tw_fm_text3=</action>
4264 <action function="set">tw_include_text3=0</action>
4265 <action function="set">tw_back=filemanageroptions</action>
4266 <action function="page">filemanagerconfirm</action>
4267 </actions>
4268 </button>
4269
4270 <button style="main_button_half_width">
4271 <placement x="%center_x%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004272 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004273 <actions>
4274 <action function="set">tw_filemanager_rename=0000</action>
4275 <action function="set">tw_fm_text2=</action>
4276 <action function="set">tw_fm_text3=</action>
4277 <action function="set">tw_include_text3=0</action>
4278 <action function="set">tw_back=filemanageroptions</action>
4279 <action function="page">filemanagerchmod</action>
4280 </actions>
4281 </button>
4282
4283 <button style="main_button_half_width">
4284 <placement x="%col2_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004285 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004286 <actions>
4287 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004288 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004289 <action function="set">tw_fm_text2=</action>
4290 <action function="set">tw_fm_text3=</action>
4291 <action function="set">tw_include_text3=0</action>
4292 <action function="set">tw_back=filemanageroptions</action>
4293 <action function="page">filemanagerconfirm</action>
4294 </actions>
4295 </button>
4296
4297 <button style="main_button_half_width">
4298 <condition var1="tw_fm_isfolder" var2="0"/>
4299 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004300 <text>{@fm_rename_file_btn=Rename File}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004301 <actions>
4302 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004303 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004304 <action function="set">tw_filemanager_command=mv</action>
4305 <action function="page">filemanagerrenamefile</action>
4306 </actions>
4307 </button>
4308
4309 <button style="main_button_half_width">
4310 <condition var1="tw_fm_isfolder" var2="1"/>
4311 <placement x="%center_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004312 <text>{@fm_rename_folder_btn=Rename Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004313 <actions>
4314 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004315 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004316 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
4317 <action function="page">filemanagerrenamefolder</action>
4318 </actions>
4319 </button>
4320
4321 <action>
4322 <touch key="home"/>
4323 <action function="page">main</action>
4324 </action>
4325
4326 <action>
4327 <touch key="back"/>
4328 <action function="page">filemanagerlist</action>
4329 </action>
4330 </page>
4331
4332 <page name="choosedestinationfolder">
4333 <template name="page"/>
4334
4335 <text style="text_l">
4336 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004337 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004338 </text>
4339
4340 <text style="text_m">
4341 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004342 <text>{@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004343 </text>
4344
4345 <template name="sort_options"/>
4346
4347 <fileselector>
4348 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_quarter_width%" h="%fileselector_filemanager_height%"/>
4349 <text>%tw_file_location2%</text>
4350 <filter folders="1" files="0"/>
4351 <path name="tw_file_location2" default="/"/>
4352 <data name="tw_filename2"/>
4353 <selection name="tw_selection2"/>
4354 </fileselector>
4355
4356 <button style="main_button_half_width_low">
4357 <placement x="%col_button_right%" y="%row16a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004358 <text>{@fm_sel_curr_folder=Select Current Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004359 <actions>
4360 <action function="set">tw_fm_text2=to</action>
4361 <action function="set">tw_fm_text3=%tw_file_location2%</action>
4362 <action function="set">tw_include_text3=1</action>
4363 <action function="set">tw_back=filemanageroptions</action>
4364 <action function="page">filemanagerconfirm</action>
4365 </actions>
4366 </button>
4367
4368 <action>
4369 <touch key="home"/>
4370 <action function="page">main</action>
4371 </action>
4372
4373 <action>
4374 <touch key="back"/>
4375 <action function="page">filemanageroptions</action>
4376 </action>
4377 </page>
4378
4379 <page name="filemanagerrenamefile">
4380 <template name="page"/>
4381
4382 <text style="text_l">
4383 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004384 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004385 </text>
4386
4387 <text style="text_m">
4388 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004389 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004390 </text>
4391
4392 <text style="text_m_accent">
4393 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004394 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004395 </text>
4396
4397 <input>
4398 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4399 <text>%tw_filemanager_rename%</text>
4400 <data name="tw_filemanager_rename"/>
4401 <restrict minlen="1" maxlen="128"/>
4402 <actions>
4403 <action function="set">tw_fm_text2=to</action>
4404 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
4405 <action function="set">tw_include_text3=1</action>
4406 <action function="set">tw_back=filemanageroptions</action>
4407 <action function="page">filemanagerconfirm</action>
4408 </actions>
4409 </input>
4410
4411 <fill color="%accent_color%">
4412 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4413 </fill>
4414
4415 <button style="main_button_half_width_low">
4416 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004417 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004418 <action function="page">filemanageroptions</action>
4419 </button>
4420
4421 <template name="keyboardtemplate"/>
4422
4423 <action>
4424 <touch key="home"/>
4425 <action function="page">main</action>
4426 </action>
4427
4428 <action>
4429 <touch key="back"/>
4430 <action function="page">filemanageroptions</action>
4431 </action>
4432 </page>
4433
4434 <page name="filemanagerrenamefolder">
4435 <template name="page"/>
4436
4437 <text style="text_l">
4438 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004439 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004440 </text>
4441
4442 <text style="text_m">
4443 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004444 <text>{@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004445 </text>
4446
4447 <text style="text_m_accent">
4448 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004449 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004450 </text>
4451
4452 <input>
4453 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4454 <text>%tw_filemanager_rename%</text>
4455 <data name="tw_filemanager_rename"/>
4456 <restrict minlen="1" maxlen="128"/>
4457 <actions>
4458 <action function="set">tw_fm_text2=to</action>
4459 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
4460 <action function="set">tw_include_text3=1</action>
4461 <action function="set">tw_back=filemanageroptions</action>
4462 <action function="page">filemanagerconfirm</action>
4463 </actions>
4464 </input>
4465
4466 <fill color="%accent_color%">
4467 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4468 </fill>
4469
4470 <button style="main_button_half_width_low">
4471 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004472 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004473 <action function="page">filemanageroptions</action>
4474 </button>
4475
4476 <template name="keyboardtemplate"/>
4477
4478 <action>
4479 <touch key="home"/>
4480 <action function="page">main</action>
4481 </action>
4482
4483 <action>
4484 <touch key="back"/>
4485 <action function="page">filemanageroptions</action>
4486 </action>
4487 </page>
4488
4489 <page name="filemanagerchmod">
4490 <template name="page"/>
4491
4492 <text style="text_l">
4493 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004494 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004495 </text>
4496
4497 <text style="text_m">
4498 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004499 <text>{@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004500 </text>
4501
4502 <text style="text_m_accent">
4503 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004504 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004505 </text>
4506
4507 <input>
4508 <placement x="%col1_x_left%" y="%row2_input_y%" w="%content_width%" h="%input_height%"/>
4509 <text>%tw_filemanager_rename%</text>
4510 <data name="tw_filemanager_rename"/>
4511 <restrict minlen="3" maxlen="4" allow="0123456789"/>
4512 <actions>
4513 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
4514 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
4515 <action function="set">tw_back=filemanageroptions</action>
4516 <action function="page">filemanagerconfirm</action>
4517 </actions>
4518 </input>
4519
4520 <fill color="%accent_color%">
4521 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
4522 </fill>
4523
4524 <button style="main_button_half_width_low">
4525 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004526 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004527 <action function="page">filemanageroptions</action>
4528 </button>
4529
4530 <template name="keyboardtemplate"/>
4531
4532 <action>
4533 <touch key="home"/>
4534 <action function="page">main</action>
4535 </action>
4536
4537 <action>
4538 <touch key="back"/>
4539 <action function="page">filemanageroptions</action>
4540 </action>
4541 </page>
4542
4543 <page name="filemanagerconfirm">
4544 <template name="page"/>
4545
4546 <text style="text_l">
4547 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004548 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004549 </text>
4550
4551 <text style="text_m">
4552 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004553 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004554 </text>
4555
4556 <text style="text_m_accent">
4557 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4558 <text>%tw_fm_text1%</text>
4559 </text>
4560
4561 <text style="text_m">
4562 <placement x="%center_x%" y="%row3_y%" placement="5"/>
4563 <text>%tw_filename1%</text>
4564 </text>
4565
4566 <text style="text_m_accent">
4567 <placement x="%center_x%" y="%row5_y%" placement="5"/>
4568 <text>%tw_fm_text2%</text>
4569 </text>
4570
4571 <text style="text_m">
4572 <placement x="%center_x%" y="%row6_y%" placement="5"/>
4573 <text>%tw_fm_text3%</text>
4574 </text>
4575
4576 <text style="text_m">
4577 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004578 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004579 </text>
4580
4581 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05004582 <text>{@swipe_to_confirm=Swipe to Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004583 <action function="page">filemanageraction</action>
4584 </slider>
4585
4586 <action>
4587 <touch key="back"/>
4588 <action function="page">%tw_back%</action>
4589 </action>
4590
4591 <action>
4592 <touch key="home"/>
4593 <action function="page">main</action>
4594 </action>
4595 </page>
4596
4597 <page name="filemanageraction">
4598 <template name="page"/>
4599
4600 <text style="text_l">
4601 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004602 <text>{@fm_hdr=File Manager}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004603 </text>
4604
4605 <text style="text_m">
4606 <placement x="%col1_x_header%" y="%row4_header_y%"/>
4607 <text>%tw_fm_text1%</text>
4608 </text>
4609
4610 <template name="console"/>
4611
4612 <template name="progress_bar"/>
4613
4614 <action>
4615 <conditions>
4616 <condition var1="tw_operation_state" var2="1"/>
4617 <condition var1="tw_operation_status" var2="0"/>
4618 </conditions>
4619 <actions>
4620 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004621 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004622 <action function="page">action_complete</action>
4623 </actions>
4624 </action>
4625
4626 <action>
4627 <conditions>
4628 <condition var1="tw_operation_state" var2="1"/>
4629 <condition var1="tw_operation_status" op="!=" var2="0"/>
4630 </conditions>
4631 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004632 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004633 <action function="page">action_complete</action>
4634 </actions>
4635 </action>
4636
4637 <action>
4638 <condition var1="tw_include_text3" var2="0"/>
4639 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
4640 </action>
4641
4642 <action>
4643 <condition var1="tw_include_text3" var2="1"/>
4644 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
4645 </action>
4646 </page>
4647
4648 <page name="decrypt">
4649 <template name="page"/>
4650
4651 <action>
4652 <condition var1="tw_crypto_pwtype" var2="2"/>
4653 <action function="page">decrypt_pattern</action>
4654 </action>
4655
4656 <text style="text_l">
4657 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004658 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004659 </text>
4660
4661 <text style="text_m">
4662 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004663 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004664 </text>
4665
4666 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04004667 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004668 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004669 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004670 </text>
4671
Noah Jacobson81d638d2019-04-28 00:10:07 -04004672 <text style="text_m_accent">
4673 <condition var1="tw_is_fbe" var2="1"/>
4674 <placement x="%center_x%" y="%row2_y%" placement="5"/>
4675 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
4676 </text>
4677
z31s1g28f0a922015-11-07 18:50:22 +01004678 <input>
4679 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_height%"/>
4680 <text>%tw_crypto_display%</text>
4681 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
4682 <restrict minlen="1" maxlen="254"/>
4683 <action function="page">trydecrypt</action>
4684 </input>
4685
4686 <fill color="%accent_color%">
4687 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4688 </fill>
4689
4690 <fill color="%text_fail_color%">
4691 <condition var1="tw_password_fail" var2="1"/>
4692 <placement x="%col1_x_left%" y="row5_y" w="%content_width%" h="input_line_width" placement="1"/>
4693 </fill>
4694
4695 <text style="text_m_fail">
4696 <condition var1="tw_password_fail" var2="1"/>
4697 <placement x="%col1_x_left%" y="%row5_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08004698 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004699 </text>
4700
4701 <button style="main_button_half_width_low">
4702 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004703 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004704 <actions>
4705 <action function="set">tw_page_done=1</action>
4706 <action function="page">main</action>
4707 </actions>
4708 </button>
4709
z31s1g608d7ff2016-01-18 19:47:25 +01004710 <button style="main_button_half_width_low">
4711 <placement x="%indent_right%" y="%row6_y%" placement="1"/>
4712 <text>{@sel_lang_btn=Select Language}</text>
4713 <action function="overlay">select_language</action>
4714 </button>
4715
z31s1g28f0a922015-11-07 18:50:22 +01004716 <template name="keyboardtemplate"/>
4717 </page>
4718
4719 <page name="decrypt_pattern">
4720 <template name="page"/>
4721
4722 <text style="text_l">
4723 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004724 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004725 </text>
4726
4727 <text style="text_m">
4728 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004729 <text>{@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004730 </text>
4731
4732 <text style="text_m_accent">
Aleksa Saraib25a1832015-12-31 17:36:00 +01004733 <placement x="%col2_x_left%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004734 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004735 </text>
4736
Aleksa Saraib25a1832015-12-31 17:36:00 +01004737 <text style="text_m_fail">
4738 <condition var1="tw_password_fail" var2="1"/>
4739 <placement x="%col2_x_left%" y="%row3_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08004740 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004741 </text>
4742
z31s1g28f0a922015-11-07 18:50:22 +01004743 <patternpassword>
Aleksa Saraib25a1832015-12-31 17:36:00 +01004744 <placement x="%pattern_x%" y="%row4a_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01004745 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
4746 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
4747 <data name="tw_crypto_password"/>
4748 <action function="page">trydecrypt</action>
4749 </patternpassword>
4750
Aleksa Saraib25a1832015-12-31 17:36:00 +01004751 <button style="main_button_half_width_low">
4752 <placement x="%col_button_right%" y="%row1a_y%"/>
4753 <text>3x3</text>
4754 <action function="set">tw_gui_pattern_grid_size=3</action>
4755 </button>
4756
4757 <button style="main_button_half_width_low">
4758 <placement x="%col_button_right%" y="%row4a_y%"/>
4759 <text>4x4</text>
4760 <action function="set">tw_gui_pattern_grid_size=4</action>
4761 </button>
4762
4763 <button style="main_button_half_width_low">
4764 <placement x="%col_button_right%" y="%row7a_y%"/>
4765 <text>5x5</text>
4766 <action function="set">tw_gui_pattern_grid_size=5</action>
4767 </button>
4768
4769 <button style="main_button_half_width_low">
4770 <placement x="%col_button_right%" y="%row10a_y%"/>
4771 <text>6x6</text>
4772 <action function="set">tw_gui_pattern_grid_size=6</action>
4773 </button>
4774
z31s1g28f0a922015-11-07 18:50:22 +01004775 <button style="main_button_half_width">
z31s1g608d7ff2016-01-18 19:47:25 +01004776 <placement x="%col1_x_right%" y="%row15a_y%"/>
4777 <text>{@sel_lang_btn=Select Language}</text>
4778 <action function="overlay">select_language</action>
4779 </button>
4780
4781 <button style="main_button_half_width">
z31s1g28f0a922015-11-07 18:50:22 +01004782 <placement x="%col2_x_right%" y="%row15a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004783 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004784 <actions>
4785 <action function="set">tw_page_done=1</action>
4786 <action function="page">main</action>
4787 </actions>
4788 </button>
4789 </page>
4790
4791 <page name="trydecrypt">
4792 <template name="page"/>
4793
4794 <text style="text_l">
4795 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004796 <text>{@mount_hdr=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004797 </text>
4798
4799 <text style="text_m">
4800 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004801 <text>{@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004802 </text>
4803
4804 <template name="console"/>
4805
4806 <template name="progress_bar"/>
4807
4808 <action>
4809 <action function="decrypt"/>
4810 </action>
4811
4812 <action>
4813 <conditions>
4814 <condition var1="tw_operation_state" var2="1"/>
4815 <condition var1="tw_operation_status" op="!=" var2="0"/>
4816 </conditions>
4817 <actions>
4818 <action function="set">tw_password_fail=1</action>
4819 <action function="page">decrypt</action>
4820 </actions>
4821 </action>
4822
4823 <action>
4824 <conditions>
4825 <condition var1="tw_operation_state" var2="1"/>
4826 <condition var1="tw_operation_status" op="=" var2="0"/>
4827 </conditions>
4828 <actions>
4829 <action function="set">tw_page_done=1</action>
4830 <action function="page">main</action>
4831 </actions>
4832 </action>
4833 </page>
4834
z31s1g28f0a922015-11-07 18:50:22 +01004835 <page name="terminalcommand">
4836 <template name="page"/>
4837
4838 <fill color="%background_color%">
4839 <placement x="0" y="%status_height%" w="%screen_width%" h="%header_height%"/>
4840 </fill>
4841
z31s1g56189522016-01-13 19:12:40 +01004842 <terminal>
4843 <condition var1="tw_hide_kb" var2="0"/>
4844 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_s_height%"/>
4845 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004846
z31s1g56189522016-01-13 19:12:40 +01004847 <terminal>
4848 <condition var1="tw_hide_kb" var2="1"/>
4849 <placement x="0" y="%row3_header_y%" w="%screen_width%" h="%terminal_l_height%"/>
4850 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01004851
z31s1g56189522016-01-13 19:12:40 +01004852 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01004853
z31s1g56189522016-01-13 19:12:40 +01004854 <object type="fill" color="#000000">
4855 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
4856 </object>
z31s1g28f0a922015-11-07 18:50:22 +01004857
z31s1g608d7ff2016-01-18 19:47:25 +01004858 <button>
z31s1g56189522016-01-13 19:12:40 +01004859 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4860 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4861 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4862 <image resource="back" />
4863 <condition var1="tw_busy" var2="0" />
4864 <actions>
4865 <action function="set">tw_hide_kb=0</action>
4866 <action function="page">advanced</action>
4867 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004868 </button>
z31s1g56189522016-01-13 19:12:40 +01004869
z31s1g608d7ff2016-01-18 19:47:25 +01004870 <button>
z31s1g56189522016-01-13 19:12:40 +01004871 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4872 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4873 <condition var1="tw_hide_kb" op="=" var2="0" />
4874 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4875 <image resource="kb_hide" />
4876 <condition var1="tw_busy" var2="0" />
4877 <actions>
4878 <action function="set">tw_hide_kb=1</action>
4879 <action function="page">terminalcommand</action>
4880 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004881 </button>
z31s1g56189522016-01-13 19:12:40 +01004882
z31s1g608d7ff2016-01-18 19:47:25 +01004883 <button>
z31s1g56189522016-01-13 19:12:40 +01004884 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4885 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4886 <condition var1="tw_hide_kb" op="=" var2="1" />
4887 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
4888 <image resource="kb_show" />
4889 <condition var1="tw_busy" var2="0" />
4890 <actions>
4891 <action function="set">tw_hide_kb=0</action>
4892 <action function="page">terminalcommand</action>
4893 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004894 </button>
z31s1g56189522016-01-13 19:12:40 +01004895
z31s1g608d7ff2016-01-18 19:47:25 +01004896 <button>
z31s1g56189522016-01-13 19:12:40 +01004897 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4898 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
4899 <image resource="home" />
4900 <condition var1="tw_busy" var2="0" />
4901 <actions>
4902 <action function="set">tw_hide_kb=0</action>
4903 <action function="key">home</action>
4904 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004905 </button>
z31s1g56189522016-01-13 19:12:40 +01004906
z31s1g608d7ff2016-01-18 19:47:25 +01004907 <button>
z31s1g56189522016-01-13 19:12:40 +01004908 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4909 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4910 <condition var1="tw_hide_kb" op="=" var2="0" />
4911 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4912 <image resource="kb_hide" />
4913 <condition var1="tw_busy" var2="0" />
4914 <actions>
4915 <action function="set">tw_hide_kb=1</action>
4916 <action function="page">terminalcommand</action>
4917 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004918 </button>
z31s1g56189522016-01-13 19:12:40 +01004919
z31s1g608d7ff2016-01-18 19:47:25 +01004920 <button>
z31s1g56189522016-01-13 19:12:40 +01004921 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4922 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4923 <condition var1="tw_hide_kb" op="=" var2="1" />
4924 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4925 <image resource="kb_show" />
4926 <condition var1="tw_busy" var2="0" />
4927 <actions>
4928 <action function="set">tw_hide_kb=0</action>
4929 <action function="page">terminalcommand</action>
4930 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004931 </button>
z31s1g56189522016-01-13 19:12:40 +01004932
z31s1g608d7ff2016-01-18 19:47:25 +01004933 <button>
z31s1g56189522016-01-13 19:12:40 +01004934 <condition var1="tw_navbar_button_position" op="=" var2="0" />
4935 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4936 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
4937 <image resource="back" />
4938 <condition var1="tw_busy" var2="0" />
4939 <actions>
4940 <action function="set">tw_hide_kb=0</action>
4941 <action function="page">advanced</action>
4942 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004943 </button>
z31s1g56189522016-01-13 19:12:40 +01004944
z31s1g608d7ff2016-01-18 19:47:25 +01004945 <button>
z31s1g56189522016-01-13 19:12:40 +01004946 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4947 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4948 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4949 <image resource="back" />
4950 <condition var1="tw_busy" var2="0" />
4951 <actions>
4952 <action function="set">tw_hide_kb=0</action>
4953 <action function="page">advanced</action>
4954 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004955 </button>
z31s1g56189522016-01-13 19:12:40 +01004956
z31s1g608d7ff2016-01-18 19:47:25 +01004957 <button>
z31s1g56189522016-01-13 19:12:40 +01004958 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4959 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4960 <condition var1="tw_hide_kb" op="=" var2="0" />
4961 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4962 <image resource="kb_hide" />
4963 <condition var1="tw_busy" var2="0" />
4964 <actions>
4965 <action function="set">tw_hide_kb=1</action>
4966 <action function="page">terminalcommand</action>
4967 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004968 </button>
z31s1g56189522016-01-13 19:12:40 +01004969
z31s1g608d7ff2016-01-18 19:47:25 +01004970 <button>
z31s1g56189522016-01-13 19:12:40 +01004971 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4972 <condition var1="tw_samsung_navbar" op="=" var2="1" />
4973 <condition var1="tw_hide_kb" op="=" var2="1" />
4974 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
4975 <image resource="kb_show" />
4976 <condition var1="tw_busy" var2="0" />
4977 <actions>
4978 <action function="set">tw_hide_kb=0</action>
4979 <action function="page">terminalcommand</action>
4980 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004981 </button>
z31s1g56189522016-01-13 19:12:40 +01004982
z31s1g608d7ff2016-01-18 19:47:25 +01004983 <button>
z31s1g56189522016-01-13 19:12:40 +01004984 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4985 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
4986 <image resource="home" />
4987 <condition var1="tw_busy" var2="0" />
4988 <actions>
4989 <action function="set">tw_hide_kb=0</action>
4990 <action function="key">home</action>
4991 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01004992 </button>
z31s1g56189522016-01-13 19:12:40 +01004993
z31s1g608d7ff2016-01-18 19:47:25 +01004994 <button>
z31s1g56189522016-01-13 19:12:40 +01004995 <condition var1="tw_navbar_button_position" op="=" var2="1" />
4996 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
4997 <condition var1="tw_hide_kb" op="=" var2="0" />
4998 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
4999 <image resource="kb_hide" />
5000 <condition var1="tw_busy" var2="0" />
5001 <actions>
5002 <action function="set">tw_hide_kb=1</action>
5003 <action function="page">terminalcommand</action>
5004 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005005 </button>
z31s1g56189522016-01-13 19:12:40 +01005006
z31s1g608d7ff2016-01-18 19:47:25 +01005007 <button>
z31s1g56189522016-01-13 19:12:40 +01005008 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5009 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5010 <condition var1="tw_hide_kb" op="=" var2="1" />
5011 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5012 <image resource="kb_show" />
5013 <condition var1="tw_busy" var2="0" />
5014 <actions>
5015 <action function="set">tw_hide_kb=0</action>
5016 <action function="page">terminalcommand</action>
5017 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005018 </button>
z31s1g56189522016-01-13 19:12:40 +01005019
z31s1g608d7ff2016-01-18 19:47:25 +01005020 <button>
z31s1g56189522016-01-13 19:12:40 +01005021 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5022 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5023 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5024 <image resource="back" />
5025 <condition var1="tw_busy" var2="0" />
5026 <actions>
5027 <action function="set">tw_hide_kb=0</action>
5028 <action function="page">advanced</action>
5029 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005030 </button>
z31s1g56189522016-01-13 19:12:40 +01005031
z31s1g608d7ff2016-01-18 19:47:25 +01005032 <button>
z31s1g56189522016-01-13 19:12:40 +01005033 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5034 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5035 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5036 <image resource="back" />
5037 <condition var1="tw_busy" var2="0" />
5038 <actions>
5039 <action function="set">tw_hide_kb=0</action>
5040 <action function="page">advanced</action>
5041 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005042 </button>
z31s1g56189522016-01-13 19:12:40 +01005043
z31s1g608d7ff2016-01-18 19:47:25 +01005044 <button>
z31s1g56189522016-01-13 19:12:40 +01005045 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5046 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5047 <condition var1="tw_hide_kb" op="=" var2="0" />
5048 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5049 <image resource="kb_hide" />
5050 <condition var1="tw_busy" var2="0" />
5051 <actions>
5052 <action function="set">tw_hide_kb=1</action>
5053 <action function="page">terminalcommand</action>
5054 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005055 </button>
z31s1g56189522016-01-13 19:12:40 +01005056
z31s1g608d7ff2016-01-18 19:47:25 +01005057 <button>
z31s1g56189522016-01-13 19:12:40 +01005058 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5059 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5060 <condition var1="tw_hide_kb" op="=" var2="1" />
5061 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5062 <image resource="kb_show" />
5063 <condition var1="tw_busy" var2="0" />
5064 <actions>
5065 <action function="set">tw_hide_kb=0</action>
5066 <action function="page">terminalcommand</action>
5067 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005068 </button>
z31s1g56189522016-01-13 19:12:40 +01005069
z31s1g608d7ff2016-01-18 19:47:25 +01005070 <button>
z31s1g56189522016-01-13 19:12:40 +01005071 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5072 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5073 <image resource="home" />
5074 <condition var1="tw_busy" var2="0" />
5075 <actions>
5076 <action function="set">tw_hide_kb=0</action>
5077 <action function="key">home</action>
5078 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005079 </button>
z31s1g56189522016-01-13 19:12:40 +01005080
z31s1g608d7ff2016-01-18 19:47:25 +01005081 <button>
z31s1g56189522016-01-13 19:12:40 +01005082 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5083 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5084 <condition var1="tw_hide_kb" op="=" var2="0" />
5085 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5086 <image resource="kb_hide" />
5087 <condition var1="tw_busy" var2="0" />
5088 <actions>
5089 <action function="set">tw_hide_kb=1</action>
5090 <action function="page">terminalcommand</action>
5091 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005092 </button>
z31s1g56189522016-01-13 19:12:40 +01005093
z31s1g608d7ff2016-01-18 19:47:25 +01005094 <button>
z31s1g56189522016-01-13 19:12:40 +01005095 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5096 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5097 <condition var1="tw_hide_kb" op="=" var2="1" />
5098 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5099 <image resource="kb_show" />
5100 <condition var1="tw_busy" var2="0" />
5101 <actions>
5102 <action function="set">tw_hide_kb=0</action>
5103 <action function="page">terminalcommand</action>
5104 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005105 </button>
z31s1g56189522016-01-13 19:12:40 +01005106
z31s1g608d7ff2016-01-18 19:47:25 +01005107 <button>
z31s1g56189522016-01-13 19:12:40 +01005108 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5109 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5110 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5111 <image resource="back" />
5112 <condition var1="tw_busy" var2="0" />
5113 <actions>
5114 <action function="set">tw_hide_kb=0</action>
5115 <action function="page">advanced</action>
5116 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005117 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005118
5119 <action>
5120 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005121 <actions>
5122 <action function="page">main</action>
5123 <action function="set">tw_hide_kb=0</action>
5124 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005125 </action>
5126
5127 <action>
5128 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005129 <actions>
5130 <action function="page">advanced</action>
5131 <action function="set">tw_hide_kb=0</action>
5132 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005133 </action>
z31s1g56189522016-01-13 19:12:40 +01005134
5135 <object type="action">
5136 <touch key="power+voldown" />
5137 <action function="screenshot" />
5138 </object>
z31s1g28f0a922015-11-07 18:50:22 +01005139 </page>
bigbiffdf8436b2020-08-30 16:22:34 -04005140
5141 <page name="fastboot">
5142 <template name="page"/>
5143
5144 <text style="text_l">
5145 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5146 <text>{@fastboot_button=Fastboot}</text>
5147 </text>
5148
5149 <template name="console"/>
5150
5151 <template name="progress_bar"/>
5152
5153 <button style="main_button_half_width">
5154 <condition var1="tw_enable_fastboot" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005155 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005156 <text>{@enable_adb=Enable ADB}</text>
5157 <actions>
5158 <action function="enableadb"/>
5159 <action function="set">tw_enable_adb=1</action>
5160 <action function="set">tw_enable_fastboot=0</action>
5161 </actions>
5162 </button>
5163
5164 <button style="main_button_half_width">
5165 <condition var1="tw_enable_adb" op="=" var2="1" />
bigbiff7138a0f2020-10-24 19:52:25 -04005166 <placement x="%col1_x_left%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005167 <text>{@enable_fastboot=Enable Fastboot}</text>
5168 <actions>
5169 <action function="enablefastboot"/>
5170 <action function="set">tw_enable_fastboot=1</action>
5171 <action function="set">tw_enable_adb=0</action>
5172 </actions>
5173 </button>
5174
5175 <button style="main_button_half_width">
bigbiff7138a0f2020-10-24 19:52:25 -04005176 <placement x="%col2_x_right%" y="%row15a_y%"/>
bigbiffdf8436b2020-08-30 16:22:34 -04005177 <text>{@reboot_btn=Reboot}</text>
5178 <action function="page">fastbootreboot</action>
5179 </button>
5180 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005181
5182 <page name="sideload">
5183 <template name="page"/>
5184
5185 <text style="text_l">
5186 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005187 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005188 </text>
5189
5190 <text style="text_m">
5191 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005192 <text>{@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005193 </text>
5194
5195 <checkbox>
5196 <placement x="%col1_x_left%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005197 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005198 <data variable="tw_wipe_dalvik"/>
5199 </checkbox>
5200
5201 <checkbox>
5202 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005203 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005204 <data variable="tw_wipe_cache"/>
5205 </checkbox>
5206
5207 <slider style="slider_centered">
Ethan Yonker74db1572015-10-28 12:44:49 -05005208 <text>{@swipe_to_sideload=Swipe to Start Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005209 <actions>
5210 <action function="set">tw_back=advanced</action>
5211 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005212 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5213 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5214 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005215 <action function="set">tw_has_cancel=1</action>
5216 <action function="set">tw_show_reboot=1</action>
5217 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5218 <action function="page">action_page</action>
5219 </actions>
5220 </slider>
5221
5222 <action>
5223 <touch key="home"/>
5224 <action function="page">main</action>
5225 </action>
5226
5227 <action>
5228 <touch key="back"/>
5229 <action function="page">advanced</action>
5230 </action>
5231 </page>
5232
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005233 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005234 <template name="page"/>
5235
5236 <text style="text_l">
5237 <placement x="%col1_x_header%" y="%row3_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005238 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005239 </text>
5240
5241 <text style="text_m">
5242 <placement x="%col1_x_header%" y="%row4_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005243 <text>{@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005244 </text>
5245
5246 <text style="text_m_accent">
5247 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005248 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005249 </text>
5250
z31s1g28f0a922015-11-07 18:50:22 +01005251 <text style="text_m_fail">
5252 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005253 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005254 </text>
5255
5256 <text style="text_m_fail">
5257 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005258 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005259 </text>
5260
5261 <slider style="slider_centered">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005262 <text>{@swipe_to_fix_contexts=Swipe to Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005263 <actions>
5264 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005265 <action function="set">tw_action=fixcontexts</action>
5266 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5267 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005268 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005269 <action function="set">tw_show_reboot=1</action>
5270 <action function="page">action_page</action>
5271 </actions>
5272 </slider>
5273
5274 <action>
5275 <touch key="home"/>
5276 <action function="page">main</action>
5277 </action>
5278
5279 <action>
5280 <touch key="back"/>
5281 <action function="page">advanced</action>
5282 </action>
5283 </page>
5284
z31s1g28f0a922015-11-07 18:50:22 +01005285 <page name="slideout">
5286 <fill color="%background_color%">
5287 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5288 </fill>
5289
5290 <console>
5291 <placement x="%col1_x_left%" y="%slideout_y%" w="%content_width%" h="%slideout_height%"/>
5292 </console>
5293
5294 <button>
5295 <fill color="%transparent%"/>
5296 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5297 <action function="overlay"/>
5298 </button>
5299
5300 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005301 <touch key="power"/>
5302 <action function="togglebacklight"/>
5303 </action>
5304
5305 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005306 <touch key="power+voldown"/>
5307 <action function="screenshot"/>
5308 </action>
5309 </page>
5310
5311 <page name="select_storage">
5312 <fill color="%semi_transparent%">
5313 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5314 </fill>
5315
5316 <fill color="%background_color%">
5317 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5318 </fill>
5319
5320 <partitionlist style="partitionlist_storage">
Ethan Yonker74db1572015-10-28 12:44:49 -05005321 <text>{@sel_storage_list=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005322 <data name="tw_storage_path"/>
5323 <listtype name="storage"/>
5324 </partitionlist>
5325
5326 <button style="button_third_width">
5327 <placement x="%dialog_button_x%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005328 <text>{@ok_btn=OK}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005329 <actions>
5330 <action function="set">tw_clear_destination=%tw_back%</action>
5331 <action function="overlay"/>
5332 <action function="page">clear_vars</action>
5333 </actions>
5334 </button>
5335
5336 <fill color="#000000">
5337 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5338 </fill>
5339
5340 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005341 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5342 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5343 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5344 <image resource="back" />
5345 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005346 <actions>
5347 <action function="overlay"/>
5348 <action function="key">%tw_back%</action>
5349 </actions>
5350 </button>
5351
5352 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005353 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5354 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5355 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5356 <image resource="console" />
5357 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005358 <action function="overlay">slideout</action>
5359 </button>
5360
5361 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005362 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5363 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5364 <image resource="home" />
5365 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005366 <actions>
5367 <action function="overlay"/>
5368 <action function="key">home</action>
5369 </actions>
5370 </button>
5371
5372 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005373 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5374 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5375 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5376 <image resource="console" />
5377 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005378 <action function="overlay">slideout</action>
5379 </button>
5380
5381 <button>
z31s1g608d7ff2016-01-18 19:47:25 +01005382 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5383 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5384 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5385 <image resource="back" />
5386 <condition var1="tw_busy" var2="0" />
5387 <actions>
5388 <action function="overlay"/>
5389 <action function="key">%tw_back%</action>
5390 </actions>
5391 </button>
5392
5393 <button>
5394 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5395 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5396 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5397 <image resource="back" />
5398 <condition var1="tw_busy" var2="0" />
5399 <actions>
5400 <action function="overlay"/>
5401 <action function="key">%tw_back%</action>
5402 </actions>
5403 </button>
5404
5405 <button>
5406 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5407 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5408 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5409 <image resource="console" />
5410 <condition var1="tw_busy" var2="0" />
5411 <action function="overlay">slideout</action>
5412 </button>
5413
5414 <button>
5415 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5416 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5417 <image resource="home" />
5418 <condition var1="tw_busy" var2="0" />
5419 <actions>
5420 <action function="overlay"/>
5421 <action function="key">home</action>
5422 </actions>
5423 </button>
5424
5425 <button>
5426 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5427 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5428 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5429 <image resource="console" />
5430 <condition var1="tw_busy" var2="0" />
5431 <action function="overlay">slideout</action>
5432 </button>
5433
5434 <button>
5435 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5436 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5437 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5438 <image resource="back" />
5439 <condition var1="tw_busy" var2="0" />
5440 <actions>
5441 <action function="overlay"/>
5442 <action function="key">%tw_back%</action>
5443 </actions>
5444 </button>
5445
5446 <button>
5447 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5448 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5449 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5450 <image resource="back" />
5451 <condition var1="tw_busy" var2="0" />
5452 <actions>
5453 <action function="overlay"/>
5454 <action function="key">%tw_back%</action>
5455 </actions>
5456 </button>
5457
5458 <button>
5459 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5460 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5461 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5462 <image resource="console" />
5463 <condition var1="tw_busy" var2="0" />
5464 <action function="overlay">slideout</action>
5465 </button>
5466
5467 <button>
5468 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5469 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5470 <image resource="home" />
5471 <condition var1="tw_busy" var2="0" />
5472 <actions>
5473 <action function="overlay"/>
5474 <action function="key">home</action>
5475 </actions>
5476 </button>
5477
5478 <button>
5479 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5480 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5481 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5482 <image resource="console" />
5483 <condition var1="tw_busy" var2="0" />
5484 <action function="overlay">slideout</action>
5485 </button>
5486
5487 <button>
5488 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5489 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5490 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5491 <image resource="back" />
5492 <condition var1="tw_busy" var2="0" />
5493 <actions>
5494 <action function="overlay"/>
5495 <action function="key">%tw_back%</action>
5496 </actions>
5497 </button>
5498
5499 <action>
5500 <touch key="power+voldown"/>
5501 <action function="screenshot"/>
5502 </action>
5503 </page>
5504
5505 <page name="select_language">
5506 <fill color="%semi_transparent%">
5507 <placement x="0" y="0" w="%screen_width%" h="%screen_height%"/>
5508 </fill>
5509
5510 <fill color="%background_color%">
5511 <placement x="%col2_x_left%" y="row4_y" w="%dialog_width%" h="%dialog_height%"/>
5512 </fill>
5513
5514 <listbox>
5515 <placement x="%dialog_content_x%" y="%row4_y%" w="%content_overlay_width%" h="%partitionlist_storage_height%"/>
5516 <text>{@select_language=Select Language:}</text>
5517 <icon selected="radio_true" unselected="radio_false" />
5518 <data name="tw_language" />
5519 </listbox>
5520
5521 <button style="button_third_width">
5522 <placement x="%dialog_button_x%" y="%row13_y%"/>
5523 <text>{@ok_btn=OK}</text>
5524 <actions>
5525 <action function="overlay"/>
5526 <action function="setlanguage"></action>
5527 </actions>
5528 </button>
5529
5530 <fill color="#000000">
5531 <placement x="0" y="navbar_y" w="%screen_width%" h="%navbar_height"/>
5532 </fill>
5533
5534 <button>
5535 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5536 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5537 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5538 <image resource="back" />
5539 <condition var1="tw_busy" var2="0" />
5540 <actions>
5541 <action function="overlay"/>
5542 <action function="key">%tw_back%</action>
5543 </actions>
5544 </button>
5545
5546 <button>
5547 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5548 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5549 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5550 <image resource="console" />
5551 <condition var1="tw_busy" var2="0" />
5552 <action function="overlay">slideout</action>
5553 </button>
5554
5555 <button>
5556 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5557 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5558 <image resource="home" />
5559 <condition var1="tw_busy" var2="0" />
5560 <actions>
5561 <action function="overlay"/>
5562 <action function="key">home</action>
5563 </actions>
5564 </button>
5565
5566 <button>
5567 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5568 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5569 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5570 <image resource="console" />
5571 <condition var1="tw_busy" var2="0" />
5572 <action function="overlay">slideout</action>
5573 </button>
5574
5575 <button>
5576 <condition var1="tw_navbar_button_position" op="=" var2="0" />
5577 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5578 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5579 <image resource="back" />
5580 <condition var1="tw_busy" var2="0" />
5581 <actions>
5582 <action function="overlay"/>
5583 <action function="key">%tw_back%</action>
5584 </actions>
5585 </button>
5586
5587 <button>
5588 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5589 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5590 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5591 <image resource="back" />
5592 <condition var1="tw_busy" var2="0" />
5593 <actions>
5594 <action function="overlay"/>
5595 <action function="key">%tw_back%</action>
5596 </actions>
5597 </button>
5598
5599 <button>
5600 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5601 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5602 <placement x="%back_button_x_1%" y="%navbar_btn_y%" placement="4" />
5603 <image resource="console" />
5604 <condition var1="tw_busy" var2="0" />
5605 <action function="overlay">slideout</action>
5606 </button>
5607
5608 <button>
5609 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5610 <placement x="%home_button_x_1%" y="%navbar_btn_y%" placement="4" />
5611 <image resource="home" />
5612 <condition var1="tw_busy" var2="0" />
5613 <actions>
5614 <action function="overlay"/>
5615 <action function="key">home</action>
5616 </actions>
5617 </button>
5618
5619 <button>
5620 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5621 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5622 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5623 <image resource="console" />
5624 <condition var1="tw_busy" var2="0" />
5625 <action function="overlay">slideout</action>
5626 </button>
5627
5628 <button>
5629 <condition var1="tw_navbar_button_position" op="=" var2="1" />
5630 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5631 <placement x="%console_button_x_1%" y="%navbar_btn_y%" placement="4" />
5632 <image resource="back" />
5633 <condition var1="tw_busy" var2="0" />
5634 <actions>
5635 <action function="overlay"/>
5636 <action function="key">%tw_back%</action>
5637 </actions>
5638 </button>
5639
5640 <button>
5641 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5642 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5643 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5644 <image resource="back" />
5645 <condition var1="tw_busy" var2="0" />
5646 <actions>
5647 <action function="overlay"/>
5648 <action function="key">%tw_back%</action>
5649 </actions>
5650 </button>
5651
5652 <button>
5653 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5654 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5655 <placement x="%back_button_x_2%" y="%navbar_btn_y%" placement="4" />
5656 <image resource="console" />
5657 <condition var1="tw_busy" var2="0" />
5658 <action function="overlay">slideout</action>
5659 </button>
5660
5661 <button>
5662 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5663 <placement x="%home_button_x_2%" y="%navbar_btn_y%" placement="4" />
5664 <image resource="home" />
5665 <condition var1="tw_busy" var2="0" />
5666 <actions>
5667 <action function="overlay"/>
5668 <action function="key">home</action>
5669 </actions>
5670 </button>
5671
5672 <button>
5673 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5674 <condition var1="tw_samsung_navbar" op="!=" var2="1" />
5675 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5676 <image resource="console" />
5677 <condition var1="tw_busy" var2="0" />
5678 <action function="overlay">slideout</action>
5679 </button>
5680
5681 <button>
5682 <condition var1="tw_navbar_button_position" op="=" var2="2" />
5683 <condition var1="tw_samsung_navbar" op="=" var2="1" />
5684 <placement x="%console_button_x_2%" y="%navbar_btn_y%" placement="4" />
5685 <image resource="back" />
5686 <condition var1="tw_busy" var2="0" />
z31s1g28f0a922015-11-07 18:50:22 +01005687 <actions>
5688 <action function="overlay"/>
5689 <action function="key">%tw_back%</action>
5690 </actions>
5691 </button>
5692
5693 <action>
5694 <touch key="power+voldown"/>
5695 <action function="screenshot"/>
5696 </action>
5697 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005698
5699 <page name="decrypt_users">
5700 <template name="page"/>
5701
5702 <text style="text_l">
5703 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5704 <text>{@decrypt_users=Decrypt Users}</text>
5705 </text>
5706
5707 <text style="text_m_accent">
5708 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5709 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5710 </text>
5711
5712 <listbox>
5713 <placement x="%col1_x_left%" y="%row1a_y%" w="%content_width%" h="%partitionlist_mount_height%"/>
5714 <text>{@select_user=Select User}</text>
5715 <icon selected="radio_true" unselected="radio_false" />
5716 <data name="tw_crypto_user_id" />
5717 </listbox>
5718
5719 <button style="main_button_half_width">
5720 <placement x="%col2_x_right%" y="%row15a_y%"/>
5721 <text>{@decrypt_users=Decrypt Users}</text>
5722 <action function="set">tw_crypto_password=</action>
5723 <action function="set">tw_password_fail=0</action>
5724 <action function="page">decrypt</action>
5725 </button>
5726
5727 <action>
5728 <touch key="home"/>
5729 <action function="page">main</action>
5730 </action>
5731
5732 <action>
5733 <touch key="back"/>
5734 <action function="page">advanced</action>
5735 </action>
5736 </page>
z31s1g28f0a922015-11-07 18:50:22 +01005737 </pages>
5738</recovery>