blob: 825278093c1e55cf8947ae7bfc84ea3181e077fa [file] [log] [blame]
z31s1g28f0a922015-11-07 18:50:22 +01001<?xml version="1.0"?>
2<recovery>
3 <styles>
4 <style name="text_l">
5 <font resource="font_l" color="%text_color%"/>
6 </style>
7
8 <style name="text_m">
9 <font resource="font_m" color="%text_color%"/>
10 </style>
11
12 <style name="text_m_accent">
13 <font resource="font_m" color="%accent_color%"/>
14 </style>
15
16 <style name="text_m_fail">
17 <font resource="font_m" color="%text_fail_color%"/>
18 </style>
19
20 <style name="text_s">
21 <font resource="font_s" color="%text_color%"/>
22 </style>
23
24 <style name="input">
25 <background color="%background_color%"/>
26 <cursor color="%accent_color%" hasfocus="1" width="%input_line_width%"/>
27 <font resource="font_m" color="%text_color%"/>
28 </style>
29
30 <style name="checkbox">
31 <font resource="font_m" color="%text_color%"/>
32 <image checked="checkbox_true" unchecked="checkbox_false"/>
33 </style>
34
35 <style name="main_button">
36 <highlight color="%highlight_color%"/>
37 <font resource="font_l" color="%text_button_color%"/>
38 <image resource="main_button"/>
39 </style>
40
41 <style name="main_button_full_width">
42 <highlight color="%highlight_color%"/>
43 <font resource="font_l" color="%text_button_color%"/>
44 <image resource="main_button_full_width"/>
45 </style>
46
47 <style name="main_button_quarter_width">
48 <highlight color="%highlight_color%"/>
49 <font resource="font_l" color="%text_button_color%"/>
50 <image resource="main_button_quarter_width"/>
51 </style>
52
53 <style name="main_button_half_height">
54 <highlight color="%highlight_color%"/>
55 <font resource="font_m" color="%text_button_color%"/>
56 <image resource="main_button_half_height"/>
57 </style>
58
59 <style name="main_button_half_height_full_width">
60 <highlight color="%highlight_color%"/>
61 <font resource="font_m" color="%text_button_color%"/>
62 <image resource="main_button_half_height_full_width"/>
63 </style>
64
65 <style name="button_third_width">
66 <highlight color="%highlight_color%"/>
67 <font resource="font_m" color="%text_button_color%"/>
68 <image resource="tab_3"/>
69 </style>
70
Aleksa Saraib25a1832015-12-31 17:36:00 +010071 <style name="button_navbar">
72 <font resource="font_m" color="%text_button_color%"/>
73 </style>
74
z31s1g28f0a922015-11-07 18:50:22 +010075 <style name="console">
76 <color foreground="%text_color%" background="%background_color%" scroll="%background_color%"/>
77 <font resource="fixed"/>
78 </style>
79
z31s1g56189522016-01-13 19:12:40 +010080 <style name="terminal">
81 <fastscroll linecolor="%transparent%" rectcolor="%accent_color%" w="%fastscroll_w%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
82 <background color="%background_color%"/>
83 <font resource="fixed" spacing="2" color="%text_color%"/>
84 </style>
85
z31s1g28f0a922015-11-07 18:50:22 +010086 <style name="fileselector">
87 <highlight color="%fileselector_highlight_color%"/>
88 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
89 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
90 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
91 <sort name="tw_gui_sort_order"/>
92 <icon folder="folder" file="file"/>
93 <background color="%background_color%"/>
94 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
95 </style>
96
97 <style name="listbox">
98 <highlight color="%fileselector_highlight_color%"/>
99 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
100 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
101 <icon selected="radio_true" unselected="radio_false"/>
102 <background color="%background_color%"/>
103 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
104 </style>
105
106 <style name="listbox_headerless">
107 <highlight color="%fileselector_highlight_color%"/>
108 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
109 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
110 <icon selected="radio_true" unselected="radio_false"/>
111 <background color="%background_color%"/>
112 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
113 </style>
114
115 <style name="listbox_options">
116 <background color="%background_color%"/>
117 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
118 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
119 </style>
120
121 <style name="scrolllist">
122 <highlight color="%fileselector_highlight_color%"/>
123 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
124 <icon selected="checkbox_true" unselected="checkbox_false"/>
125 <background color="%background_color%"/>
126 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
nkk711a230e42017-08-07 00:28:19 +0300127 <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 +0100128 </style>
129
130 <style name="partitionlist">
131 <highlight color="%fileselector_highlight_color%"/>
132 <header background="%background_color%" textcolor="%accent_color%" separatorcolor="%accent_color%" separatorheight="%fileselector_separatorheight%"/>
133 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
134 <icon selected="checkbox_true" unselected="checkbox_false"/>
135 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
136 <background color="%background_color%"/>
137 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
138 </style>
139
140 <style name="partitionlist_summary">
141 <highlight color="%fileselector_highlight_color%"/>
142 <background color="%background_color%"/>
143 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
144 <icon selected="checkbox_true_small" unselected="checkbox_false_small"/>
145 </style>
146
147 <style name="partitionlist_headerless_rb">
148 <highlight color="%fileselector_highlight_color%"/>
149 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
150 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
151 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
152 <icon selected="radio_true" unselected="radio_false"/>
153 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
154 <background color="%background_color%"/>
155 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
156 </style>
157
158 <style name="partitionlist_headerless_cb">
159 <highlight color="%fileselector_highlight_color%"/>
160 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_storage_height%"/>
161 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%fileselector_linecolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
162 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
163 <icon selected="checkbox_true" unselected="checkbox_false"/>
164 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
165 <background color="%background_color%"/>
166 <font resource="font_m" spacing="%partitionlist_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%"/>
167 </style>
168
Ethan Yonker64e0a652018-07-25 09:52:17 -0500169 <style name="advanced_listbox">
170 <highlight color="%fileselector_highlight_color%"/>
171 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
172 <separator color="%fileselector_linecolor%" height="%fileselector_separatorheight%"/>
173 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
174 <icon selected="handle" unselected="handle"/>
175 <background color="%background_color%"/>
176 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
177 </style>
178
epicX40b7f7a2021-03-20 21:58:17 +0530179 <style name="options_listbox">
180 <highlight color="%fileselector_highlight_color%"/>
181 <fastscroll linecolor="%fileselector_linecolor%" rectcolor="%accent_color%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%"/>
182 <separator color="%background_color%" height="%fileselector_separatorheight%"/>
183 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
184 <background color="%background_color%"/>
185 <font resource="font_m" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%accent_color%"/>
186 </style>
187
z31s1g28f0a922015-11-07 18:50:22 +0100188 <style name="slider">
189 <placement x="%center_x%" y="%slider_y%"/>
190 <font resource="font_l" color="%text_color%"/>
191 <resource base="slider" used="slider_used" touch="slider_touch"/>
192 </style>
193
194 <style name="slidervalue">
195 <resource handle="handle"/>
196 <font resource="font_m" color="%text_color%"/>
197 <colors line="%fileselector_linecolor%"/>
198 <dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%"/>
199 </style>
Aleksa Saraib25a1832015-12-31 17:36:00 +0100200
201 <style name="patternpassword">
202 <size name="tw_gui_pattern_grid_size" default="3"/>
203 </style>
z31s1g28f0a922015-11-07 18:50:22 +0100204 </styles>
205
206 <pages>
207 <page name="main">
208 <action>
209 <actions>
210 <action function="set">tw_clear_destination=main2</action>
211 <action function="page">clear_vars</action>
212 </actions>
213 </action>
214 </page>
215
216 <page name="main2">
217 <template name="page"/>
218
219 <button style="main_button">
220 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500221 <text>{@install_btn=Install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100222 <action function="page">install_type</action>
223 </button>
224
225 <button style="main_button">
226 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500227 <text>{@wipe_btn=Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100228 <action function="page">wipe_type1</action>
229 </button>
230
231 <button style="main_button">
232 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500233 <text>{@backup_btn=Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100234 <actions>
235 <action function="set">tw_back=main</action>
bigbiffce8f83c2015-12-12 18:30:21 -0500236 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +0100237 </actions>
238 </button>
239
240 <button style="main_button">
241 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500242 <text>{@restore_btn=Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100243 <action function="page">restore</action>
244 </button>
245
246 <button style="main_button">
247 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500248 <text>{@reboot_btn=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100249 <action function="page">reboot</action>
250 </button>
251
252 <button>
253 <placement x="%btn4_col4_x%" y="%row11_y%"/>
254 <highlight color="%highlight_color%"/>
255 <image resource="q_btn_arrow_right"/>
256 <action function="page">main3</action>
257 </button>
258 </page>
259
Matt Mower32676622017-01-18 18:56:13 -0600260 <page name="copylog">
261 <template name="page"/>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400262
Matt Mower32676622017-01-18 18:56:13 -0600263 <checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400264 <placement x="%indent%" y="%row1_y%"/>
Matt Mower32676622017-01-18 18:56:13 -0600265 <text>{@include_kernel_log=Include Kernel Log}</text>
266 <data variable="tw_include_kernel_log" value="1"/>
267 </checkbox>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400268
269 <slider>
270 <text>{@swipe_confirm= Confirm}</text>
271 <actions>
Matt Mower32676622017-01-18 18:56:13 -0600272 <action function="set">tw_back=main3</action>
273 <action function="set">tw_action=copylog</action>
274 <action function="set">tw_action_text1={@copying_log=Copy Logs to SD Card}</action>
275 <action function="set">tw_complete_text1={@copy_log_complete=Logs Copy Completed}</action>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400276 <action function="page">action_page</action>
277 </actions>
278 </slider>
279
280 <action>
281 <touch key="back"/>
282 <action function="page">main2</action>
283 </action>
284
285 <action>
286 <touch key="home"/>
287 <action function="page">main</action>
288 </action>
Matt Mower32676622017-01-18 18:56:13 -0600289 </page>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400290
z31s1g28f0a922015-11-07 18:50:22 +0100291 <page name="main3">
292 <template name="page"/>
293
294 <button style="main_button">
295 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500296 <text>{@mount_btn=Mount}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100297 <action function="page">mount</action>
298 </button>
299
300 <button style="main_button">
301 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500302 <text>{@settings_btn=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100303 <action function="page">settings</action>
304 </button>
305
306 <button style="main_button">
307 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500308 <text>{@files_btn=Files}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100309 <action function="page">filemanagerlist</action>
310 </button>
311
312 <button style="main_button">
313 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500314 <text>{@copy_log_btn=Copy Log}</text>
bigbiff bigbiffbad332a2016-07-29 21:18:13 -0400315 <action function="page">copylog</action>
z31s1g28f0a922015-11-07 18:50:22 +0100316 </button>
317
318 <button style="main_button">
319 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500320 <text>{@advanced_btn=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100321 <action function="page">advanced</action>
322 </button>
323
324 <button>
325 <placement x="%col1_x_left%" y="%row11_y%"/>
326 <highlight color="%highlight_color%"/>
327 <image resource="q_btn_arrow_left"/>
328 <action function="page">main2</action>
329 </button>
330
331 <action>
332 <touch key="back"/>
333 <action function="page">main2</action>
334 </action>
335
336 <action>
337 <touch key="home"/>
338 <action function="page">main</action>
339 </action>
340 </page>
341
342 <page name="install_type">
343 <template name="page"/>
344
345 <template name="statusbar"/>
346
347 <text style="text_m">
348 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500349 <text>{@install_hdr=Install} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100350 </text>
351
352 <button style="main_button_full_width">
353 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500354 <text>{@install_zip_btn=Install Zip}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100355 <actions>
356 <action function="queueclear"/>
357 <action function="set">tw_selectimage=0</action>
358 <action function="page">install</action>
359 </actions>
360 </button>
361
362 <button style="main_button_full_width">
363 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500364 <text>{@install_image_btn=Install Image}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100365 <actions>
366 <action function="queueclear"/>
367 <action function="set">tw_selectimage=1</action>
368 <action function="page">install</action>
369 </actions>
370 </button>
371
372 <button style="main_button_full_width">
373 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500374 <text>{@adb_sideload_btn=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100375 <action function="page">sideload</action>
376 </button>
377
378 <action>
379 <touch key="home"/>
380 <action function="page">main</action>
381 </action>
382
383 <action>
384 <touch key="back"/>
385 <action function="page">main</action>
386 </action>
387 </page>
388
389 <page name="install">
390 <template name="page"/>
391
392 <template name="statusbar"/>
393
394 <text style="text_m">
395 <condition var1="tw_selectimage" var2="0"/>
396 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500397 <text>{@install_zip_hdr=Install Zip} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100398 </text>
399
400 <text style="text_m">
401 <condition var1="tw_selectimage" var2="1"/>
402 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500403 <text>{@install_image_hdr=Install Image} &gt; {@install_select_file_hdr=Select File}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100404 </text>
405
406 <fileselector>
407 <condition var1="tw_selectimage" var2="0"/>
408 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
409 <text>%tw_zip_location%</text>
mauronofrio0ff59842019-10-26 19:47:55 +0200410 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonald15430b62021-01-23 18:52:28 +0100411 <prfxfilter prfx="Magisk-;Magisk.apk;app-release.apk;app-debug.apk" folders="1" files="1"/>
z31s1g28f0a922015-11-07 18:50:22 +0100412 <path name="tw_zip_location" default="/sdcard"/>
413 <data name="tw_filename"/>
414 <selection name="tw_file"/>
415 </fileselector>
416
417 <fileselector>
418 <condition var1="tw_selectimage" var2="1"/>
419 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
420 <text>%tw_zip_location%</text>
421 <filter extn=".img" folders="1" files="1"/>
422 <path name="tw_zip_location" default="/sdcard"/>
423 <data name="tw_filename"/>
424 <selection name="tw_file"/>
425 </fileselector>
426
427 <button>
428 <placement x="%btn4_col4_x%" y="%row11_y%"/>
429 <highlight color="%highlight_color%"/>
430 <image resource="q_btn_storage"/>
431 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -0500432 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100433 <action function="set">tw_back=install</action>
434 <action function="page">select_storage</action>
435 </actions>
436 </button>
437
438 <action>
439 <conditions>
440 <condition var1="tw_selectimage" var2="0"/>
441 <condition var1="tw_filename" op="modified"/>
442 </conditions>
443 <actions>
444 <action function="queuezip"/>
445 <action function="page">flash_queue</action>
446 </actions>
447 </action>
448
449 <action>
450 <conditions>
451 <condition var1="tw_selectimage" var2="1"/>
452 <condition var1="tw_filename" op="modified"/>
453 </conditions>
epicXb7337372021-02-24 23:12:08 +0530454 <actions>
455 <action function="set">tw_is_slot_part=0</action>
456 <action function="page">flashimage_type</action>
457 </actions>
z31s1g28f0a922015-11-07 18:50:22 +0100458 </action>
459
460 <action>
461 <touch key="back"/>
462 <action function="page">install_type</action>
463 </action>
464
465 <action>
466 <touch key="home"/>
467 <action function="page">main</action>
468 </action>
469 </page>
470
471 <page name="flash_queue">
472 <template name="page"/>
473
474 <template name="statusbar"/>
475
476 <text style="text_m">
477 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500478 <text>{@install_zip_hdr=Install Zip} &gt; {@queue_hdr=Queue}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100479 </text>
480
481 <text style="text_m_accent">
482 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500483 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100484 </text>
485
486 <text style="text_m">
487 <placement x="%indent%" y="%row2_y%"/>
488 <text>%tw_file%</text>
489 </text>
490
491 <text style="text_m_accent">
492 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500493 <text>{@folder=Folder:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100494 </text>
495
496 <text style="text_m">
497 <placement x="%indent%" y="%row5_y%"/>
498 <text>%tw_zip_location%</text>
499 </text>
500
501 <text style="text_m">
502 <placement x="%indent%" y="%row8_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500503 <text>{@zip_back_clear=Press back button to clear the queue.}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100504 </text>
505
506 <button>
507 <placement x="%col1_x_left%" y="%row11_y%"/>
508 <highlight color="%highlight_color%"/>
509 <image resource="q_btn_arrow_left"/>
510 <actions>
511 <action function="queueclear"/>
512 <action function="page">install</action>
513 </actions>
514 </button>
515
516 <button>
517 <placement x="%btn4_col2_x%" y="%row11_y%"/>
518 <highlight color="%highlight_color%"/>
519 <image resource="q_btn_addzip"/>
520 <action function="page">install</action>
521 </button>
522
523 <button>
524 <placement x="%btn4_col3_x%" y="%row11_y%"/>
525 <highlight color="%highlight_color%"/>
526 <image resource="q_btn_accept"/>
527 <action function="page">flash_confirm</action>
528 </button>
529
530 <button>
531 <placement x="%btn4_col4_x%" y="%row11_y%"/>
532 <highlight color="%highlight_color%"/>
533 <image resource="q_btn_arrow_right"/>
534 <action function="page">flash_options</action>
535 </button>
536
537 <action>
538 <touch key="back"/>
539 <actions>
540 <action function="queueclear"/>
541 <action function="page">install</action>
542 </actions>
543 </action>
544
545 <action>
546 <touch key="home"/>
547 <action function="page">main</action>
548 </action>
549 </page>
550
551 <page name="flash_options">
552 <template name="page"/>
553
554 <template name="statusbar"/>
555
556 <text style="text_m">
557 <condition var1="tw_selectimage" var2="0"/>
558 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500559 <text>{@install_zip_hdr=Install Zip} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100560 </text>
561
epicX40b7f7a2021-03-20 21:58:17 +0530562 <listbox style="options_listbox">
563 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%listbox_options_height%"/>
564 <icon selected="checkbox_true" unselected="checkbox_false"/>
565 <listitem name="{@zip_sig_chk=Zip signature verification}">
566 <data variable="tw_signed_zip_verify"/>
567 </listitem>
568 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
569 <data variable="tw_skip_digest_check_zip"/>
570 </listitem>
nebrassyfe1c2372021-05-20 13:03:30 +0200571 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
572 <conditions>
573 <condition var1="tw_has_boot_slots" var2="1"/>
574 <condition var1="tw_has_repack_tools" var2="1"/>
575 </conditions>
576 <data variable="tw_auto_reflashtwrp"/>
577 </listitem>
epicX40b7f7a2021-03-20 21:58:17 +0530578 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
579 <data variable="tw_install_reboot"/>
580 </listitem>
581 <listitem name="{@inject_twrp_chk=Inject TWRP after install}">
582 <condition var1="tw_has_injecttwrp" var2="1"/>
583 <data variable="tw_inject_after_zip"/>
584 </listitem>
585 </listbox>
bigbiffa869fc72016-03-01 19:40:36 -0500586
z31s1g28f0a922015-11-07 18:50:22 +0100587 <button>
588 <placement x="%col1_x_left%" y="%row11_y%"/>
589 <highlight color="%highlight_color%"/>
590 <image resource="q_btn_arrow_left"/>
591 <action function="page">flash_queue</action>
592 </button>
593
594 <button>
595 <placement x="%btn4_col4_x%" y="%row11_y%"/>
596 <highlight color="%highlight_color%"/>
597 <image resource="q_btn_accept_transp"/>
598 <action function="page">flash_confirm</action>
599 </button>
600
601 <action>
602 <touch key="back"/>
603 <action function="page">flash_queue</action>
604 </action>
605
606 <action>
607 <touch key="home"/>
608 <action function="page">main</action>
609 </action>
610 </page>
611
612 <page name="flash_confirm">
613 <template name="page"/>
614
615 <template name="statusbar"/>
616
617 <text style="text_m">
618 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500619 <text>{@install_zip_hdr=Install Zip} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100620 </text>
621
622 <text style="text_m_accent">
623 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500624 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100625 </text>
626
627 <text style="text_m">
628 <placement x="%indent%" y="%row2_y%"/>
629 <text>%tw_file%</text>
630 </text>
631
632 <button>
633 <fill color="%transparent%"/>
634 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
635 <action function="page">flash_queue</action>
636 </button>
637
638 <text style="text_m_accent">
639 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500640 <text>{@zip_queue=Queue:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100641 </text>
642
643 <text style="text_m">
644 <placement x="%indent%" y="%row5_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500645 <text>{@zip_queue_count_s=File %tw_zip_queue_count% of 10:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100646 </text>
647
648 <button>
649 <fill color="%transparent%"/>
650 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
651 <action function="page">flash_queue</action>
652 </button>
653
654 <listbox style="listbox_options">
655 <placement x="%col1_x_left%" y="%row8_y%" w="%content_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500656 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +0100657 <data variable="tw_signed_zip_verify"/>
658 </listitem>
659 </listbox>
660
661 <text style="text_m_accent">
662 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500663 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100664 </text>
665
666 <text style="text_m">
667 <condition var1="tw_has_injecttwrp" var2="1"/>
668 <condition var1="tw_inject_after_zip" var2="1"/>
669 <placement x="%indent%" y="%row9_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500670 <text>{@inject_twrp_chk=Inject TWRP after install}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100671 </text>
672
673 <button>
674 <fill color="%transparent%"/>
675 <placement x="0" y="%row6a_y%" w="%screen_width%" h="64"/>
676 <action function="page">flash_options</action>
677 </button>
678
679 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500680 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100681 <action function="flash">flash_zip</action>
682 </slider>
683
684 <action>
685 <touch key="back"/>
686 <actions>
687 <action function="cancelzip"/>
688 <action function="page">install</action>
689 </actions>
690 </action>
691
692 <action>
693 <touch key="home"/>
694 <action function="page">main</action>
695 </action>
696 </page>
697
698 <page name="flash_zip">
699 <template name="page"/>
700
701 <template name="statusbar"/>
702
703 <text style="text_m">
704 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600705 <text>{@installing_zip_xml=Installing Zip: %tw_file%}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100706 </text>
707
708 <template name="console"/>
709
710 <template name="progress_bar"/>
711
712 <action>
713 <condition var1="tw_operation_state" var2="1"/>
714 <action function="page">flash_done</action>
715 </action>
716 </page>
717
718 <page name="flash_done">
719 <template name="page"/>
720
721 <template name="statusbar"/>
722
723 <text style="text_m_fail">
724 <condition var1="tw_operation_status" op="!=" var2="0"/>
725 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500726 <text>{@install_failed=Installation Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100727 </text>
728
729 <text style="text_m">
730 <condition var1="tw_operation_status" var2="0"/>
731 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500732 <text>{@install_successful=Installation Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100733 </text>
734
735 <template name="console"/>
736
737 <button style="main_button_half_height">
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500738 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100739 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500740 <text>{@wipe_cache_dalvik_btn=Wipe cache/dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100741 <actions>
742 <action function="set">tw_back=flash_done</action>
743 <action function="set">tw_action=wipe</action>
744 <action function="set">tw_action_param=/cache</action>
745 <action function="set">tw_has_action2=1</action>
746 <action function="set">tw_action2=wipe</action>
747 <action function="set">tw_action2_param=dalvik</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500748 <action function="set">tw_text1={@wipe_cache_dalvik_confirm=Wipe Cache &amp; Dalvik?}</action>
749 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Cache &amp; Dalvik...}</action>
750 <action function="set">tw_complete_text1={@wipe_cache_dalvik_complete=Cache &amp; Dalvik Wipe Complete}</action>
bigbiff bigbiff19874f12019-01-08 20:06:57 -0500751 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
752 <action function="page">confirm_action</action>
753 </actions>
754 </button>
755
756 <button style="main_button_half_height">
757 <condition var1="tw_ab_device" var2="1"/>
758 <placement x="%indent%" y="%row21a_y%"/>
759 <text>{@wipe_dalvik_btn=Wipe Dalvik}</text>
760 <actions>
761 <action function="set">tw_back=flash_done</action>
762 <action function="set">tw_action=wipe</action>
763 <action function="set">tw_action_param=dalvik</action>
764 <action function="set">tw_text1={@wipe_dalvik_confirm=Wipe Dalvik?}</action>
765 <action function="set">tw_action_text1={@wiping_cache_dalvik=Wiping Dalvik...}</action>
766 <action function="set">tw_complete_text1={@wipe_dalvik_complete=Dalvik Wipe Complete}</action>
767 <action function="set">tw_slider_text={@swipe_wipe=Swipe to Wipe}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100768 <action function="page">confirm_action</action>
769 </actions>
770 </button>
771
772 <button style="main_button_half_height">
Chaosmaster90df3de2020-02-07 20:33:43 +0100773 <condition var1="tw_ab_device" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +0100774 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500775 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100776 <actions>
777 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -0500778 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +0100779 </actions>
780 </button>
781
Chaosmaster90df3de2020-02-07 20:33:43 +0100782 <button style="main_button_half_height">
783 <condition var1="tw_ab_device" var2="1"/>
784 <placement x="%col1_x_right%" y="%row13_y%"/>
785 <text>{@reboot_btn=Reboot}</text>
786 <actions>
787 <action function="set">tw_back=main2</action>
788 <action function="page">reboot</action>
789 </actions>
790 </button>
791
z31s1g28f0a922015-11-07 18:50:22 +0100792 <action>
793 <touch key="back"/>
794 <actions>
795 <action function="set">tw_clear_destination=install_type</action>
796 <action function="page">clear_vars</action>
797 </actions>
798 </action>
799
800 <action>
801 <touch key="home"/>
802 <actions>
803 <action function="set">tw_clear_destination=main2</action>
804 <action function="page">clear_vars</action>
805 </actions>
806 </action>
Matt Mower9a2a2052016-05-31 21:31:22 -0500807
808 <action>
809 <conditions>
810 <condition var1="tw_install_reboot" var2="1"/>
811 <condition var1="tw_operation_status" var2="0"/>
812 <condition var1="tw_reboot_system" var2="1"/>
813 </conditions>
814 <actions>
815 <action function="set">tw_sleep=%tw_sleep_total%</action>
816 <action function="page">flash_sleep_and_reboot</action>
817 </actions>
818 </action>
819 </page>
820
821 <page name="flash_sleep_and_reboot">
822 <template name="page"/>
823
824 <template name="statusbar"/>
825
826 <text style="text_m">
827 <placement x="%col1_x_left%" y="%row1_header_y%"/>
828 <text>{@install_reboot=Rebooting in %tw_sleep% second(s)}</text>
829 </text>
830
831 <template name="console"/>
832
833 <template name="progress_bar"/>
834
835 <button style="main_button_half_height">
836 <condition var1="tw_sleep" op="&gt;" var2="0"/>
837 <placement x="%col1_x_right%" y="%row13_y%"/>
838 <text>{@cancel_btn=Cancel}</text>
839 <actions>
840 <action function="set">tw_install_reboot=0</action>
841 <action function="page">flash_done</action>
842 </actions>
843 </button>
844
845 <action>
846 <conditions>
847 <condition var1="tw_sleep" var2="tw_sleep_total"/>
848 <condition var1="tw_install_reboot" var2="1"/>
849 </conditions>
850 <action function="sleepcounter">%tw_sleep_total%</action>
851 </action>
852
853 <action>
854 <conditions>
855 <condition var1="tw_sleep" var2="0"/>
856 <condition var1="tw_install_reboot" var2="1"/>
857 </conditions>
858 <actions>
859 <action function="sleep">50000</action>
860 <action function="set">tw_back=main2</action>
861 <action function="page">reboot_system_routine</action>
862 </actions>
863 </action>
z31s1g28f0a922015-11-07 18:50:22 +0100864 </page>
865
866 <page name="flashimage_type">
867 <template name="page"/>
868
869 <template name="statusbar"/>
870
871 <text style="text_m">
872 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -0600873 <text>{@install_image_hdr=Install Image} &gt; {@install_sel_target=Select Target Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100874 </text>
875
876 <partitionlist style="partitionlist_headerless_rb">
877 <data name="tw_flash_partition"/>
878 <listtype name="flashimg"/>
879 </partitionlist>
880
epicXb7337372021-02-24 23:12:08 +0530881 <button style="checkbox">
882 <conditions>
883 <condition var1="tw_is_slot_part" op="=" var2="1"/>
884 <condition var1="tw_flash_both_slots" op="=" var2="0"/>
885 <condition var1="tw_has_boot_slots" var2="1"/>
886 </conditions>
887 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
888 <text>{@flash_ab_both_slots=Flash to both slots}</text>
889 <image resource="checkbox_false"/>
890 <action function="set">tw_flash_both_slots=1</action>
891 </button>
892
893 <button style="checkbox">
894 <conditions>
895 <condition var1="tw_is_slot_part" op="=" var2="1"/>
896 <condition var1="tw_flash_both_slots" op="=" var2="1"/>
897 <condition var1="tw_has_boot_slots" var2="1"/>
898 </conditions>
899 <placement x="%col2_x_left%" y="%row11_y%" textplacement="6"/>
900 <text>{@flash_ab_both_slots=Flash to both slots}</text>
901 <image resource="checkbox_true"/>
902 <action function="set">tw_flash_both_slots=0</action>
903 </button>
904
z31s1g28f0a922015-11-07 18:50:22 +0100905 <button>
906 <placement x="%col1_x_left%" y="%row11_y%"/>
907 <highlight color="%highlight_color%"/>
908 <image resource="q_btn_arrow_left"/>
909 <action function="page">install</action>
910 </button>
911
912 <button>
913 <placement x="%btn4_col4_x%" y="%row11_y%"/>
914 <highlight color="%highlight_color%"/>
915 <image resource="q_btn_accept_transp"/>
916 <action function="page">flashimage_confirm</action>
917 </button>
918
919 <action>
920 <touch key="back"/>
921 <action function="page">install</action>
922 </action>
923
924 <action>
925 <touch key="home"/>
926 <action function="page">main</action>
927 </action>
928 </page>
929
930 <page name="flashimage_confirm">
931 <template name="page"/>
932
933 <template name="statusbar"/>
934
935 <text style="text_m">
936 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500937 <text>{@install_image_hdr=Install Image} &gt; {@confirm_flash_hdr=Confirm Flash}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100938 </text>
939
940 <text style="text_m_accent">
941 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500942 <text>{@file=File:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100943 </text>
944
945 <text style="text_m">
946 <placement x="%indent%" y="%row2_y%"/>
947 <text>%tw_file%</text>
948 </text>
949
950 <button>
951 <fill color="%transparent%"/>
952 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
953 <action function="page">install</action>
954 </button>
955
956 <text style="text_m_accent">
957 <placement x="%indent%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -0500958 <text>{@target_partition=Target Partition:}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100959 </text>
960
961 <text style="text_m">
962 <placement x="%indent%" y="%row5_y%"/>
963 <text>%tw_flash_partition%</text>
964 </text>
965
966 <button>
967 <fill color="%transparent%"/>
968 <placement x="0" y="%row3a_y%" w="%screen_width%" h="48"/>
969 <action function="page">flashimage_type</action>
970 </button>
971
972 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -0500973 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +0100974 <actions>
975 <action function="set">tw_back=flashimage_confirm</action>
976 <action function="set">tw_action=flashimage</action>
977 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500978 <action function="set">tw_action_text1={@flashing_image=Flashing Image...}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100979 <action function="set">tw_action_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -0500980 <action function="set">tw_complete_text1={@image_flashed=Image Flashed}</action>
z31s1g28f0a922015-11-07 18:50:22 +0100981 <action function="page">action_page</action>
982 </actions>
983 <action function="flashimage"/>
984 </slider>
985
986 <action>
987 <touch key="back"/>
988 <actions>
989 <action function="set">tw_clear_destination=install</action>
990 <action function="page">clear_vars</action>
991 </actions>
992 </action>
993
994 <action>
995 <touch key="home"/>
996 <actions>
997 <action function="set">tw_clear_destination=main2</action>
998 <action function="page">clear_vars</action>
999 </actions>
1000 </action>
1001 </page>
1002
1003 <page name="clear_vars">
1004 <action>
1005 <action function="set">tw_operation_state=0</action>
1006 <action function="set">tw_text1=</action>
1007 <action function="set">tw_text2=</action>
1008 <action function="set">tw_text3=</action>
1009 <action function="set">tw_text4=</action>
1010 <action function="set">tw_action_text1=</action>
1011 <action function="set">tw_action_text2=</action>
1012 <action function="set">tw_action_param=</action>
1013 <action function="set">tw_has_action2=0</action>
1014 <action function="set">tw_action2=</action>
1015 <action function="set">tw_action2_param=</action>
1016 <action function="set">tw_has_cancel=0</action>
1017 <action function="set">tw_cancel_action=</action>
1018 <action function="set">tw_cancel_param=</action>
1019 <action function="set">tw_show_exclamation=0</action>
1020 <action function="set">tw_show_reboot=0</action>
Noah Jacobson5a79f672019-04-28 00:10:07 -04001021 <action function="set">tw_crypto_user_id=</action>
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001022 <action function="set">tw_multiuser_warning_accepted=</action>
1023 <action function="set">tw_multiuser_warning_destination=</action>
z31s1g28f0a922015-11-07 18:50:22 +01001024 <action function="page">%tw_clear_destination%</action>
1025 </action>
1026 </page>
1027
Matt Mower908dd252016-05-25 02:26:50 -05001028 <page name="reboot_system_routine">
1029 <action>
1030 <action function="set">tw_back=main2</action>
1031 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05001032 <action function="set">tw_action_param=system</action>
Matt Mower908dd252016-05-25 02:26:50 -05001033 <action function="set">tw_has_action2=0</action>
1034 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
1035 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
1036 <action function="set">tw_text3=</action>
1037 <action function="set">tw_text4=</action>
1038 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
1039 <action function="set">tw_action_text2=</action>
1040 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
1041 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
1042 <action function="page">rebootcheck</action>
1043 </action>
1044 </page>
1045
z31s1g28f0a922015-11-07 18:50:22 +01001046 <page name="confirm_action">
1047 <template name="page"/>
1048
1049 <template name="statusbar"/>
1050
1051 <text style="text_m">
1052 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001053 <text>{@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001054 </text>
1055
1056 <text style="text_m_accent">
1057 <placement x="%center_x%" y="%row2_y%" placement="5"/>
1058 <text>%tw_text1%</text>
1059 </text>
1060
1061 <text style="text_m_accent">
1062 <placement x="%center_x%" y="%row3_y%" placement="5"/>
1063 <text>%tw_text2%</text>
1064 </text>
1065
1066 <text style="text_m">
1067 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1068 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1069 <text>%tw_text3%</text>
1070 </text>
1071
1072 <text style="text_m">
1073 <condition var1="tw_action" op="!=" var2="changefilesystem"/>
1074 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1075 <text>%tw_text4%</text>
1076 </text>
1077
1078 <text style="text_m_fail">
1079 <condition var1="tw_action" var2="changefilesystem"/>
1080 <placement x="%center_x%" y="%row5_y%" placement="5"/>
1081 <text>%tw_text3%</text>
1082 </text>
1083
1084 <text style="text_m_fail">
1085 <condition var1="tw_action" var2="changefilesystem"/>
1086 <placement x="%center_x%" y="%row6_y%" placement="5"/>
1087 <text>%tw_text4%</text>
1088 </text>
1089
1090 <text style="text_m">
1091 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001092 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001093 </text>
1094
1095 <slider>
1096 <text>%tw_slider_text%</text>
1097 <action function="page">action_page</action>
1098 </slider>
1099
1100 <action>
1101 <touch key="back"/>
1102 <actions>
1103 <action function="set">tw_clear_destination=%tw_back%</action>
1104 <action function="page">clear_vars</action>
1105 </actions>
1106 </action>
1107
1108 <action>
1109 <touch key="home"/>
1110 <action function="page">main</action>
1111 </action>
1112 </page>
1113
1114 <page name="action_page">
1115 <template name="page"/>
1116
1117 <template name="statusbar"/>
1118
1119 <text style="text_m">
1120 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1121 <text>%tw_action_text1% %tw_action_text2%</text>
1122 </text>
1123
1124 <template name="console"/>
1125
1126 <template name="progress_bar"/>
1127
1128 <button style="main_button_half_height">
1129 <condition var1="tw_has_cancel" var2="1"/>
1130 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001131 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001132 <action function="%tw_cancel_action%">%tw_cancel_param%</action>
1133 </button>
1134
1135 <action>
1136 <condition var1="tw_operation_state" var2="1"/>
1137 <actions>
1138 <action function="page">action_complete</action>
1139 </actions>
1140 </action>
1141
1142 <action>
1143 <condition var1="tw_has_action2" var2="0"/>
1144 <actions>
1145 <action function="%tw_action%">%tw_action_param%</action>
1146 </actions>
1147 </action>
1148
1149 <action>
1150 <condition var1="tw_has_action2" var2="1"/>
1151 <actions>
1152 <action function="%tw_action%">%tw_action_param%</action>
1153 <action function="%tw_action2%">%tw_action2_param%</action>
1154 </actions>
1155 </action>
1156 </page>
1157
1158 <page name="singleaction_page">
1159 <template name="page"/>
1160
1161 <template name="statusbar"/>
1162
1163 <text style="text_m">
1164 <placement x="%col1_x_left%" y="%row1_header_y%"/>
1165 <text>%tw_action_text1% %tw_action_text2%</text>
1166 </text>
1167
1168 <template name="console"/>
1169
1170 <template name="progress_bar"/>
1171
1172 <action>
1173 <condition var1="tw_operation_state" var2="1"/>
1174 <actions>
1175 <action function="set">tw_page_done=1</action>
1176 </actions>
1177 </action>
1178
1179 <action>
1180 <condition var1="tw_has_action2" var2="0"/>
1181 <actions>
1182 <action function="%tw_action%">%tw_action_param%</action>
1183 </actions>
1184 </action>
1185
1186 <action>
1187 <condition var1="tw_has_action2" var2="1"/>
1188 <actions>
1189 <action function="%tw_action%">%tw_action_param%</action>
1190 <action function="%tw_action2%">%tw_action2_param%</action>
1191 </actions>
1192 </action>
1193 </page>
1194
1195 <page name="action_complete">
1196 <template name="page"/>
1197
1198 <template name="statusbar"/>
1199
1200 <text style="text_m_fail">
1201 <condition var1="tw_operation_status" op="!=" var2="0"/>
1202 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001203 <text>%tw_complete_text1% {@failed=Failed}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001204 </text>
1205
1206 <text style="text_m">
1207 <condition var1="tw_operation_status" var2="0"/>
1208 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001209 <text>%tw_complete_text1% {@successful=Successful}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001210 </text>
1211
1212 <template name="console"/>
1213
1214 <button style="main_button_half_height">
1215 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001216 <text>{@back_btn=Back}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001217 <actions>
1218 <action function="set">tw_clear_destination=%tw_back%</action>
1219 <action function="page">clear_vars</action>
1220 </actions>
1221 </button>
1222
1223 <button style="main_button_half_height">
1224 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001225 <text>{@reboot_system_btn=Reboot System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001226 <actions>
1227 <action function="set">tw_back=main2</action>
Matt Mower908dd252016-05-25 02:26:50 -05001228 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01001229 </actions>
1230 </button>
1231
1232 <action>
1233 <touch key="home"/>
1234 <actions>
1235 <action function="set">tw_clear_destination=main2</action>
1236 <action function="page">clear_vars</action>
1237 </actions>
1238 </action>
1239
1240 <action>
1241 <touch key="back"/>
1242 <actions>
1243 <action function="set">tw_clear_destination=%tw_back%</action>
1244 <action function="page">clear_vars</action>
1245 </actions>
1246 </action>
1247 </page>
1248
1249 <page name="filecheck">
1250 <action>
1251 <action function="fileexists">%tw_filecheck%</action>
1252 </action>
1253
1254 <action>
1255 <conditions>
1256 <condition var1="tw_operation_state" var2="1"/>
1257 <condition var1="tw_operation_status" var2="0"/>
1258 </conditions>
1259 <actions>
1260 <action function="set">tw_fileexists=1</action>
1261 <action function="page">%tw_existpage%</action>
1262 </actions>
1263 </action>
1264
1265 <action>
1266 <conditions>
1267 <condition var1="tw_operation_state" var2="1"/>
1268 <condition var1="tw_operation_status" var2="1"/>
1269 </conditions>
1270 <actions>
1271 <action function="set">tw_fileexists=0</action>
1272 <action function="page">%tw_notexistpage%</action>
1273 </actions>
1274 </action>
1275 </page>
1276
1277 <page name="rebootcheck">
1278 <action>
1279 <condition var1="tw_backup_system_size" op="&gt;=" var2="%tw_min_system%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06001280 <action function="reboot">%tw_reboot_param%</action>
z31s1g28f0a922015-11-07 18:50:22 +01001281 </action>
1282
1283 <action>
1284 <condition var1="tw_backup_system_size" op="&lt;" var2="%tw_min_system%"/>
1285 <action function="page">confirm_action</action>
1286 </action>
1287 </page>
1288
1289 <page name="wipe_type1">
1290 <template name="page"/>
1291
1292 <template name="statusbar"/>
1293
1294 <text style="text_m">
1295 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001296 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001297 </text>
1298
1299 <button style="main_button_full_width">
1300 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001301 <text>{@factory_reset_btn=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001302 <action function="page">wipe</action>
1303 </button>
1304
1305 <button style="main_button_full_width">
1306 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001307 <text>{@advanced_wipe_btn=Advanced Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001308 <actions>
1309 <action function="set">partitionlisterror=0</action>
1310 <action function="page">advancedwipe</action>
1311 </actions>
1312 </button>
1313
1314 <button>
1315 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1316 <highlight color="%highlight_color%"/>
1317 <image resource="q_btn_arrow_right"/>
1318 <action function="page">wipe_type2</action>
1319 </button>
1320
1321 <action>
1322 <touch key="home"/>
1323 <action function="page">main</action>
1324 </action>
1325
1326 <action>
1327 <touch key="back"/>
1328 <action function="page">main</action>
1329 </action>
1330 </page>
1331
1332 <page name="wipe_type2">
1333 <template name="page"/>
1334
1335 <template name="statusbar"/>
1336
1337 <text style="text_m">
1338 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001339 <text>{@wipe_hdr=Wipe} &gt; {@select_type_hdr=Select Type}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001340 </text>
1341
1342 <button style="main_button_full_width">
1343 <condition var1="tw_has_data_media" var2="1"/>
1344 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001345 <text>{@format_data_btn=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001346 <action function="page">formatdata</action>
1347 </button>
1348
1349 <button style="main_button_full_width">
1350 <conditions>
1351 <condition var1="tw_is_encrypted" var2="1"/>
1352 <condition var1="tw_has_data_media" var2="0"/>
1353 </conditions>
1354 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001355 <text>{@wipe_enc_btn=Wipe Encryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001356 <actions>
1357 <action function="set">tw_back=wipe</action>
1358 <action function="set">tw_action=wipe</action>
1359 <action function="set">tw_action_param=DATAMEDIA</action>
1360 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001361 <action function="set">tw_text1={@wipe_enc_confirm=Wipe Encryption from Data?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001362 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001363 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1364 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
1365 <action function="set">tw_slider_text={@swipe_format_data_s= Format Data}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001366 <action function="page">confirm_action</action>
1367 </actions>
1368 </button>
1369
1370 <button style="main_button_full_width">
1371 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001372 <text>{@file_sys_opt=File System Options}</text><actions>
z31s1g28f0a922015-11-07 18:50:22 +01001373 <action function="set">partitionlisterror=0</action>
1374 <action function="page">partitionoptions_select</action>
1375 </actions>
1376 </button>
1377
1378 <button>
1379 <placement x="%col1_x_left%" y="%row11_y%"/>
1380 <highlight color="%highlight_color%"/>
1381 <image resource="q_btn_arrow_left"/>
1382 <action function="page">wipe_type1</action>
1383 </button>
1384
1385 <action>
1386 <touch key="home"/>
1387 <action function="page">main</action>
1388 </action>
1389
1390 <action>
1391 <touch key="back"/>
1392 <action function="page">main</action>
1393 </action>
1394 </page>
1395
1396 <page name="wipe">
1397 <template name="page"/>
1398
1399 <template name="statusbar"/>
1400
1401 <text style="text_m">
1402 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001403 <text>{@wipe_hdr=Wipe} &gt; {@factory_reset_hdr=Factory Reset}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001404 </text>
1405
1406 <text style="text_m_accent">
1407 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001408 <text>{@factory_reset1=Wipes Data, Cache, and Dalvik}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001409 </text>
1410
1411 <text style="text_m_accent">
z31s1g28f0a922015-11-07 18:50:22 +01001412 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Noah Jacobson5a79f672019-04-28 00:10:07 -04001413 <text>{@factory_reset5=(not including users/lockscreen)}</text>
1414 </text>
1415
1416 <text style="text_m_accent">
1417 <condition var1="tw_has_data_media" var2="1"/>
1418 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001419 <text>{@factory_reset2=(not including internal storage)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001420 </text>
1421
1422 <text style="text_m_accent">
1423 <conditions>
1424 <condition var1="tw_has_android_secure" var2="1"/>
1425 <condition var1="fileexists" var2="/and-sec"/>
1426 </conditions>
1427 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001428 <text>{@android_secure=Android Secure}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001429 </text>
1430
1431 <text style="text_m_accent">
1432 <condition var1="tw_has_sdext_partition" var2="1"/>
1433 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001434 <text>{@sdext=SD-EXT}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001435 </text>
1436
1437 <text style="text_m">
1438 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001439 <text>{@factory_reset3=Most of the time this is}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001440 </text>
1441
1442 <text style="text_m">
1443 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001444 <text>{@factory_reset4=the only wipe that you need.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001445 </text>
1446
1447 <text style="text_m">
1448 <placement x="%center_x%" y="%row9_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001449 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001450 </text>
1451
1452 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001453 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001454 <actions>
1455 <action function="set">tw_back=wipe</action>
1456 <action function="set">tw_action=wipe</action>
1457 <action function="set">tw_action_param=data</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001458 <action function="set">tw_action_text1={@factory_resetting=Factory Reset...}</action>
1459 <action function="set">tw_complete_text1={@factory_reset_complete=Factory Reset Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001460 <action function="page">action_page</action>
1461 </actions>
1462 </slider>
1463
1464 <action>
1465 <touch key="back"/>
1466 <action function="page">wipe_type1</action>
1467 </action>
1468
1469 <action>
1470 <touch key="home"/>
1471 <action function="page">main</action>
1472 </action>
1473 </page>
1474
1475 <page name="advancedwipe">
1476 <action>
1477 <action function="set">tw_wipe_list=</action>
1478 </action>
1479
1480 <template name="page"/>
1481
1482 <template name="statusbar"/>
1483
1484 <text style="text_m">
1485 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001486 <text>{@wipe_hdr=Wipe} &gt; {@advanced_wipe_hdr=Advanced Wipe} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001487 </text>
1488
1489 <partitionlist style="partitionlist_headerless_cb">
1490 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1491 <data name="tw_wipe_list"/>
1492 <listtype name="wipe"/>
1493 </partitionlist>
1494
1495 <fill color="%accent_color%">
1496 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1497 </fill>
1498
1499 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05001500 <text>{@swipe_wipe_s= Wipe}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001501 <actions>
1502 <action function="set">tw_back=advancedwipe</action>
1503 <action function="set">tw_action=wipe</action>
1504 <action function="set">tw_action_param=LIST</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001505 <action function="set">tw_text1={@wipe_sel_confirm=Wipe Selected Partition(s)?}</action>
1506 <action function="set">tw_action_text1={@wiping_part=Wiping Partition(s)...}</action>
1507 <action function="set">tw_complete_text1={@wipe_complete=Wipe Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001508 <action function="page">action_page</action>
1509 </actions>
1510 </slider>
1511
1512 <action>
1513 <touch key="home"/>
1514 <action function="page">main</action>
1515 </action>
1516
1517 <action>
1518 <touch key="back"/>
1519 <action function="page">wipe_type1</action>
1520 </action>
1521 </page>
1522
1523 <page name="formatdata">
1524 <template name="page"/>
1525
1526 <template name="statusbar"/>
1527
1528 <text style="text_m">
1529 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001530 <text>{@wipe_hdr=Wipe} &gt; {@format_data_hdr=Format Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001531 </text>
1532
1533 <text style="text_m_fail">
1534 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001535 <text>{@format_data_wtc1=Format Data will wipe all of your apps,}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001536 </text>
1537
1538 <text style="text_m_fail">
1539 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001540 <text>{@format_data_wtc2=backups and media. This cannot be undone.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001541 </text>
1542
1543 <text style="text_m">
1544 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001545 <text>{@yes_continue=Type yes to continue. Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001546 </text>
1547
1548 <input>
1549 <placement x="%col1_x_left%" y="%row5_y%" w="%content_width%" h="%input_height%"/>
1550 <text>%tw_confirm_formatdata%</text>
1551 <data name="tw_confirm_formatdata"/>
1552 <restrict minlen="3" maxlen="3" allow="yes"/>
1553 <action function="page">formatdata_confirm</action>
1554 </input>
1555
1556 <fill color="%accent_color%">
1557 <placement x="%col1_x_left%" y="row6_input_y" w="%content_width%" h="input_line_width"/>
1558 </fill>
1559
1560 <template name="keyboardtemplate"/>
1561
1562 <action>
1563 <touch key="home"/>
1564 <action function="page">main</action>
1565 </action>
1566
1567 <action>
1568 <touch key="back"/>
1569 <action function="page">wipe_type2</action>
1570 </action>
1571 </page>
1572
1573 <page name="formatdata_confirm">
1574 <action>
1575 <condition var1="tw_confirm_formatdata" op="=" var2="yes"/>
1576 <actions>
1577 <action function="set">tw_back=formatdata</action>
1578 <action function="set">tw_action=wipe</action>
1579 <action function="set">tw_action_param=DATAMEDIA</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001580 <action function="set">tw_action_text1={@formatting_data=Formatting Data...}</action>
1581 <action function="set">tw_complete_text1={@format_data_complete=Data Format Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001582 <action function="page">action_page</action>
1583 </actions>
1584 </action>
1585
1586 <action>
1587 <condition var1="tw_confirm_formatdata" op="!=" var2="yes"/>
1588 <action function="page">formatdata</action>
1589 </action>
1590 </page>
1591
1592 <page name="checkpartitionlist">
1593 <action>
1594 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1595 <actions>
1596 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001597 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001598 <action function="page">partitionoptions</action>
1599 </actions>
1600 </action>
1601
1602 <action>
1603 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1604 <actions>
1605 <action function="set">partitionlisterror=1</action>
z31s1g28f0a922015-11-07 18:50:22 +01001606 <action function="page">partitionoptions_select</action>
1607 </actions>
1608 </action>
1609 </page>
1610
1611 <page name="partitionoptions_select">
1612 <action>
1613 <action function="set">tw_wipe_list=</action>
1614 </action>
1615
1616 <template name="page"/>
1617
1618 <template name="statusbar"/>
1619
1620 <text style="text_m">
1621 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001622 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001623 </text>
1624
1625 <partitionlist style="partitionlist_headerless_cb">
1626 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
1627 <data name="tw_wipe_list"/>
1628 <listtype name="wipe"/>
1629 </partitionlist>
1630
1631 <fill color="%accent_color%">
1632 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
1633 </fill>
1634
z31s1g28f0a922015-11-07 18:50:22 +01001635 <text style="text_m_fail">
1636 <condition var1="partitionlisterror" var2="1"/>
1637 <placement x="%col1_x_left%" y="%row12_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001638 <text>{@invalid_part_sel=Invalid partition selection}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001639 </text>
1640
1641 <button>
1642 <placement x="%btn4_col4_x%" y="%row11_y%"/>
1643 <highlight color="%highlight_color%"/>
1644 <image resource="q_btn_arrow_right"/><actions>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001645 <action function="checkpartitionlist">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001646 <action function="page">checkpartitionlist</action>
1647 </actions>
1648 </button>
1649
1650 <action>
1651 <touch key="home"/>
1652 <action function="page">main</action>
1653 </action>
1654
1655 <action>
1656 <touch key="back"/>
1657 <action function="page">wipe_type2</action>
1658 </action>
1659 </page>
1660
1661 <page name="partitionoptions">
1662
1663 <template name="page"/>
1664
1665 <template name="statusbar"/>
1666
1667 <text style="text_m">
1668 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001669 <text>{@wipe_hdr=Wipe} &gt; {@file_sys_opt=File System Options} &gt; {@sel_act_hdr=Select Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001670 </text>
1671
1672 <text style="text_m_accent">
1673 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001674 <text>{@partition=Partition: %tw_partition_name%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001675 </text>
1676
1677 <text style="text_m_accent">
1678 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001679 <text>{@part_curr_fs=File system: %tw_partition_file_system%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001680 </text>
1681
1682 <text style="text_m">
1683 <condition var1="tw_partition_is_present" var2="1"/>
1684 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001685 <text>{@part_present_yes=Present: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001686 </text>
1687
1688 <text style="text_m">
1689 <condition var1="tw_partition_is_present" var2="0"/>
1690 <placement x="%col1_x_left%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001691 <text>{@part_present_no=Present: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001692 </text>
1693
1694 <text style="text_m">
1695 <condition var1="tw_partition_removable" var2="1"/>
1696 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001697 <text>{@part_removable_yes=Removable: Yes}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001698 </text>
1699
1700 <text style="text_m">
1701 <condition var1="tw_partition_removable" var2="0"/>
1702 <placement x="%col1_x_right%" y="%row2a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001703 <text>{@part_removable_no=Removable: No}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001704 </text>
1705
1706 <text style="text_m">
1707 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001708 <text>{@part_size=Size: %tw_partition_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001709 </text>
1710
1711 <text style="text_m">
1712 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001713 <text>{@part_used=Used: %tw_partition_used%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001714 </text>
1715
1716 <text style="text_m">
1717 <placement x="%col1_x_left%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001718 <text>{@part_free=Free: %tw_partition_free%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001719 </text>
1720
1721 <text style="text_m">
1722 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001723 <text>{@part_backup_size=Backup Size: %tw_partition_backup_size%MB}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001724 </text>
1725
1726 <button style="main_button">
1727 <condition var1="tw_partition_can_resize" op="=" var2="1"/>
1728 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001729 <text>{@resize_btn_s=Resize}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001730 <actions>
1731 <action function="set">tw_back=partitionoptions</action>
1732 <action function="set">tw_action=resize</action>
1733 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1734 <action function="set">tw_has_action2=1</action>
1735 <action function="set">tw_action2=getpartitiondetails</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001736 <action function="set">tw_action2_param=tw_wipe_list</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001737 <action function="set">tw_text1={@resize_confirm=Resize %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001738 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001739 <action function="set">tw_action_text1={@resizing=Resizing...}</action>
1740 <action function="set">tw_complete_text1={@resize_complete=Resize Complete}</action>
1741 <action function="set">tw_slider_text={@swipe_resize_s= Resize}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001742 <action function="page">confirm_action</action>
1743 </actions>
1744 </button>
1745
1746 <button style="main_button">
1747 <condition var1="tw_partition_can_repair" op="=" var2="1"/>
1748 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001749 <text>{@repair_btn_s=Repair}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001750 <actions>
1751 <action function="set">tw_back=partitionoptions</action>
1752 <action function="set">tw_action=repair</action>
1753 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1754 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001755 <action function="set">tw_text1={@repair_confirm=Repair %tw_partition_name%?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001756 <action function="set">tw_text2=</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001757 <action function="set">tw_action_text1={@repairing=Repairing...}</action>
1758 <action function="set">tw_complete_text1={@repair_complete=Repair Complete}</action>
1759 <action function="set">tw_slider_text={@swipe_repair_s= Repair}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001760 <action function="page">confirm_action</action>
1761 </actions>
1762 </button>
1763
1764 <button>
1765 <placement x="%col1_x_left%" y="%row11_y%"/>
1766 <highlight color="%highlight_color%"/>
1767 <image resource="q_btn_arrow_left"/>
1768 <action function="page">partitionoptions_select</action>
1769 </button>
1770
1771 <button style="main_button">
1772 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001773 <text>{@change_fs_btn_s=Change}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001774 <action function="page">selectfilesystem</action>
1775 </button>
1776
1777 <action>
1778 <touch key="home"/>
1779 <action function="page">main</action>
1780 </action>
1781
1782 <action>
1783 <touch key="back"/>
1784 <action function="page">partitionoptions_select</action>
1785 </action>
1786 </page>
1787
1788 <page name="refreshfilesystem">
1789 <action>
1790 <condition var1="tw_check_partition_list" op="=" var2="1"/>
1791 <actions>
1792 <action function="set">partitionlisterror=0</action>
Ethan Yonker483e9f42016-01-11 22:21:18 -06001793 <action function="getpartitiondetails">tw_wipe_list</action>
z31s1g28f0a922015-11-07 18:50:22 +01001794 <action function="page">selectfilesystem</action>
1795 </actions>
1796 </action>
1797
1798 <action>
1799 <condition var1="tw_check_partition_list" op="!=" var2="1"/>
1800 <actions>
1801 <action function="set">partitionlisterror=1</action>
1802 <action function="set">tw_wipe_list=</action>
1803 <action function="page">advancedwipe</action>
1804 </actions>
1805 </action>
1806 </page>
1807
1808 <page name="selectfilesystem">
1809 <template name="page"/>
1810
1811 <template name="statusbar"/>
1812
1813 <text style="text_m">
1814 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001815 <text>{@change_fs_for_hdr_s=Partition: %tw_partition_name% &gt; Select File System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001816 </text>
1817
1818 <button style="main_button">
1819 <condition var1="tw_partition_ext" op="=" var2="1"/>
1820 <placement x="%col1_x_left%" y="%row1_y%"/>
1821 <text>EXT2</text>
1822 <actions>
1823 <action function="set">tw_back=refreshfilesystem</action>
1824 <action function="set">tw_action=changefilesystem</action>
1825 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1826 <action function="set">tw_action_new_file_system=ext2</action>
1827 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001828 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1829 <action function="set">tw_text2=EXT2</action>
1830 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1831 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1832 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1833 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1834 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001835 <action function="page">confirm_action</action>
1836 </actions>
1837 </button>
1838
1839 <button style="main_button">
1840 <condition var1="tw_partition_ext" op="=" var2="1"/>
1841 <placement x="%col1_x_left%" y="%row6_y%"/>
1842 <text>EXT3</text>
1843 <actions>
1844 <action function="set">tw_back=refreshfilesystem</action>
1845 <action function="set">tw_action=changefilesystem</action>
1846 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1847 <action function="set">tw_action_new_file_system=ext3</action>
1848 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001849 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1850 <action function="set">tw_text2=EXT3</action>
1851 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1852 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1853 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1854 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1855 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001856 <action function="page">confirm_action</action>
1857 </actions>
1858 </button>
1859
1860 <button style="main_button">
1861 <condition var1="tw_partition_ext" op="=" var2="1"/>
1862 <placement x="%col1_x_left%" y="%row11_y%"/>
1863 <text>EXT4</text>
1864 <actions>
1865 <action function="set">tw_back=refreshfilesystem</action>
1866 <action function="set">tw_action=changefilesystem</action>
1867 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1868 <action function="set">tw_action_new_file_system=ext4</action>
1869 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001870 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1871 <action function="set">tw_text2=EXT4</action>
1872 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1873 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1874 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1875 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1876 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001877 <action function="page">confirm_action</action>
1878 </actions>
1879 </button>
1880
1881 <button style="main_button">
1882 <condition var1="tw_partition_vfat" op="=" var2="1"/>
1883 <placement x="%col1_x_right%" y="%row1_y%"/>
1884 <text>FAT</text>
1885 <actions>
1886 <action function="set">tw_back=refreshfilesystem</action>
1887 <action function="set">tw_action=changefilesystem</action>
1888 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1889 <action function="set">tw_action_new_file_system=vfat</action>
1890 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001891 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1892 <action function="set">tw_text2=FAT</action>
1893 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1894 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1895 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1896 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1897 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001898 <action function="page">confirm_action</action>
1899 </actions>
1900 </button>
1901
1902 <button style="main_button">
1903 <condition var1="tw_partition_exfat" op="=" var2="1"/>
1904 <placement x="%col1_x_right%" y="%row6_y%"/>
1905 <text>exFAT</text>
1906 <actions>
1907 <action function="set">tw_back=refreshfilesystem</action>
1908 <action function="set">tw_action=changefilesystem</action>
1909 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1910 <action function="set">tw_action_new_file_system=exfat</action>
1911 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001912 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1913 <action function="set">tw_text2=exFAT</action>
1914 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1915 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1916 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1917 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1918 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001919 <action function="page">confirm_action</action>
1920 </actions>
1921 </button>
1922
1923 <button style="main_button">
1924 <condition var1="tw_partition_f2fs" op="=" var2="1"/>
1925 <placement x="%col1_x_right%" y="%row11_y%"/>
1926 <text>F2FS</text>
1927 <actions>
1928 <action function="set">tw_back=refreshfilesystem</action>
1929 <action function="set">tw_action=changefilesystem</action>
1930 <action function="set">tw_action_param=%tw_partition_mount_point%</action>
1931 <action function="set">tw_action_new_file_system=f2fs</action>
1932 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05001933 <action function="set">tw_text1={@change_fs_confirm=Change %tw_partition_name%?}</action>
1934 <action function="set">tw_text2=F2FS</action>
1935 <action function="set">tw_text3={@change_fs_warn1=Some ROMs or kernels may not support some}</action>
1936 <action function="set">tw_text4={@change_fs_warn2=file systems. Proceed with caution!}</action>
1937 <action function="set">tw_action_text1={@formatting=Formatting...}</action>
1938 <action function="set">tw_complete_text1={@format_complete=Format Complete}</action>
1939 <action function="set">tw_slider_text={@swipe_change_s= Change}</action>
z31s1g28f0a922015-11-07 18:50:22 +01001940 <action function="page">confirm_action</action>
1941 </actions>
1942 </button>
1943
1944 <action>
1945 <touch key="home"/>
1946 <action function="page">main</action>
1947 </action>
1948
1949 <action>
1950 <touch key="back"/>
1951 <action function="page">partitionoptions</action>
1952 </action>
1953 </page>
1954
bigbiffce8f83c2015-12-12 18:30:21 -05001955 <page name="backup">
z31s1g28f0a922015-11-07 18:50:22 +01001956 <template name="page"/>
1957
Noah Jacobson3ad80f42020-07-21 01:28:22 -04001958 <action>
1959 <conditions>
1960 <condition var1="tw_is_fbe" var2="1"/>
1961 <condition var1="tw_all_users_decrypted" var2="0"/>
1962 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
1963 </conditions>
1964 <actions>
1965 <action function="set">tw_multiuser_warning_destination=backup</action>
1966 <action function="page">multiuser_warning</action>
1967 </actions>
1968 </action>
1969
z31s1g28f0a922015-11-07 18:50:22 +01001970 <template name="statusbar"/>
1971
1972 <text style="text_m">
1973 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05001974 <text>{@backup_hdr=Backup} &gt; {@select_storage_hdr=Select Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01001975 </text>
1976
1977 <partitionlist style="partitionlist_headerless_rb">
1978 <data name="tw_storage_path"/>
1979 <listtype name="storage"/>
1980 </partitionlist>
1981
1982 <button>
1983 <placement x="%btn4_col2_x%" y="%row11_y%"/>
1984 <highlight color="%highlight_color%"/>
1985 <image resource="q_btn_refresh"/>
1986 <actions>
1987 <action function="refreshsizes"/>
bigbiffce8f83c2015-12-12 18:30:21 -05001988 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01001989 </actions>
1990 </button>
1991
1992 <button>
1993 <condition var1="tw_back" var2="backup_confirm"/>
1994 <placement x="%btn4_col3_x%" y="%row11_y%"/>
1995 <highlight color="%highlight_color%"/>
1996 <image resource="q_btn_accept"/>
1997 <action function="page">backup_confirm</action>
1998 </button>
1999
2000 <button>
2001 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2002 <highlight color="%highlight_color%"/>
2003 <image resource="q_btn_arrow_right"/>
2004 <actions>
bigbiffce8f83c2015-12-12 18:30:21 -05002005 <action function="set">tw_back=backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002006 <action function="page">backup_selectpartitions</action>
2007 </actions>
2008 </button>
2009
2010 <action>
2011 <touch key="home"/>
2012 <action function="page">main</action>
2013 </action>
2014
2015 <action>
2016 <touch key="back"/>
2017 <action function="page">%tw_back%</action>
2018 </action>
2019
2020 <action>
2021 <touch key="power+voldown"/>
2022 <action function="screenshot"/>
2023 </action>
2024 </page>
2025
2026 <page name="backup_selectpartitions">
2027 <template name="page"/>
2028
2029 <template name="statusbar"/>
2030
2031 <text style="text_m">
2032 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002033 <text>{@backup_hdr=Backup} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002034 </text>
2035
2036 <partitionlist style="partitionlist_headerless_cb">
2037 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2038 <data name="tw_backup_list"/>
2039 <listtype name="backup"/>
2040 </partitionlist>
2041
2042 <fill color="%accent_color%">
2043 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2044 </fill>
2045
2046 <button>
2047 <placement x="%col1_x_left%" y="%row11_y%"/>
2048 <highlight color="%highlight_color%"/>
2049 <image resource="q_btn_arrow_left"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002050 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002051 </button>
2052
2053 <button>
2054 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2055 <highlight color="%highlight_color%"/>
2056 <image resource="q_btn_refresh"/>
2057 <action function="page">backup_selectpartitions</action>
2058 </button>
2059
2060 <button>
2061 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2062 <highlight color="%highlight_color%"/>
2063 <image resource="q_btn_accept"/>
2064 <action function="page">backup_confirm</action>
2065 </button>
2066
2067 <button>
2068 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2069 <highlight color="%highlight_color%"/>
2070 <image resource="q_btn_arrow_right"/>
2071 <actions>
2072 <action function="set">tw_back=backup_selectpartitions</action>
2073 <action function="page">backup_options</action>
2074 </actions>
2075 </button>
2076
2077 <action>
2078 <touch key="home"/>
2079 <action function="page">main</action>
2080 </action>
2081
2082 <action>
2083 <touch key="back"/>
2084 <action function="page">%tw_back%</action>
2085 </action>
2086
2087 <action>
2088 <touch key="power+voldown"/>
2089 <action function="screenshot"/>
2090 </action>
2091 </page>
2092
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002093 <page name="multiuser_warning">
2094 <template name="page"/>
2095
2096 <text style="text_m">
2097 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2098 <text>{@multiuser_warning_hdr=Multiuser Warning}</text>
2099 </text>
2100
2101 <text style="text_m_fail">
2102 <placement x="%center_x%" y="%row6_y%" placement="5"/>
2103 <text>{@multiuser_warning1=Not all users decrypted!}</text>
2104 </text>
2105
2106 <text style="text_m_fail">
2107 <placement x="%center_x%" y="%row7_y%" placement="5"/>
2108 <text>{@multiuser_warning2=Backup/restore operations may fail!}</text>
2109 </text>
2110
2111 <button style="main_button_full_width">
2112 <placement x="%col1_x_left%" y="%row6_y%"/>
2113 <text>{@decrypt_users=Decrypt Users}</text>
2114 <action function="page">decrypt_users</action>
2115 </button>
2116
2117 <slider>
2118 <text>{@multiuser_warning_accept=Continue Anyway}</text>
2119 <actions>
2120 <action function="set">tw_multiuser_warning_accepted=1</action>
2121 <action function="page">%tw_multiuser_warning_destination%</action>
2122 </actions>
2123 </slider>
2124
2125 <action>
2126 <touch key="home"/>
2127 <action function="page">main</action>
2128 </action>
2129
2130 <action>
2131 <touch key="back"/>
2132 <action function="page">main</action>
2133 </action>
2134 </page>
2135
z31s1g28f0a922015-11-07 18:50:22 +01002136 <page name="backup_options">
2137 <template name="page"/>
2138
2139 <template name="statusbar"/>
2140
2141 <text style="text_m">
2142 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002143 <text>{@backup_hdr=Backup} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002144 </text>
2145
2146 <listbox style="scrolllist">
2147 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002148 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002149 <data variable="tw_use_compression"/>
2150 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002151 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2152 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002153 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002154 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002155 <data variable="tw_disable_free_space"/>
2156 </listitem>
2157 </listbox>
2158
2159 <button>
2160 <placement x="%col1_x_left%" y="%row11_y%"/>
2161 <highlight color="%highlight_color%"/>
2162 <image resource="q_btn_arrow_left"/>
2163 <action function="page">backup_selectpartitions</action>
2164 </button>
2165
2166 <button>
2167 <conditions>
2168 <condition var1="tw_include_encrypted_backup" var2="1"/>
2169 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002170 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002171 </conditions>
2172 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2173 <highlight color="%highlight_color%"/>
2174 <image resource="q_btn_encryption_dis"/>
2175 <actions>
2176 <action function="set">tw_password_not_match=0</action>
2177 <action function="set">tw_back=backup_options</action>
2178 <action function="page">backupencryption</action>
2179 </actions>
2180 </button>
2181
2182 <button>
2183 <conditions>
2184 <condition var1="tw_include_encrypted_backup" var2="1"/>
2185 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002186 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002187 </conditions>
2188 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2189 <highlight color="%highlight_color%"/>
2190 <image resource="q_btn_encryption_en"/>
2191 <actions>
2192 <action function="set">tw_password_not_match=0</action>
2193 <action function="set">tw_back=backup_options</action>
2194 <action function="page">backupencryption</action>
2195 </actions>
2196 </button>
2197
2198 <button>
2199 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2200 <highlight color="%highlight_color%"/>
2201 <image resource="q_btn_accept_transp"/>
2202 <actions>
2203 <action function="set">tw_back=backup_options</action>
2204 <action function="page">backup_confirm</action>
2205 </actions>
2206 </button>
2207
2208 <action>
2209 <touch key="home"/>
2210 <action function="page">main</action>
2211 </action>
2212
2213 <action>
2214 <touch key="back"/>
2215 <action function="page">%tw_back%</action>
2216 </action>
2217
2218 <action>
2219 <touch key="power+voldown"/>
2220 <action function="screenshot"/>
2221 </action>
2222 </page>
2223
2224 <page name="backup_confirm">
2225 <template name="page"/>
2226
2227 <template name="statusbar"/>
2228
2229 <text style="text_m">
2230 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker090751a2016-01-23 16:31:41 -06002231 <text>{@backup_hdr=Backup} &gt; {@backup_confirm_hdr=Confirm Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002232 </text>
2233
2234 <text style="text_m_accent">
2235 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002236 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002237 </text>
2238
2239 <text style="text_m">
2240 <placement x="%col1_x_left%" y="%row2_y%"/>
2241 <text>%tw_backup_name%</text>
2242 </text>
2243
2244 <fill color="%accent_color%">
2245 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_half_width%" h="input_line_width" placement="1"/>
2246 </fill>
2247
2248 <button>
2249 <fill color="%transparent%"/>
2250 <placement x="0" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2251 <actions>
2252 <action function="set">tw_back=backup_confirm</action>
2253 <action function="set">tw_fileexists=0</action>
2254 <action function="page">backup_name1</action>
2255 </actions>
2256 </button>
2257
2258 <fill color="%background_color%">
2259 <placement x="%col1_x_left_negative%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2260 </fill>
2261
2262 <text style="text_m_accent">
2263 <placement x="%col1_x_left%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002264 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002265 </text>
2266
2267 <partitionlist style="partitionlist_summary">
2268 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
2269 <data name="tw_backup_list"/>
2270 <listtype name="backup"/>
2271 </partitionlist>
2272
2273 <button>
2274 <fill color="%transparent%"/>
2275 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
2276 <actions>
2277 <action function="set">tw_back=backup_confirm</action>
2278 <action function="page">backup_selectpartitions</action>
2279 </actions>
2280 </button>
2281
2282 <text style="text_m_accent">
2283 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002284 <text>{@storage=Storage:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002285 </text>
2286
2287 <text style="text_m">
2288 <placement x="%col1_x_right%" y="%row2_y%"/>
2289 <text>%tw_storage_display_name%</text>
2290 </text>
2291
2292 <button>
2293 <fill color="%transparent%"/>
2294 <placement x="%center_x%" y="%row2_header_y%" w="%screen_half_width%" h="48"/>
2295 <actions>
2296 <action function="set">tw_back=backup_confirm</action>
bigbiffce8f83c2015-12-12 18:30:21 -05002297 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002298 </actions>
2299 </button>
2300
2301 <text style="text_m_accent">
2302 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002303 <text>{@encryption=Encryption:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002304 </text>
2305
2306 <text style="text_m">
2307 <conditions>
2308 <condition var1="tw_include_encrypted_backup" var2="1"/>
2309 <condition var1="tw_encrypt_backup" var2="0"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002310 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002311 </conditions>
2312 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002313 <text>{@disabled=Disabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002314 </text>
2315
2316 <text style="text_m">
2317 <conditions>
2318 <condition var1="tw_include_encrypted_backup" var2="1"/>
2319 <condition var1="tw_encrypt_backup" var2="1"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002320 <condition var1="tw_enable_adb_backup" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01002321 </conditions>
2322 <placement x="%col1_x_right%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002323 <text>{@enabled=Enabled}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002324 </text>
2325
2326 <button>
2327 <fill color="%transparent%"/>
2328 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="48"/>
2329 <actions>
2330 <action function="set">tw_back=backup_confirm</action>
2331 <action function="page">backupencryption</action>
2332 </actions>
2333 </button>
2334
2335 <listbox style="listbox_options">
2336 <placement x="%col1_x_right%" y="%row7_y%" w="%content_half_width%" h="80"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002337 <listitem name="{@enable_backup_comp_chk=Enable compression}">
z31s1g28f0a922015-11-07 18:50:22 +01002338 <data variable="tw_use_compression"/>
2339 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002340 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
2341 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01002342 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05002343 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
z31s1g28f0a922015-11-07 18:50:22 +01002344 <data variable="tw_disable_free_space"/>
2345 </listitem>
2346 </listbox>
2347
2348 <text style="text_m_accent">
2349 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002350 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002351 </text>
2352
2353 <button>
2354 <fill color="%transparent%"/>
2355 <placement x="%center_x%" y="%row6_y%" w="%screen_half_width%" h="64"/>
2356 <actions>
2357 <action function="set">tw_back=backup_confirm</action>
2358 <action function="page">backup_options</action>
2359 </actions>
2360 </button>
2361
2362 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05002363 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002364 <action function="page">backup_run</action>
2365 </slider>
2366
2367 <action>
2368 <touch key="home"/>
2369 <action function="page">main</action>
2370 </action>
2371
2372 <action>
2373 <touch key="back"/>
bigbiffce8f83c2015-12-12 18:30:21 -05002374 <action function="page">backup</action>
z31s1g28f0a922015-11-07 18:50:22 +01002375 </action>
2376 </page>
2377
2378 <page name="backup_name1">
2379 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002380 <condition var1="tw_backup_name" op="=" var2="{@auto_generate=(Auto Generate)}"/>
z31s1g28f0a922015-11-07 18:50:22 +01002381 <action function="generatebackupname"/>
2382 </action>
2383
2384 <action>
2385 <action function="page">backup_name2</action>
2386 </action>
2387 </page>
2388
2389 <page name="backup_name2">
2390 <template name="page"/>
2391
2392 <template name="statusbar"/>
2393
2394 <text style="text_m">
2395 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002396 <text>{@backup_hdr=Backup} &gt; {@backup_name_hdr=Set Backup Name}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002397 </text>
2398
2399 <text style="text_m_accent">
2400 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002401 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002402 </text>
2403
2404 <input>
2405 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2406 <text>%tw_backup_name%</text>
2407 <data name="tw_backup_name"/>
2408 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
2409 <actions>
2410 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
2411 <action function="set">tw_existpage=backup_name2</action>
2412 <action function="set">tw_notexistpage=backup_confirm</action>
2413 <action function="page">filecheck</action>
2414 </actions>
2415 </input>
2416
2417 <fill color="%accent_color%">
2418 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2419 </fill>
2420
2421 <fill color="%text_fail_color%">
2422 <condition var1="tw_fileexists" var2="1"/>
2423 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2424 </fill>
2425
2426 <text style="text_m_fail">
2427 <condition var1="tw_fileexists" var2="1"/>
2428 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002429 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002430 </text>
2431
2432 <button style="main_button_half_height">
2433 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002434 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002435 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002436 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002437 <action function="page">backup_confirm</action>
2438 </actions>
2439 </button>
2440
2441 <button style="main_button_half_height">
2442 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002443 <text>{@append_date_btn=Append Date}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002444 <action function="appenddatetobackupname"/>
2445 </button>
2446
2447 <template name="keyboardtemplate"/>
2448
2449 <action>
2450 <touch key="home"/>
2451 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002452 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002453 <action function="page">main</action>
2454 </actions>
2455 </action>
2456
2457 <action>
2458 <touch key="back"/>
2459 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002460 <action function="set">tw_backup_name={@auto_generate=(Auto Generate)}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002461 <action function="page">backup_confirm</action>
2462 </actions>
2463 </action>
2464 </page>
2465
2466 <page name="backupencryption">
2467 <template name="page"/>
2468
2469 <template name="statusbar"/>
2470
2471 <text style="text_m">
2472 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002473 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002474 </text>
2475
2476 <text style="text_m_accent">
2477 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002478 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002479 </text>
2480
2481 <input>
2482 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2483 <text>%tw_backup_encrypt_display%</text>
2484 <data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display"/>
2485 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2486 <action function="page">backupencryption2</action>
2487 </input>
2488
2489 <fill color="%accent_color%">
2490 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2491 </fill>
2492
2493 <fill color="%text_fail_color%">
2494 <condition var1="tw_password_not_match" var2="1"/>
2495 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2496 </fill>
2497
2498 <text style="text_m_fail">
2499 <condition var1="tw_password_not_match" var2="1"/>
2500 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002501 <text>{@pass_not_match=Passwords do not match!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002502 </text>
2503
2504 <button style="main_button_half_height">
2505 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002506 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002507 <actions>
2508 <action function="set">tw_encrypt_backup=0</action>
2509 <action function="set">tw_backup_password=</action>
2510 <action function="set">tw_backup_password2=</action>
2511 <action function="set">tw_backup_encrypt_display=</action>
2512 <action function="set">tw_backup_encrypt_display2=</action>
2513 <action function="page">%tw_back%</action>
2514 </actions>
2515 </button>
2516
2517 <template name="keyboardtemplate"/>
2518
2519 <action>
2520 <touch key="home"/>
2521 <action function="page">main</action>
2522 </action>
2523
2524 <action>
2525 <touch key="back"/>
2526 <action function="page">%tw_back%</action>
2527 </action>
2528 </page>
2529
2530 <page name="backupencryption2">
2531 <template name="page"/>
2532
2533 <template name="statusbar"/>
2534
2535 <text style="text_m">
2536 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002537 <text>{@backup_hdr=Backup} &gt; {@encrypt_backup=Encrypt your Backup?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002538 </text>
2539
2540 <text style="text_m_accent">
2541 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002542 <text>{@enter_pass2=Enter Password again:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002543 </text>
2544
2545 <input>
2546 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2547 <text>%tw_backup_encrypt_display2%</text>
2548 <data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2"/>
2549 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2550 <action function="page">checkbackuppassword</action>
2551 </input>
2552
2553 <fill color="%accent_color%">
2554 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2555 </fill>
2556
2557 <button style="main_button_half_height">
2558 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002559 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002560 <actions>
2561 <action function="set">tw_encrypt_backup=0</action>
2562 <action function="set">tw_backup_password=</action>
2563 <action function="set">tw_backup_password2=</action>
2564 <action function="set">tw_backup_encrypt_display=</action>
2565 <action function="set">tw_backup_encrypt_display2=</action>
2566 <action function="page">%tw_back%</action>
2567 </actions>
2568 </button>
2569
2570 <template name="keyboardtemplate"/>
2571
2572 <action>
2573 <touch key="home"/>
2574 <action function="page">main</action>
2575 </action>
2576
2577 <action>
2578 <touch key="back"/>
2579 <action function="page">%tw_back%</action>
2580 </action>
2581 </page>
2582
2583 <page name="checkbackuppassword">
2584 <action>
2585 <condition var1="tw_backup_password2" var2="tw_backup_password"/>
2586 <actions>
2587 <action function="set">tw_encrypt_backup=1</action>
2588 <action function="page">%tw_back%</action>
2589 </actions>
2590 </action>
2591
2592 <action>
2593 <condition var1="tw_backup_password2" op="!=" var2="tw_backup_password"/>
2594 <actions>
2595 <action function="set">tw_encrypt_backup=0</action>
2596 <action function="set">tw_password_not_match=1</action>
2597 <action function="set">tw_backup_password=</action>
2598 <action function="set">tw_backup_password2=</action>
2599 <action function="set">tw_backup_encrypt_display=</action>
2600 <action function="set">tw_backup_encrypt_display2=</action>
2601 <action function="page">backupencryption</action>
2602 </actions>
2603 </action>
2604 </page>
2605
2606 <page name="backup_run">
2607 <template name="page"/>
2608
2609 <template name="statusbar"/>
2610
2611 <text style="text_m">
2612 <placement x="%col1_x_left%" y="%row1_header_y%"/>
2613 <text>%tw_operation% %tw_partition%</text>
2614 </text>
2615
2616 <template name="console"/>
2617
2618 <template name="progress_bar"/>
2619
2620 <text style="text_m">
2621 <placement x="%indent%" y="%row13a_y%"/>
2622 <text>%tw_file_progress%</text>
2623 </text>
2624
2625 <text style="text_m">
2626 <placement x="%indent%" y="%row14a_y%"/>
2627 <text>%tw_size_progress%</text>
2628 </text>
2629
2630 <button style="main_button_half_height">
2631 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002632 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002633 <action function="cancelbackup"/>
2634 </button>
2635
2636 <action>
2637 <action function="nandroid">backup</action>
2638 </action>
2639
2640 <action>
2641 <condition var1="tw_operation_state" var2="1"/>
2642 <condition var1="tw_cancel_backup" var2="0"/>
2643 <actions>
2644 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002645 <action function="set">tw_complete_text1={@backup_complete=Backup Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002646 <action function="set">tw_show_reboot=1</action>
2647 <action function="page">action_complete</action>
2648 </actions>
2649 </action>
2650
2651 <action>
2652 <condition var1="tw_operation_state" var2="1"/>
2653 <condition var1="tw_cancel_backup" var2="1"/>
2654 <actions>
2655 <action function="set">tw_back=backup_selectpartitions</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002656 <action function="set">tw_complete_text1={@backup_cancel=Backup Cancelled}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002657 <action function="set">tw_show_reboot=1</action>
2658 <action function="page">action_complete</action>
2659 </actions>
2660 </action>
2661 </page>
2662
2663 <page name="restore">
2664 <template name="page"/>
2665
Noah Jacobson3ad80f42020-07-21 01:28:22 -04002666 <action>
2667 <conditions>
2668 <condition var1="tw_is_fbe" var2="1"/>
2669 <condition var1="tw_all_users_decrypted" var2="0"/>
2670 <condition var1="tw_multiuser_warning_accepted" op="!=" var2="1"/>
2671 </conditions>
2672 <actions>
2673 <action function="set">tw_multiuser_warning_destination=restore</action>
2674 <action function="page">multiuser_warning</action>
2675 </actions>
2676 </action>
2677
z31s1g28f0a922015-11-07 18:50:22 +01002678 <template name="statusbar"/>
2679
2680 <text style="text_m">
2681 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002682 <text>{@restore_hdr=Restore} &gt; {@sel_backup_hdr=Select Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002683 </text>
2684
2685 <fileselector>
2686 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
2687 <text>%tw_storage_display_name%</text>
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002688 <filter folders="1" files="1" nav="0" extn=".ab"/>
z31s1g28f0a922015-11-07 18:50:22 +01002689 <path name="tw_backups_folder"/>
2690 <data name="tw_restore" default=""/>
2691 <selection name="tw_restore_name"/>
2692 </fileselector>
2693
2694 <button>
2695 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2696 <highlight color="%highlight_color%"/>
2697 <image resource="q_btn_storage"/>
2698 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05002699 <action function="set">tw_storagetext={@restore_btn=Restore} &gt; {@select_storage_btn=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002700 <action function="set">tw_back=restore</action>
2701 <action function="page">select_storage</action>
2702 </actions>
2703 </button>
2704
2705 <action>
2706 <condition var1="tw_restore" op="modified"/>
2707 <actions>
2708 <action function="readBackup"/>
2709 <action function="set">tw_back=restore</action>
2710 <action function="page">restore_read</action>
2711 </actions>
2712 </action>
2713
2714 <action>
2715 <touch key="home"/>
2716 <action function="page">main</action>
2717 </action>
2718
2719 <action>
2720 <touch key="back"/>
2721 <action function="page">main</action>
2722 </action>
2723 </page>
2724
2725 <page name="restore_read">
2726 <action>
2727 <condition var1="tw_restore_encrypted" var2="1"/>
2728 <actions>
2729 <action function="set">tw_password_fail=0</action>
2730 <action function="page">restore_decrypt</action>
2731 </actions>
2732 </action>
2733
2734 <action>
2735 <condition var1="tw_restore_encrypted" var2="0"/>
2736 <actions>
2737 <action function="page">restore_select</action>
2738 </actions>
2739 </action>
2740 </page>
2741
2742 <page name="restore_decrypt">
2743 <template name="page"/>
2744
2745 <template name="statusbar"/>
2746
2747 <text style="text_m">
2748 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002749 <text>{@restore_hdr=Restore} &gt; {@restore_enc_backup_hdr=Encrypted Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002750 </text>
2751
2752 <text style="text_m_accent">
2753 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002754 <text>{@enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002755 </text>
2756
2757 <input>
2758 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
2759 <text>%tw_restore_display%</text>
2760 <data name="tw_restore_password" mask="*" maskvariable="tw_restore_display"/>
2761 <restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_"/>
2762 <action function="page">try_restore_decrypt</action>
2763 </input>
2764
2765 <fill color="%accent_color%">
2766 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
2767 </fill>
2768
2769 <fill color="%text_fail_color%">
2770 <condition var1="tw_password_fail" var2="1"/>
2771 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
2772 </fill>
2773
2774 <text style="text_m_fail">
2775 <condition var1="tw_password_fail" var2="1"/>
2776 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002777 <text>{@restore_dec_fail=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002778 </text>
2779
2780 <button style="main_button_half_height">
2781 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002782 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002783 <actions>
2784 <action function="set">tw_page_done=1</action>
2785 <action function="page">restore</action>
2786 </actions>
2787 </button>
2788
2789 <button style="main_button_half_height">
2790 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002791 <text>{@del_backup_btn=Delete Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002792 <actions>
2793 <action function="set">tw_back=restore</action>
2794 <action function="set">tw_action=cmd</action>
2795 <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 -05002796 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
2797 <action function="set">tw_text2=%tw_restore_name%</action>
2798 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2799 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2800 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2801 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002802 <action function="page">confirm_action</action>
2803 </actions>
2804 </button>
2805
2806 <template name="keyboardtemplate"/>
2807
2808 <action>
2809 <touch key="home"/>
2810 <action function="page">main</action>
2811 </action>
2812
2813 <action>
2814 <touch key="back"/>
2815 <action function="page">restore</action>
2816 </action>
2817 </page>
2818
2819 <page name="try_restore_decrypt">
2820 <template name="page"/>
2821
2822 <template name="statusbar"/>
2823
2824 <text style="text_m">
2825 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002826 <text>{@restore_hdr=Restore} &gt; {@restore_try_decrypt_s=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002827 </text>
2828
2829 <template name="console"/>
2830
2831 <template name="progress_bar"/>
2832
2833 <action>
2834 <action function="decrypt_backup"/>
2835 </action>
2836
2837 <action>
2838 <conditions>
2839 <condition var1="tw_operation_state" var2="1"/>
2840 <condition var1="tw_operation_status" op="!=" var2="0"/>
2841 </conditions>
2842 <actions>
2843 <action function="set">tw_password_fail=1</action>
2844 <action function="page">restore_decrypt</action>
2845 </actions>
2846 </action>
2847
2848 <action>
2849 <conditions>
2850 <condition var1="tw_operation_state" var2="1"/>
2851 <condition var1="tw_operation_status" op="=" var2="0"/>
2852 </conditions>
2853 <actions>
2854 <action function="set">tw_page_done=1</action>
2855 <action function="page">restore_select</action>
2856 </actions>
2857 </action>
2858 </page>
2859
2860 <page name="restore_select">
2861 <template name="page"/>
2862
2863 <template name="statusbar"/>
2864
2865 <text style="text_m">
2866 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002867 <text>{@restore_hdr=Restore} &gt; {@sel_part_hdr=Select Partitions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002868 </text>
2869
2870 <partitionlist style="partitionlist_headerless_cb">
2871 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
2872 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
2873 <listtype name="restore"/>
2874 </partitionlist>
2875
2876 <fill color="%accent_color%">
2877 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
2878 </fill>
2879
2880 <button>
2881 <placement x="%col1_x_left%" y="%row11_y%"/>
2882 <highlight color="%highlight_color%"/>
2883 <image resource="q_btn_arrow_left"/>
2884 <action function="page">restore</action>
2885 </button>
2886
2887 <button>
2888 <placement x="%btn4_col2_x%" y="%row11_y%"/>
2889 <highlight color="%highlight_color%"/>
2890 <image resource="q_btn_delete"/>
2891 <actions>
2892 <action function="set">tw_back=restore</action>
2893 <action function="set">tw_action=cmd</action>
2894 <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 -05002895 <action function="set">tw_text1={@del_backup_confirm=Delete Backup?}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002896 <action function="set">tw_text2=%tw_restore_name%</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05002897 <action function="set">tw_text4={@del_backup_confirm2=This cannot be undone!}</action>
2898 <action function="set">tw_action_text1={@deleting_backup=Deleting Backup...}</action>
2899 <action function="set">tw_complete_text1={@backup_deleted=Backup Delete Complete}</action>
2900 <action function="set">tw_slider_text={@swipe_delete_s= Delete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01002901 <action function="page">confirm_action</action>
2902 </actions>
2903 </button>
2904
2905 <button>
2906 <placement x="%btn4_col3_x%" y="%row11_y%"/>
2907 <highlight color="%highlight_color%"/>
2908 <image resource="q_btn_accept"/>
2909 <action function="page">restore_confirm</action>
2910 </button>
2911
2912 <button>
2913 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2914 <highlight color="%highlight_color%"/>
2915 <image resource="q_btn_arrow_right"/>
2916 <actions>
2917 <action function="set">tw_back=restore_select</action>
2918 <action function="page">restore_options</action>
2919 </actions>
2920 </button>
2921
2922 <action>
2923 <touch key="home"/>
2924 <action function="page">main</action>
2925 </action>
2926
2927 <action>
2928 <touch key="back"/>
2929 <action function="page">%tw_back%</action>
2930 </action>
2931 </page>
2932
2933 <page name="restore_options">
2934 <template name="page"/>
2935
2936 <template name="statusbar"/>
2937
2938 <text style="text_m">
2939 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002940 <text>{@restore_hdr=Restore} &gt; {@options_hdr=Options}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002941 </text>
2942
2943 <listbox style="scrolllist">
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002944 <condition var1="tw_enable_adb_backup" op="=" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01002945 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04002946 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
2947 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01002948 </listitem>
2949 </listbox>
2950
2951 <button>
2952 <placement x="%col1_x_left%" y="%row11_y%"/>
2953 <highlight color="%highlight_color%"/>
2954 <image resource="q_btn_arrow_left"/>
2955 <action function="page">restore_select</action>
2956 </button>
2957
2958 <button>
2959 <placement x="%btn4_col4_x%" y="%row11_y%"/>
2960 <highlight color="%highlight_color%"/>
2961 <image resource="q_btn_accept_transp"/>
2962 <actions>
2963 <action function="set">tw_back=restore_options</action>
2964 <action function="page">restore_confirm</action>
2965 </actions>
2966 </button>
2967
2968 <action>
2969 <touch key="home"/>
2970 <action function="page">main</action>
2971 </action>
2972
2973 <action>
2974 <touch key="back"/>
2975 <action function="page">%tw_back%</action>
2976 </action>
2977
2978 <action>
2979 <touch key="power+voldown"/>
2980 <action function="screenshot"/>
2981 </action>
2982 </page>
2983
2984 <page name="renamebackup">
2985 <template name="page"/>
2986
2987 <template name="statusbar"/>
2988
2989 <text style="text_m">
2990 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002991 <text>{@restore_hdr=Restore} &gt; {@rename_backup_hdr=Rename Backup}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002992 </text>
2993
2994 <text style="text_m_accent">
2995 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05002996 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01002997 </text>
2998
2999 <input>
3000 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
3001 <text>%tw_backup_rename%</text>
3002 <data name="tw_backup_rename"/>
3003 <restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]"/>
3004 <actions>
3005 <action function="set">tw_back=restore</action>
3006 <action function="set">tw_action=cmd</action>
3007 <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 -05003008 <action function="set">tw_text1={@rename_backup_confirm=Rename Backup?}</action>
3009 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
3010 <action function="set">tw_action_text1={@renaming_backup=Renaming Backup...}</action>
3011 <action function="set">tw_complete_text1={@rename_backup_complete=Backup Rename Complete}</action>
3012 <action function="set">tw_slider_text={@swipe_rename= Rename}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003013 <action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
3014 <action function="set">tw_existpage=renamebackup</action>
3015 <action function="set">tw_notexistpage=confirm_action</action>
3016 <action function="page">filecheck</action>
3017 </actions>
3018 </input>
3019
3020 <fill color="%accent_color%">
3021 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3022 </fill>
3023
3024 <fill color="%text_fail_color%">
3025 <condition var1="tw_fileexists" var2="1"/>
3026 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
3027 </fill>
3028
3029 <text style="text_m_fail">
3030 <condition var1="tw_fileexists" var2="1"/>
3031 <placement x="%col1_x_left%" y="%row3_input_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003032 <text>{@backup_name_exists=A backup with that name already exists!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003033 </text>
3034
3035 <button style="main_button_half_height">
3036 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003037 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003038 <action function="page">restore_confirm</action>
3039 </button>
3040
3041 <template name="keyboardtemplate"/>
3042
3043 <action>
3044 <touch key="home"/>
3045 <action function="page">main</action>
3046 </action>
3047
3048 <action>
3049 <touch key="back"/>
3050 <action function="page">restore_confirm</action>
3051 </action>
3052 </page>
3053
3054 <page name="restore_confirm">
3055 <template name="page"/>
3056
3057 <template name="statusbar"/>
3058
3059 <text style="text_m">
3060 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003061 <text>{@restore_hdr=Restore} &gt; {@confirm_hdr=Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003062 </text>
3063
3064 <text style="text_m_accent">
3065 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003066 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003067 </text>
3068
3069 <text style="text_m">
3070 <placement x="%indent%" y="%row2_y%"/>
3071 <text>%tw_restore_name%</text>
3072 </text>
3073
3074 <fill color="%accent_color%">
3075 <placement x="%indent%" y="64" w="%content_width%" h="input_line_width" placement="1"/>
3076 </fill>
3077
3078 <button>
3079 <fill color="%transparent%"/>
3080 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="48"/>
3081 <actions>
3082 <action function="set">tw_back=restore_confirm</action>
3083 <action function="set">tw_backup_rename=%tw_restore_name%</action>
3084 <action function="set">tw_fileexists=0</action>
3085 <action function="page">renamebackup</action>
3086 </actions>
3087 </button>
3088
3089 <text style="text_m_accent">
3090 <placement x="%indent%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003091 <text>{@partitions=Partitions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003092 </text>
3093
3094 <partitionlist style="partitionlist_summary">
3095 <placement x="%col1_x_left%" y="%row4a_y%" w="%content_half_width%" h="96"/>
3096 <data name="tw_restore_list" selectedlist="tw_restore_selected"/>
3097 <listtype name="restore"/>
3098 </partitionlist>
3099
3100 <button>
3101 <fill color="%transparent%"/>
3102 <placement x="0" y="%row3a_y%" w="%screen_half_width%" h="112"/>
3103 <actions>
3104 <action function="set">tw_back=restore_confirm</action>
3105 <action function="page">restore_select</action>
3106 </actions>
3107 </button>
3108
3109 <listbox style="listbox_options">
3110 <placement x="%col1_x_right%" y="%row4a_y%" w="%content_half_width%" h="80"/>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003111 <listitem name="{@restore_enable_digest_chk=Enable Digest Verification of Backup Files}">
3112 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003113 </listitem>
3114 </listbox>
3115
3116 <text style="text_m_accent">
3117 <placement x="%col1_x_right%" y="%row3a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003118 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003119 </text>
3120
3121 <button>
3122 <fill color="%transparent%"/>
3123 <placement x="%center_x%" y="%row3a_y%" w="%screen_half_width%" h="64"/>
3124 <actions>
3125 <action function="set">tw_back=restore_confirm</action>
3126 <action function="page">restore_options</action>
3127 </actions>
3128 </button>
3129
3130 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05003131 <text>{@swipe_restore_s= Restore}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003132 <action function="page">restore_run</action>
3133 </slider>
3134
3135 <action>
3136 <touch key="home"/>
3137 <action function="page">main</action>
3138 </action>
3139
3140 <action>
3141 <touch key="back"/>
3142 <action function="page">restore_options</action>
3143 </action>
3144 </page>
3145
3146 <page name="restore_run">
3147 <template name="page"/>
3148
3149 <template name="statusbar"/>
3150
3151 <text style="text_m">
3152 <placement x="%col1_x_left%" y="%row1_header_y%"/>
3153 <text>%tw_operation% %tw_partition%</text>
3154 </text>
3155
3156 <template name="console"/>
3157
3158 <template name="progress_bar"/>
3159
3160 <text style="text_m">
3161 <placement x="%indent%" y="%row14a_y%"/>
3162 <text>%tw_size_progress%</text>
3163 </text>
3164
3165 <action>
3166 <condition var1="tw_operation_state" var2="1"/>
3167 <actions>
3168 <action function="set">tw_back=restore</action>
Matt Mower3c366972015-12-25 19:28:31 -06003169 <action function="set">tw_complete_text1={@restore_complete=Restore Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003170 <action function="set">tw_show_reboot=1</action>
3171 <action function="page">action_complete</action>
3172 </actions>
3173 </action>
3174
3175 <action>
3176 <action function="nandroid">restore</action>
3177 </action>
3178 </page>
3179
3180 <page name="mount">
3181 <template name="page"/>
3182
3183 <template name="statusbar"/>
3184
3185 <text style="text_m">
3186 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003187 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003188 </text>
3189
3190 <partitionlist style="partitionlist_headerless_cb">
3191 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%partitionlist_wipe_height%"/>
3192 <listtype name="mount"/>
3193 </partitionlist>
3194
3195 <fill color="%accent_color%">
3196 <placement x="%col1_x_left%" y="row10a_y" w="%content_width%" h="input_line_width"/>
3197 </fill>
3198
3199 <button style="checkbox">
3200 <condition var1="tw_mount_system_ro" op="=" var2="0"/>
3201 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003202 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003203 <image resource="checkbox_false"/>
3204 <action function="mountsystemtoggle">1</action>
3205 </button>
3206
3207 <button style="checkbox">
3208 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3209 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003210 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003211 <image resource="checkbox_true"/>
3212 <actions>
3213 <action function="set">tw_lifetime_writes=2</action>
3214 <action function="page">system_readonly_check</action>
3215 </actions>
3216 </button>
3217
3218 <button style="checkbox">
3219 <conditions>
3220 <condition var1="tw_has_mtp" var2="1"/>
3221 <condition var1="tw_mtp_enabled" var2="0"/>
3222 </conditions>
3223 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3224 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003225 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003226 <action function="startmtp"/>
3227 </button>
3228
3229 <button style="checkbox">
3230 <conditions>
3231 <condition var1="tw_has_mtp" var2="1"/>
3232 <condition var1="tw_mtp_enabled" var2="1"/>
3233 </conditions>
3234 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3235 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003236 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003237 <action function="stopmtp"/>
3238 </button>
3239
3240 <button>
3241 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3242 <highlight color="%highlight_color%"/>
3243 <image resource="q_btn_storage"/>
3244 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003245 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003246 <action function="set">tw_back=mount</action>
3247 <action function="page">select_storage</action>
3248 </actions>
3249 </button>
3250
3251 <button>
3252 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3253 <highlight color="%highlight_color%"/>
3254 <image resource="q_btn_arrow_right"/>
3255 <action function="page">mount_options</action>
3256 </button>
3257
3258 <action>
3259 <touch key="home"/>
3260 <action function="page">main</action>
3261 </action>
3262
3263 <action>
3264 <touch key="back"/>
3265 <action function="page">main</action>
3266 </action>
3267 </page>
3268
3269 <page name="mount_options">
3270 <template name="page"/>
3271
3272 <template name="statusbar"/>
3273
3274 <text style="text_m">
3275 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003276 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003277 </text>
3278
3279 <button style="main_button_full_width">
3280 <condition var1="tw_has_usb_storage" var2="1"/>
3281 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 <action function="page">usb_mount</action>
3284 </button>
3285
3286 <button style="main_button_full_width">
3287 <conditions>
3288 <condition var1="tw_is_encrypted" var2="1"/>
3289 <condition var1="tw_is_decrypted" var2="0"/>
3290 </conditions>
3291 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003292 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson5a79f672019-04-28 00:10:07 -04003293 <action function="set">tw_crypto_user_id=0</action>
3294 <action function="set">tw_crypto_password=</action>
3295 <action function="set">tw_password_fail=0</action>
3296 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01003297 <action function="page">decrypt</action>
3298 </button>
3299
3300 <button>
3301 <placement x="%col1_x_left%" y="%row11_y%"/>
3302 <highlight color="%highlight_color%"/>
3303 <image resource="q_btn_arrow_left"/>
3304 <action function="page">mount</action>
3305 </button>
3306
3307 <action>
3308 <touch key="home"/>
3309 <action function="page">main</action>
3310 </action>
3311
3312 <action>
3313 <touch key="back"/>
3314 <action function="page">mount</action>
3315 </action>
3316 </page>
3317
3318 <page name="usb_mount">
3319 <template name="page"/>
3320
3321 <template name="statusbar"/>
3322
3323 <text style="text_m">
3324 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003325 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003326 </text>
3327
3328 <text style="text_m_accent">
3329 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003330 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003331 </text>
3332
3333 <text style="text_m_fail">
3334 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003335 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003336 </text>
3337
3338 <text style="text_m_fail">
3339 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003340 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003341 </text>
3342
3343 <button style="main_button">
3344 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003345 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003346 <action function="page">usb_umount</action>
3347 </button>
3348
3349 <action>
3350 <action function="mount">usb</action>
3351 <action function="set">tw_busy=1</action>
3352 </action>
3353 </page>
3354
3355 <page name="usb_umount">
3356 <action>
3357 <action function="unmount">usb</action>
3358 </action>
3359
3360 <action>
3361 <action function="page">mount_options</action>
3362 <action function="set">tw_busy=0</action>
3363 </action>
3364 </page>
3365
3366 <page name="system_readonly_check">
3367 <action>
3368 <action function="checkpartitionlifetimewrites">/system</action>
3369 </action>
3370
3371 <action>
3372 <condition var1="tw_lifetime_writes" var2="1"/>
3373 <actions>
3374 <action function="mountsystemtoggle">0</action>
3375 <action function="page">mount</action>
3376 </actions>
3377 </action>
3378
3379 <action>
3380 <condition var1="tw_lifetime_writes" var2="0"/>
3381 <actions>
3382 <action function="set">tw_back=mount</action>
3383 <action function="page">system_readonly</action>
3384 </actions>
3385 </action>
3386 </page>
3387
3388 <page name="reboot">
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003389 <action>
3390 <action function="checkforapp"></action>
3391 <action function="page">reboot2</action>
3392 </action>
3393 </page>
3394
3395 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003396 <template name="page"/>
3397
3398 <template name="statusbar"/>
3399
3400 <text style="text_m">
3401 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003402 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003403 </text>
3404
3405 <button style="main_button">
3406 <condition var1="tw_reboot_system" var2="1"/>
3407 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003408 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 <actions>
3410 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003411 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003412 </actions>
3413 </button>
3414
3415 <button style="main_button">
3416 <condition var1="tw_reboot_poweroff" var2="1"/>
3417 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003418 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003419 <actions>
3420 <action function="set">tw_back=reboot</action>
3421 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003422 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003423 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003424 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003425 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3426 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3427 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3428 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3429 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003430 <action function="page">rebootcheck</action>
3431 </actions>
3432 </button>
3433
3434 <button style="main_button">
3435 <condition var1="tw_reboot_recovery" var2="1"/>
3436 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003437 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003438 <actions>
3439 <action function="set">tw_back=reboot</action>
3440 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003441 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003442 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003443 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003444 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3445 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3446 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3447 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3448 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003449 <action function="page">rebootcheck</action>
3450 </actions>
3451 </button>
3452
3453 <button style="main_button">
3454 <condition var1="tw_reboot_bootloader" var2="1"/>
3455 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003456 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003457 <actions>
3458 <action function="set">tw_back=reboot</action>
3459 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003460 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003461 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003462 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003463 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3464 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3465 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3466 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3467 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003468 <action function="page">rebootcheck</action>
3469 </actions>
3470 </button>
3471
3472 <button style="main_button">
3473 <condition var1="tw_download_mode" var2="1"/>
3474 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003475 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003476 <actions>
3477 <action function="set">tw_back=reboot</action>
3478 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003479 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003480 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003481 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003482 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3483 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3484 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3485 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3486 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003487 <action function="page">rebootcheck</action>
3488 </actions>
3489 </button>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003490
mauronofrioe9a49ef2018-10-03 13:38:16 +02003491 <button style="main_button">
3492 <condition var1="tw_edl_mode" var2="1"/>
3493 <placement x="%col1_x_right%" y="%row11_y%"/>
Aseem Athale0b77d462021-11-08 13:12:30 +05303494 <text>{@rb_edl_btn=EDL}</text>
mauronofrioe9a49ef2018-10-03 13:38:16 +02003495 <actions>
3496 <action function="set">tw_back=reboot</action>
3497 <action function="set">tw_action=reboot</action>
3498 <action function="set">tw_action_param=edl</action>
3499 <action function="set">tw_reboot_param=edl</action>
3500 <action function="set">tw_has_action2=0</action>
3501 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3502 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3503 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3504 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3505 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
3506 <action function="page">rebootcheck</action>
3507 </actions>
3508 </button>
z31s1g28f0a922015-11-07 18:50:22 +01003509
3510 <action>
3511 <touch key="home"/>
3512 <action function="page">main</action>
3513 </action>
3514
3515 <action>
3516 <touch key="back"/>
3517 <action function="page">main</action>
3518 </action>
3519 </page>
3520
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003521 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003522 <template name="page"/>
3523
3524 <template name="statusbar"/>
3525
3526 <text style="text_m">
3527 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003528 <text>%tw_appinstall_title% &gt; {@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003529 </text>
3530
3531 <text style="text_m_accent">
3532 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3533 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3534 </text>
3535
3536 <text style="text_m">
3537 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3538 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3539 </text>
3540
3541 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003542 <condition var1="tw_mount_system_ro" var2="0"/>
3543 <placement x="%indent%" y="%row5_y%"/>
3544 <text>{@reboot_install_app_system=Install as a System App}</text>
3545 <data variable="tw_app_install_system"/>
3546 </checkbox>
3547
3548 <button style="main_button_half_height">
3549 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003550 <text>{@install_cancel=Do not Install}</text>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003551 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003552 </button>
3553
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003554 <slider>
3555 <text>{@swipe_confirm= Confirm}</text>
3556 <actions>
3557 <action function="set">tw_action=installapp</action>
3558 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3559 <action function="set">tw_action_text2=</action>
3560 <action function="set">tw_complete_text1={@successful=Successful}</action>
3561 <action function="page">action_page</action>
3562 </actions>
3563 </slider>
3564
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003565 <action>
3566 <touch key="home"/>
3567 <actions>
3568 <action function="set">tw_app_install_status=0</action>
3569 <action function="page">main</action>
3570 </actions>
3571 </action>
3572
3573 <action>
3574 <touch key="back"/>
3575 <actions>
3576 <action function="set">tw_app_install_status=0</action>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06003577 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003578 </actions>
3579 </action>
3580 </page>
3581
z31s1g28f0a922015-11-07 18:50:22 +01003582 <page name="system_readonly">
3583 <template name="page"/>
3584
3585 <template name="statusbar"/>
3586
3587 <text style="text_m">
3588 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003589 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003590 </text>
3591
3592 <text style="text_m_accent">
3593 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003594 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003595 </text>
3596
3597 <text style="text_m">
3598 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003599 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003600 </text>
3601
3602 <text style="text_m">
3603 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003604 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003605 </text>
3606
3607 <text style="text_m">
3608 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003609 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003610 </text>
3611
3612 <text style="text_m">
3613 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003614 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003615 </text>
3616
3617 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003618 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003619 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003620 </text>
3621
3622 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003623 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003624 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003625 </text>
3626
z31s1g608d7ff2016-01-18 19:47:25 +01003627 <button style="main_button_half_height">
3628 <placement x="%col1_x_right%" y="%row8a_y%"/>
3629 <text>{@sel_lang_btn=Select Language}</text>
3630 <action function="page">settings_language</action>
3631 </button>
3632
z31s1g28f0a922015-11-07 18:50:22 +01003633 <checkbox>
3634 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003635 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003636 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003637 <data variable="tw_never_show_system_ro_page"/>
3638 </checkbox>
3639
3640 <button style="main_button_half_height">
3641 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003642 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003643 <actions>
3644 <action function="mountsystemtoggle">1</action>
3645 <action function="set">tw_page_done=1</action>
3646 <action function="page">%tw_back%</action>
3647 </actions>
3648 </button>
3649
3650 <button style="main_button_half_height">
3651 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003652 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003653 <actions>
3654 <action function="mountsystemtoggle">0</action>
3655 <action function="set">tw_page_done=1</action>
3656 <action function="page">%tw_back%</action>
3657 </actions>
3658 </button>
3659 </page>
3660
3661 <page name="settings">
3662 <template name="page"/>
3663
3664 <template name="statusbar"/>
3665
3666 <text style="text_m">
3667 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003668 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003669 </text>
3670
3671 <button style="main_button">
3672 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003673 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003674 <action function="page">settings_general</action>
3675 </button>
3676
3677 <button style="main_button">
3678 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003679 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003680 <action function="page">settings_timezone</action>
3681 </button>
3682
3683 <button style="main_button">
3684 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003685 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003686 <action function="page">settings_screen</action>
3687 </button>
3688
3689 <button style="main_button">
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003690 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003691 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003692 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003693 <action function="page">settings_vibration</action>
3694 </button>
3695
3696 <button style="main_button">
3697 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003698 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003699 <action function="page">settings_language</action>
3700 </button>
3701
3702 <button>
3703 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3704 <highlight color="%highlight_color%"/>
3705 <image resource="q_btn_reset"/>
3706 <action function="restoredefaultsettings"/>
3707 </button>
3708
3709 <action>
3710 <touch key="home"/>
3711 <action function="page">main</action>
3712 </action>
3713
3714 <action>
3715 <touch key="back"/>
3716 <action function="page">main3</action>
3717 </action>
3718 </page>
3719
3720 <page name="settings_general">
3721 <template name="page"/>
3722
3723 <template name="statusbar"/>
3724
3725 <text style="text_m">
3726 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003727 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003728 </text>
3729
3730 <listbox style="scrolllist">
3731 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003732 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003733 <data variable="tw_signed_zip_verify"/>
3734 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003735 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3736 <data variable="tw_install_reboot"/>
3737 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003738 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003739 <data variable="tw_rm_rf"/>
3740 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003741 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3742 <data variable="tw_disable_free_space"/>
3743 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003744 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3745 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003746 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003747 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3748 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003749 </listitem>
epicX40b7f7a2021-03-20 21:58:17 +05303750 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3751 <data variable="tw_skip_digest_check_zip"/>
3752 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003753 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003754 <data variable="tw_military_time"/>
3755 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003756 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003757 <data variable="tw_simulate_actions"/>
3758 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003759 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003760 <data variable="tw_simulate_fail"/>
3761 <condition var1="tw_simulate_actions" var2="1"/>
3762 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003763 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3764 <condition var1="tw_no_sha2" var2="0"/>
3765 <data variable="tw_use_sha2"/>
3766 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003767 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3768 <data variable="tw_unmount_system"/>
3769 </listitem>
nebrassyfe1c2372021-05-20 13:03:30 +02003770 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3771 <conditions>
3772 <condition var1="tw_has_boot_slots" var2="1"/>
3773 <condition var1="tw_has_repack_tools" var2="1"/>
3774 </conditions>
3775 <data variable="tw_auto_reflashtwrp"/>
3776 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003777 </listbox>
3778
3779 <action>
3780 <touch key="home"/>
3781 <action function="page">main</action>
3782 </action>
3783
3784 <action>
3785 <touch key="back"/>
3786 <action function="page">settings</action>
3787 </action>
3788 </page>
3789
3790 <page name="settings_timezone">
3791 <template name="page"/>
3792
3793 <template name="statusbar"/>
3794
3795 <text style="text_m">
3796 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003797 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003798 </text>
3799
3800 <text color="%text_color%">
3801 <font resource="font_m"/>
3802 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3803 <text>%tw_time%</text>
3804 </text>
3805
3806 <listbox style="listbox_headerless">
3807 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3808 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003809 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3810 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3811 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3812 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3813 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3814 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3815 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3816 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3817 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3818 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3819 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3820 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3821 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3822 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3823 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3824 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3825 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3826 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3827 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3828 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3829 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3830 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3831 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3832 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003833 </listbox>
3834
3835 <button>
3836 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3837 <highlight color="%highlight_color%"/>
3838 <image resource="q_btn_arrow_right"/>
3839 <actions>
3840 <action function="setguitimezone"/>
3841 <action function="page">settings_timezone2</action>
3842 </actions>
3843 </button>
3844
3845 <action>
3846 <condition var1="tw_time_zone_guisel" op="modified"/>
3847 <action function="setguitimezone"/>
3848 </action>
3849
3850 <action>
3851 <touch key="home"/>
3852 <actions>
3853 <action function="page">main</action>
3854 <action function="setguitimezone"/>
3855 </actions>
3856 </action>
3857
3858 <action>
3859 <touch key="back"/>
3860 <actions>
3861 <action function="page">settings</action>
3862 <action function="setguitimezone"/>
3863 </actions>
3864 </action>
3865
3866 <action>
3867 <touch key="power+voldown"/>
3868 <action function="screenshot"/>
3869 </action>
3870 </page>
3871
3872 <page name="settings_timezone2">
3873 <template name="page"/>
3874
3875 <template name="statusbar"/>
3876
3877 <text style="text_m">
3878 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003879 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003880 </text>
3881
3882 <text color="%text_color%">
3883 <font resource="font_m"/>
3884 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3885 <text>%tw_time%</text>
3886 </text>
3887
3888 <checkbox>
3889 <placement x="%col1_x_left%" y="%row1_y%"/>
3890 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003891 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003892 <data variable="tw_time_zone_guidst"/>
3893 <image checked="checkbox_true" unchecked="checkbox_false"/>
3894 </checkbox>
3895
3896 <text style="text_m_accent">
3897 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003898 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003899 </text>
3900
3901 <button style="main_button_quarter_width">
3902 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003903 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003904 <actions>
3905 <action function="set">tw_time_zone_guioffset=0</action>
3906 <action function="setguitimezone"/>
3907 </actions>
3908 </button>
3909
3910 <button style="main_button_quarter_width">
3911 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003912 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003913 <actions>
3914 <action function="set">tw_time_zone_guioffset=15</action>
3915 <action function="setguitimezone"/>
3916 </actions>
3917 </button>
3918
3919 <button style="main_button_quarter_width">
3920 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003921 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003922 <actions>
3923 <action function="set">tw_time_zone_guioffset=30</action>
3924 <action function="setguitimezone"/>
3925 </actions>
3926 </button>
3927
3928 <button style="main_button_quarter_width">
3929 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003930 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003931 <actions>
3932 <action function="set">tw_time_zone_guioffset=45</action>
3933 <action function="setguitimezone"/>
3934 </actions>
3935 </button>
3936
3937 <button>
3938 <placement x="%col1_x_left%" y="%row11_y%"/>
3939 <highlight color="%highlight_color%"/>
3940 <image resource="q_btn_arrow_left"/>
3941 <actions>
3942 <action function="setguitimezone"/>
3943 <action function="page">settings_timezone</action>
3944 </actions>
3945 </button>
3946
3947 <text style="text_m_accent">
3948 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003949 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003950 </text>
3951
3952 <text style="text_m">
3953 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3954 <text>%tw_time_zone%</text>
3955 </text>
3956
3957 <action>
3958 <condition var1="tw_time_zone_guidst" op="modified"/>
3959 <action function="setguitimezone"/>
3960 </action>
3961
3962 <action>
3963 <touch key="home"/>
3964 <actions>
3965 <action function="setguitimezone"/>
3966 <action function="page">main</action>
3967 </actions>
3968 </action>
3969
3970 <action>
3971 <touch key="back"/>
3972 <actions>
3973 <action function="setguitimezone"/>
3974 <action function="page">settings_timezone</action>
3975 </actions>
3976 </action>
3977 </page>
3978
3979 <page name="settings_screen">
3980 <template name="page"/>
3981
3982 <template name="statusbar"/>
3983
3984 <text style="text_m">
3985 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003986 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003987 </text>
3988
3989 <button style="checkbox">
3990 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3991 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3992 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003993 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003994 <image resource="checkbox_false"/>
3995 <action function="set">tw_screen_timeout_secs=60</action>
3996 </button>
3997
3998 <button style="checkbox">
3999 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
4000 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4001 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004002 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004003 <image resource="checkbox_true"/>
4004 <action function="set">tw_screen_timeout_secs=0</action>
4005 </button>
4006
4007 <slidervalue>
4008 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4009 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004010 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004011 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
4012 </slidervalue>
4013
4014 <text style="text_m_fail">
4015 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
4016 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004017 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004018 </text>
4019
4020 <button>
4021 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4022 <highlight color="%highlight_color%"/>
4023 <image resource="q_btn_arrow_right"/>
4024 <action function="page">settings_screen2</action>
4025 </button>
4026
4027 <action>
4028 <touch key="home"/>
4029 <action function="page">main</action>
4030 </action>
4031
4032 <action>
4033 <touch key="back"/>
4034 <action function="page">settings</action>
4035 </action>
4036 </page>
4037
4038 <page name="settings_screen2">
4039 <template name="page"/>
4040
4041 <template name="statusbar"/>
4042
4043 <text style="text_m">
4044 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004045 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004046 </text>
4047
4048 <slidervalue>
4049 <condition var1="tw_has_brightnesss_file" var2="1"/>
4050 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004051 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004052 <data variable="tw_brightness_pct" min="10" max="100"/>
4053 <actions>
4054 <action function="set">tw_brightness=%tw_brightness_max%</action>
4055 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
4056 <action function="compute">tw_brightness/100</action>
4057 <action function="setbrightness">%tw_brightness%</action>
4058 </actions>
4059 </slidervalue>
4060
4061 <text style="text_m_fail">
4062 <condition var1="tw_has_brightnesss_file" var2="0"/>
4063 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004064 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004065 </text>
4066
4067 <button>
4068 <placement x="%col1_x_left%" y="%row11_y%"/>
4069 <highlight color="%highlight_color%"/>
4070 <image resource="q_btn_arrow_left"/>
4071 <action function="page">settings_screen</action>
4072 </button>
4073
4074 <action>
4075 <touch key="home"/>
4076 <action function="page">main</action>
4077 </action>
4078
4079 <action>
4080 <touch key="back"/>
4081 <action function="page">settings</action>
4082 </action>
4083 </page>
4084
4085 <page name="settings_vibration">
4086 <template name="page"/>
4087
4088 <template name="statusbar"/>
4089
4090 <text style="text_m">
4091 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004092 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004093 </text>
4094
4095 <slidervalue>
4096 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004097 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004098 <data variable="tw_button_vibrate" min="0" max="300"/>
4099 </slidervalue>
4100
4101 <button>
4102 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4103 <highlight color="%highlight_color%"/>
4104 <image resource="q_btn_arrow_right"/>
4105 <action function="page">settings_vibration2</action>
4106 </button>
4107
4108 <action>
4109 <touch key="home"/>
4110 <action function="page">main</action>
4111 </action>
4112
4113 <action>
4114 <touch key="back"/>
4115 <action function="page">settings</action>
4116 </action>
4117 </page>
4118
4119 <page name="settings_vibration2">
4120 <template name="page"/>
4121
4122 <template name="statusbar"/>
4123
4124 <text style="text_m">
4125 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004126 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004127 </text>
4128
4129 <slidervalue>
4130 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004131 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004132 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
4133 </slidervalue>
4134
4135 <button>
4136 <placement x="%col1_x_left%" y="%row11_y%"/>
4137 <highlight color="%highlight_color%"/>
4138 <image resource="q_btn_arrow_left"/>
4139 <action function="page">settings_vibration</action>
4140 </button>
4141
4142 <button>
4143 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4144 <highlight color="%highlight_color%"/>
4145 <image resource="q_btn_arrow_right"/>
4146 <action function="page">settings_vibration3</action>
4147 </button>
4148
4149 <action>
4150 <touch key="home"/>
4151 <action function="page">main</action>
4152 </action>
4153
4154 <action>
4155 <touch key="back"/>
4156 <action function="page">settings</action>
4157 </action>
4158 </page>
4159
4160 <page name="settings_vibration3">
4161 <template name="page"/>
4162
4163 <template name="statusbar"/>
4164
4165 <text style="text_m">
4166 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004167 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004168 </text>
4169
4170 <slidervalue>
4171 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004172 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004173 <data variable="tw_action_vibrate" min="0" max="500"/>
4174 </slidervalue>
4175
4176 <button>
4177 <placement x="%col1_x_left%" y="%row11_y%"/>
4178 <highlight color="%highlight_color%"/>
4179 <image resource="q_btn_arrow_left"/>
4180 <action function="page">settings_vibration2</action>
4181 </button>
4182
4183 <action>
4184 <touch key="home"/>
4185 <action function="page">main</action>
4186 </action>
4187
4188 <action>
4189 <touch key="back"/>
4190 <action function="page">settings</action>
4191 </action>
4192 </page>
4193
Ethan Yonker74db1572015-10-28 12:44:49 -05004194 <page name="settings_language">
4195 <template name="page"/>
4196
4197 <template name="statusbar"/>
4198
4199 <text style="text_m">
4200 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4201 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4202 </text>
4203
z31s1g608d7ff2016-01-18 19:47:25 +01004204 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004205 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4206 <icon selected="radio_true" unselected="radio_false" />
4207 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004208 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004209
4210 <button>
4211 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4212 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004213 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004214 <action function="setlanguage"></action>
4215 </button>
4216
z31s1g608d7ff2016-01-18 19:47:25 +01004217 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004218 <touch key="home" />
4219 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004220 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004221
z31s1g608d7ff2016-01-18 19:47:25 +01004222 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004223 <touch key="back" />
4224 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004225 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004226 </page>
4227
z31s1g28f0a922015-11-07 18:50:22 +01004228 <page name="advanced">
4229 <template name="page"/>
4230
4231 <template name="statusbar"/>
4232
4233 <text style="text_m">
4234 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004235 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004236 </text>
4237
4238 <button style="main_button">
4239 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004240 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004241 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004242 </button>
4243
4244 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004245 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004246 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004247 <text>{@fix_context_btn=Fix Contexts}</text>
4248 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004249 </button>
4250
Ethan Yonker64e0a652018-07-25 09:52:17 -05004251 <button>
4252 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4253 <highlight color="%highlight_color%"/>
4254 <image resource="q_btn_arrow_right"/>
4255 <action function="page">advanced2</action>
z31s1g28f0a922015-11-07 18:50:22 +01004256 </button>
4257
Ethan Yonker64e0a652018-07-25 09:52:17 -05004258 <action>
4259 <touch key="home"/>
4260 <action function="page">main</action>
4261 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004262
Ethan Yonker64e0a652018-07-25 09:52:17 -05004263 <action>
4264 <touch key="back"/>
4265 <action function="page">main3</action>
4266 </action>
4267 </page>
4268
4269 <page name="advanced2">
4270 <template name="page"/>
4271
4272 <template name="statusbar"/>
4273
4274 <text style="text_m">
4275 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4276 <text>{@advanced_hdr=Advanced}</text>
4277 </text>
4278
4279 <listbox style="advanced_listbox">
4280 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
epicX98053c32021-01-04 13:01:31 +05304281 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
4282 <condition var1="tw_is_encrypted" var2="0"/>
4283 <action function="page">changeTwrpFolder</action>
4284 </listitem>
Noah Jacobson5a79f672019-04-28 00:10:07 -04004285 <listitem name="{@decrypt_users=Decrypt Users}">
4286 <conditions>
4287 <condition var1="tw_is_fbe" var2="1"/>
4288 <condition var1="tw_all_users_decrypted" var2="0"/>
4289 </conditions>
4290 <actions>
4291 <action function="set">tw_crypto_user_id=</action>
4292 <action function="page">decrypt_users</action>
4293 </actions>
4294 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004295 <listitem name="{@reload_theme_btn=Reload Theme}">
4296 <action function="reload"/>
4297 </listitem>
4298 <listitem name="{@part_sd_btn=Partition SD Card}">
4299 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4300 <actions>
4301 <action function="set">partitionlisterror=0</action>
4302 <action function="page">partsdcardsel</action>
4303 </actions>
4304 </listitem>
4305 <listitem name="{@dumlock_btn=HTC Dumlock}">
4306 <condition var1="tw_show_dumlock" var2="1"/>
4307 <action function="page">htcdumlock</action>
4308 </listitem>
4309 <listitem name="{@inject_twrp_btn=Inject TWRP}">
4310 <condition var1="tw_has_injecttwrp" var2="1"/>
4311 <actions>
4312 <action function="set">tw_back=advanced</action>
4313 <action function="set">tw_action=reinjecttwrp</action>
4314 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4315 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4316 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4317 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4318 <action function="page">confirm_action</action>
4319 </actions>
4320 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004321 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
4322 <conditions>
4323 <condition var1="tw_has_boot_slots" var2="1"/>
4324 <condition var1="tw_has_repack_tools" var2="1"/>
4325 </conditions>
4326 <actions>
4327 <action function="set">tw_repack_kernel=0</action>
4328 <action function="page">repackselect</action>
4329 </actions>
4330 </listitem>
nebrassyfe1c2372021-05-20 13:03:30 +02004331 <listitem name="{@reflash_twrp=Flash Current TWRP}">
4332 <conditions>
4333 <condition var1="tw_has_boot_slots" var2="1"/>
4334 <condition var1="tw_has_repack_tools" var2="1"/>
4335 </conditions>
4336 <actions>
4337 <action function="set">tw_repack_kernel=0</action>
4338 <action function="set">tw_back=advanced</action>
4339 <action function="set">tw_action=reflashtwrp</action>
4340 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
4341 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
4342 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
4343 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4344 <action function="page">confirm_action</action>
4345 </actions>
4346 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004347 <listitem name="{@install_kernel=Install Kernel}">
4348 <conditions>
4349 <condition var1="tw_has_boot_slots" var2="1"/>
4350 <condition var1="tw_has_repack_tools" var2="1"/>
4351 </conditions>
4352 <actions>
4353 <action function="set">tw_repack_kernel=1</action>
4354 <action function="page">repackselect</action>
4355 </actions>
4356 </listitem>
4357 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
4358 <conditions>
4359 <condition var1="tw_has_boot_slots" var2="1"/>
4360 <condition var1="tw_has_repack_tools" var2="1"/>
Captain Throwback4bce54b2021-09-16 10:04:26 -04004361 <condition var1="tw_uses_initramfs" var2="1"/>
Ethan Yonker53796e72019-01-11 22:49:52 -06004362 </conditions>
4363 <actions>
4364 <action function="set">tw_back=advanced</action>
4365 <action function="set">tw_action=fixabrecoverybootloop</action>
4366 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
4367 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
4368 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
4369 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4370 <action function="page">confirm_action</action>
4371 </actions>
4372 </listitem>
Ethan Yonkercbd4e0c2020-12-17 14:51:50 -06004373 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
4374 <condition var1="tw_app_install_status" var2="1"/>
4375 <actions>
4376 <action function="set">tw_back=advanced2</action>
4377 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
4378 <action function="page">installapp</action>
4379 </actions>
4380 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05004381 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
4382 <condition var1="tw_app_installed_in_system" var2="1"/>
4383 <actions>
4384 <action function="set">tw_back=advanced</action>
4385 <action function="set">tw_action=uninstalltwrpsystemapp</action>
4386 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
4387 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
4388 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
4389 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4390 <action function="page">confirm_action</action>
4391 </actions>
4392 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004393 </listbox>
4394
4395 <button>
z31s1g28f0a922015-11-07 18:50:22 +01004396 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004397 <highlight color="%highlight_color%"/>
4398 <image resource="q_btn_arrow_left"/>
4399 <action function="page">advanced</action>
z31s1g28f0a922015-11-07 18:50:22 +01004400 </button>
4401
4402 <action>
4403 <touch key="home"/>
4404 <action function="page">main</action>
4405 </action>
4406
4407 <action>
4408 <touch key="back"/>
4409 <action function="page">main3</action>
4410 </action>
4411 </page>
4412
Ethan Yonker483e9f42016-01-11 22:21:18 -06004413 <page name="partsdcardsel">
4414 <template name="page"/>
4415
4416 <template name="statusbar"/>
4417
4418 <text style="text_m">
4419 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4420 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4421 </text>
4422
4423 <partitionlist style="partitionlist_headerless_rb">
4424 <data name="tw_storage_path"/>
4425 <listtype name="storage"/>
4426 </partitionlist>
4427
4428 <text style="text_m_fail">
4429 <condition var1="partitionlisterror" var2="1"/>
4430 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4431 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4432 </text>
4433
4434 <button>
4435 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4436 <highlight color="%highlight_color%"/>
4437 <image resource="q_btn_refresh"/>
4438 <action function="refreshsizes"/>
4439 </button>
4440
4441 <button>
4442 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4443 <highlight color="%highlight_color%"/>
4444 <image resource="q_btn_accept"/>
4445 <actions>
4446 <action function="getpartitiondetails">tw_storage_path</action>
4447 <action function="page">partsdcardcheck</action>
4448 </actions>
4449 </button>
4450
4451 <action>
4452 <touch key="home"/>
4453 <action function="page">main</action>
4454 </action>
4455
4456 <action>
4457 <touch key="back"/>
4458 <action function="page">advanced</action>
4459 </action>
4460 </page>
4461
4462 <page name="partsdcardcheck">
4463 <action>
4464 <condition var1="tw_partition_removable" op="=" var2="1"/>
4465 <actions>
4466 <action function="set">partitionlisterror=0</action>
4467 <action function="page">partsdcard</action>
4468 </actions>
4469 </action>
4470
4471 <action>
4472 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4473 <actions>
4474 <action function="set">partitionlisterror=1</action>
4475 <action function="page">partsdcardsel</action>
4476 </actions>
4477 </action>
4478 </page>
4479
z31s1g28f0a922015-11-07 18:50:22 +01004480 <page name="partsdcard">
4481 <template name="page"/>
4482
4483 <template name="statusbar"/>
4484
4485 <text style="text_m">
4486 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004487 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004488 </text>
4489
4490 <text style="text_m_fail">
4491 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004492 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004493 </text>
4494
4495 <text style="text_m_fail">
4496 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004497 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004498 </text>
4499
4500 <text style="text_m_accent">
4501 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004502 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004503 </text>
4504
4505 <text style="text_m">
4506 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4507 <text>%tw_sdext_size%</text>
4508 </text>
4509
4510 <button style="main_button_quarter_width">
4511 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004512 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004513 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004514 </button>
4515
4516 <button style="main_button_quarter_width">
4517 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004518 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004519 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004520 </button>
4521
4522 <button>
4523 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4524 <highlight color="%highlight_color%"/>
4525 <image resource="q_btn_arrow_right"/>
4526 <action function="page">partsdcard2</action>
4527 </button>
4528
4529 <action>
4530 <touch key="home"/>
4531 <action function="page">main</action>
4532 </action>
4533
4534 <action>
4535 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004536 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004537 </action>
4538 </page>
4539
4540 <page name="partsdcard2">
4541 <template name="page"/>
4542
4543 <template name="statusbar"/>
4544
4545 <text style="text_m">
4546 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004547 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004548 </text>
4549
4550 <text style="text_m_fail">
4551 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004552 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004553 </text>
4554
4555 <text style="text_m_fail">
4556 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004557 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004558 </text>
4559
4560 <text style="text_m_accent">
4561 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004562 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004563 </text>
4564
4565 <text style="text_m">
4566 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4567 <text>%tw_swap_size%</text>
4568 </text>
4569
4570 <button style="main_button_quarter_width">
4571 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004572 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004573 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004574 </button>
4575
4576 <button style="main_button_quarter_width">
4577 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004578 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004579 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004580 </button>
4581
4582 <button>
4583 <placement x="%col1_x_left%" y="%row11_y%"/>
4584 <highlight color="%highlight_color%"/>
4585 <image resource="q_btn_arrow_left"/>
4586 <action function="page">partsdcard</action>
4587 </button>
4588
4589 <button>
4590 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4591 <highlight color="%highlight_color%"/>
4592 <image resource="q_btn_arrow_right"/>
4593 <action function="page">partsdcard3</action>
4594 </button>
4595
4596 <action>
4597 <touch key="home"/>
4598 <action function="page">main</action>
4599 </action>
4600
4601 <action>
4602 <touch key="back"/>
4603 <action function="page">advanced</action>
4604 </action>
4605 </page>
4606
4607 <page name="partsdcard3">
4608 <template name="page"/>
4609
4610 <template name="statusbar"/>
4611
4612 <text style="text_m">
4613 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004614 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004615 </text>
4616
4617 <text style="text_m_fail">
4618 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004619 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004620 </text>
4621
4622 <text style="text_m_fail">
4623 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004624 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004625 </text>
4626
4627 <text style="text_m_accent">
4628 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004629 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004630 </text>
4631
4632 <text style="text_m">
4633 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4634 <text>%tw_sdpart_file_system%</text>
4635 </text>
4636
4637 <button style="main_button_quarter_width">
4638 <placement x="%indent%" y="%row6_y%"/>
4639 <text>EXT3</text>
4640 <action function="set">tw_sdpart_file_system=ext3</action>
4641 </button>
4642
4643 <button style="main_button_quarter_width">
4644 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4645 <text>EXT4</text>
4646 <action function="set">tw_sdpart_file_system=ext4</action>
4647 </button>
4648
4649 <button>
4650 <placement x="%col1_x_left%" y="%row11_y%"/>
4651 <highlight color="%highlight_color%"/>
4652 <image resource="q_btn_arrow_left"/>
4653 <action function="page">partsdcard2</action>
4654 </button>
4655
4656 <button>
4657 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4658 <highlight color="%highlight_color%"/>
4659 <image resource="q_btn_arrow_right"/>
4660 <action function="page">partsdcard_confirm</action>
4661 </button>
4662
4663 <action>
4664 <touch key="home"/>
4665 <action function="page">main</action>
4666 </action>
4667
4668 <action>
4669 <touch key="back"/>
4670 <action function="page">advanced</action>
4671 </action>
4672 </page>
4673
4674 <page name="partsdcard_confirm">
4675 <template name="page"/>
4676
4677 <template name="statusbar"/>
4678
4679 <text style="text_m">
4680 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004681 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004682 </text>
4683
4684 <text style="text_m_fail">
4685 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004686 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004687 </text>
4688
4689 <text style="text_m_fail">
4690 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004691 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004692 </text>
4693
4694 <text style="text_m_accent">
4695 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004696 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004697 </text>
4698
4699 <text style="text_m_accent">
4700 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004701 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004702 </text>
4703
4704 <text style="text_m_accent">
4705 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004706 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004707 </text>
4708
4709 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004710 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004711 <action function="page">partsdcardaction</action>
4712 <actions>
4713 <action function="set">tw_back=partsdcard</action>
4714 <action function="set">tw_action=partitionsd</action>
4715 <action function="set">tw_has_action2=1</action>
4716 <action function="set">tw_action2=set</action>
4717 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004718 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4719 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4720 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004721 <action function="page">action_page</action>
4722 </actions>
4723 </slider>
4724
4725 <action>
4726 <touch key="home"/>
4727 <action function="page">main</action>
4728 </action>
4729
4730 <action>
4731 <touch key="back"/>
4732 <action function="page">advanced</action>
4733 </action>
4734 </page>
4735
4736 <page name="htcdumlock">
4737 <template name="page"/>
4738
4739 <template name="statusbar"/>
4740
4741 <text style="text_m">
4742 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004743 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004744 </text>
4745
4746 <button style="main_button_full_width">
4747 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004748 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004749 <actions>
4750 <action function="set">tw_back=htcdumlock</action>
4751 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004752 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4753 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4754 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4755 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004756 <action function="page">confirm_action</action>
4757 </actions>
4758 </button>
4759
4760 <button style="main_button_full_width">
4761 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004762 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004763 <actions>
4764 <action function="set">tw_back=htcdumlock</action>
4765 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004766 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4767 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4768 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4769 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004770 <action function="page">confirm_action</action>
4771 </actions>
4772 </button>
4773
4774 <button style="main_button_full_width">
4775 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004776 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004777 <actions>
4778 <action function="set">tw_back=htcdumlock</action>
4779 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004780 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4781 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4782 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4783 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004784 <action function="page">confirm_action</action>
4785 </actions>
4786 </button>
4787
4788 <action>
4789 <touch key="home"/>
4790 <action function="page">main</action>
4791 </action>
4792
4793 <action>
4794 <touch key="back"/>
4795 <action function="page">advanced</action>
4796 </action>
4797 </page>
4798
Ethan Yonker53796e72019-01-11 22:49:52 -06004799 <page name="repackselect">
4800 <template name="page"/>
4801
4802 <template name="statusbar"/>
4803
4804 <text style="text_m">
4805 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4806 <text>{@repack_image_hdr=Select Image}</text>
4807 </text>
4808
4809 <fileselector>
4810 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
4811 <text>%tw_zip_location%</text>
4812 <filter extn=".img" folders="1" files="1"/>
4813 <path name="tw_zip_location" default="/sdcard"/>
4814 <data name="tw_filename"/>
4815 <selection name="tw_file"/>
4816 </fileselector>
4817
4818 <button>
4819 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4820 <highlight color="%highlight_color%"/>
4821 <image resource="q_btn_storage"/>
4822 <actions>
4823 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
4824 <action function="set">tw_back=install</action>
4825 <action function="page">select_storage</action>
4826 </actions>
4827 </button>
4828
4829 <action>
4830 <conditions>
4831 <condition var1="tw_filename" op="modified"/>
4832 </conditions>
4833 <action function="page">repackconfirm</action>
4834 </action>
4835
4836 <action>
4837 <touch key="back"/>
4838 <action function="page">advanced</action>
4839 </action>
4840
4841 <action>
4842 <touch key="home"/>
4843 <action function="page">main</action>
4844 </action>
4845 </page>
4846
4847 <page name="repackconfirm">
4848 <template name="page"/>
4849
4850 <template name="statusbar"/>
4851
4852 <text style="text_m">
4853 <condition var1="tw_repack_kernel" var2="1"/>
4854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4855 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4856 </text>
4857
4858 <text style="text_m">
4859 <condition var1="tw_repack_kernel" var2="0"/>
4860 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4861 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4862 </text>
4863
4864 <text style="text_m_accent">
4865 <placement x="%indent%" y="%row2_y%"/>
4866 <text>{@folder=Folder:}</text>
4867 </text>
4868
4869 <text style="text_m">
4870 <placement x="%indent%" y="%row3_y%"/>
4871 <text>%tw_zip_location%</text>
4872 </text>
4873
4874 <text style="text_m_accent">
4875 <placement x="%indent%" y="%row4_y%"/>
4876 <text>{@file=File:}</text>
4877 </text>
4878
4879 <text style="text_m">
4880 <placement x="%indent%" y="%row5_y%"/>
4881 <text>%tw_file%</text>
4882 </text>
4883
4884 <checkbox>
4885 <placement x="%indent%" y="%row7_y%"/>
4886 <text>{@repack_backup_first=Back up existing image first}</text>
4887 <data variable="tw_repack_backup_first"/>
4888 </checkbox>
4889
4890 <slider>
4891 <text>{@swipe_to_install=Swipe to Install}</text>
4892 <actions>
4893 <action function="set">tw_back=advanced</action>
4894 <action function="set">tw_action=repackimage</action>
4895 <action function="set">tw_action_param=/boot</action>
4896 <action function="set">tw_action_text1={@installing=Installing...}</action>
4897 <action function="set">tw_action_text2=</action>
4898 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4899 <action function="page">action_page</action>
4900 </actions>
4901 </slider>
4902
4903 <action>
4904 <touch key="back"/>
4905 <action function="page">repackselect</action>
4906 </action>
4907
4908 <action>
4909 <touch key="home"/>
4910 <action function="page">main</action>
4911 </action>
4912 </page>
4913
z31s1g28f0a922015-11-07 18:50:22 +01004914 <page name="lock">
4915 <background color="%semi_transparent%"/>
4916
4917 <image>
4918 <image resource="unlock_icon"/>
4919 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4920 </image>
4921
4922 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004923 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004924 <action function="overlay"/>
4925 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004926
4927 <action>
4928 <touch key="power"/>
4929 <action function="togglebacklight"/>
4930 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004931 </page>
4932
4933 <page name="filemanagerlist">
4934 <template name="page"/>
4935
4936 <template name="statusbar"/>
4937
4938 <text style="text_m">
4939 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004940 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004941 </text>
4942
4943 <fileselector>
4944 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4945 <text>%tw_file_location1%</text>
4946 <filter folders="1" files="1"/>
4947 <path name="tw_file_location1" default="/"/>
4948 <data name="tw_filename1"/>
4949 <selection name="tw_selection1"/>
4950 </fileselector>
4951
4952 <button>
4953 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4954 <highlight color="%highlight_color%"/>
4955 <image resource="q_btn_folder"/>
4956 <actions>
4957 <action function="set">tw_filename1=tw_file_location1</action>
4958 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004959 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004960 <action function="page">filemanageroptions</action>
4961 </actions>
4962 </button>
4963
4964 <action>
4965 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004966 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004967 <action function="set">tw_fm_isfolder=0</action>
4968 </actions>
4969 </action>
4970
4971 <action>
4972 <touch key="home"/>
4973 <action function="page">main</action>
4974 </action>
4975
4976 <action>
4977 <touch key="back"/>
4978 <action function="page">main3</action>
4979 </action>
4980
4981 <action>
4982 <condition var1="tw_filename1" op="modified"/>
4983 <action function="page">filemanageroptions</action>
4984 </action>
4985 </page>
4986
4987 <page name="filemanageroptions">
4988 <template name="page"/>
4989
4990 <template name="statusbar"/>
4991
4992 <text style="text_m">
4993 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004994 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004995 </text>
4996
4997 <button style="main_button">
4998 <condition var1="tw_fm_isfolder" var2="0"/>
4999 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005000 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005001 <actions>
5002 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005003 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005004 <action function="page">choosedestinationfolder</action>
5005 </actions>
5006 </button>
5007
5008 <button style="main_button">
5009 <condition var1="tw_fm_isfolder" var2="1"/>
5010 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005011 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005012 <actions>
5013 <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 -05005014 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005015 <action function="page">choosedestinationfolder</action>
5016 </actions>
5017 </button>
5018
5019 <button style="main_button">
5020 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005021 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005022 <actions>
5023 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005024 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005025 <action function="page">choosedestinationfolder</action>
5026 </actions>
5027 </button>
5028
5029 <button style="main_button">
5030 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005031 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005032 <actions>
5033 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005034 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005035 <action function="set">tw_fm_text2=</action>
5036 <action function="set">tw_fm_text3=</action>
5037 <action function="set">tw_include_text3=0</action>
5038 <action function="set">tw_back=filemanageroptions</action>
5039 <action function="page">filemanagerconfirm</action>
5040 </actions>
5041 </button>
5042
5043 <button style="main_button">
5044 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005045 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005046 <actions>
5047 <action function="set">tw_filemanager_rename=0000</action>
5048 <action function="set">tw_fm_text2=</action>
5049 <action function="set">tw_fm_text3=</action>
5050 <action function="set">tw_include_text3=0</action>
5051 <action function="set">tw_back=filemanageroptions</action>
5052 <action function="page">filemanagerchmod</action>
5053 </actions>
5054 </button>
5055
5056 <button style="main_button">
5057 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005058 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005059 <actions>
5060 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005061 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005062 <action function="set">tw_fm_text2=</action>
5063 <action function="set">tw_fm_text3=</action>
5064 <action function="set">tw_include_text3=0</action>
5065 <action function="set">tw_back=filemanageroptions</action>
5066 <action function="page">filemanagerconfirm</action>
5067 </actions>
5068 </button>
5069
5070 <button style="main_button">
5071 <condition var1="tw_fm_isfolder" var2="0"/>
5072 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005073 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005074 <actions>
5075 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005076 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005077 <action function="set">tw_filemanager_command=mv</action>
5078 <action function="page">filemanagerrenamefile</action>
5079 </actions>
5080 </button>
5081
5082 <button style="main_button">
5083 <condition var1="tw_fm_isfolder" var2="1"/>
5084 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005085 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005086 <actions>
5087 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005088 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005089 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
5090 <action function="page">filemanagerrenamefolder</action>
5091 </actions>
5092 </button>
5093
5094 <action>
5095 <touch key="home"/>
5096 <action function="page">main</action>
5097 </action>
5098
5099 <action>
5100 <touch key="back"/>
5101 <action function="page">filemanagerlist</action>
5102 </action>
5103 </page>
5104
5105 <page name="choosedestinationfolder">
5106 <template name="page"/>
5107
5108 <template name="statusbar"/>
5109
5110 <text style="text_m">
5111 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005112 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005113 </text>
5114
5115 <fileselector>
5116 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5117 <text>%tw_file_location2%</text>
5118 <filter folders="1" files="0"/>
5119 <path name="tw_file_location2" default="/"/>
5120 <data name="tw_filename2"/>
5121 <selection name="tw_selection2"/>
5122 </fileselector>
5123
5124 <button>
5125 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5126 <highlight color="%highlight_color%"/>
5127 <image resource="q_btn_folder"/>
5128 <actions>
5129 <action function="set">tw_fm_text2=to</action>
5130 <action function="set">tw_fm_text3=%tw_file_location2%</action>
5131 <action function="set">tw_include_text3=1</action>
5132 <action function="set">tw_back=filemanageroptions</action>
5133 <action function="page">filemanagerconfirm</action>
5134 </actions>
5135 </button>
5136
5137 <action>
5138 <touch key="home"/>
5139 <action function="page">main</action>
5140 </action>
5141
5142 <action>
5143 <touch key="back"/>
5144 <action function="page">filemanageroptions</action>
5145 </action>
5146 </page>
5147
5148 <page name="filemanagerrenamefile">
5149 <template name="page"/>
5150
5151 <template name="statusbar"/>
5152
5153 <text style="text_m">
5154 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005155 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005156 </text>
5157
5158 <text style="text_m_accent">
5159 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005160 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005161 </text>
5162
5163 <input>
5164 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5165 <text>%tw_filemanager_rename%</text>
5166 <data name="tw_filemanager_rename"/>
5167 <restrict minlen="1" maxlen="128"/>
5168 <actions>
5169 <action function="set">tw_fm_text2=to</action>
5170 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
5171 <action function="set">tw_include_text3=1</action>
5172 <action function="set">tw_back=filemanageroptions</action>
5173 <action function="page">filemanagerconfirm</action>
5174 </actions>
5175 </input>
5176
5177 <fill color="%accent_color%">
5178 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5179 </fill>
5180
5181 <button style="main_button_half_height">
5182 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005183 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005184 <action function="page">filemanageroptions</action>
5185 </button>
5186
5187 <template name="keyboardtemplate"/>
5188
5189 <action>
5190 <touch key="home"/>
5191 <action function="page">main</action>
5192 </action>
5193
5194 <action>
5195 <touch key="back"/>
5196 <action function="page">filemanageroptions</action>
5197 </action>
5198 </page>
5199
5200 <page name="filemanagerrenamefolder">
5201 <template name="page"/>
5202
5203 <template name="statusbar"/>
5204
5205 <text style="text_m">
5206 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005207 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005208 </text>
5209
5210 <text style="text_m_accent">
5211 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005212 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005213 </text>
5214
5215 <input>
5216 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5217 <text>%tw_filemanager_rename%</text>
5218 <data name="tw_filemanager_rename"/>
5219 <restrict minlen="1" maxlen="128"/>
5220 <actions>
5221 <action function="set">tw_fm_text2=to</action>
5222 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
5223 <action function="set">tw_include_text3=1</action>
5224 <action function="set">tw_back=filemanageroptions</action>
5225 <action function="page">filemanagerconfirm</action>
5226 </actions>
5227 </input>
5228
5229 <fill color="%accent_color%">
5230 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5231 </fill>
5232
5233 <button style="main_button_half_height">
5234 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005235 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005236 <action function="page">filemanageroptions</action>
5237 </button>
5238
5239 <template name="keyboardtemplate"/>
5240
5241 <action>
5242 <touch key="home"/>
5243 <action function="page">main</action>
5244 </action>
5245
5246 <action>
5247 <touch key="back"/>
5248 <action function="page">filemanageroptions</action>
5249 </action>
5250 </page>
5251
5252 <page name="filemanagerchmod">
5253 <template name="page"/>
5254
5255 <template name="statusbar"/>
5256
5257 <text style="text_m">
5258 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005259 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005260 </text>
5261
5262 <text style="text_m_accent">
5263 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005264 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005265 </text>
5266
5267 <input>
5268 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5269 <text>%tw_filemanager_rename%</text>
5270 <data name="tw_filemanager_rename"/>
5271 <restrict minlen="3" maxlen="4" allow="0123456789"/>
5272 <actions>
5273 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
5274 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
5275 <action function="set">tw_back=filemanageroptions</action>
5276 <action function="page">filemanagerconfirm</action>
5277 </actions>
5278 </input>
5279
5280 <fill color="%accent_color%">
5281 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5282 </fill>
5283
5284 <button style="main_button_half_height">
5285 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005286 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005287 <action function="page">filemanageroptions</action>
5288 </button>
5289
5290 <template name="keyboardtemplate"/>
5291
5292 <action>
5293 <touch key="home"/>
5294 <action function="page">main</action>
5295 </action>
5296
5297 <action>
5298 <touch key="back"/>
5299 <action function="page">filemanageroptions</action>
5300 </action>
5301 </page>
5302
5303 <page name="filemanagerconfirm">
5304 <template name="page"/>
5305
5306 <template name="statusbar"/>
5307
5308 <text style="text_m">
5309 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005310 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005311 </text>
5312
5313 <text style="text_m_accent">
5314 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5315 <text>%tw_fm_text1%</text>
5316 </text>
5317
5318 <text style="text_m">
5319 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5320 <text>%tw_filename1%</text>
5321 </text>
5322
5323 <text style="text_m_accent">
5324 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5325 <text>%tw_fm_text2%</text>
5326 </text>
5327
5328 <text style="text_m">
5329 <placement x="%center_x%" y="%row6_y%" placement="5"/>
5330 <text>%tw_fm_text3%</text>
5331 </text>
5332
5333 <text style="text_m">
5334 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005335 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005336 </text>
5337
5338 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005339 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005340 <action function="page">filemanageraction</action>
5341 </slider>
5342
5343 <action>
5344 <touch key="back"/>
5345 <action function="page">%tw_back%</action>
5346 </action>
5347
5348 <action>
5349 <touch key="home"/>
5350 <action function="page">main</action>
5351 </action>
5352 </page>
5353
5354 <page name="filemanageraction">
5355 <template name="page"/>
5356
5357 <template name="statusbar"/>
5358
5359 <text style="text_m">
5360 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005361 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005362 </text>
5363
5364 <template name="console"/>
5365
5366 <template name="progress_bar"/>
5367
5368 <action>
5369 <conditions>
5370 <condition var1="tw_operation_state" var2="1"/>
5371 <condition var1="tw_operation_status" var2="0"/>
5372 </conditions>
5373 <actions>
5374 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005375 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005376 <action function="page">action_complete</action>
5377 </actions>
5378 </action>
5379
5380 <action>
5381 <conditions>
5382 <condition var1="tw_operation_state" var2="1"/>
5383 <condition var1="tw_operation_status" op="!=" var2="0"/>
5384 </conditions>
5385 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005386 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005387 <action function="page">action_complete</action>
5388 </actions>
5389 </action>
5390
5391 <action>
5392 <condition var1="tw_include_text3" var2="0"/>
5393 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
5394 </action>
5395
5396 <action>
5397 <condition var1="tw_include_text3" var2="1"/>
5398 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5399 </action>
5400 </page>
5401
5402 <page name="decrypt">
5403 <template name="page"/>
5404
5405 <template name="statusbar"/>
5406
5407 <action>
5408 <condition var1="tw_crypto_pwtype" var2="2"/>
5409 <action function="page">decrypt_pattern</action>
5410 </action>
5411
5412 <text style="text_m">
5413 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005414 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005415 </text>
5416
5417 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04005418 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005419 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005420 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005421 </text>
5422
Noah Jacobson5a79f672019-04-28 00:10:07 -04005423 <text style="text_m_accent">
5424 <condition var1="tw_is_fbe" var2="1"/>
5425 <placement x="%col1_x_left%" y="%row1_y%"/>
5426 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
5427 </text>
5428
z31s1g28f0a922015-11-07 18:50:22 +01005429 <input>
5430 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5431 <text>%tw_crypto_display%</text>
5432 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5433 <restrict minlen="1" maxlen="254"/>
5434 <action function="page">trydecrypt</action>
5435 </input>
5436
5437 <fill color="%accent_color%">
5438 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5439 </fill>
5440
5441 <fill color="%text_fail_color%">
5442 <condition var1="tw_password_fail" var2="1"/>
5443 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5444 </fill>
5445
5446 <text style="text_m_fail">
5447 <condition var1="tw_password_fail" var2="1"/>
5448 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005449 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005450 </text>
5451
5452 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005453 <placement x="%col1_x_left%" y="%row4_y%"/>
5454 <text>{@sel_lang_btn=Select Language}</text>
5455 <action function="page">settings_language</action>
5456 </button>
5457
5458 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005459 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005460 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005461 <actions>
5462 <action function="set">tw_page_done=1</action>
5463 <action function="page">main</action>
5464 </actions>
5465 </button>
5466
5467 <template name="keyboardtemplate"/>
5468 </page>
5469
5470 <page name="decrypt_pattern">
5471 <template name="page"/>
5472
5473 <template name="statusbar"/>
5474
Aleksa Saraib25a1832015-12-31 17:36:00 +01005475 <action>
5476 <action function="set">tw_gui_pattern_grid_size=3</action>
5477 </action>
5478
z31s1g28f0a922015-11-07 18:50:22 +01005479 <text style="text_m">
5480 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005481 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005482 </text>
5483
5484 <text style="text_m_accent">
Noah Jacobson5a79f672019-04-28 00:10:07 -04005485 <condition var1="tw_is_fbe" op="!=" var2="1"/>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005486 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005487 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005488 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005489 </text>
5490
Noah Jacobson5a79f672019-04-28 00:10:07 -04005491 <text style="text_m_accent">
5492 <condition var1="tw_is_fbe" var2="1"/>
5493 <condition var1="tw_password_fail" op="!=" var2="1"/>
5494 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5495 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5496 </text>
5497
Aleksa Saraib25a1832015-12-31 17:36:00 +01005498 <text style="text_m_fail">
5499 <condition var1="tw_password_fail" var2="1"/>
5500 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005501 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005502 </text>
5503
z31s1g28f0a922015-11-07 18:50:22 +01005504 <text style="text_m">
5505 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005506 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005507 </text>
5508
5509 <patternpassword>
5510 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005511 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5512 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5513 <data name="tw_crypto_password"/>
5514 <action function="page">trydecrypt</action>
5515 </patternpassword>
5516
5517 <fill color="#000000">
5518 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5519 </fill>
5520
5521 <button>
5522 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5523 <image resource="back"/>
5524 <condition var1="tw_busy" var2="0"/>
5525 <actions>
5526 <action function="set">tw_page_done=1</action>
5527 <action function="page">main</action>
5528 </actions>
5529 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005530
5531 <button>
5532 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5533 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5534 <image resource="grid_less"/>
5535 <action function="set">tw_gui_pattern_grid_size=3</action>
5536 </button>
5537
5538 <button>
5539 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5540 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5541 <image resource="grid_less"/>
5542 <action function="set">tw_gui_pattern_grid_size=3</action>
5543 </button>
5544
5545 <button>
5546 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5547 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5548 <image resource="grid_less"/>
5549 <action function="set">tw_gui_pattern_grid_size=4</action>
5550 </button>
5551
5552 <button>
5553 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5554 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5555 <image resource="grid_less"/>
5556 <action function="set">tw_gui_pattern_grid_size=5</action>
5557 </button>
5558
5559 <button>
5560 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5561 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5562 <image resource="grid_more"/>
5563 <action function="set">tw_gui_pattern_grid_size=4</action>
5564 </button>
5565
5566 <button>
5567 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5568 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5569 <image resource="grid_more"/>
5570 <action function="set">tw_gui_pattern_grid_size=5</action>
5571 </button>
5572
5573 <button>
5574 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5575 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5576 <image resource="grid_more"/>
5577 <action function="set">tw_gui_pattern_grid_size=6</action>
5578 </button>
5579
5580 <button>
5581 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5582 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5583 <image resource="grid_more"/>
5584 <action function="set">tw_gui_pattern_grid_size=6</action>
5585 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005586 </page>
5587
5588 <page name="trydecrypt">
5589 <template name="page"/>
5590
5591 <template name="statusbar"/>
5592
5593 <text style="text_m">
5594 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005595 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005596 </text>
5597
5598 <template name="console"/>
5599
5600 <template name="progress_bar"/>
5601
5602 <action>
5603 <action function="decrypt"/>
5604 </action>
5605
5606 <action>
5607 <conditions>
5608 <condition var1="tw_operation_state" var2="1"/>
5609 <condition var1="tw_operation_status" op="!=" var2="0"/>
5610 </conditions>
5611 <actions>
5612 <action function="set">tw_password_fail=1</action>
5613 <action function="page">decrypt</action>
5614 </actions>
5615 </action>
5616
5617 <action>
5618 <conditions>
5619 <condition var1="tw_operation_state" var2="1"/>
5620 <condition var1="tw_operation_status" op="=" var2="0"/>
5621 </conditions>
5622 <actions>
5623 <action function="set">tw_page_done=1</action>
5624 <action function="page">main</action>
5625 </actions>
5626 </action>
5627 </page>
5628
z31s1g28f0a922015-11-07 18:50:22 +01005629 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005630 <terminal>
5631 <condition var1="tw_hide_kb" var2="0"/>
5632 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5633 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005634
z31s1g56189522016-01-13 19:12:40 +01005635 <terminal>
5636 <condition var1="tw_hide_kb" var2="1"/>
5637 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5638 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005639
z31s1g56189522016-01-13 19:12:40 +01005640 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005641
5642 <template name="keyboardtemplate"/>
5643
z31s1g608d7ff2016-01-18 19:47:25 +01005644 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005645 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005646 </fill>
z31s1g56189522016-01-13 19:12:40 +01005647
z31s1g608d7ff2016-01-18 19:47:25 +01005648 <button>
z31s1g56189522016-01-13 19:12:40 +01005649 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5650 <image resource="back" />
5651 <condition var1="tw_busy" var2="0" />
5652 <actions>
5653 <action function="set">tw_hide_kb=0</action>
5654 <action function="key">back</action>
5655 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005656 </button>
z31s1g56189522016-01-13 19:12:40 +01005657
z31s1g608d7ff2016-01-18 19:47:25 +01005658 <button>
z31s1g56189522016-01-13 19:12:40 +01005659 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5660 <image resource="home" />
5661 <condition var1="tw_busy" var2="0" />
5662 <actions>
5663 <action function="set">tw_hide_kb=0</action>
5664 <action function="key">home</action>
5665 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005666 </button>
z31s1g56189522016-01-13 19:12:40 +01005667
z31s1g608d7ff2016-01-18 19:47:25 +01005668 <button>
z31s1g56189522016-01-13 19:12:40 +01005669 <condition var1="tw_hide_kb" var2="0"/>
5670 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5671 <image resource="kb_hide" />
5672 <condition var1="tw_busy" var2="0" />
5673 <actions>
5674 <action function="set">tw_hide_kb=1</action>
5675 <action function="page">terminalcommand</action>
5676 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005677 </button>
z31s1g56189522016-01-13 19:12:40 +01005678
z31s1g608d7ff2016-01-18 19:47:25 +01005679 <button>
z31s1g56189522016-01-13 19:12:40 +01005680 <condition var1="tw_hide_kb" var2="1"/>
5681 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5682 <image resource="kb_show" />
5683 <condition var1="tw_busy" var2="0" />
5684 <actions>
5685 <action function="set">tw_hide_kb=0</action>
5686 <action function="page">terminalcommand</action>
5687 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005688 </button>
z31s1g56189522016-01-13 19:12:40 +01005689
z31s1g28f0a922015-11-07 18:50:22 +01005690 <action>
5691 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005692 <actions>
5693 <action function="set">tw_hide_kb=0</action>
5694 <action function="page">main</action>
5695 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005696 </action>
5697
5698 <action>
5699 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005700 <actions>
5701 <action function="set">tw_hide_kb=0</action>
5702 <action function="page">advanced</action>
5703 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005704 </action>
z31s1g56189522016-01-13 19:12:40 +01005705
z31s1g608d7ff2016-01-18 19:47:25 +01005706 <action>
z31s1g56189522016-01-13 19:12:40 +01005707 <touch key="power+voldown" />
5708 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005709 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005710 </page>
5711
5712 <page name="sideload">
5713 <template name="page"/>
5714
5715 <template name="statusbar"/>
5716
5717 <text style="text_m">
5718 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005719 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005720 </text>
5721
5722 <text style="text_m_accent">
5723 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005724 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005725 </text>
5726
5727 <checkbox>
5728 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005729 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005730 <data variable="tw_wipe_dalvik"/>
5731 </checkbox>
5732
5733 <checkbox>
5734 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005735 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005736 <data variable="tw_wipe_cache"/>
5737 </checkbox>
5738
5739 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005740 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005741 <actions>
5742 <action function="set">tw_back=install_type</action>
5743 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005744 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5745 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5746 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005747 <action function="set">tw_has_cancel=1</action>
5748 <action function="set">tw_show_reboot=1</action>
5749 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5750 <action function="page">action_page</action>
5751 </actions>
5752 </slider>
5753
5754 <action>
5755 <touch key="home"/>
5756 <action function="page">main</action>
5757 </action>
5758
5759 <action>
5760 <touch key="back"/>
5761 <action function="page">install_type</action>
5762 </action>
5763 </page>
5764
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005765 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005766 <template name="page"/>
5767
5768 <template name="statusbar"/>
5769
5770 <text style="text_m">
5771 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005772 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005773 </text>
5774
5775 <text style="text_m_accent">
5776 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005777 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005778 </text>
5779
z31s1g28f0a922015-11-07 18:50:22 +01005780 <text style="text_m_fail">
5781 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005782 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005783 </text>
5784
5785 <text style="text_m_fail">
5786 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005787 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005788 </text>
5789
5790 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005791 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005792 <actions>
5793 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005794 <action function="set">tw_action=fixcontexts</action>
5795 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5796 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005797 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005798 <action function="set">tw_show_reboot=1</action>
5799 <action function="page">action_page</action>
5800 </actions>
5801 </slider>
5802
5803 <action>
5804 <touch key="home"/>
5805 <action function="page">main</action>
5806 </action>
5807
5808 <action>
5809 <touch key="back"/>
5810 <action function="page">advanced</action>
5811 </action>
5812 </page>
5813
z31s1g28f0a922015-11-07 18:50:22 +01005814 <page name="slideout">
5815 <fill color="%background_color%">
5816 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5817 </fill>
5818
5819 <console>
5820 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5821 </console>
5822
5823 <fill color="%fileselector_linecolor%">
5824 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5825 </fill>
5826
5827 <fill color="%fileselector_linecolor%">
5828 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5829 </fill>
5830
5831 <button>
5832 <fill color="%transparent%"/>
5833 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5834 <action function="overlay"/>
5835 </button>
5836
5837 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005838 <touch key="power"/>
5839 <action function="togglebacklight"/>
5840 </action>
5841
5842 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005843 <touch key="power+voldown"/>
5844 <action function="screenshot"/>
5845 </action>
5846 </page>
5847
5848 <page name="select_storage">
5849 <template name="page"/>
5850
5851 <template name="statusbar"/>
5852
5853 <text style="text_m">
5854 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5855 <text>%tw_storagetext%</text>
5856 </text>
5857
5858 <partitionlist style="partitionlist_headerless_rb">
5859 <data name="tw_storage_path"/>
5860 <listtype name="storage"/>
5861 </partitionlist>
5862
5863 <button>
5864 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5865 <highlight color="%highlight_color%"/>
5866 <image resource="q_btn_refresh"/>
5867 <actions>
5868 <action function="refreshsizes"/>
5869 <action function="page">select_storage</action>
5870 </actions>
5871 </button>
5872
5873 <button>
5874 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5875 <highlight color="%highlight_color%"/>
5876 <image resource="q_btn_accept"/>
5877 <actions>
5878 <action function="set">tw_clear_destination=%tw_back%</action>
5879 <action function="page">clear_vars</action>
5880 </actions>
5881 </button>
5882
5883 <action>
5884 <touch key="power+voldown"/>
5885 <action function="screenshot"/>
5886 </action>
5887 </page>
Noah Jacobson5a79f672019-04-28 00:10:07 -04005888
5889 <page name="decrypt_users">
5890 <template name="page"/>
5891
5892 <text style="text_l">
5893 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5894 <text>{@decrypt_users=Decrypt Users}</text>
5895 </text>
5896
5897 <text style="text_m_accent">
5898 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5899 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5900 </text>
5901
5902 <listbox>
5903 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
5904 <text>{@select_user=Select User}</text>
5905 <icon selected="radio_true" unselected="radio_false" />
5906 <data name="tw_crypto_user_id" />
5907 </listbox>
5908
5909 <button style="main_button_half_height">
5910 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
5911 <text>{@decrypt_users=Decrypt Users}</text>
5912 <action function="set">tw_crypto_password=</action>
5913 <action function="set">tw_password_fail=0</action>
5914 <action function="page">decrypt</action>
5915 </button>
5916
5917 <action>
5918 <touch key="home"/>
5919 <action function="page">main</action>
5920 </action>
5921
5922 <action>
5923 <touch key="back"/>
5924 <action function="page">advanced</action>
5925 </action>
5926 </page>
epicX98053c32021-01-04 13:01:31 +05305927
5928 <page name="changeTwrpFolder">
5929 <template name="page"/>
5930
5931 <template name="statusbar"/>
5932
5933 <text style="text_m">
5934 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5935 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5936 </text>
5937
5938 <text style="text_m_accent">
5939 <placement x="%col1_x_left%" y="%row1_y%"/>
5940 <text>{@name=Name:}</text>
5941 </text>
5942
5943 <input>
5944 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5945 <text>%tw_custom_folder%</text>
5946 <data name="tw_custom_folder"/>
5947 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5948 <actions>
5949 <action function="set">tw_back=changeTwrpFolder</action>
5950 <action function="set">tw_action=applycustomtwrpfolder</action>
5951 <action function="set">tw_action_param=%tw_custom_folder%</action>
5952 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5953 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5954 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5955 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5956 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5957 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5958 <action function="set">tw_existpage=changeTwrpFolder</action>
5959 <action function="set">tw_notexistpage=confirm_action</action>
5960 <action function="page">filecheck</action>
5961 </actions>
5962 </input>
5963
5964 <fill color="%accent_color%">
5965 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5966 </fill>
5967
5968 <fill color="%text_fail_color%">
5969 <condition var1="tw_fileexists" var2="1"/>
5970 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5971 </fill>
5972
5973 <text style="text_m_fail">
5974 <condition var1="tw_fileexists" var2="1"/>
5975 <placement x="%col1_x_left%" y="%row3_input_y%"/>
5976 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
5977 </text>
5978
5979 <button style="main_button_half_width_low">
5980 <placement x="%col1_x_left%" y="%row4_y%"/>
5981 <text>{@cancel_btn=Cancel}</text>
5982 <action function="page">advanced2</action>
5983 </button>
5984
5985 <button style="main_button_half_height">
5986 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
5987 <placement x="%col1_x_right%" y="%row4_y%"/>
5988 <text>{@restore_defaults_btn=Restore Defaults}</text>
5989 <actions>
5990 <action function="set">tw_back=changeTwrpFolder</action>
5991 <action function="set">tw_action=applycustomtwrpfolder</action>
5992 <action function="set">tw_action_param=TWRP</action>
5993 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5994 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5995 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5996 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
5997 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5998 <action function="set">tw_filecheck=/sdcard/TWRP</action>
5999 <action function="set">tw_existpage=changeTwrpFolder</action>
6000 <action function="set">tw_notexistpage=confirm_action</action>
6001 <action function="page">filecheck</action>
6002 </actions>
6003 </button>
6004
6005 <template name="keyboardtemplate"/>
6006
6007 <action>
6008 <touch key="home"/>
6009 <actions>
6010 <action function="page">main</action>
6011 </actions>
6012 </action>
6013
6014 <action>
6015 <touch key="back"/>
6016 <actions>
6017 <action function="page">advanced2</action>
6018 </actions>
6019 </action>
6020 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006021 </pages>
6022</recovery>