blob: 060d50a79cf7db9c33669beda31c64c482978f55 [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
epicX9597b842021-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>
mauronofrio6d3bf892019-10-26 19:47:55 +0200410 <filter extn=".zip;.ozip;.ZIP;.OZIP" folders="1" files="1"/>
Ian Macdonalde7c34e52021-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>
epicX8f52c0a2021-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
epicX9597b842021-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>
nebrassyac29e692021-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>
epicX9597b842021-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">
Chaosmaster7b66bf52020-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
Chaosmaster7b66bf52020-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
epicX8f52c0a2021-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 Jacobson81d638d2019-04-28 00:10:07 -04001021 <action function="set">tw_crypto_user_id=</action>
1022 <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 Yonker8581ab32020-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">
bigbiffadc599e2020-05-28 19:36:30 +00001412 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Noah Jacobson81d638d2019-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 Jacobson81d638d2019-04-28 00:10:07 -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 Jacobson81d638d2019-04-28 00:10:07 -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 Jacobson81d638d2019-04-28 00:10:07 -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">
bigbiffee7b7ff2020-03-23 15:08:27 -04003200 <conditions>
3201 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3202 <condition var1="tw_is_super" op="=" var2="0"/>
3203 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003204 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003205 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003206 <image resource="checkbox_false"/>
3207 <action function="mountsystemtoggle">1</action>
3208 </button>
3209
3210 <button style="checkbox">
bigbiffee7b7ff2020-03-23 15:08:27 -04003211 <conditions>
3212 <condition var1="tw_mount_system_ro" op="!=" var2="0"/>
3213 <condition var1="tw_is_super" op="=" var2="0"/>
3214 </conditions>
z31s1g28f0a922015-11-07 18:50:22 +01003215 <placement x="%col1_x_left%" y="%row11_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003216 <text>{@mount_sys_ro_s_chk=Mount System RO}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003217 <image resource="checkbox_true"/>
3218 <actions>
3219 <action function="set">tw_lifetime_writes=2</action>
3220 <action function="page">system_readonly_check</action>
3221 </actions>
3222 </button>
3223
3224 <button style="checkbox">
3225 <conditions>
3226 <condition var1="tw_has_mtp" var2="1"/>
3227 <condition var1="tw_mtp_enabled" var2="0"/>
3228 </conditions>
3229 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3230 <image resource="checkbox_false"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003231 <text>{@enable_mtp_btn=Enable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003232 <action function="startmtp"/>
3233 </button>
3234
3235 <button style="checkbox">
3236 <conditions>
3237 <condition var1="tw_has_mtp" var2="1"/>
3238 <condition var1="tw_mtp_enabled" var2="1"/>
3239 </conditions>
3240 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
3241 <image resource="checkbox_true"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003242 <text>{@disable_mtp_btn=Disable MTP}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003243 <action function="stopmtp"/>
3244 </button>
3245
3246 <button>
3247 <placement x="%btn4_col3_x%" y="%row11_y%"/>
3248 <highlight color="%highlight_color%"/>
3249 <image resource="q_btn_storage"/>
3250 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05003251 <action function="set">tw_storagetext={@mount_hdr=Mount} &gt; {@select_storage_hdr=Select Storage}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003252 <action function="set">tw_back=mount</action>
3253 <action function="page">select_storage</action>
3254 </actions>
3255 </button>
3256
3257 <button>
3258 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3259 <highlight color="%highlight_color%"/>
3260 <image resource="q_btn_arrow_right"/>
3261 <action function="page">mount_options</action>
3262 </button>
3263
3264 <action>
3265 <touch key="home"/>
3266 <action function="page">main</action>
3267 </action>
3268
3269 <action>
3270 <touch key="back"/>
3271 <action function="page">main</action>
3272 </action>
3273 </page>
3274
3275 <page name="mount_options">
3276 <template name="page"/>
3277
3278 <template name="statusbar"/>
3279
3280 <text style="text_m">
3281 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003282 <text>{@mount_hdr=Mount} &gt; %tw_storage_display_name%</text>
z31s1g28f0a922015-11-07 18:50:22 +01003283 </text>
3284
3285 <button style="main_button_full_width">
3286 <condition var1="tw_has_usb_storage" var2="1"/>
3287 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003288 <text>{@mount_usb_storage_btn=Mount USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003289 <action function="page">usb_mount</action>
3290 </button>
3291
3292 <button style="main_button_full_width">
3293 <conditions>
3294 <condition var1="tw_is_encrypted" var2="1"/>
3295 <condition var1="tw_is_decrypted" var2="0"/>
3296 </conditions>
3297 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003298 <text>{@decrypt_data_btn=Decrypt Data}</text>
Noah Jacobson81d638d2019-04-28 00:10:07 -04003299 <action function="set">tw_crypto_user_id=0</action>
3300 <action function="set">tw_crypto_password=</action>
3301 <action function="set">tw_password_fail=0</action>
3302 <action function="set">tw_crypto_pwtype=%tw_crypto_pwtype_0%</action>
z31s1g28f0a922015-11-07 18:50:22 +01003303 <action function="page">decrypt</action>
3304 </button>
3305
3306 <button>
3307 <placement x="%col1_x_left%" y="%row11_y%"/>
3308 <highlight color="%highlight_color%"/>
3309 <image resource="q_btn_arrow_left"/>
3310 <action function="page">mount</action>
3311 </button>
3312
3313 <action>
3314 <touch key="home"/>
3315 <action function="page">main</action>
3316 </action>
3317
3318 <action>
3319 <touch key="back"/>
3320 <action function="page">mount</action>
3321 </action>
3322 </page>
3323
3324 <page name="usb_mount">
3325 <template name="page"/>
3326
3327 <template name="statusbar"/>
3328
3329 <text style="text_m">
3330 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003331 <text>{@mount_hdr=Mount} &gt; {@usb_storage_hdr=USB Storage}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003332 </text>
3333
3334 <text style="text_m_accent">
3335 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003336 <text>{@usb_stor_mnt1=USB Storage Mounted}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003337 </text>
3338
3339 <text style="text_m_fail">
3340 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003341 <text>{@usb_stor_mnt2=Be sure to safely remove your device}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003342 </text>
3343
3344 <text style="text_m_fail">
3345 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003346 <text>{@usb_stor_mnt3=from your computer before unmounting!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003347 </text>
3348
3349 <button style="main_button">
3350 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003351 <text>{@unmount_btn=Unmount}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003352 <action function="page">usb_umount</action>
3353 </button>
3354
3355 <action>
3356 <action function="mount">usb</action>
3357 <action function="set">tw_busy=1</action>
3358 </action>
3359 </page>
3360
3361 <page name="usb_umount">
3362 <action>
3363 <action function="unmount">usb</action>
3364 </action>
3365
3366 <action>
3367 <action function="page">mount_options</action>
3368 <action function="set">tw_busy=0</action>
3369 </action>
3370 </page>
3371
3372 <page name="system_readonly_check">
3373 <action>
3374 <action function="checkpartitionlifetimewrites">/system</action>
3375 </action>
3376
3377 <action>
3378 <condition var1="tw_lifetime_writes" var2="1"/>
3379 <actions>
3380 <action function="mountsystemtoggle">0</action>
3381 <action function="page">mount</action>
3382 </actions>
3383 </action>
3384
3385 <action>
3386 <condition var1="tw_lifetime_writes" var2="0"/>
3387 <actions>
3388 <action function="set">tw_back=mount</action>
3389 <action function="page">system_readonly</action>
3390 </actions>
3391 </action>
3392 </page>
3393
3394 <page name="reboot">
Ethan Yonker8581ab32020-12-17 14:51:50 -06003395 <action>
3396 <action function="checkforapp"></action>
3397 <action function="page">reboot2</action>
3398 </action>
3399 </page>
3400
3401 <page name="reboot2">
z31s1g28f0a922015-11-07 18:50:22 +01003402 <template name="page"/>
3403
3404 <template name="statusbar"/>
3405
3406 <text style="text_m">
3407 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Matt Mower3c366972015-12-25 19:28:31 -06003408 <text>{@reboot_hdr=Reboot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003409 </text>
3410
3411 <button style="main_button">
3412 <condition var1="tw_reboot_system" var2="1"/>
3413 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003414 <text>{@rb_system_btn=System}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003415 <actions>
3416 <action function="set">tw_back=reboot</action>
Matt Mower908dd252016-05-25 02:26:50 -05003417 <action function="page">reboot_system_routine</action>
z31s1g28f0a922015-11-07 18:50:22 +01003418 </actions>
3419 </button>
3420
3421 <button style="main_button">
3422 <condition var1="tw_reboot_poweroff" var2="1"/>
3423 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003424 <text>{@rb_poweroff_btn=Power Off}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003425 <actions>
3426 <action function="set">tw_back=reboot</action>
3427 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003428 <action function="set">tw_action_param=poweroff</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003429 <action function="set">tw_reboot_param=poweroff</action>
z31s1g28f0a922015-11-07 18:50:22 +01003430 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003431 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3432 <action function="set">tw_text2={@no_ospo=sure you wish to power off?}</action>
3433 <action function="set">tw_action_text1={@turning_off=Turning Off...}</action>
3434 <action function="set">tw_complete_text1={@turning_off=Turning Off...}</action>
3435 <action function="set">tw_slider_text={@swipe_power_off_s=Power Off}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003436 <action function="page">rebootcheck</action>
3437 </actions>
3438 </button>
3439
3440 <button style="main_button">
3441 <condition var1="tw_reboot_recovery" var2="1"/>
3442 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003443 <text>{@rb_recovery_btn=Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003444 <actions>
3445 <action function="set">tw_back=reboot</action>
3446 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003447 <action function="set">tw_action_param=recovery</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003448 <action function="set">tw_reboot_param=recovery</action>
z31s1g28f0a922015-11-07 18:50:22 +01003449 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003450 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3451 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3452 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3453 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3454 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003455 <action function="page">rebootcheck</action>
3456 </actions>
3457 </button>
3458
3459 <button style="main_button">
3460 <condition var1="tw_reboot_bootloader" var2="1"/>
3461 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003462 <text>{@rb_bootloader_btn=Bootloader}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003463 <actions>
3464 <action function="set">tw_back=reboot</action>
3465 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003466 <action function="set">tw_action_param=bootloader</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003467 <action function="set">tw_reboot_param=bootloader</action>
z31s1g28f0a922015-11-07 18:50:22 +01003468 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003469 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3470 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3471 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3472 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3473 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003474 <action function="page">rebootcheck</action>
3475 </actions>
3476 </button>
3477
3478 <button style="main_button">
3479 <condition var1="tw_download_mode" var2="1"/>
3480 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003481 <text>{@rb_download_btn=Download}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003482 <actions>
3483 <action function="set">tw_back=reboot</action>
3484 <action function="set">tw_action=reboot</action>
Ethan Yonker0afc1fd2017-03-22 15:27:47 -05003485 <action function="set">tw_action_param=download</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003486 <action function="set">tw_reboot_param=download</action>
z31s1g28f0a922015-11-07 18:50:22 +01003487 <action function="set">tw_has_action2=0</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05003488 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3489 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3490 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3491 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3492 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
z31s1g28f0a922015-11-07 18:50:22 +01003493 <action function="page">rebootcheck</action>
3494 </actions>
3495 </button>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003496
mauronofrioe9a49ef2018-10-03 13:38:16 +02003497 <button style="main_button">
3498 <condition var1="tw_edl_mode" var2="1"/>
3499 <placement x="%col1_x_right%" y="%row11_y%"/>
3500 <text>{@rb_edl_btn=Edl}</text>
3501 <actions>
3502 <action function="set">tw_back=reboot</action>
3503 <action function="set">tw_action=reboot</action>
3504 <action function="set">tw_action_param=edl</action>
3505 <action function="set">tw_reboot_param=edl</action>
3506 <action function="set">tw_has_action2=0</action>
3507 <action function="set">tw_text1={@no_os1=No OS Installed! Are you}</action>
3508 <action function="set">tw_text2={@no_osrb=sure you wish to reboot?}</action>
3509 <action function="set">tw_action_text1={@rebooting=Rebooting...}</action>
3510 <action function="set">tw_complete_text1={@rebooting=Rebooting...}</action>
3511 <action function="set">tw_slider_text={@swipe_reboot_s= Reboot}</action>
3512 <action function="page">rebootcheck</action>
3513 </actions>
3514 </button>
z31s1g28f0a922015-11-07 18:50:22 +01003515
3516 <action>
3517 <touch key="home"/>
3518 <action function="page">main</action>
3519 </action>
3520
3521 <action>
3522 <touch key="back"/>
3523 <action function="page">main</action>
3524 </action>
3525 </page>
3526
Ethan Yonker8581ab32020-12-17 14:51:50 -06003527 <page name="installapp">
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003528 <template name="page"/>
3529
3530 <template name="statusbar"/>
3531
3532 <text style="text_m">
3533 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003534 <text>%tw_appinstall_title% &gt; {@reboot_install_app_hdr=Install TWRP App}</text>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003535 </text>
3536
3537 <text style="text_m_accent">
3538 <placement x="%center_x%" y="%row1_y%" placement="5"/>
3539 <text>{@reboot_install_app1=Would you like to install the Official TWRP App?}</text>
3540 </text>
3541
3542 <text style="text_m">
3543 <placement x="%center_x%" y="%row2_y%" placement="5"/>
3544 <text>{@reboot_install_app2=The app can check for new TWRP versions.}</text>
3545 </text>
3546
3547 <checkbox>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003548 <condition var1="tw_mount_system_ro" var2="0"/>
3549 <placement x="%indent%" y="%row5_y%"/>
3550 <text>{@reboot_install_app_system=Install as a System App}</text>
3551 <data variable="tw_app_install_system"/>
3552 </checkbox>
3553
3554 <button style="main_button_half_height">
3555 <placement x="%indent%" y="%row7_y%"/>
Ethan Yonkerfa67cbf2018-07-20 12:22:33 -05003556 <text>{@install_cancel=Do not Install}</text>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003557 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003558 </button>
3559
Ethan Yonker8581ab32020-12-17 14:51:50 -06003560 <slider>
3561 <text>{@swipe_confirm= Confirm}</text>
3562 <actions>
3563 <action function="set">tw_action=installapp</action>
3564 <action function="set">tw_action_text1={@reboot_installing_app=Installing App...}</action>
3565 <action function="set">tw_action_text2=</action>
3566 <action function="set">tw_complete_text1={@successful=Successful}</action>
3567 <action function="page">action_page</action>
3568 </actions>
3569 </slider>
3570
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003571 <action>
3572 <touch key="home"/>
3573 <actions>
3574 <action function="set">tw_app_install_status=0</action>
3575 <action function="page">main</action>
3576 </actions>
3577 </action>
3578
3579 <action>
3580 <touch key="back"/>
3581 <actions>
3582 <action function="set">tw_app_install_status=0</action>
Ethan Yonker8581ab32020-12-17 14:51:50 -06003583 <action function="page">%tw_back%</action>
Ethan Yonker64c5c0a2017-03-06 12:42:54 -06003584 </actions>
3585 </action>
3586 </page>
3587
z31s1g28f0a922015-11-07 18:50:22 +01003588 <page name="system_readonly">
3589 <template name="page"/>
3590
3591 <template name="statusbar"/>
3592
3593 <text style="text_m">
3594 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003595 <text>{@sys_ro_hdr=Unmodified System Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003596 </text>
3597
3598 <text style="text_m_accent">
3599 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003600 <text>{@sys_ro_keep=Keep System Read only?}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003601 </text>
3602
3603 <text style="text_m">
3604 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003605 <text>{@sys_rop1=TWRP can leave your system partition unmodified}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003606 </text>
3607
3608 <text style="text_m">
3609 <placement x="%center_x%" y="%row3_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003610 <text>{@sys_rop2=to make it easier for you to take official updates.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003611 </text>
3612
3613 <text style="text_m">
3614 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003615 <text>{@sys_rop3=TWRP will be unable to prevent the stock ROM from}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003616 </text>
3617
3618 <text style="text_m">
3619 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003620 <text>{@sys_rop4=replacing TWRP and will not offer to root your device.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003621 </text>
3622
3623 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003624 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003625 <text>{@sys_rop5=Installing zips or performing adb operations may still}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003626 </text>
3627
3628 <text style="text_m_fail">
z31s1g608d7ff2016-01-18 19:47:25 +01003629 <placement x="%center_x%" y="%row7_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003630 <text>{@sys_rop6=modify the system partition.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003631 </text>
3632
z31s1g608d7ff2016-01-18 19:47:25 +01003633 <button style="main_button_half_height">
3634 <placement x="%col1_x_right%" y="%row8a_y%"/>
3635 <text>{@sel_lang_btn=Select Language}</text>
3636 <action function="page">settings_language</action>
3637 </button>
3638
z31s1g28f0a922015-11-07 18:50:22 +01003639 <checkbox>
3640 <condition var1="tw_is_encrypted" var2="0"/>
z31s1g608d7ff2016-01-18 19:47:25 +01003641 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003642 <text>{@sys_ro_never_show_chk=Never show this screen during boot again}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003643 <data variable="tw_never_show_system_ro_page"/>
3644 </checkbox>
3645
3646 <button style="main_button_half_height">
3647 <placement x="%col1_x_left%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003648 <text>{@sys_ro_keep_ro_btn=Keep Read Only}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003649 <actions>
3650 <action function="mountsystemtoggle">1</action>
3651 <action function="set">tw_page_done=1</action>
3652 <action function="page">%tw_back%</action>
3653 </actions>
3654 </button>
3655
3656 <button style="main_button_half_height">
3657 <placement x="%col1_x_right%" y="%row13_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003658 <text>{@swipe_allow_mod_s=Allow Modifications}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003659 <actions>
3660 <action function="mountsystemtoggle">0</action>
3661 <action function="set">tw_page_done=1</action>
3662 <action function="page">%tw_back%</action>
3663 </actions>
3664 </button>
3665 </page>
3666
3667 <page name="settings">
3668 <template name="page"/>
3669
3670 <template name="statusbar"/>
3671
3672 <text style="text_m">
3673 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003674 <text>{@settings_hdr=Settings}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003675 </text>
3676
3677 <button style="main_button">
3678 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003679 <text>{@settings_gen_btn=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003680 <action function="page">settings_general</action>
3681 </button>
3682
3683 <button style="main_button">
3684 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003685 <text>{@settings_tz_btn=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003686 <action function="page">settings_timezone</action>
3687 </button>
3688
3689 <button style="main_button">
3690 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003691 <text>{@settings_screen_btn=Screen}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003692 <action function="page">settings_screen</action>
3693 </button>
3694
3695 <button style="main_button">
bigbiff bigbiff3ed778a2019-03-12 19:28:31 -04003696 <condition var1="tw_disable_haptics" var2="0"/>
z31s1g28f0a922015-11-07 18:50:22 +01003697 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003698 <text>{@settings_vibration_btn=Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003699 <action function="page">settings_vibration</action>
3700 </button>
3701
3702 <button style="main_button">
3703 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003704 <text>{@settings_language_btn=Language}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003705 <action function="page">settings_language</action>
3706 </button>
3707
3708 <button>
3709 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3710 <highlight color="%highlight_color%"/>
3711 <image resource="q_btn_reset"/>
3712 <action function="restoredefaultsettings"/>
3713 </button>
3714
3715 <action>
3716 <touch key="home"/>
3717 <action function="page">main</action>
3718 </action>
3719
3720 <action>
3721 <touch key="back"/>
3722 <action function="page">main3</action>
3723 </action>
3724 </page>
3725
3726 <page name="settings_general">
3727 <template name="page"/>
3728
3729 <template name="statusbar"/>
3730
3731 <text style="text_m">
3732 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003733 <text>{@settings_hdr=Settings} &gt; {@settings_gen_s_hdr=General}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003734 </text>
3735
3736 <listbox style="scrolllist">
3737 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_settings_height%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003738 <listitem name="{@zip_sig_chk=Zip signature verification}">
z31s1g28f0a922015-11-07 18:50:22 +01003739 <data variable="tw_signed_zip_verify"/>
3740 </listitem>
Matt Mower8dc25b72016-04-25 23:06:53 -05003741 <listitem name="{@install_reboot_chk=Reboot after installation is complete}">
3742 <data variable="tw_install_reboot"/>
3743 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003744 <listitem name="{@use_rmrf_chk=Use rm -rf instead of formatting}">
z31s1g28f0a922015-11-07 18:50:22 +01003745 <data variable="tw_rm_rf"/>
3746 </listitem>
Matt Mowerbfccfb82016-04-25 23:22:31 -05003747 <listitem name="{@disable_backup_space_chk=Disable free space check before backup}">
3748 <data variable="tw_disable_free_space"/>
3749 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003750 <listitem name="{@skip_digest_backup_chk=Skip Digest generation during backup}">
3751 <data variable="tw_skip_digest_generate"/>
z31s1g28f0a922015-11-07 18:50:22 +01003752 </listitem>
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04003753 <listitem name="{@restore_enable_digest_chk=Enable Digest verification of backup files}">
3754 <data variable="tw_skip_digest_check"/>
z31s1g28f0a922015-11-07 18:50:22 +01003755 </listitem>
epicX9597b842021-03-20 21:58:17 +05303756 <listitem name="{@skip_digest_zip_chk=Skip Digest check before installing zip}">
3757 <data variable="tw_skip_digest_check_zip"/>
3758 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003759 <listitem name="{@use24clock_chk=Use 24-hour clock}">
z31s1g28f0a922015-11-07 18:50:22 +01003760 <data variable="tw_military_time"/>
3761 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003762 <listitem name="{@simact_chk=Simulate actions for theme testing}">
z31s1g28f0a922015-11-07 18:50:22 +01003763 <data variable="tw_simulate_actions"/>
3764 </listitem>
Ethan Yonker74db1572015-10-28 12:44:49 -05003765 <listitem name="{@simfail_chk=Simulate failure for actions}">
z31s1g28f0a922015-11-07 18:50:22 +01003766 <data variable="tw_simulate_fail"/>
3767 <condition var1="tw_simulate_actions" var2="1"/>
3768 </listitem>
bigbiff bigbiff1c01fab2017-08-07 18:41:14 -04003769 <listitem name="{@sha2_chk=Use SHA2 for hashing}">
3770 <condition var1="tw_no_sha2" var2="0"/>
3771 <data variable="tw_use_sha2"/>
3772 </listitem>
Chaosmasterff4f9582020-01-26 15:38:11 +01003773 <listitem name="{@unmount_sys_install=Unmount System before installing a ZIP}">
3774 <data variable="tw_unmount_system"/>
3775 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02003776 <listitem name="{@auto_reflashtwrp_chk=Automatically Reflash TWRP after flashing a ROM}">
3777 <conditions>
3778 <condition var1="tw_has_boot_slots" var2="1"/>
3779 <condition var1="tw_has_repack_tools" var2="1"/>
3780 </conditions>
3781 <data variable="tw_auto_reflashtwrp"/>
3782 </listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003783 </listbox>
3784
3785 <action>
3786 <touch key="home"/>
3787 <action function="page">main</action>
3788 </action>
3789
3790 <action>
3791 <touch key="back"/>
3792 <action function="page">settings</action>
3793 </action>
3794 </page>
3795
3796 <page name="settings_timezone">
3797 <template name="page"/>
3798
3799 <template name="statusbar"/>
3800
3801 <text style="text_m">
3802 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003803 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003804 </text>
3805
3806 <text color="%text_color%">
3807 <font resource="font_m"/>
3808 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3809 <text>%tw_time%</text>
3810 </text>
3811
3812 <listbox style="listbox_headerless">
3813 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%listbox_timezone_height%"/>
3814 <data name="tw_time_zone_guisel"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003815 <listitem name="{@utcm11=(UTC -11) Samoa, Midway Island}">BST11;BDT</listitem>
3816 <listitem name="{@utcm10=(UTC -10) Hawaii}">HST10;HDT</listitem>
3817 <listitem name="{@utcm9=(UTC -9) Alaska}">AST9;ADT</listitem>
3818 <listitem name="{@utcm8=(UTC -8) Pacific Time}">PST8;PDT,M3.2.0,M11.1.0</listitem>
3819 <listitem name="{@utcm7=(UTC -7) Mountain Time}">MST7;MDT,M3.2.0,M11.1.0</listitem>
3820 <listitem name="{@utcm6=(UTC -6) Central Time}">CST6;CDT,M3.2.0,M11.1.0</listitem>
3821 <listitem name="{@utcm5=(UTC -5) Eastern Time}">EST5;EDT,M3.2.0,M11.1.0</listitem>
3822 <listitem name="{@utcm4=(UTC -4) Atlantic Time}">AST4;ADT</listitem>
3823 <listitem name="{@utcm3=(UTC -3) Brazil, Buenos Aires}">GRNLNDST3;GRNLNDDT</listitem>
3824 <listitem name="{@utcm2=(UTC -2) Mid-Atlantic}">FALKST2;FALKDT</listitem>
3825 <listitem name="{@utcm1=(UTC -1) Azores, Cape Verde}">AZOREST1;AZOREDT</listitem>
3826 <listitem name="{@utc0=(UTC 0) London, Dublin, Lisbon}">GMT0;BST,M3.5.0,M10.5.0</listitem>
3827 <listitem name="{@utcp1=(UTC +1) Berlin, Brussels, Paris}">CET-1;CEST,M3.5.0,M10.5.0</listitem>
3828 <listitem name="{@utcp2=(UTC +2) Athens, Istanbul, South Africa}">WET-2;WET,M3.5.0,M10.5.0</listitem>
3829 <listitem name="{@utcp3=(UTC +3) Moscow, Baghdad}">SAUST-3;SAUDT</listitem>
3830 <listitem name="{@utcp4=(UTC +4) Abu Dhabi, Tbilisi, Muscat}">WST-4;WDT</listitem>
3831 <listitem name="{@utcp5=(UTC +5) Yekaterinburg, Islamabad}">PAKST-5;PAKDT</listitem>
3832 <listitem name="{@utcp6=(UTC +6) Almaty, Dhaka, Colombo}">TASHST-6;TASHDT</listitem>
3833 <listitem name="{@utcp7=(UTC +7) Bangkok, Hanoi, Jakarta}">THAIST-7;THAIDT</listitem>
3834 <listitem name="{@utcp8=(UTC +8) Beijing, Singapore, Hong Kong}">TAIST-8;TAIDT</listitem>
3835 <listitem name="{@utcp9=(UTC +9) Tokyo, Seoul, Yakutsk}">JST-9;JSTDT</listitem>
3836 <listitem name="{@utcp10=(UTC +10) Eastern Australia, Guam}">EET-10;EETDT</listitem>
3837 <listitem name="{@utcp11=(UTC +11) Vladivostok, Solomon Islands}">MET-11;METDT</listitem>
3838 <listitem name="{@utcp12=(UTC +12) Auckland, Wellington, Fiji}">NZST-12;NZDT</listitem>
z31s1g28f0a922015-11-07 18:50:22 +01003839 </listbox>
3840
3841 <button>
3842 <placement x="%btn4_col4_x%" y="%row11_y%"/>
3843 <highlight color="%highlight_color%"/>
3844 <image resource="q_btn_arrow_right"/>
3845 <actions>
3846 <action function="setguitimezone"/>
3847 <action function="page">settings_timezone2</action>
3848 </actions>
3849 </button>
3850
3851 <action>
3852 <condition var1="tw_time_zone_guisel" op="modified"/>
3853 <action function="setguitimezone"/>
3854 </action>
3855
3856 <action>
3857 <touch key="home"/>
3858 <actions>
3859 <action function="page">main</action>
3860 <action function="setguitimezone"/>
3861 </actions>
3862 </action>
3863
3864 <action>
3865 <touch key="back"/>
3866 <actions>
3867 <action function="page">settings</action>
3868 <action function="setguitimezone"/>
3869 </actions>
3870 </action>
3871
3872 <action>
3873 <touch key="power+voldown"/>
3874 <action function="screenshot"/>
3875 </action>
3876 </page>
3877
3878 <page name="settings_timezone2">
3879 <template name="page"/>
3880
3881 <template name="statusbar"/>
3882
3883 <text style="text_m">
3884 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003885 <text>{@settings_hdr=Settings} &gt; {@time_zone_hdr=Time Zone}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003886 </text>
3887
3888 <text color="%text_color%">
3889 <font resource="font_m"/>
3890 <placement x="%indent_right%" y="%row1_header_y%" placement="1"/>
3891 <text>%tw_time%</text>
3892 </text>
3893
3894 <checkbox>
3895 <placement x="%col1_x_left%" y="%row1_y%"/>
3896 <font resource="font_m" color="%text_color%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003897 <text>{@use_dst_chk=Use daylight savings time (DST)}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003898 <data variable="tw_time_zone_guidst"/>
3899 <image checked="checkbox_true" unchecked="checkbox_false"/>
3900 </checkbox>
3901
3902 <text style="text_m_accent">
3903 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003904 <text>{@sel_tz_offset=Select Offset (usually 0): %tw_time_zone_guioffset%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003905 </text>
3906
3907 <button style="main_button_quarter_width">
3908 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003909 <text>{@tz_offset_0=0}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003910 <actions>
3911 <action function="set">tw_time_zone_guioffset=0</action>
3912 <action function="setguitimezone"/>
3913 </actions>
3914 </button>
3915
3916 <button style="main_button_quarter_width">
3917 <placement x="%btn4_col2_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003918 <text>{@tz_offset_15=15}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003919 <actions>
3920 <action function="set">tw_time_zone_guioffset=15</action>
3921 <action function="setguitimezone"/>
3922 </actions>
3923 </button>
3924
3925 <button style="main_button_quarter_width">
3926 <placement x="%btn4_col3_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003927 <text>{@tz_offset_30=30}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003928 <actions>
3929 <action function="set">tw_time_zone_guioffset=30</action>
3930 <action function="setguitimezone"/>
3931 </actions>
3932 </button>
3933
3934 <button style="main_button_quarter_width">
3935 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003936 <text>{@tz_offset_45=45}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003937 <actions>
3938 <action function="set">tw_time_zone_guioffset=45</action>
3939 <action function="setguitimezone"/>
3940 </actions>
3941 </button>
3942
3943 <button>
3944 <placement x="%col1_x_left%" y="%row11_y%"/>
3945 <highlight color="%highlight_color%"/>
3946 <image resource="q_btn_arrow_left"/>
3947 <actions>
3948 <action function="setguitimezone"/>
3949 <action function="page">settings_timezone</action>
3950 </actions>
3951 </button>
3952
3953 <text style="text_m_accent">
3954 <placement x="%btn4_col2_x%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003955 <text>{@curr_tz_s=Current Time Zone:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003956 </text>
3957
3958 <text style="text_m">
3959 <placement x="%btn4_col2_x%" y="%row12a_y%"/>
3960 <text>%tw_time_zone%</text>
3961 </text>
3962
3963 <action>
3964 <condition var1="tw_time_zone_guidst" op="modified"/>
3965 <action function="setguitimezone"/>
3966 </action>
3967
3968 <action>
3969 <touch key="home"/>
3970 <actions>
3971 <action function="setguitimezone"/>
3972 <action function="page">main</action>
3973 </actions>
3974 </action>
3975
3976 <action>
3977 <touch key="back"/>
3978 <actions>
3979 <action function="setguitimezone"/>
3980 <action function="page">settings_timezone</action>
3981 </actions>
3982 </action>
3983 </page>
3984
3985 <page name="settings_screen">
3986 <template name="page"/>
3987
3988 <template name="statusbar"/>
3989
3990 <text style="text_m">
3991 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003992 <text>{@settings_hdr=Settings} &gt; {@settings_screen_timeout_hdr=Screen Timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01003993 </text>
3994
3995 <button style="checkbox">
3996 <condition var1="tw_screen_timeout_secs" op="=" var2="0"/>
3997 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
3998 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05003999 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004000 <image resource="checkbox_false"/>
4001 <action function="set">tw_screen_timeout_secs=60</action>
4002 </button>
4003
4004 <button style="checkbox">
4005 <condition var1="tw_screen_timeout_secs" op="!=" var2="0"/>
4006 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4007 <placement x="%indent%" y="%row1_y%" textplacement="6"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004008 <text>{@enable_timeout_chk=Enable screen timeout}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004009 <image resource="checkbox_true"/>
4010 <action function="set">tw_screen_timeout_secs=0</action>
4011 </button>
4012
4013 <slidervalue>
4014 <condition var1="tw_no_screen_timeout" op="!=" var2="1"/>
4015 <placement x="col1_x_left" y="%row2a_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004016 <text>{@screen_to_slider_s=Screen timeout in seconds (0=disabled): %tw_screen_timeout_secs%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004017 <data variable="tw_screen_timeout_secs" min="15" max="300"/>
4018 </slidervalue>
4019
4020 <text style="text_m_fail">
4021 <condition var1="tw_no_screen_timeout" op="=" var2="1"/>
4022 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004023 <text>{@screen_to_na=Screen timeout setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004024 </text>
4025
4026 <button>
4027 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4028 <highlight color="%highlight_color%"/>
4029 <image resource="q_btn_arrow_right"/>
4030 <action function="page">settings_screen2</action>
4031 </button>
4032
4033 <action>
4034 <touch key="home"/>
4035 <action function="page">main</action>
4036 </action>
4037
4038 <action>
4039 <touch key="back"/>
4040 <action function="page">settings</action>
4041 </action>
4042 </page>
4043
4044 <page name="settings_screen2">
4045 <template name="page"/>
4046
4047 <template name="statusbar"/>
4048
4049 <text style="text_m">
4050 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004051 <text>{@settings_hdr=Settings} &gt; {@settings_screen_bright_btn=Screen Brightness}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004052 </text>
4053
4054 <slidervalue>
4055 <condition var1="tw_has_brightnesss_file" var2="1"/>
4056 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004057 <text>{@screen_bright_slider=Brightness: %tw_brightness_pct%%}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004058 <data variable="tw_brightness_pct" min="10" max="100"/>
4059 <actions>
4060 <action function="set">tw_brightness=%tw_brightness_max%</action>
4061 <action function="compute">tw_brightness*%tw_brightness_pct%</action>
4062 <action function="compute">tw_brightness/100</action>
4063 <action function="setbrightness">%tw_brightness%</action>
4064 </actions>
4065 </slidervalue>
4066
4067 <text style="text_m_fail">
4068 <condition var1="tw_has_brightnesss_file" var2="0"/>
4069 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004070 <text>{@screen_bright_na=Brightness setting unavailable}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004071 </text>
4072
4073 <button>
4074 <placement x="%col1_x_left%" y="%row11_y%"/>
4075 <highlight color="%highlight_color%"/>
4076 <image resource="q_btn_arrow_left"/>
4077 <action function="page">settings_screen</action>
4078 </button>
4079
4080 <action>
4081 <touch key="home"/>
4082 <action function="page">main</action>
4083 </action>
4084
4085 <action>
4086 <touch key="back"/>
4087 <action function="page">settings</action>
4088 </action>
4089 </page>
4090
4091 <page name="settings_vibration">
4092 <template name="page"/>
4093
4094 <template name="statusbar"/>
4095
4096 <text style="text_m">
4097 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004098 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@button_vibration_hdr=Button Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004099 </text>
4100
4101 <slidervalue>
4102 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004103 <text>{@button_vibration=Button Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004104 <data variable="tw_button_vibrate" min="0" max="300"/>
4105 </slidervalue>
4106
4107 <button>
4108 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4109 <highlight color="%highlight_color%"/>
4110 <image resource="q_btn_arrow_right"/>
4111 <action function="page">settings_vibration2</action>
4112 </button>
4113
4114 <action>
4115 <touch key="home"/>
4116 <action function="page">main</action>
4117 </action>
4118
4119 <action>
4120 <touch key="back"/>
4121 <action function="page">settings</action>
4122 </action>
4123 </page>
4124
4125 <page name="settings_vibration2">
4126 <template name="page"/>
4127
4128 <template name="statusbar"/>
4129
4130 <text style="text_m">
4131 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004132 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@kb_vibration_hdr=Keyboard Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004133 </text>
4134
4135 <slidervalue>
4136 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004137 <text>{@kb_vibration=Keyboard Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004138 <data variable="tw_keyboard_vibrate" min="0" max="300"/>
4139 </slidervalue>
4140
4141 <button>
4142 <placement x="%col1_x_left%" y="%row11_y%"/>
4143 <highlight color="%highlight_color%"/>
4144 <image resource="q_btn_arrow_left"/>
4145 <action function="page">settings_vibration</action>
4146 </button>
4147
4148 <button>
4149 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4150 <highlight color="%highlight_color%"/>
4151 <image resource="q_btn_arrow_right"/>
4152 <action function="page">settings_vibration3</action>
4153 </button>
4154
4155 <action>
4156 <touch key="home"/>
4157 <action function="page">main</action>
4158 </action>
4159
4160 <action>
4161 <touch key="back"/>
4162 <action function="page">settings</action>
4163 </action>
4164 </page>
4165
4166 <page name="settings_vibration3">
4167 <template name="page"/>
4168
4169 <template name="statusbar"/>
4170
4171 <text style="text_m">
4172 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004173 <text>{@settings_hdr=Settings} &gt; {@vibration_hdr=Vibration} - {@act_vibration_hdr=Action Vibration}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004174 </text>
4175
4176 <slidervalue>
4177 <placement x="col1_x_left" y="%row1_y%" w="%content_width%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004178 <text>{@act_vibration=Action Vibration:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004179 <data variable="tw_action_vibrate" min="0" max="500"/>
4180 </slidervalue>
4181
4182 <button>
4183 <placement x="%col1_x_left%" y="%row11_y%"/>
4184 <highlight color="%highlight_color%"/>
4185 <image resource="q_btn_arrow_left"/>
4186 <action function="page">settings_vibration2</action>
4187 </button>
4188
4189 <action>
4190 <touch key="home"/>
4191 <action function="page">main</action>
4192 </action>
4193
4194 <action>
4195 <touch key="back"/>
4196 <action function="page">settings</action>
4197 </action>
4198 </page>
4199
Ethan Yonker74db1572015-10-28 12:44:49 -05004200 <page name="settings_language">
4201 <template name="page"/>
4202
4203 <template name="statusbar"/>
4204
4205 <text style="text_m">
4206 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4207 <text>{@settings_hdr=Settings} &gt; {@language_hdr=Language} - %tw_language_display%</text>
4208 </text>
4209
z31s1g608d7ff2016-01-18 19:47:25 +01004210 <listbox style="scrolllist">
Ethan Yonker74db1572015-10-28 12:44:49 -05004211 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4212 <icon selected="radio_true" unselected="radio_false" />
4213 <data name="tw_language" />
z31s1g608d7ff2016-01-18 19:47:25 +01004214 </listbox>
Ethan Yonker74db1572015-10-28 12:44:49 -05004215
4216 <button>
4217 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4218 <highlight color="%highlight_color%"/>
z31s1g608d7ff2016-01-18 19:47:25 +01004219 <image resource="q_btn_accept_transp"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004220 <action function="setlanguage"></action>
4221 </button>
4222
z31s1g608d7ff2016-01-18 19:47:25 +01004223 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004224 <touch key="home" />
4225 <action function="page">main</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004226 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004227
z31s1g608d7ff2016-01-18 19:47:25 +01004228 <action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004229 <touch key="back" />
4230 <action function="page">settings</action>
z31s1g608d7ff2016-01-18 19:47:25 +01004231 </action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004232 </page>
4233
z31s1g28f0a922015-11-07 18:50:22 +01004234 <page name="advanced">
4235 <template name="page"/>
4236
4237 <template name="statusbar"/>
4238
4239 <text style="text_m">
4240 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004241 <text>{@advanced_hdr=Advanced}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004242 </text>
4243
4244 <button style="main_button">
4245 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004246 <text>{@terminal_btn=Terminal}</text>
z31s1g56189522016-01-13 19:12:40 +01004247 <action function="page">terminalcommand</action>
z31s1g28f0a922015-11-07 18:50:22 +01004248 </button>
4249
4250 <button style="main_button">
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004251 <condition var1="tw_has_data_media" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01004252 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06004253 <text>{@fix_context_btn=Fix Contexts}</text>
4254 <action function="page">fixcontexts</action>
z31s1g28f0a922015-11-07 18:50:22 +01004255 </button>
4256
Ethan Yonker64e0a652018-07-25 09:52:17 -05004257 <button>
4258 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4259 <highlight color="%highlight_color%"/>
4260 <image resource="q_btn_arrow_right"/>
4261 <action function="page">advanced2</action>
z31s1g28f0a922015-11-07 18:50:22 +01004262 </button>
4263
Ethan Yonker64e0a652018-07-25 09:52:17 -05004264 <action>
4265 <touch key="home"/>
4266 <action function="page">main</action>
4267 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004268
Ethan Yonker64e0a652018-07-25 09:52:17 -05004269 <action>
4270 <touch key="back"/>
4271 <action function="page">main3</action>
4272 </action>
4273 </page>
4274
4275 <page name="advanced2">
4276 <template name="page"/>
4277
4278 <template name="statusbar"/>
4279
4280 <text style="text_m">
4281 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4282 <text>{@advanced_hdr=Advanced}</text>
4283 </text>
4284
4285 <listbox style="advanced_listbox">
4286 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
epicXa721f952021-01-04 13:01:31 +05304287 <listitem name="{@change_twrp_folder_btn=Change TWRP folder}">
4288 <condition var1="tw_is_encrypted" var2="0"/>
4289 <action function="page">changeTwrpFolder</action>
4290 </listitem>
Noah Jacobson81d638d2019-04-28 00:10:07 -04004291 <listitem name="{@decrypt_users=Decrypt Users}">
4292 <conditions>
4293 <condition var1="tw_is_fbe" var2="1"/>
4294 <condition var1="tw_all_users_decrypted" var2="0"/>
4295 </conditions>
4296 <actions>
4297 <action function="set">tw_crypto_user_id=</action>
4298 <action function="page">decrypt_users</action>
4299 </actions>
4300 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004301 <listitem name="{@reload_theme_btn=Reload Theme}">
4302 <action function="reload"/>
4303 </listitem>
4304 <listitem name="{@part_sd_btn=Partition SD Card}">
4305 <condition var1="tw_allow_partition_sdcard" var2="1"/>
4306 <actions>
4307 <action function="set">partitionlisterror=0</action>
4308 <action function="page">partsdcardsel</action>
4309 </actions>
4310 </listitem>
4311 <listitem name="{@dumlock_btn=HTC Dumlock}">
4312 <condition var1="tw_show_dumlock" var2="1"/>
4313 <action function="page">htcdumlock</action>
4314 </listitem>
4315 <listitem name="{@inject_twrp_btn=Inject TWRP}">
4316 <condition var1="tw_has_injecttwrp" var2="1"/>
4317 <actions>
4318 <action function="set">tw_back=advanced</action>
4319 <action function="set">tw_action=reinjecttwrp</action>
4320 <action function="set">tw_text1={@inject_twrp_confirm=Re-Inject TWRP?}</action>
4321 <action function="set">tw_action_text1={@injecting_twrp=Re-Injecting TWRP...}</action>
4322 <action function="set">tw_complete_text1={@inject_twrp_complete=TWRP Injection Complete}</action>
4323 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4324 <action function="page">confirm_action</action>
4325 </actions>
4326 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004327 <listitem name="{@install_twrp_ramdisk=Install Recovery Ramdisk}">
4328 <conditions>
4329 <condition var1="tw_has_boot_slots" var2="1"/>
4330 <condition var1="tw_has_repack_tools" var2="1"/>
4331 </conditions>
4332 <actions>
4333 <action function="set">tw_repack_kernel=0</action>
4334 <action function="page">repackselect</action>
4335 </actions>
4336 </listitem>
nebrassyac29e692021-05-20 13:03:30 +02004337 <listitem name="{@reflash_twrp=Flash Current TWRP}">
4338 <conditions>
4339 <condition var1="tw_has_boot_slots" var2="1"/>
4340 <condition var1="tw_has_repack_tools" var2="1"/>
4341 </conditions>
4342 <actions>
4343 <action function="set">tw_repack_kernel=0</action>
4344 <action function="set">tw_back=advanced</action>
4345 <action function="set">tw_action=reflashtwrp</action>
4346 <action function="set">tw_text1={@reflash_twrp_confirm=Flash Current TWRP?}</action>
4347 <action function="set">tw_action_text1={@reflashing_twrp=Flashing TWRP...}</action>
4348 <action function="set">tw_complete_text1={@reflash_twrp_complete=Done Flashing TWRP}</action>
4349 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4350 <action function="page">confirm_action</action>
4351 </actions>
4352 </listitem>
Ethan Yonker53796e72019-01-11 22:49:52 -06004353 <listitem name="{@install_kernel=Install Kernel}">
4354 <conditions>
4355 <condition var1="tw_has_boot_slots" var2="1"/>
4356 <condition var1="tw_has_repack_tools" var2="1"/>
4357 </conditions>
4358 <actions>
4359 <action function="set">tw_repack_kernel=1</action>
4360 <action function="page">repackselect</action>
4361 </actions>
4362 </listitem>
4363 <listitem name="{@fix_recovery_loop=Fix Recovery Bootloop}">
4364 <conditions>
4365 <condition var1="tw_has_boot_slots" var2="1"/>
4366 <condition var1="tw_has_repack_tools" var2="1"/>
4367 </conditions>
4368 <actions>
4369 <action function="set">tw_back=advanced</action>
4370 <action function="set">tw_action=fixabrecoverybootloop</action>
4371 <action function="set">tw_text1={@fix_recovery_loop_confirm=Fix Recovery Bootloop?}</action>
4372 <action function="set">tw_action_text1={@fixing_recovery_loop=Fixing Recovery Bootloop...}</action>
4373 <action function="set">tw_complete_text1={@fix_recovery_loop_complete=Fix Recovery Bootloop Complete}</action>
4374 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4375 <action function="page">confirm_action</action>
4376 </actions>
4377 </listitem>
Ethan Yonker8581ab32020-12-17 14:51:50 -06004378 <listitem name="{@reboot_install_app_hdr=Install TWRP App}">
4379 <condition var1="tw_app_install_status" var2="1"/>
4380 <actions>
4381 <action function="set">tw_back=advanced2</action>
4382 <action function="set">tw_appinstall_title={@advanced_hdr=Advanced}</action>
4383 <action function="page">installapp</action>
4384 </actions>
4385 </listitem>
Ethan Yonker76bbd3a2019-05-10 10:50:04 -05004386 <listitem name="{@uninstall_twrp_system_app=Uninstall TWRP App from System}">
4387 <condition var1="tw_app_installed_in_system" var2="1"/>
4388 <actions>
4389 <action function="set">tw_back=advanced</action>
4390 <action function="set">tw_action=uninstalltwrpsystemapp</action>
4391 <action function="set">tw_text1={@uninstall_twrp_system_app_confirm=Uninstall TWRP App from System?}</action>
4392 <action function="set">tw_action_text1={@uninstalling_twrp_system_app=Uninstalling TWRP App from System...}</action>
4393 <action function="set">tw_complete_text1={@uninstall_twrp_system_app_complete=Uninstall TWRP App from System Complete}</action>
4394 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4395 <action function="page">confirm_action</action>
4396 </actions>
4397 </listitem>
bigbiffcfa875c2021-06-20 16:20:27 -04004398 <listitem name="{@unmap_super_devices=Unmap Super Devices}">
4399 <actions>
4400 <action function="set">tw_back=advanced</action>
4401 <action function="set">tw_action=unmapsuperdevices</action>
4402 <action function="set">tw_text1={@unmap_super_devices_confirm=Unmap all Super Devices?}</action>
4403 <action function="set">tw_action_text1={@unmapping_super_devices=Unmapping Super Devices...}</action>
4404 <action function="set">tw_complete_text1={@unmap_super_devices_complete=Unmapped all Super Devices}</action>
4405 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4406 <action function="page">confirm_action</action>
4407 </actions>
4408 </listitem>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004409 </listbox>
4410
4411 <button>
z31s1g28f0a922015-11-07 18:50:22 +01004412 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker64e0a652018-07-25 09:52:17 -05004413 <highlight color="%highlight_color%"/>
4414 <image resource="q_btn_arrow_left"/>
4415 <action function="page">advanced</action>
z31s1g28f0a922015-11-07 18:50:22 +01004416 </button>
4417
4418 <action>
4419 <touch key="home"/>
4420 <action function="page">main</action>
4421 </action>
4422
4423 <action>
4424 <touch key="back"/>
4425 <action function="page">main3</action>
4426 </action>
4427 </page>
4428
Ethan Yonker483e9f42016-01-11 22:21:18 -06004429 <page name="partsdcardsel">
4430 <template name="page"/>
4431
4432 <template name="statusbar"/>
4433
4434 <text style="text_m">
4435 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4436 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
4437 </text>
4438
4439 <partitionlist style="partitionlist_headerless_rb">
4440 <data name="tw_storage_path"/>
4441 <listtype name="storage"/>
4442 </partitionlist>
4443
4444 <text style="text_m_fail">
4445 <condition var1="partitionlisterror" var2="1"/>
4446 <placement x="%center_x%" y="%row9_y%" placement="5"/>
4447 <text>{@invalid_partsd_sel=You must select a removable device}</text>
4448 </text>
4449
4450 <button>
4451 <placement x="%btn4_col2_x%" y="%row11_y%"/>
4452 <highlight color="%highlight_color%"/>
4453 <image resource="q_btn_refresh"/>
4454 <action function="refreshsizes"/>
4455 </button>
4456
4457 <button>
4458 <placement x="%btn4_col3_x%" y="%row11_y%"/>
4459 <highlight color="%highlight_color%"/>
4460 <image resource="q_btn_accept"/>
4461 <actions>
4462 <action function="getpartitiondetails">tw_storage_path</action>
4463 <action function="page">partsdcardcheck</action>
4464 </actions>
4465 </button>
4466
4467 <action>
4468 <touch key="home"/>
4469 <action function="page">main</action>
4470 </action>
4471
4472 <action>
4473 <touch key="back"/>
4474 <action function="page">advanced</action>
4475 </action>
4476 </page>
4477
4478 <page name="partsdcardcheck">
4479 <action>
4480 <condition var1="tw_partition_removable" op="=" var2="1"/>
4481 <actions>
4482 <action function="set">partitionlisterror=0</action>
4483 <action function="page">partsdcard</action>
4484 </actions>
4485 </action>
4486
4487 <action>
4488 <condition var1="tw_partition_removable" op="!=" var2="1"/>
4489 <actions>
4490 <action function="set">partitionlisterror=1</action>
4491 <action function="page">partsdcardsel</action>
4492 </actions>
4493 </action>
4494 </page>
4495
z31s1g28f0a922015-11-07 18:50:22 +01004496 <page name="partsdcard">
4497 <template name="page"/>
4498
4499 <template name="statusbar"/>
4500
4501 <text style="text_m">
4502 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004503 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004504 </text>
4505
4506 <text style="text_m_fail">
4507 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004508 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004509 </text>
4510
4511 <text style="text_m_fail">
4512 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004513 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004514 </text>
4515
4516 <text style="text_m_accent">
4517 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004518 <text>{@part_sd_ext_sz=EXT Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004519 </text>
4520
4521 <text style="text_m">
4522 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4523 <text>%tw_sdext_size%</text>
4524 </text>
4525
4526 <button style="main_button_quarter_width">
4527 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004528 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004529 <action function="addsubtract">tw_sdext_size-256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004530 </button>
4531
4532 <button style="main_button_quarter_width">
4533 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004534 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004535 <action function="addsubtract">tw_sdext_size+256</action>
z31s1g28f0a922015-11-07 18:50:22 +01004536 </button>
4537
4538 <button>
4539 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4540 <highlight color="%highlight_color%"/>
4541 <image resource="q_btn_arrow_right"/>
4542 <action function="page">partsdcard2</action>
4543 </button>
4544
4545 <action>
4546 <touch key="home"/>
4547 <action function="page">main</action>
4548 </action>
4549
4550 <action>
4551 <touch key="back"/>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004552 <action function="page">partsdcardsel</action>
z31s1g28f0a922015-11-07 18:50:22 +01004553 </action>
4554 </page>
4555
4556 <page name="partsdcard2">
4557 <template name="page"/>
4558
4559 <template name="statusbar"/>
4560
4561 <text style="text_m">
4562 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004563 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004564 </text>
4565
4566 <text style="text_m_fail">
4567 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004568 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004569 </text>
4570
4571 <text style="text_m_fail">
4572 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004573 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004574 </text>
4575
4576 <text style="text_m_accent">
4577 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004578 <text>{@part_sd_swap_sz=Swap Size:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004579 </text>
4580
4581 <text style="text_m">
4582 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4583 <text>%tw_swap_size%</text>
4584 </text>
4585
4586 <button style="main_button_quarter_width">
4587 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004588 <text>{@part_sd_m=-}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004589 <action function="addsubtract">tw_swap_size-64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004590 </button>
4591
4592 <button style="main_button_quarter_width">
4593 <placement x="%btn4_col4_x%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004594 <text>{@part_sd_p=+}</text>
Ethan Yonker483e9f42016-01-11 22:21:18 -06004595 <action function="addsubtract">tw_swap_size+64</action>
z31s1g28f0a922015-11-07 18:50:22 +01004596 </button>
4597
4598 <button>
4599 <placement x="%col1_x_left%" y="%row11_y%"/>
4600 <highlight color="%highlight_color%"/>
4601 <image resource="q_btn_arrow_left"/>
4602 <action function="page">partsdcard</action>
4603 </button>
4604
4605 <button>
4606 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4607 <highlight color="%highlight_color%"/>
4608 <image resource="q_btn_arrow_right"/>
4609 <action function="page">partsdcard3</action>
4610 </button>
4611
4612 <action>
4613 <touch key="home"/>
4614 <action function="page">main</action>
4615 </action>
4616
4617 <action>
4618 <touch key="back"/>
4619 <action function="page">advanced</action>
4620 </action>
4621 </page>
4622
4623 <page name="partsdcard3">
4624 <template name="page"/>
4625
4626 <template name="statusbar"/>
4627
4628 <text style="text_m">
4629 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004630 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004631 </text>
4632
4633 <text style="text_m_fail">
4634 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004635 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004636 </text>
4637
4638 <text style="text_m_fail">
4639 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004640 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004641 </text>
4642
4643 <text style="text_m_accent">
4644 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004645 <text>{@file_system=File System:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004646 </text>
4647
4648 <text style="text_m">
4649 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
4650 <text>%tw_sdpart_file_system%</text>
4651 </text>
4652
4653 <button style="main_button_quarter_width">
4654 <placement x="%indent%" y="%row6_y%"/>
4655 <text>EXT3</text>
4656 <action function="set">tw_sdpart_file_system=ext3</action>
4657 </button>
4658
4659 <button style="main_button_quarter_width">
4660 <placement x="%btn4_col4_x%" y="%row6_y%"/>
4661 <text>EXT4</text>
4662 <action function="set">tw_sdpart_file_system=ext4</action>
4663 </button>
4664
4665 <button>
4666 <placement x="%col1_x_left%" y="%row11_y%"/>
4667 <highlight color="%highlight_color%"/>
4668 <image resource="q_btn_arrow_left"/>
4669 <action function="page">partsdcard2</action>
4670 </button>
4671
4672 <button>
4673 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4674 <highlight color="%highlight_color%"/>
4675 <image resource="q_btn_arrow_right"/>
4676 <action function="page">partsdcard_confirm</action>
4677 </button>
4678
4679 <action>
4680 <touch key="home"/>
4681 <action function="page">main</action>
4682 </action>
4683
4684 <action>
4685 <touch key="back"/>
4686 <action function="page">advanced</action>
4687 </action>
4688 </page>
4689
4690 <page name="partsdcard_confirm">
4691 <template name="page"/>
4692
4693 <template name="statusbar"/>
4694
4695 <text style="text_m">
4696 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004697 <text>{@advanced_hdr=Advanced} &gt; {@part_sd_hdr=Partition SD Card}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004698 </text>
4699
4700 <text style="text_m_fail">
4701 <placement x="%center_x%" y="%row1_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004702 <text>{@part_sd_lose=You will lose all files on your SD card!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004703 </text>
4704
4705 <text style="text_m_fail">
4706 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004707 <text>{@part_sd_undo=This action cannot be undone!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004708 </text>
4709
4710 <text style="text_m_accent">
4711 <placement x="%center_x%" y="%row4_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004712 <text>{@part_sd_ext_sz=EXT Size:} %tw_sdext_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004713 </text>
4714
4715 <text style="text_m_accent">
4716 <placement x="%center_x%" y="%row6_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004717 <text>{@part_sd_swap_sz=Swap Size:} %tw_swap_size%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004718 </text>
4719
4720 <text style="text_m_accent">
4721 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004722 <text>{@file_system=File System:} %tw_sdpart_file_system%</text>
z31s1g28f0a922015-11-07 18:50:22 +01004723 </text>
4724
4725 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004726 <text>{@swipe_part_sd_s=Partition}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004727 <action function="page">partsdcardaction</action>
4728 <actions>
4729 <action function="set">tw_back=partsdcard</action>
4730 <action function="set">tw_action=partitionsd</action>
4731 <action function="set">tw_has_action2=1</action>
4732 <action function="set">tw_action2=set</action>
4733 <action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004734 <action function="set">tw_action_text1={@partitioning_sd=Partitioning SD Card...}</action>
4735 <action function="set">tw_action_text2={@partitioning_sd2=This will take a few minutes.}</action>
4736 <action function="set">tw_complete_text1={@part_sd_complete=Partitioning Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004737 <action function="page">action_page</action>
4738 </actions>
4739 </slider>
4740
4741 <action>
4742 <touch key="home"/>
4743 <action function="page">main</action>
4744 </action>
4745
4746 <action>
4747 <touch key="back"/>
4748 <action function="page">advanced</action>
4749 </action>
4750 </page>
4751
4752 <page name="htcdumlock">
4753 <template name="page"/>
4754
4755 <template name="statusbar"/>
4756
4757 <text style="text_m">
4758 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004759 <text>{@advanced_hdr=Advanced} &gt; {@dumlock_hdr=HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004760 </text>
4761
4762 <button style="main_button_full_width">
4763 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004764 <text>{@dumlock_restore_btn=Restore Original Boot}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004765 <actions>
4766 <action function="set">tw_back=htcdumlock</action>
4767 <action function="set">tw_action=htcdumlockrestoreboot</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004768 <action function="set">tw_text1={@dumlock_restore_confirm=Restore original boot image?}</action>
4769 <action function="set">tw_action_text1={@dumlock_restoring=Restoring Original Boot...}</action>
4770 <action function="set">tw_complete_text1={@dumlock_restore_complete=Restore Original Boot Complete}</action>
4771 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004772 <action function="page">confirm_action</action>
4773 </actions>
4774 </button>
4775
4776 <button style="main_button_full_width">
4777 <placement x="%indent%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004778 <text>{@dumlock_reflash_btn=Reflash Recovery}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004779 <actions>
4780 <action function="set">tw_back=htcdumlock</action>
4781 <action function="set">tw_action=htcdumlockreflashrecovery</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004782 <action function="set">tw_text1={@dumlock_reflash_confirm=Reflash recovery to boot?}</action>
4783 <action function="set">tw_action_text1={@dumlock_reflashing=Flashing recovery to boot...}</action>
4784 <action function="set">tw_complete_text1={@dumlock_reflash_complete=Recovery Flash to Boot Complete}</action>
4785 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004786 <action function="page">confirm_action</action>
4787 </actions>
4788 </button>
4789
4790 <button style="main_button_full_width">
4791 <placement x="%indent%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004792 <text>{@dumlock_install_btn=Install HTC Dumlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004793 <actions>
4794 <action function="set">tw_back=htcdumlock</action>
4795 <action function="set">tw_action=installhtcdumlock</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004796 <action function="set">tw_action_text1={@dumlock_installing=Installing HTC Dumlock...}</action>
4797 <action function="set">tw_complete_text1={@dumlock_install_complete=HTC Dumlock Install Complete}</action>
4798 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
4799 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004800 <action function="page">confirm_action</action>
4801 </actions>
4802 </button>
4803
4804 <action>
4805 <touch key="home"/>
4806 <action function="page">main</action>
4807 </action>
4808
4809 <action>
4810 <touch key="back"/>
4811 <action function="page">advanced</action>
4812 </action>
4813 </page>
4814
Ethan Yonker53796e72019-01-11 22:49:52 -06004815 <page name="repackselect">
4816 <template name="page"/>
4817
4818 <template name="statusbar"/>
4819
4820 <text style="text_m">
4821 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4822 <text>{@repack_image_hdr=Select Image}</text>
4823 </text>
4824
4825 <fileselector>
4826 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
4827 <text>%tw_zip_location%</text>
4828 <filter extn=".img" folders="1" files="1"/>
4829 <path name="tw_zip_location" default="/sdcard"/>
4830 <data name="tw_filename"/>
4831 <selection name="tw_file"/>
4832 </fileselector>
4833
4834 <button>
4835 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4836 <highlight color="%highlight_color%"/>
4837 <image resource="q_btn_storage"/>
4838 <actions>
4839 <action function="set">tw_storagetext={@install_hdr=Install} &gt; {@select_storage_hdr=Select Storage}</action>
4840 <action function="set">tw_back=install</action>
4841 <action function="page">select_storage</action>
4842 </actions>
4843 </button>
4844
4845 <action>
4846 <conditions>
4847 <condition var1="tw_filename" op="modified"/>
4848 </conditions>
4849 <action function="page">repackconfirm</action>
4850 </action>
4851
4852 <action>
4853 <touch key="back"/>
4854 <action function="page">advanced</action>
4855 </action>
4856
4857 <action>
4858 <touch key="home"/>
4859 <action function="page">main</action>
4860 </action>
4861 </page>
4862
4863 <page name="repackconfirm">
4864 <template name="page"/>
4865
4866 <template name="statusbar"/>
4867
4868 <text style="text_m">
4869 <condition var1="tw_repack_kernel" var2="1"/>
4870 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4871 <text>{@repack_kernel_confirm=Install Kernel?}</text>
4872 </text>
4873
4874 <text style="text_m">
4875 <condition var1="tw_repack_kernel" var2="0"/>
4876 <placement x="%col1_x_left%" y="%row1_header_y%"/>
4877 <text>{@repack_ramdisk_confirm=Install Recovery?}</text>
4878 </text>
4879
4880 <text style="text_m_accent">
4881 <placement x="%indent%" y="%row2_y%"/>
4882 <text>{@folder=Folder:}</text>
4883 </text>
4884
4885 <text style="text_m">
4886 <placement x="%indent%" y="%row3_y%"/>
4887 <text>%tw_zip_location%</text>
4888 </text>
4889
4890 <text style="text_m_accent">
4891 <placement x="%indent%" y="%row4_y%"/>
4892 <text>{@file=File:}</text>
4893 </text>
4894
4895 <text style="text_m">
4896 <placement x="%indent%" y="%row5_y%"/>
4897 <text>%tw_file%</text>
4898 </text>
4899
4900 <checkbox>
4901 <placement x="%indent%" y="%row7_y%"/>
4902 <text>{@repack_backup_first=Back up existing image first}</text>
4903 <data variable="tw_repack_backup_first"/>
4904 </checkbox>
4905
4906 <slider>
4907 <text>{@swipe_to_install=Swipe to Install}</text>
4908 <actions>
4909 <action function="set">tw_back=advanced</action>
4910 <action function="set">tw_action=repackimage</action>
4911 <action function="set">tw_action_param=/boot</action>
4912 <action function="set">tw_action_text1={@installing=Installing...}</action>
4913 <action function="set">tw_action_text2=</action>
4914 <action function="set">tw_complete_text1={@install_complete=Install Complete}</action>
4915 <action function="page">action_page</action>
4916 </actions>
4917 </slider>
4918
4919 <action>
4920 <touch key="back"/>
4921 <action function="page">repackselect</action>
4922 </action>
4923
4924 <action>
4925 <touch key="home"/>
4926 <action function="page">main</action>
4927 </action>
4928 </page>
4929
z31s1g28f0a922015-11-07 18:50:22 +01004930 <page name="lock">
4931 <background color="%semi_transparent%"/>
4932
4933 <image>
4934 <image resource="unlock_icon"/>
4935 <placement x="%center_x%" y="%row6_y%" placement="4"/>
4936 </image>
4937
4938 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05004939 <text>{@swipe_unlock= Unlock}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004940 <action function="overlay"/>
4941 </slider>
Matt Mower9472ba12016-01-20 18:12:47 -06004942
4943 <action>
4944 <touch key="power"/>
4945 <action function="togglebacklight"/>
4946 </action>
z31s1g28f0a922015-11-07 18:50:22 +01004947 </page>
4948
4949 <page name="filemanagerlist">
4950 <template name="page"/>
4951
4952 <template name="statusbar"/>
4953
4954 <text style="text_m">
4955 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05004956 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_file=Select a File or Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01004957 </text>
4958
4959 <fileselector>
4960 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
4961 <text>%tw_file_location1%</text>
4962 <filter folders="1" files="1"/>
4963 <path name="tw_file_location1" default="/"/>
4964 <data name="tw_filename1"/>
4965 <selection name="tw_selection1"/>
4966 </fileselector>
4967
4968 <button>
4969 <placement x="%btn4_col4_x%" y="%row11_y%"/>
4970 <highlight color="%highlight_color%"/>
4971 <image resource="q_btn_folder"/>
4972 <actions>
4973 <action function="set">tw_filename1=tw_file_location1</action>
4974 <action function="set">tw_fm_isfolder=1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05004975 <action function="set">tw_fm_type={@fm_type_folder=Folder}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004976 <action function="page">filemanageroptions</action>
4977 </actions>
4978 </button>
4979
4980 <action>
4981 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05004982 <action function="set">tw_fm_type={@fm_type_file=File}</action>
z31s1g28f0a922015-11-07 18:50:22 +01004983 <action function="set">tw_fm_isfolder=0</action>
4984 </actions>
4985 </action>
4986
4987 <action>
4988 <touch key="home"/>
4989 <action function="page">main</action>
4990 </action>
4991
4992 <action>
4993 <touch key="back"/>
4994 <action function="page">main3</action>
4995 </action>
4996
4997 <action>
4998 <condition var1="tw_filename1" op="modified"/>
4999 <action function="page">filemanageroptions</action>
5000 </action>
5001 </page>
5002
5003 <page name="filemanageroptions">
5004 <template name="page"/>
5005
5006 <template name="statusbar"/>
5007
5008 <text style="text_m">
5009 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005010 <text>%tw_fm_type% &gt; %tw_filename1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005011 </text>
5012
5013 <button style="main_button">
5014 <condition var1="tw_fm_isfolder" var2="0"/>
5015 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005016 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005017 <actions>
5018 <action function="set">tw_filemanager_command=cp</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005019 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005020 <action function="page">choosedestinationfolder</action>
5021 </actions>
5022 </button>
5023
5024 <button style="main_button">
5025 <condition var1="tw_fm_isfolder" var2="1"/>
5026 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005027 <text>{@fm_copy_btn=Copy}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005028 <actions>
5029 <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 -05005030 <action function="set">tw_fm_text1={@fm_copying=Copying}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005031 <action function="page">choosedestinationfolder</action>
5032 </actions>
5033 </button>
5034
5035 <button style="main_button">
5036 <placement x="%col1_x_right%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005037 <text>{@fm_move_btn=Move}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005038 <actions>
5039 <action function="set">tw_filemanager_command=mv</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005040 <action function="set">tw_fm_text1={@fm_moving=Moving}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005041 <action function="page">choosedestinationfolder</action>
5042 </actions>
5043 </button>
5044
5045 <button style="main_button">
5046 <placement x="%col1_x_left%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005047 <text>{@fm_chmod755_btn=chmod 755}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005048 <actions>
5049 <action function="set">tw_filemanager_command=chmod 755</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005050 <action function="set">tw_fm_text1={@fm_chmod755ing=chmod 755}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005051 <action function="set">tw_fm_text2=</action>
5052 <action function="set">tw_fm_text3=</action>
5053 <action function="set">tw_include_text3=0</action>
5054 <action function="set">tw_back=filemanageroptions</action>
5055 <action function="page">filemanagerconfirm</action>
5056 </actions>
5057 </button>
5058
5059 <button style="main_button">
5060 <placement x="%col1_x_right%" y="%row6_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005061 <text>{@fm_chmod_btn=chmod}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005062 <actions>
5063 <action function="set">tw_filemanager_rename=0000</action>
5064 <action function="set">tw_fm_text2=</action>
5065 <action function="set">tw_fm_text3=</action>
5066 <action function="set">tw_include_text3=0</action>
5067 <action function="set">tw_back=filemanageroptions</action>
5068 <action function="page">filemanagerchmod</action>
5069 </actions>
5070 </button>
5071
5072 <button style="main_button">
5073 <placement x="%col1_x_left%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005074 <text>{@fm_delete_btn=Delete}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005075 <actions>
5076 <action function="set">tw_filemanager_command=rm -rf</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005077 <action function="set">tw_fm_text1={@fm_deleting=Deleting}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005078 <action function="set">tw_fm_text2=</action>
5079 <action function="set">tw_fm_text3=</action>
5080 <action function="set">tw_include_text3=0</action>
5081 <action function="set">tw_back=filemanageroptions</action>
5082 <action function="page">filemanagerconfirm</action>
5083 </actions>
5084 </button>
5085
5086 <button style="main_button">
5087 <condition var1="tw_fm_isfolder" var2="0"/>
5088 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005089 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005090 <actions>
5091 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005092 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005093 <action function="set">tw_filemanager_command=mv</action>
5094 <action function="page">filemanagerrenamefile</action>
5095 </actions>
5096 </button>
5097
5098 <button style="main_button">
5099 <condition var1="tw_fm_isfolder" var2="1"/>
5100 <placement x="%col1_x_right%" y="%row11_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005101 <text>{@fm_rename_btn=Rename}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005102 <actions>
5103 <action function="set">tw_filemanager_rename=tw_selection1</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005104 <action function="set">tw_fm_text1={@fm_renaming=Renaming}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005105 <action function="set">tw_filemanager_command=cd "%tw_file_location1%" &amp;&amp; cd .. &amp;&amp; mv</action>
5106 <action function="page">filemanagerrenamefolder</action>
5107 </actions>
5108 </button>
5109
5110 <action>
5111 <touch key="home"/>
5112 <action function="page">main</action>
5113 </action>
5114
5115 <action>
5116 <touch key="back"/>
5117 <action function="page">filemanagerlist</action>
5118 </action>
5119 </page>
5120
5121 <page name="choosedestinationfolder">
5122 <template name="page"/>
5123
5124 <template name="statusbar"/>
5125
5126 <text style="text_m">
5127 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005128 <text>{@fm_hdr=File Manager} &gt; {@fm_sel_dest=Select Destination Folder}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005129 </text>
5130
5131 <fileselector>
5132 <placement x="%col1_x_left%" y="%row2_header_y%" w="%content_width%" h="%fileselector_filemanager_height%"/>
5133 <text>%tw_file_location2%</text>
5134 <filter folders="1" files="0"/>
5135 <path name="tw_file_location2" default="/"/>
5136 <data name="tw_filename2"/>
5137 <selection name="tw_selection2"/>
5138 </fileselector>
5139
5140 <button>
5141 <placement x="%btn4_col4_x%" y="%row11_y%"/>
5142 <highlight color="%highlight_color%"/>
5143 <image resource="q_btn_folder"/>
5144 <actions>
5145 <action function="set">tw_fm_text2=to</action>
5146 <action function="set">tw_fm_text3=%tw_file_location2%</action>
5147 <action function="set">tw_include_text3=1</action>
5148 <action function="set">tw_back=filemanageroptions</action>
5149 <action function="page">filemanagerconfirm</action>
5150 </actions>
5151 </button>
5152
5153 <action>
5154 <touch key="home"/>
5155 <action function="page">main</action>
5156 </action>
5157
5158 <action>
5159 <touch key="back"/>
5160 <action function="page">filemanageroptions</action>
5161 </action>
5162 </page>
5163
5164 <page name="filemanagerrenamefile">
5165 <template name="page"/>
5166
5167 <template name="statusbar"/>
5168
5169 <text style="text_m">
5170 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005171 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005172 </text>
5173
5174 <text style="text_m_accent">
5175 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005176 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005177 </text>
5178
5179 <input>
5180 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5181 <text>%tw_filemanager_rename%</text>
5182 <data name="tw_filemanager_rename"/>
5183 <restrict minlen="1" maxlen="128"/>
5184 <actions>
5185 <action function="set">tw_fm_text2=to</action>
5186 <action function="set">tw_fm_text3="%tw_file_location1%/%tw_filemanager_rename%"</action>
5187 <action function="set">tw_include_text3=1</action>
5188 <action function="set">tw_back=filemanageroptions</action>
5189 <action function="page">filemanagerconfirm</action>
5190 </actions>
5191 </input>
5192
5193 <fill color="%accent_color%">
5194 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
5195 </fill>
5196
5197 <button style="main_button_half_height">
5198 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005199 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005200 <action function="page">filemanageroptions</action>
5201 </button>
5202
5203 <template name="keyboardtemplate"/>
5204
5205 <action>
5206 <touch key="home"/>
5207 <action function="page">main</action>
5208 </action>
5209
5210 <action>
5211 <touch key="back"/>
5212 <action function="page">filemanageroptions</action>
5213 </action>
5214 </page>
5215
5216 <page name="filemanagerrenamefolder">
5217 <template name="page"/>
5218
5219 <template name="statusbar"/>
5220
5221 <text style="text_m">
5222 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005223 <text>{@fm_hdr=File Manager} &gt; {@fm_rename_hdr=Rename} %tw_fm_type%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005224 </text>
5225
5226 <text style="text_m_accent">
5227 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005228 <text>{@name=Name:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005229 </text>
5230
5231 <input>
5232 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5233 <text>%tw_filemanager_rename%</text>
5234 <data name="tw_filemanager_rename"/>
5235 <restrict minlen="1" maxlen="128"/>
5236 <actions>
5237 <action function="set">tw_fm_text2=to</action>
5238 <action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
5239 <action function="set">tw_include_text3=1</action>
5240 <action function="set">tw_back=filemanageroptions</action>
5241 <action function="page">filemanagerconfirm</action>
5242 </actions>
5243 </input>
5244
5245 <fill color="%accent_color%">
5246 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5247 </fill>
5248
5249 <button style="main_button_half_height">
5250 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005251 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005252 <action function="page">filemanageroptions</action>
5253 </button>
5254
5255 <template name="keyboardtemplate"/>
5256
5257 <action>
5258 <touch key="home"/>
5259 <action function="page">main</action>
5260 </action>
5261
5262 <action>
5263 <touch key="back"/>
5264 <action function="page">filemanageroptions</action>
5265 </action>
5266 </page>
5267
5268 <page name="filemanagerchmod">
5269 <template name="page"/>
5270
5271 <template name="statusbar"/>
5272
5273 <text style="text_m">
5274 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005275 <text>{@fm_hdr=File Manager} &gt; {@fm_set_perms_hdr=Set Permissions}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005276 </text>
5277
5278 <text style="text_m_accent">
5279 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005280 <text>{@fm_perms=Permissions:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005281 </text>
5282
5283 <input>
5284 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5285 <text>%tw_filemanager_rename%</text>
5286 <data name="tw_filemanager_rename"/>
5287 <restrict minlen="3" maxlen="4" allow="0123456789"/>
5288 <actions>
5289 <action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
5290 <action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
5291 <action function="set">tw_back=filemanageroptions</action>
5292 <action function="page">filemanagerconfirm</action>
5293 </actions>
5294 </input>
5295
5296 <fill color="%accent_color%">
5297 <placement x="%col1_x_left%" y="row4_y" w="%content_width%" h="input_line_width" placement="1"/>
5298 </fill>
5299
5300 <button style="main_button_half_height">
5301 <placement x="%col1_x_left%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005302 <text>{@cancel_btn=Cancel}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005303 <action function="page">filemanageroptions</action>
5304 </button>
5305
5306 <template name="keyboardtemplate"/>
5307
5308 <action>
5309 <touch key="home"/>
5310 <action function="page">main</action>
5311 </action>
5312
5313 <action>
5314 <touch key="back"/>
5315 <action function="page">filemanageroptions</action>
5316 </action>
5317 </page>
5318
5319 <page name="filemanagerconfirm">
5320 <template name="page"/>
5321
5322 <template name="statusbar"/>
5323
5324 <text style="text_m">
5325 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005326 <text>{@fm_hdr=File Manager} &gt; {@confirm_action=Confirm Action}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005327 </text>
5328
5329 <text style="text_m_accent">
5330 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5331 <text>%tw_fm_text1%</text>
5332 </text>
5333
5334 <text style="text_m">
5335 <placement x="%center_x%" y="%row3_y%" placement="5"/>
5336 <text>%tw_filename1%</text>
5337 </text>
5338
5339 <text style="text_m_accent">
5340 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5341 <text>%tw_fm_text2%</text>
5342 </text>
5343
5344 <text style="text_m">
5345 <placement x="%center_x%" y="%row6_y%" placement="5"/>
5346 <text>%tw_fm_text3%</text>
5347 </text>
5348
5349 <text style="text_m">
5350 <placement x="%center_x%" y="%row8_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005351 <text>{@back_cancel=Press back button to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005352 </text>
5353
5354 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005355 <text>{@swipe_confirm= Confirm}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005356 <action function="page">filemanageraction</action>
5357 </slider>
5358
5359 <action>
5360 <touch key="back"/>
5361 <action function="page">%tw_back%</action>
5362 </action>
5363
5364 <action>
5365 <touch key="home"/>
5366 <action function="page">main</action>
5367 </action>
5368 </page>
5369
5370 <page name="filemanageraction">
5371 <template name="page"/>
5372
5373 <template name="statusbar"/>
5374
5375 <text style="text_m">
5376 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005377 <text>{@fm_hdr=File Manager} &gt; %tw_fm_text1%</text>
z31s1g28f0a922015-11-07 18:50:22 +01005378 </text>
5379
5380 <template name="console"/>
5381
5382 <template name="progress_bar"/>
5383
5384 <action>
5385 <conditions>
5386 <condition var1="tw_operation_state" var2="1"/>
5387 <condition var1="tw_operation_status" var2="0"/>
5388 </conditions>
5389 <actions>
5390 <action function="set">tw_back=filemanagerlist</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005391 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005392 <action function="page">action_complete</action>
5393 </actions>
5394 </action>
5395
5396 <action>
5397 <conditions>
5398 <condition var1="tw_operation_state" var2="1"/>
5399 <condition var1="tw_operation_status" op="!=" var2="0"/>
5400 </conditions>
5401 <actions>
Ethan Yonker74db1572015-10-28 12:44:49 -05005402 <action function="set">tw_complete_text1={@fm_complete=File Operation Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005403 <action function="page">action_complete</action>
5404 </actions>
5405 </action>
5406
5407 <action>
5408 <condition var1="tw_include_text3" var2="0"/>
5409 <action function="cmd">%tw_filemanager_command% "%tw_filename1%"</action>
5410 </action>
5411
5412 <action>
5413 <condition var1="tw_include_text3" var2="1"/>
5414 <action function="cmd">%tw_filemanager_command% "%tw_filename1%" "%tw_fm_text3%"</action>
5415 </action>
5416 </page>
5417
5418 <page name="decrypt">
5419 <template name="page"/>
5420
5421 <template name="statusbar"/>
5422
5423 <action>
5424 <condition var1="tw_crypto_pwtype" var2="2"/>
5425 <action function="page">decrypt_pattern</action>
5426 </action>
5427
5428 <text style="text_m">
5429 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005430 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005431 </text>
5432
5433 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005434 <condition var1="tw_is_fbe" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005435 <placement x="%col1_x_left%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005436 <text>{@decrypt_data_enter_pass=Enter Password:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005437 </text>
5438
Noah Jacobson81d638d2019-04-28 00:10:07 -04005439 <text style="text_m_accent">
5440 <condition var1="tw_is_fbe" var2="1"/>
5441 <placement x="%col1_x_left%" y="%row1_y%"/>
5442 <text>{@decrypt_data_enter_pass_fbe=Enter Password for User [%tw_crypto_user_id%]}</text>
5443 </text>
5444
z31s1g28f0a922015-11-07 18:50:22 +01005445 <input>
5446 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5447 <text>%tw_crypto_display%</text>
5448 <data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display"/>
5449 <restrict minlen="1" maxlen="254"/>
5450 <action function="page">trydecrypt</action>
5451 </input>
5452
5453 <fill color="%accent_color%">
5454 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5455 </fill>
5456
5457 <fill color="%text_fail_color%">
5458 <condition var1="tw_password_fail" var2="1"/>
5459 <placement x="%col1_x_left%" y="row3_input_y" w="%content_width%" h="input_line_width" placement="1"/>
5460 </fill>
5461
5462 <text style="text_m_fail">
5463 <condition var1="tw_password_fail" var2="1"/>
5464 <placement x="%col1_x_left%" y="%row3_input_y%"/>
sndnvaps793ec582016-01-28 19:41:44 +08005465 <text>{@decrypt_data_failed=Password failed, please try again!}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005466 </text>
5467
5468 <button style="main_button_half_height">
z31s1g608d7ff2016-01-18 19:47:25 +01005469 <placement x="%col1_x_left%" y="%row4_y%"/>
5470 <text>{@sel_lang_btn=Select Language}</text>
5471 <action function="page">settings_language</action>
5472 </button>
5473
5474 <button style="main_button_half_height">
z31s1g28f0a922015-11-07 18:50:22 +01005475 <placement x="%col1_x_right%" y="%row4_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005476 <text>{@cancel_btn=Cancel}</text>
Captain Throwback89b56a12021-02-10 18:25:07 -05005477 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005478 </button>
5479
5480 <template name="keyboardtemplate"/>
5481 </page>
5482
5483 <page name="decrypt_pattern">
5484 <template name="page"/>
5485
5486 <template name="statusbar"/>
5487
Aleksa Saraib25a1832015-12-31 17:36:00 +01005488 <action>
5489 <action function="set">tw_gui_pattern_grid_size=3</action>
5490 </action>
5491
z31s1g28f0a922015-11-07 18:50:22 +01005492 <text style="text_m">
5493 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005494 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_hdr=Decrypt Data}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005495 </text>
5496
5497 <text style="text_m_accent">
Noah Jacobson81d638d2019-04-28 00:10:07 -04005498 <condition var1="tw_is_fbe" op="!=" var2="1"/>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005499 <condition var1="tw_password_fail" op="!=" var2="1"/>
z31s1g28f0a922015-11-07 18:50:22 +01005500 <placement x="%center_x%" y="%row5_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005501 <text>{@decrypt_data_enter_pattern=Enter Pattern.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005502 </text>
5503
Noah Jacobson81d638d2019-04-28 00:10:07 -04005504 <text style="text_m_accent">
5505 <condition var1="tw_is_fbe" var2="1"/>
5506 <condition var1="tw_password_fail" op="!=" var2="1"/>
5507 <placement x="%center_x%" y="%row5_y%" placement="5"/>
5508 <text>{@decrypt_data_enter_pattern_fbe=Enter Pattern for User [%tw_crypto_user_id%]}</text>
5509 </text>
5510
Aleksa Saraib25a1832015-12-31 17:36:00 +01005511 <text style="text_m_fail">
5512 <condition var1="tw_password_fail" var2="1"/>
5513 <placement x="%center_x%" y="%row5_y%" placement="5"/>
sndnvaps793ec582016-01-28 19:41:44 +08005514 <text>{@decrypt_data_failed_pattern=Pattern failed, please try again!}</text>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005515 </text>
5516
z31s1g28f0a922015-11-07 18:50:22 +01005517 <text style="text_m">
5518 <placement x="%center_x%" y="%row10_y%" placement="5"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005519 <text>{@back_cancel=Press back to cancel.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005520 </text>
5521
5522 <patternpassword>
5523 <placement x="%pattern_x%" y="%row2_y%" w="%pattern_size%" h="%pattern_size%"/>
z31s1g28f0a922015-11-07 18:50:22 +01005524 <dot color="%fileselector_linecolor%" activecolor="%accent_color%" radius="%pattern_dot_dia%"/>
5525 <line color="%fileselector_linecolor%" width="%pattern_line_w%"/>
5526 <data name="tw_crypto_password"/>
5527 <action function="page">trydecrypt</action>
5528 </patternpassword>
5529
5530 <fill color="#000000">
5531 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5532 </fill>
5533
5534 <button>
5535 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4"/>
5536 <image resource="back"/>
5537 <condition var1="tw_busy" var2="0"/>
Captain Throwback89b56a12021-02-10 18:25:07 -05005538 <action function="page">canceldecrypt</action>
z31s1g28f0a922015-11-07 18:50:22 +01005539 </button>
Aleksa Saraib25a1832015-12-31 17:36:00 +01005540
5541 <button>
5542 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5543 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5544 <image resource="grid_less"/>
5545 <action function="set">tw_gui_pattern_grid_size=3</action>
5546 </button>
5547
5548 <button>
5549 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5550 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5551 <image resource="grid_less"/>
5552 <action function="set">tw_gui_pattern_grid_size=3</action>
5553 </button>
5554
5555 <button>
5556 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5557 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5558 <image resource="grid_less"/>
5559 <action function="set">tw_gui_pattern_grid_size=4</action>
5560 </button>
5561
5562 <button>
5563 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5564 <placement x="%center_x%" y="%navbar_btn_y%" placement="4"/>
5565 <image resource="grid_less"/>
5566 <action function="set">tw_gui_pattern_grid_size=5</action>
5567 </button>
5568
5569 <button>
5570 <condition var1="tw_gui_pattern_grid_size" var2="3"/>
5571 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5572 <image resource="grid_more"/>
5573 <action function="set">tw_gui_pattern_grid_size=4</action>
5574 </button>
5575
5576 <button>
5577 <condition var1="tw_gui_pattern_grid_size" var2="4"/>
5578 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5579 <image resource="grid_more"/>
5580 <action function="set">tw_gui_pattern_grid_size=5</action>
5581 </button>
5582
5583 <button>
5584 <condition var1="tw_gui_pattern_grid_size" var2="5"/>
5585 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5586 <image resource="grid_more"/>
5587 <action function="set">tw_gui_pattern_grid_size=6</action>
5588 </button>
5589
5590 <button>
5591 <condition var1="tw_gui_pattern_grid_size" var2="6"/>
5592 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4"/>
5593 <image resource="grid_more"/>
5594 <action function="set">tw_gui_pattern_grid_size=6</action>
5595 </button>
z31s1g28f0a922015-11-07 18:50:22 +01005596 </page>
5597
5598 <page name="trydecrypt">
5599 <template name="page"/>
5600
5601 <template name="statusbar"/>
5602
5603 <text style="text_m">
5604 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005605 <text>{@mount_hdr=Mount} &gt; {@decrypt_data_trying=Trying Decryption}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005606 </text>
5607
5608 <template name="console"/>
5609
5610 <template name="progress_bar"/>
5611
5612 <action>
5613 <action function="decrypt"/>
5614 </action>
5615
5616 <action>
5617 <conditions>
5618 <condition var1="tw_operation_state" var2="1"/>
5619 <condition var1="tw_operation_status" op="!=" var2="0"/>
5620 </conditions>
5621 <actions>
5622 <action function="set">tw_password_fail=1</action>
5623 <action function="page">decrypt</action>
5624 </actions>
5625 </action>
5626
5627 <action>
5628 <conditions>
5629 <condition var1="tw_operation_state" var2="1"/>
5630 <condition var1="tw_operation_status" op="=" var2="0"/>
5631 </conditions>
5632 <actions>
5633 <action function="set">tw_page_done=1</action>
5634 <action function="page">main</action>
5635 </actions>
5636 </action>
5637 </page>
5638
Captain Throwback89b56a12021-02-10 18:25:07 -05005639 <page name="canceldecrypt">
5640 <template name="page"/>
5641
5642 <template name="statusbar"/>
5643
5644 <text style="text_m">
5645 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5646 <text>{@cancel_btn=Cancel} &gt; {@refresh_sizes_btn=Refresh Sizes}</text>
5647 </text>
5648
5649 <template name="console"/>
5650
5651 <template name="progress_bar"/>
5652
5653 <action>
5654 <action function="refreshsizes"/>
5655 </action>
5656
5657 <action>
5658 <conditions>
5659 <condition var1="tw_operation_state" var2="1"/>
5660 </conditions>
5661 <actions>
5662 <action function="set">tw_page_done=1</action>
5663 <action function="page">main</action>
5664 </actions>
5665 </action>
5666 </page>
5667
z31s1g28f0a922015-11-07 18:50:22 +01005668 <page name="terminalcommand">
z31s1g56189522016-01-13 19:12:40 +01005669 <terminal>
5670 <condition var1="tw_hide_kb" var2="0"/>
5671 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_s_height%"/>
5672 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005673
z31s1g56189522016-01-13 19:12:40 +01005674 <terminal>
5675 <condition var1="tw_hide_kb" var2="1"/>
5676 <placement x="0" y="0" w="%screen_width%" h="%console_terminal_l_height%"/>
5677 </terminal>
z31s1g28f0a922015-11-07 18:50:22 +01005678
z31s1g56189522016-01-13 19:12:40 +01005679 <template name="keyboardterminaltemplate"/>
z31s1g28f0a922015-11-07 18:50:22 +01005680
5681 <template name="keyboardtemplate"/>
5682
z31s1g608d7ff2016-01-18 19:47:25 +01005683 <fill color="#000000">
z31s1g56189522016-01-13 19:12:40 +01005684 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%" />
z31s1g608d7ff2016-01-18 19:47:25 +01005685 </fill>
z31s1g56189522016-01-13 19:12:40 +01005686
z31s1g608d7ff2016-01-18 19:47:25 +01005687 <button>
z31s1g56189522016-01-13 19:12:40 +01005688 <placement x="%back_button_x%" y="%navbar_btn_y%" placement="4" />
5689 <image resource="back" />
5690 <condition var1="tw_busy" var2="0" />
5691 <actions>
5692 <action function="set">tw_hide_kb=0</action>
5693 <action function="key">back</action>
5694 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005695 </button>
z31s1g56189522016-01-13 19:12:40 +01005696
z31s1g608d7ff2016-01-18 19:47:25 +01005697 <button>
z31s1g56189522016-01-13 19:12:40 +01005698 <placement x="%center_x%" y="%navbar_btn_y%" placement="4" />
5699 <image resource="home" />
5700 <condition var1="tw_busy" var2="0" />
5701 <actions>
5702 <action function="set">tw_hide_kb=0</action>
5703 <action function="key">home</action>
5704 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005705 </button>
z31s1g56189522016-01-13 19:12:40 +01005706
z31s1g608d7ff2016-01-18 19:47:25 +01005707 <button>
z31s1g56189522016-01-13 19:12:40 +01005708 <condition var1="tw_hide_kb" var2="0"/>
5709 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5710 <image resource="kb_hide" />
5711 <condition var1="tw_busy" var2="0" />
5712 <actions>
5713 <action function="set">tw_hide_kb=1</action>
5714 <action function="page">terminalcommand</action>
5715 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005716 </button>
z31s1g56189522016-01-13 19:12:40 +01005717
z31s1g608d7ff2016-01-18 19:47:25 +01005718 <button>
z31s1g56189522016-01-13 19:12:40 +01005719 <condition var1="tw_hide_kb" var2="1"/>
5720 <placement x="%console_button_x%" y="%navbar_btn_y%" placement="4" />
5721 <image resource="kb_show" />
5722 <condition var1="tw_busy" var2="0" />
5723 <actions>
5724 <action function="set">tw_hide_kb=0</action>
5725 <action function="page">terminalcommand</action>
5726 </actions>
z31s1g608d7ff2016-01-18 19:47:25 +01005727 </button>
z31s1g56189522016-01-13 19:12:40 +01005728
z31s1g28f0a922015-11-07 18:50:22 +01005729 <action>
5730 <touch key="home"/>
z31s1g56189522016-01-13 19:12:40 +01005731 <actions>
5732 <action function="set">tw_hide_kb=0</action>
5733 <action function="page">main</action>
5734 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005735 </action>
5736
5737 <action>
5738 <touch key="back"/>
z31s1g56189522016-01-13 19:12:40 +01005739 <actions>
5740 <action function="set">tw_hide_kb=0</action>
5741 <action function="page">advanced</action>
5742 </actions>
z31s1g28f0a922015-11-07 18:50:22 +01005743 </action>
z31s1g56189522016-01-13 19:12:40 +01005744
z31s1g608d7ff2016-01-18 19:47:25 +01005745 <action>
z31s1g56189522016-01-13 19:12:40 +01005746 <touch key="power+voldown" />
5747 <action function="screenshot" />
z31s1g608d7ff2016-01-18 19:47:25 +01005748 </action>
z31s1g28f0a922015-11-07 18:50:22 +01005749 </page>
5750
5751 <page name="sideload">
5752 <template name="page"/>
5753
5754 <template name="statusbar"/>
5755
5756 <text style="text_m">
5757 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005758 <text>{@install_hdr=Install} &gt; {@adb_sideload_hdr=ADB Sideload}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005759 </text>
5760
5761 <text style="text_m_accent">
5762 <placement x="%indent%" y="%row1_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005763 <text>{@options=Options:}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005764 </text>
5765
5766 <checkbox>
5767 <placement x="%indent%" y="%row2_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005768 <text>{@sideload_wipe_dalvik_chk=Wipe Dalvik Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005769 <data variable="tw_wipe_dalvik"/>
5770 </checkbox>
5771
5772 <checkbox>
5773 <placement x="%indent%" y="%row4a_y%"/>
Ethan Yonker74db1572015-10-28 12:44:49 -05005774 <text>{@sideload_wipe_cache_chk=Wipe Cache}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005775 <data variable="tw_wipe_cache"/>
5776 </checkbox>
5777
5778 <slider>
Ethan Yonker74db1572015-10-28 12:44:49 -05005779 <text>{@swipe_sideload= Start}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005780 <actions>
5781 <action function="set">tw_back=install_type</action>
5782 <action function="set">tw_action=adbsideload</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005783 <action function="set">tw_action_text1={@sideload_confirm=ADB Sideload}</action>
5784 <action function="set">tw_action_text2={@sideload_usage=Usage: adb sideload filename.zip}</action>
5785 <action function="set">tw_complete_text1={@sideload_complete=ADB Sideload Complete}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005786 <action function="set">tw_has_cancel=1</action>
5787 <action function="set">tw_show_reboot=1</action>
5788 <action function="set">tw_cancel_action=adbsideloadcancel</action>
5789 <action function="page">action_page</action>
5790 </actions>
5791 </slider>
5792
5793 <action>
5794 <touch key="home"/>
5795 <action function="page">main</action>
5796 </action>
5797
5798 <action>
5799 <touch key="back"/>
5800 <action function="page">install_type</action>
5801 </action>
5802 </page>
5803
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005804 <page name="fixcontexts">
z31s1g28f0a922015-11-07 18:50:22 +01005805 <template name="page"/>
5806
5807 <template name="statusbar"/>
5808
5809 <text style="text_m">
5810 <placement x="%col1_x_left%" y="%row1_header_y%"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005811 <text>{@advanced_hdr=Advanced} &gt; {@fix_contexts_hdr=Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005812 </text>
5813
5814 <text style="text_m_accent">
5815 <placement x="%center_x%" y="%row2_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005816 <text>{@fix_contexts_note1=Note: Fixing contexts is rarely needed.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005817 </text>
5818
z31s1g28f0a922015-11-07 18:50:22 +01005819 <text style="text_m_fail">
5820 <placement x="%center_x%" y="%row6a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005821 <text>{@fix_contexts_note2=Fixing SELinux Contexts may cause}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005822 </text>
5823
5824 <text style="text_m_fail">
5825 <placement x="%center_x%" y="%row7a_y%" placement="5"/>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005826 <text>{@fix_contexts_note3=your device to not boot properly.}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005827 </text>
5828
5829 <slider>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005830 <text>{@swipe_fix_contexts= Fix Contexts}</text>
z31s1g28f0a922015-11-07 18:50:22 +01005831 <actions>
5832 <action function="set">tw_back=advanced</action>
Ethan Yonkerb5fab762016-01-28 14:03:33 -06005833 <action function="set">tw_action=fixcontexts</action>
5834 <action function="set">tw_action_text1={@fixing_contexts=Fixing Contexts...}</action>
5835 <action function="set">tw_complete_text1={@fix_contexts_complete=Fix Contexts Complete}</action>
Ethan Yonker74db1572015-10-28 12:44:49 -05005836 <action function="set">tw_slider_text={@swipe_confirm= Confirm}</action>
z31s1g28f0a922015-11-07 18:50:22 +01005837 <action function="set">tw_show_reboot=1</action>
5838 <action function="page">action_page</action>
5839 </actions>
5840 </slider>
5841
5842 <action>
5843 <touch key="home"/>
5844 <action function="page">main</action>
5845 </action>
5846
5847 <action>
5848 <touch key="back"/>
5849 <action function="page">advanced</action>
5850 </action>
5851 </page>
5852
z31s1g28f0a922015-11-07 18:50:22 +01005853 <page name="slideout">
5854 <fill color="%background_color%">
5855 <placement x="0" y="%row2_header_y%" w="%screen_width%" h="%slideout_bg_height%"/>
5856 </fill>
5857
5858 <console>
5859 <placement x="%indent%" y="%row1_y%" w="%content_width%" h="%slideout_height%"/>
5860 </console>
5861
5862 <fill color="%fileselector_linecolor%">
5863 <placement x="%indent%" y="row1_y" w="%content_width%" h="input_line_width" placement="1"/>
5864 </fill>
5865
5866 <fill color="%fileselector_linecolor%">
5867 <placement x="%indent%" y="row15a_y" w="%content_width%" h="input_line_width"/>
5868 </fill>
5869
5870 <button>
5871 <fill color="%transparent%"/>
5872 <placement x="0" y="%navbar_y%" w="%screen_width%" h="%navbar_height%"/>
5873 <action function="overlay"/>
5874 </button>
5875
5876 <action>
Matt Mower0c347d52016-01-21 23:14:39 -06005877 <touch key="power"/>
5878 <action function="togglebacklight"/>
5879 </action>
5880
5881 <action>
z31s1g28f0a922015-11-07 18:50:22 +01005882 <touch key="power+voldown"/>
5883 <action function="screenshot"/>
5884 </action>
5885 </page>
5886
5887 <page name="select_storage">
5888 <template name="page"/>
5889
5890 <template name="statusbar"/>
5891
5892 <text style="text_m">
5893 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5894 <text>%tw_storagetext%</text>
5895 </text>
5896
5897 <partitionlist style="partitionlist_headerless_rb">
5898 <data name="tw_storage_path"/>
5899 <listtype name="storage"/>
5900 </partitionlist>
5901
5902 <button>
5903 <placement x="%btn4_col2_x%" y="%row11_y%"/>
5904 <highlight color="%highlight_color%"/>
5905 <image resource="q_btn_refresh"/>
5906 <actions>
5907 <action function="refreshsizes"/>
5908 <action function="page">select_storage</action>
5909 </actions>
5910 </button>
5911
5912 <button>
5913 <placement x="%btn4_col3_x%" y="%row11_y%"/>
5914 <highlight color="%highlight_color%"/>
5915 <image resource="q_btn_accept"/>
5916 <actions>
5917 <action function="set">tw_clear_destination=%tw_back%</action>
5918 <action function="page">clear_vars</action>
5919 </actions>
5920 </button>
5921
5922 <action>
5923 <touch key="power+voldown"/>
5924 <action function="screenshot"/>
5925 </action>
5926 </page>
Noah Jacobson81d638d2019-04-28 00:10:07 -04005927
5928 <page name="decrypt_users">
5929 <template name="page"/>
5930
5931 <text style="text_l">
5932 <placement x="%col1_x_header%" y="%row3_header_y%"/>
5933 <text>{@decrypt_users=Decrypt Users}</text>
5934 </text>
5935
5936 <text style="text_m_accent">
5937 <placement x="%center_x%" y="%row2_y%" placement="5"/>
5938 <text>{@decrypt_users_selection=Select a user ID to decrypt}</text>
5939 </text>
5940
5941 <listbox>
5942 <placement x="%indent%" y="%row2_header_y%" w="%content_width%" h="%fileselector_install_height%"/>
5943 <text>{@select_user=Select User}</text>
5944 <icon selected="radio_true" unselected="radio_false" />
5945 <data name="tw_crypto_user_id" />
5946 </listbox>
5947
5948 <button style="main_button_half_height">
5949 <placement x="%col1_x_left%" y="%row13_y%" textplacement="6"/>
5950 <text>{@decrypt_users=Decrypt Users}</text>
5951 <action function="set">tw_crypto_password=</action>
5952 <action function="set">tw_password_fail=0</action>
5953 <action function="page">decrypt</action>
5954 </button>
5955
5956 <action>
5957 <touch key="home"/>
5958 <action function="page">main</action>
5959 </action>
5960
5961 <action>
5962 <touch key="back"/>
5963 <action function="page">advanced</action>
5964 </action>
5965 </page>
epicXa721f952021-01-04 13:01:31 +05305966
5967 <page name="changeTwrpFolder">
5968 <template name="page"/>
5969
5970 <template name="statusbar"/>
5971
5972 <text style="text_m">
5973 <placement x="%col1_x_left%" y="%row1_header_y%"/>
5974 <text>{@change_twrp_folder_btn=Change TWRP folder}</text>
5975 </text>
5976
5977 <text style="text_m_accent">
5978 <placement x="%col1_x_left%" y="%row1_y%"/>
5979 <text>{@name=Name:}</text>
5980 </text>
5981
5982 <input>
5983 <placement x="%col1_x_left%" y="%row2_y%" w="%content_width%" h="%input_height%"/>
5984 <text>%tw_custom_folder%</text>
5985 <data name="tw_custom_folder"/>
5986 <restrict minlen="1" maxlen="64" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"/>
5987 <actions>
5988 <action function="set">tw_back=changeTwrpFolder</action>
5989 <action function="set">tw_action=applycustomtwrpfolder</action>
5990 <action function="set">tw_action_param=%tw_custom_folder%</action>
5991 <action function="set">tw_text1={@confirm_action=Confirm}</action>
5992 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
5993 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
5994 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} %tw_custom_folder%</action>
5995 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
5996 <action function="set">tw_filecheck=/sdcard/%tw_custom_folder%</action>
5997 <action function="set">tw_existpage=changeTwrpFolder</action>
5998 <action function="set">tw_notexistpage=confirm_action</action>
5999 <action function="page">filecheck</action>
6000 </actions>
6001 </input>
6002
6003 <fill color="%accent_color%">
6004 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6005 </fill>
6006
6007 <fill color="%text_fail_color%">
6008 <condition var1="tw_fileexists" var2="1"/>
6009 <placement x="%col1_x_left%" y="%row3_input_y%" w="%content_width%" h="%input_line_width%" placement="1"/>
6010 </fill>
6011
6012 <text style="text_m_fail">
6013 <condition var1="tw_fileexists" var2="1"/>
6014 <placement x="%col1_x_left%" y="%row3_input_y%"/>
6015 <text>{@tw_folder_exists=A folder with that name already exists!}</text>
6016 </text>
6017
6018 <button style="main_button_half_width_low">
6019 <placement x="%col1_x_left%" y="%row4_y%"/>
6020 <text>{@cancel_btn=Cancel}</text>
6021 <action function="page">advanced2</action>
6022 </button>
6023
6024 <button style="main_button_half_height">
6025 <condition var1="tw_recovery_folder" op="!=" var2="/TWRP"/>
6026 <placement x="%col1_x_right%" y="%row4_y%"/>
6027 <text>{@restore_defaults_btn=Restore Defaults}</text>
6028 <actions>
6029 <action function="set">tw_back=changeTwrpFolder</action>
6030 <action function="set">tw_action=applycustomtwrpfolder</action>
6031 <action function="set">tw_action_param=TWRP</action>
6032 <action function="set">tw_text1={@confirm_action=Confirm}</action>
6033 <action function="set">tw_text2={@rename_backup_confirm2=This cannot be undone!}</action>
6034 <action function="set">tw_action_text1={@change_twrp_folder_on_process=Changing TWRP folder}</action>
6035 <action function="set">tw_complete_text1={@change_twrp_folder_after_process=TWRP folder changed to} TWRP</action>
6036 <action function="set">tw_slider_text={@swipe_to_confirm=Swipe to Confirm}</action>
6037 <action function="set">tw_filecheck=/sdcard/TWRP</action>
6038 <action function="set">tw_existpage=changeTwrpFolder</action>
6039 <action function="set">tw_notexistpage=confirm_action</action>
6040 <action function="page">filecheck</action>
6041 </actions>
6042 </button>
6043
6044 <template name="keyboardtemplate"/>
6045
6046 <action>
6047 <touch key="home"/>
6048 <actions>
6049 <action function="page">main</action>
6050 </actions>
6051 </action>
6052
6053 <action>
6054 <touch key="back"/>
6055 <actions>
6056 <action function="page">advanced2</action>
6057 </actions>
6058 </action>
6059 </page>
z31s1g28f0a922015-11-07 18:50:22 +01006060 </pages>
6061</recovery>